Developer documentation
Version 3.0.3-105-gd3941f44
MR::Filter::Erode Class Reference

a filter to erode a mask More...

#include "filter/erode.h"

Inheritance diagram for MR::Filter::Erode:
MR::Filter::Base MR::Header

Protected Member Functions

bool erode (Image< bool > &in)
 
- Protected Member Functions inherited from MR::Header
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 npass
 
- Protected Attributes inherited from MR::Filter::Base
std::string message
 
- Protected Attributes inherited from MR::Header
vector< Axis > axes_
 
transform_type transform_
 
std::string name_
 
KeyValues keyval_
 
const char * format_
 
std::unique_ptr< ImageIO::Baseio
 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_
 

Detailed Description

a filter to erode a mask

Typical usage:

auto input = Image<bool>::open (argument[0]);
Filter::Erode erode (input);
Image<bool> output (erode, argument[1]);
erode (input, output);
bool erode(Image< bool > &in)
Definition: erode.h:101
static Image open(const std::string &image_name, bool read_write_if_existing=false)
Definition: image.h:189
vector< ParsedArgument > argument
the list of arguments parsed from the command-line

Definition at line 49 of file erode.h.

Member Function Documentation

◆ erode()

bool MR::Filter::Erode::erode ( Image< bool > &  in)
inlineprotected

Definition at line 101 of file erode.h.

Member Data Documentation

◆ npass

unsigned int MR::Filter::Erode::npass
protected

Definition at line 118 of file erode.h.


The documentation for this class was generated from the following file: