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

a filter to compute the optimal threshold to mask a DataSet. More...

#include "filter/optimal_threshold.h"

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

Additional Inherited Members

- 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 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 compute the optimal threshold to mask a DataSet.

This function computes the optimal threshold to mask a DataSet using the parameter free approach defined in: Ridgway G et al. (2009) NeuroImage.44(1):99-111.

Typical usage:

Buffer<value_type> input_data (argument[0]);
auto input_voxel = input_data.voxel();
Filter::OptimalThreshold filter (input_data);
Header mask_header (input_data);
mask_header.info() = filter.info();
Buffer<bool> mask_data (mask_header, argument[1]);
auto mask_voxel mask_data.voxel();
filter(input_voxel, mask_voxel);
vector< ParsedArgument > argument
the list of arguments parsed from the command-line

Definition at line 239 of file optimal_threshold.h.


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