a filter to clean up masks typically output by DWIBrainMask filter More...
#include "filter/mask_clean.h"
Protected Member Functions | |
template<class InputImageType , class OutputImageType > | |
void | single_pass (InputImageType &input, OutputImageType &output) |
template<class InputImageType , class OutputImageType > | |
void | single_scale (InputImageType &input, OutputImageType &output, const int ss) |
template<class InputImageType , class OutputImageType > | |
bool | differ (InputImageType &ima, OutputImageType &imb) |
![]() | |
void | acquire_io (Header &H) |
void | check (const Header &H) const |
void | realign_transform () |
realign transform to match RAS coordinate system as closely as possible More... | |
void | sanitise_voxel_sizes () |
void | sanitise_transform () |
void | sanitise_strides () |
Protected Attributes | |
unsigned int | scale |
![]() | |
std::string | message |
![]() | |
vector< Axis > | axes_ |
transform_type | transform_ |
std::string | name_ |
KeyValues | keyval_ |
const char * | format_ |
std::unique_ptr< ImageIO::Base > | io |
additional information relevant for images stored on file More... | |
DataType | datatype_ |
the type of the data as stored on file More... | |
default_type | offset_ |
the values by which to scale the intensities More... | |
default_type | scale_ |
std::array< size_t, 3 > | realign_perm_ |
std::array< bool, 3 > | realign_flip_ |
a filter to clean up masks typically output by DWIBrainMask filter
Removes peninsula-like extensions of binary masks, where the peninsula itself is wider than the bridge connecting it to the mask. Typical examples are eyes connected to the mask by parts of the optical nerves; or other non-brain parts or artefacts.
Typical usage:
Definition at line 56 of file mask_clean.h.
|
inlineprotected |
Definition at line 173 of file mask_clean.h.
|
inlineprotected |
Definition at line 126 of file mask_clean.h.
|
inlineprotected |
Definition at line 145 of file mask_clean.h.
|
protected |
Definition at line 182 of file mask_clean.h.