Class ZeroCrossingImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.ZeroCrossingImageFilter
This filter finds the closest pixel to the zero-crossings (sign
changes) in a signed itk::Image .
Pixels closest to zero-crossings are labeled with a foreground value.
All other pixels are marked with a background value. The algorithm
works by detecting differences in sign among neighbors using city-
block style connectivity (4-neighbors in 2d, 6-neighbors in 3d, etc.).
Inputs and Outputs
The input to this filter is an itk::Image of arbitrary dimension. The algorithm assumes a signed data type
(zero-crossings are not defined for unsigned int data types), and
requires that operator>, operator<, operator==, and operator!=
are defined.
The output of the filter is a binary, labeled image of user-specified
type. By default, zero-crossing pixels are labeled with a default
"foreground" value of itk::NumericTraits<OutputDataType>::OneValue() , where OutputDataType is the data type of the output image. All
other pixels are labeled with a default "background" value of
OutputDataType{}.
Parameters
There are two parameters for this filter. ForegroundValue is the value
that marks zero-crossing pixels. The BackgroundValue is the value
given to all other pixels.
See:
Image
Neighborhood
NeighborhoodOperator
NeighborhoodIterator
itk::simple::ZeroCrossing for the procedural interface
itk::ZeroCrossingImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkZeroCrossingImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::ZeroCrossingImageFilter::ZeroCrossingImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedZeroCrossingImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::ZeroCrossingImageFilter::~ZeroCrossingImageFilter() DestructorImage itk::simple::ZeroCrossingImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()shortuint8_t itk::simple::ZeroCrossingImageFilter::GetBackgroundValue() const Set/Get the label value for non-zero-crossing pixels.protected static longshortuint8_t itk::simple::ZeroCrossingImageFilter::GetForegroundValue() const Set/Get the label value for zero-crossing pixels.getName()std::string itk::simple::ZeroCrossingImageFilter::GetName() const Name of this classvoidsetBackgroundValue(short BackgroundValue) Self& itk::simple::ZeroCrossingImageFilter::SetBackgroundValue(uint8_t BackgroundValue) Set/Get the label value for non-zero-crossing pixels.voidsetForegroundValue(short ForegroundValue) Self& itk::simple::ZeroCrossingImageFilter::SetForegroundValue(uint8_t ForegroundValue) Set/Get the label value for zero-crossing pixels.protected static longtoString()std::string itk::simple::ZeroCrossingImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObject
abort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
-
Constructor Details
-
ZeroCrossingImageFilter
protected ZeroCrossingImageFilter(long cPtr, boolean cMemoryOwn) -
ZeroCrossingImageFilter
public ZeroCrossingImageFilter()itk::simple::ZeroCrossingImageFilter::ZeroCrossingImageFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalizein classImageFilter
-
delete
public void delete()virtual itk::simple::ZeroCrossingImageFilter::~ZeroCrossingImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setForegroundValue
public void setForegroundValue(short ForegroundValue) Self& itk::simple::ZeroCrossingImageFilter::SetForegroundValue(uint8_t ForegroundValue) Set/Get the label value for zero-crossing pixels. -
getForegroundValue
public short getForegroundValue()uint8_t itk::simple::ZeroCrossingImageFilter::GetForegroundValue() const Set/Get the label value for zero-crossing pixels. -
setBackgroundValue
public void setBackgroundValue(short BackgroundValue) Self& itk::simple::ZeroCrossingImageFilter::SetBackgroundValue(uint8_t BackgroundValue) Set/Get the label value for non-zero-crossing pixels. -
getBackgroundValue
public short getBackgroundValue()uint8_t itk::simple::ZeroCrossingImageFilter::GetBackgroundValue() const Set/Get the label value for non-zero-crossing pixels. -
getName
std::string itk::simple::ZeroCrossingImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::ZeroCrossingImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-