Package org.itk.simple
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 itk::NumericTraits<OutputDataType>::ZeroValue() .
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 parametersprotected
ZeroCrossingImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::ZeroCrossingImageFilter::~ZeroCrossingImageFilter() DestructorImage itk::simple::ZeroCrossingImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
short
uint8_t itk::simple::ZeroCrossingImageFilter::GetBackgroundValue() const Set/Get the label value for non-zero-crossing pixels.protected static long
short
uint8_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 classvoid
setBackgroundValue
(short BackgroundValue) Self& itk::simple::ZeroCrossingImageFilter::SetBackgroundValue(uint8_t BackgroundValue) Set/Get the label value for non-zero-crossing pixels.void
setForegroundValue
(short ForegroundValue) Self& itk::simple::ZeroCrossingImageFilter::SetForegroundValue(uint8_t ForegroundValue) Set/Get the label value for zero-crossing pixels.protected static long
toString()
std::string itk::simple::ZeroCrossingImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigRelease
Methods 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:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::ZeroCrossingImageFilter::~ZeroCrossingImageFilter() Destructor- Overrides:
delete
in 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:
getName
in classProcessObject
-
toString
std::string itk::simple::ZeroCrossingImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::ZeroCrossingImageFilter::Execute(const Image &image1) Execute the filter on the input image
-