|
static constexpr unsigned int | ImageDimension = TInputImage::ImageDimension |
|
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
|
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
|
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
|
SizeType | m_Size |
|
int | m_NumberOfSeeds { 200 } |
|
SizeValueType | m_MinRegion { 20 } |
|
int | m_Steps { 0 } |
|
int | m_LastStepSeeds { 0 } |
|
int | m_NumberOfSeedsToAdded { 0 } |
|
int | m_NumberOfBoundary { 0 } |
|
std::vector< SizeValueType > | m_NumberOfPixels |
|
std::vector< unsigned char > | m_Label |
|
double | m_MeanDeviation { 0.8 } |
|
bool | m_UseBackgroundInAPrior { false } |
|
bool | m_OutputBoundary { false } |
|
bool | m_InteractiveSegmentation { false } |
|
VoronoiDiagram::Pointer | m_WorkingVD |
|
VoronoiDiagramGenerator::Pointer | m_VDGenerator |
|
std::vector< PointType > | m_SeedsToAdded |
|
virtual void | SetNumberOfSeeds (int _arg) |
|
virtual int | GetNumberOfSeeds () const |
|
virtual void | SetMinRegion (SizeValueType _arg) |
|
virtual SizeValueType | GetMinRegion () const |
|
virtual void | SetSteps (int _arg) |
|
virtual int | GetSteps () const |
|
virtual int | GetLastStepSeeds () const |
|
virtual int | GetNumberOfSeedsToAdded () const |
|
virtual void | SetUseBackgroundInAPrior (bool _arg) |
|
virtual bool | GetUseBackgroundInAPrior () const |
|
virtual void | SetOutputBoundary (bool _arg) |
|
virtual bool | GetOutputBoundary () const |
|
virtual void | SetInteractiveSegmentation (bool _arg) |
|
virtual bool | GetInteractiveSegmentation () const |
|
virtual void | InteractiveSegmentationOn () |
|
virtual void | InteractiveSegmentationOff () |
|
virtual void | SetMeanDeviation (double _arg) |
|
virtual double | GetMeanDeviation () const |
|
virtual void | SetSize (SizeType _arg) |
|
virtual SizeType | GetSize () const |
|
virtual void | TakeAPrior (const BinaryObjectImage *) |
|
void | RunSegment () |
|
void | RunSegmentOneStep () |
|
virtual void | MakeSegmentBoundary () |
|
virtual void | MakeSegmentObject () |
|
VoronoiPointer | GetVoronoiDiagram () |
|
void | SetSeeds (int num, SeedsIterator begin) |
|
void | SetSeeds (SeedsType &seeds) |
|
PointType | GetSeed (int SeedID) |
|
void | DrawDiagram (VDImagePointer result, unsigned char incolor, unsigned char outcolor, unsigned char boundcolor) |
|
void | BeforeNextStep () |
|
void | GenerateInputRequestedRegion () override |
|
void | EnlargeOutputRequestedRegion (DataObject *output) override |
|
| VoronoiSegmentationImageFilterBase () |
|
| ~VoronoiSegmentationImageFilterBase () override=default |
|
void | PrintSelf (std::ostream &os, Indent indent) const override |
|
void | GenerateData () override |
|
virtual void | ClassifyDiagram () |
|
virtual void | GenerateAddingSeeds () |
|
void | GetPixelIndexFromPolygon (PointTypeDeque vertlist, IndexList *PixelPool) |
|
virtual bool | TestHomogeneity (IndexList &) |
|
void | FillPolygon (PointTypeDeque vertlist, OutputPixelType color=1) |
|
void | drawLine (PointType p1, PointType p2) |
|
void | drawVDline (VDImagePointer result, PointType p1, PointType p2, unsigned char color) |
|
|
using | InputToOutputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::OutputImageDimension, Self::InputImageDimension > |
|
using | OutputToInputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::InputImageDimension, Self::OutputImageDimension > |
|
| ImageToImageFilter () |
|
| ~ImageToImageFilter () override=default |
|
void | VerifyInputInformation () ITKv5_CONST override |
|
virtual void | CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion) |
|
virtual void | CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion) |
|
void | PushBackInput (const DataObject *input) override |
|
void | PushFrontInput (const DataObject *input) override |
|
| ImageSource () |
|
| ~ImageSource () override=default |
|
void | ClassicMultiThread (ThreadFunctionType callbackFunction) |
|
virtual void | ThreadedGenerateData (const OutputImageRegionType ®ion, ThreadIdType threadId) |
|
virtual void | DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) |
|
virtual void | AllocateOutputs () |
|
virtual void | BeforeThreadedGenerateData () |
|
virtual void | AfterThreadedGenerateData () |
|
virtual const ImageRegionSplitterBase * | GetImageRegionSplitter () const |
|
virtual unsigned int | SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion) |
|
virtual bool | GetDynamicMultiThreading () const |
|
virtual void | SetDynamicMultiThreading (bool _arg) |
|
virtual void | DynamicMultiThreadingOn () |
|
virtual void | DynamicMultiThreadingOff () |
|
| ProcessObject () |
|
| ~ProcessObject () override |
|
DataObject * | GetInput (const DataObjectIdentifierType &key) |
|
const DataObject * | GetInput (const DataObjectIdentifierType &key) const |
|
DataObject * | GetInput (DataObjectPointerArraySizeType idx) |
|
const DataObject * | GetInput (DataObjectPointerArraySizeType idx) const |
|
virtual void | SetInput (const DataObjectIdentifierType &key, DataObject *input) |
|
virtual void | SetNthInput (DataObjectPointerArraySizeType idx, DataObject *input) |
|
virtual void | AddInput (DataObject *input) |
|
virtual void | RemoveInput (const DataObjectIdentifierType &key) |
|
virtual void | RemoveInput (DataObjectPointerArraySizeType) |
|
DataObject * | GetPrimaryInput () |
|
const DataObject * | GetPrimaryInput () const |
|
virtual void | SetPrimaryInputName (const DataObjectIdentifierType &key) |
|
virtual const char * | GetPrimaryInputName () const |
|
virtual void | SetPrimaryInput (DataObject *object) |
|
void | SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num) |
|
virtual void | SetNumberOfRequiredInputs (DataObjectPointerArraySizeType) |
|
virtual const DataObjectPointerArraySizeType & | GetNumberOfRequiredInputs () const |
|
bool | RemoveRequiredInputName (const DataObjectIdentifierType &) |
|
bool | IsRequiredInputName (const DataObjectIdentifierType &) const |
|
void | SetRequiredInputNames (const NameArray &) |
|
bool | AddRequiredInputName (const DataObjectIdentifierType &) |
|
bool | AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx) |
|
void | AddOptionalInputName (const DataObjectIdentifierType &) |
|
void | AddOptionalInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx) |
|
DataObject * | GetOutput (const DataObjectIdentifierType &key) |
|
const DataObject * | GetOutput (const DataObjectIdentifierType &key) const |
|
virtual void | SetPrimaryOutputName (const DataObjectIdentifierType &key) |
|
virtual const char * | GetPrimaryOutputName () const |
|
DataObject * | GetOutput (DataObjectPointerArraySizeType i) |
|
const DataObject * | GetOutput (DataObjectPointerArraySizeType i) const |
|
virtual void | SetOutput (const DataObjectIdentifierType &name, DataObject *output) |
|
virtual void | RemoveOutput (const DataObjectIdentifierType &key) |
|
DataObject * | GetPrimaryOutput () |
|
const DataObject * | GetPrimaryOutput () const |
|
virtual void | SetPrimaryOutput (DataObject *object) |
|
virtual void | SetNthOutput (DataObjectPointerArraySizeType idx, DataObject *output) |
|
virtual void | AddOutput (DataObject *output) |
|
virtual void | RemoveOutput (DataObjectPointerArraySizeType idx) |
|
virtual void | SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg) |
|
virtual const DataObjectPointerArraySizeType & | GetNumberOfRequiredOutputs () const |
|
void | SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num) |
|
DataObjectIdentifierType | MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const |
|
DataObjectIdentifierType | MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const |
|
DataObjectPointerArraySizeType | MakeIndexFromInputName (const DataObjectIdentifierType &name) const |
|
DataObjectPointerArraySizeType | MakeIndexFromOutputName (const DataObjectIdentifierType &name) const |
|
bool | IsIndexedInputName (const DataObjectIdentifierType &) const |
|
bool | IsIndexedOutputName (const DataObjectIdentifierType &) const |
|
virtual void | VerifyPreconditions () ITKv5_CONST |
|
virtual void | GenerateOutputRequestedRegion (DataObject *output) |
|
virtual void | GenerateOutputInformation () |
|
virtual void | PropagateResetPipeline () |
|
virtual void | ReleaseInputs () |
|
virtual void | CacheInputReleaseDataFlags () |
|
virtual void | RestoreInputReleaseDataFlags () |
|
virtual bool | GetThreaderUpdateProgress () const |
|
virtual void | ThreaderUpdateProgressOn () |
|
virtual void | ThreaderUpdateProgressOff () |
|
virtual void | SetThreaderUpdateProgress (bool arg) |
|
| Object () |
|
| ~Object () override |
|
bool | PrintObservers (std::ostream &os, Indent indent) const |
|
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
|
virtual LightObject::Pointer | InternalClone () const |
|
| LightObject () |
|
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
|
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
|
virtual | ~LightObject () |
|
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
|
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
|
static constexpr float | progressFixedToFloat (uint32_t fixed) |
|
static uint32_t | progressFloatToFixed (float f) |
|
bool | m_DynamicMultiThreading |
|
bool | m_Updating |
|
TimeStamp | m_OutputInformationMTime |
|
std::atomic< int > | m_ReferenceCount |
|
template<typename TInputImage, typename TOutputImage, typename TBinaryPriorImage = Image<unsigned char, 2>>
class itk::VoronoiSegmentationImageFilterBase< TInputImage, TOutputImage, TBinaryPriorImage >
Base class for VoronoiSegmentationImageFilter.
Voronoi SegmentationImageFilter is a class of segmentation algorithms that works on 2D image. Begin with certain number of seeds, VoronoiSegmentationImageFilter first partition the image plane to voronoi regions, and testing each region by some homogeneity operators, which need to be implemented in the private method: virtual bool TestHomogeneity(IndexList &Plist); after testing, all the regions are classified as either "internal" or "external" region and the "boundary" regions was defined as an "external" region that has at least one "internal" region as its neighbor. the algorithm then added seed points to the "boundary" regions (on the edges) and recursively "split" the boundary region until all the "boundary" become sufficiently small. the output of the segmentation can be either a binary object, which is the collection of all the "internal" region. Or a binary boundary delineate, which is defined as the connected lines between seed points of "boundary" region. This class is a base class for voronoi segmentation, single channel or multiple channel image segmentation can be implemented by deriving imagefilters from this class, by implementing the virtual methods
Detailed information about this algorithm can be found in: " Semi-automated color segmentation of anatomical tissue," C. Imelinska, M. Downes, and W. Yuan Computerized Medical Imaging and Graphics, Vor.24, pp 173-180, 2000.
Definition at line 59 of file itkVoronoiSegmentationImageFilterBase.h.
template<typename TInputImage, typename TOutputImage, typename TBinaryPriorImage = Image<unsigned char, 2>>
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.