IMP logo

IMP::em::FilterByThreshold< T, D > Class Template Reference


Detailed Description

template<typename T, int D>
class IMP::em::FilterByThreshold< T, D >

Class defining a filter that filters by value directly, just getting the values above or below a given threshold
Note:
It can be applied to 2D, 3D or arbitrary dimension

Public Member Functions

void apply (algebra::MultiArray< T, D > &m)
 Function to apply the filter.
 FilterByThreshold (double threshold, int mode, double value)
void set_parameters (T threshold, int mode)
void set_parameters (T threshold, int mode, T value)
 Function to set the paramters of of the filter.

Protected Attributes

int mode_
threshold_
value_

Member Function Documentation

template<typename T , int D>
void IMP::em::FilterByThreshold< T, D >::set_parameters ( threshold,
int  mode,
value 
)

Function to set the paramters of of the filter.

Parameters:
[in] threshold 
[in] mode,: 0 - Filter all the values BELOW the threshold 1 - Filter all the values ABOVE the threshold
[in] value Value to given to the filtered entries. By default the given value is the threshold


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

Generated on Mon Mar 8 23:09:01 2010 for IMP by doxygen 1.5.8