ITK  5.2.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | List of all members
itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage > Class Template Reference

#include <itkVoronoiSegmentationRGBImageFilter.h>

+ Inheritance diagram for itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >:
+ Collaboration diagram for itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >:

Public Types

using BinaryObjectImage = typename Superclass::BinaryObjectImage
 
using ConstPointer = SmartPointer< const Self >
 
using IndexList = typename Superclass::IndexList
 
using IndexType = typename Superclass::IndexType
 
using InputImagePointer = typename Superclass::InputImagePointer
 
using InputImageType = typename Superclass::InputImageType
 
using PixelType = typename Superclass::PixelType
 
using Pointer = SmartPointer< Self >
 
using RegionType = typename Superclass::RegionType
 
using RGBHCVImage = Image< RGBHCVPixel >
 
using RGBHCVPixel = Vector< float, 6 >
 
using Self = VoronoiSegmentationRGBImageFilter
 
using Superclass = VoronoiSegmentationImageFilterBase< TInputImage, TOutputImage >
 
- Public Types inherited from itk::VoronoiSegmentationImageFilterBase< TInputImage, TOutputImage >
using BinaryObjectImage = Image< unsigned char, 2 >
 
using BinaryObjectImagePointer = typename BinaryObjectImage::Pointer
 
using CellAutoPointer = typename VoronoiDiagram::CellAutoPointer
 
using CellType = typename VoronoiDiagram::CellType
 
using ConstPointer = SmartPointer< const Self >
 
using EdgeInfo = typename VoronoiDiagram::VoronoiEdge
 
using EdgeIterator = typename VoronoiDiagram::VoronoiEdgeIterator
 
using IndexList = std::vector< IndexType >
 
using IndexType = typename TInputImage::IndexType
 
using InputImageConstPointer = typename TInputImage::ConstPointer
 
using InputImagePointer = typename TInputImage::Pointer
 
using InputImageType = TInputImage
 
using NeighborIdIterator = typename VoronoiDiagram::NeighborIdIterator
 
using OutputImageType = TOutputImage
 
using OutputPixelType = typename TOutputImage::PixelType
 
using PixelType = typename TInputImage::PixelType
 
using Pointer = SmartPointer< Self >
 
using PointIdIterator = typename CellType::PointIdIterator
 
using PointType = typename VoronoiDiagram::PointType
 
using PointTypeDeque = std::deque< PointType >
 
using PointTypeVector = std::vector< PointType >
 
using RegionType = typename TInputImage::RegionType
 
using SeedsIterator = typename VoronoiDiagram::SeedsIterator
 
using SeedsType = typename VoronoiDiagram::SeedsType
 
using Self = VoronoiSegmentationImageFilterBase
 
using SizeType = typename TInputImage::SizeType
 
using Superclass = ImageToImageFilter< TInputImage, TOutputImage >
 
using VDImage = Image< unsigned char, 2 >
 
using VDImagePointer = typename VDImage::Pointer
 
using VoronoiDiagram = VoronoiDiagram2D< double >
 
using VoronoiDiagramGenerator = VoronoiDiagram2DGenerator< double >
 
using VoronoiPointer = typename VoronoiDiagram::Pointer
 
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
using ConstPointer = SmartPointer< const Self >
 
using InputImageConstPointer = typename InputImageType::ConstPointer
 
using InputImagePixelType = typename InputImageType::PixelType
 
using InputImagePointer = typename InputImageType::Pointer
 
using InputImageRegionType = typename InputImageType::RegionType
 
using InputImageType = TInputImage
 
using OutputImagePixelType = typename Superclass::OutputImagePixelType
 
using OutputImageRegionType = typename Superclass::OutputImageRegionType
 
using Pointer = SmartPointer< Self >
 
using Self = ImageToImageFilter
 
using Superclass = ImageSource< TOutputImage >
 
- Public Types inherited from itk::ImageSource< TOutputImage >
using ConstPointer = SmartPointer< const Self >
 
using DataObjectIdentifierType = Superclass::DataObjectIdentifierType
 
using DataObjectPointer = DataObject::Pointer
 
using DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType
 
using OutputImagePixelType = typename OutputImageType::PixelType
 
using OutputImagePointer = typename OutputImageType::Pointer
 
using OutputImageRegionType = typename OutputImageType::RegionType
 
using OutputImageType = TOutputImage
 
using Pointer = SmartPointer< Self >
 
using Self = ImageSource
 
using Superclass = ProcessObject
 
- Public Types inherited from itk::ProcessObject
using ConstPointer = SmartPointer< const Self >
 
using DataObjectIdentifierType = DataObject::DataObjectIdentifierType
 
using DataObjectPointer = DataObject::Pointer
 
using DataObjectPointerArray = std::vector< DataObjectPointer >
 
using DataObjectPointerArraySizeType = DataObjectPointerArray::size_type
 
using MultiThreaderType = MultiThreaderBase
 
using NameArray = std::vector< DataObjectIdentifierType >
 
using Pointer = SmartPointer< Self >
 
using Self = ProcessObject
 
using Superclass = Object
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightObject
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from itk::VoronoiSegmentationImageFilterBase< TInputImage, TOutputImage >
virtual ::itk::LightObject::Pointer CreateAnother () const
 
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
 
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
const InputImageTypeGetInput () const
 
const InputImageTypeGetInput (unsigned int idx) const
 
void PopBackInput () override
 
void PopFrontInput () override
 
virtual void PushBackInput (const InputImageType *input)
 
virtual void PushFrontInput (const InputImageType *input)
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual double GetCoordinateTolerance () const
 
virtual void SetDirectionTolerance (double _arg)
 
virtual double GetDirectionTolerance () const
 
- Public Member Functions inherited from itk::ImageSource< TOutputImage >
OutputImageTypeGetOutput ()
 
const OutputImageTypeGetOutput () const
 
OutputImageTypeGetOutput (unsigned int idx)
 
virtual void GraftOutput (DataObject *graft)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *graft)
 
virtual void GraftNthOutput (unsigned int idx, DataObject *graft)
 
ProcessObject::DataObjectPointer MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) override
 
ProcessObject::DataObjectPointer MakeOutput (const ProcessObject::DataObjectIdentifierType &) override
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual DataObjectPointerArraySizeType GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual float GetProgress () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
void IncrementProgress (float increment)
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
virtual void SetReleaseDataFlag (bool val)
 
virtual bool GetReleaseDataFlag () const
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void SetNumberOfWorkUnits (ThreadIdType _arg)
 
virtual const ThreadIdTypeGetNumberOfWorkUnits () const
 
MultiThreaderTypeGetMultiThreader () const
 
void SetMultiThreader (MultiThreaderType *threader)
 
virtual void PrepareOutputs ()
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::VoronoiSegmentationImageFilterBase< TInputImage, TOutputImage >
static Pointer New ()
 
- Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
static void SetGlobalDefaultDirectionTolerance (double)
 
static double GetGlobalDefaultDirectionTolerance ()
 
static void SetGlobalDefaultCoordinateTolerance (double)
 
static double GetGlobalDefaultCoordinateTolerance ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 
static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension
 
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
double m_Mean [6]
 
double m_STD [6]
 
double m_MeanTolerance [6]
 
double m_STDTolerance [6]
 
double m_MeanPercentError [6]
 
double m_STDPercentError [6]
 
double m_MaxValueOfRGB
 
unsigned int m_TestMean [3]
 
unsigned int m_TestSTD [3]
 
RGBHCVImage::Pointer m_WorkingImage
 
void SetMeanPercentError (const double x[6])
 
void SetSTDPercentError (const double x[6])
 
void GetMeanPercentError (double x[6])
 
void GetSTDPercentError (double x[6])
 
void GetMean (double x[6])
 
void GetSTD (double x[6])
 
void SetMean (const double x[6])
 
void SetSTD (const double x[6])
 
void GetMeanTolerance (double x[6])
 
void GetSTDTolerance (double x[6])
 
virtual void SetMaxValueOfRGB (double _arg)
 
virtual double GetMaxValueOfRGB () const
 
void SetTestMean (unsigned int t1, unsigned int t2, unsigned int t3)
 
void SetTestSTD (unsigned int t1, unsigned int t2, unsigned int t3)
 
void GetTestMean (unsigned int x[3])
 
void GetTestSTD (unsigned int x[3])
 
void TakeAPrior (const BinaryObjectImage *aprior) override
 
void SetInput (const InputImageType *input) override
 
void SetInput (unsigned int, const InputImageType *input) override
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
 VoronoiSegmentationRGBImageFilter ()
 
 ~VoronoiSegmentationRGBImageFilter () override=default
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
bool TestHomogeneity (IndexList &Plist) override
 

Additional Inherited Members

- Static Public Attributes inherited from itk::VoronoiSegmentationImageFilterBase< TInputImage, TOutputImage >
static constexpr unsigned int ImageDimension
 
- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension
 
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
using InputToOutputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::OutputImageDimension, Self::InputImageDimension >
 
using OutputToInputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::InputImageDimension, Self::OutputImageDimension >
 
- Protected Member Functions inherited from itk::VoronoiSegmentationImageFilterBase< TInputImage, TOutputImage >
 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)
 
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
 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
 
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
 ImageSource ()
 
 ~ImageSource () override=default
 
void ClassicMultiThread (ThreadFunctionType callbackFunction)
 
virtual void ThreadedGenerateData (const OutputImageRegionType &region, ThreadIdType threadId)
 
virtual void DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread)
 
virtual void AllocateOutputs ()
 
virtual void BeforeThreadedGenerateData ()
 
virtual void AfterThreadedGenerateData ()
 
virtual const ImageRegionSplitterBaseGetImageRegionSplitter () 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 ()
 
- Protected Member Functions inherited from itk::ProcessObject
 ProcessObject ()
 
 ~ProcessObject () override
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (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)
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () 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 DataObjectPointerArraySizeTypeGetNumberOfRequiredInputs () 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)
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryOutputName () const
 
DataObjectGetOutput (DataObjectPointerArraySizeType i)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType i) const
 
virtual void SetOutput (const DataObjectIdentifierType &name, DataObject *output)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () 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 DataObjectPointerArraySizeTypeGetNumberOfRequiredOutputs () 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)
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
 ~Object () override
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
- Protected Member Functions inherited from itk::LightObject
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 Protected Member Functions inherited from itk::ImageSource< TOutputImage >
static const ImageRegionSplitterBaseGetGlobalDefaultSplitter ()
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreaderCallback (void *arg)
 
- Static Protected Member Functions inherited from itk::ProcessObject
static constexpr float progressFixedToFloat (uint32_t fixed)
 
static uint32_t progressFloatToFixed (float f)
 
- Protected Attributes inherited from itk::VoronoiSegmentationImageFilterBase< TInputImage, TOutputImage >
SizeType m_Size
 
int m_NumberOfSeeds
 
SizeValueType m_MinRegion
 
int m_Steps
 
int m_LastStepSeeds
 
int m_NumberOfSeedsToAdded
 
int m_NumberOfBoundary
 
std::vector< SizeValueTypem_NumberOfPixels
 
std::vector< unsigned char > m_Label
 
double m_MeanDeviation
 
bool m_UseBackgroundInAPrior
 
bool m_OutputBoundary
 
bool m_InteractiveSegmentation
 
VoronoiDiagram::Pointer m_WorkingVD
 
VoronoiDiagramGenerator::Pointer m_VDGenerator
 
std::vector< PointTypem_SeedsToAdded
 
- Protected Attributes inherited from itk::ImageSource< TOutputImage >
bool m_DynamicMultiThreading
 
- Protected Attributes inherited from itk::ProcessObject
bool m_Updating
 
TimeStamp m_OutputInformationMTime
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount
 

Detailed Description

template<typename TInputImage, typename TOutputImage>
class itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >

Segmentation of 2D RGB images using Voronoi Diagram. This is not a standard 3 channel image filter, it also investigates the HSV color space information. from RGBHSV, the user can specify or by giving a prior binary mask, the algorithm will decide which 3 channels out of the 6 channels will be used for homogeneity testing. the homogeneity testing requires all the three testing channels to have the similar mean and standard deviation value from the gold-standard in the sense that the difference will be under the tolerance value.

Input parameters are: (1) Image data, in the format: itkImage<itkVector<PixelType,3>, 2>. (2) Object statistics: mean and standard deviation (3) Tolerance level for the classifier. This level is usually set around the mean and standard deviation values.

These parameters can also be automatically set by providing a binary image prior.

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, Vol.24, pp 173-180, 2000.

Definition at line 54 of file itkVoronoiSegmentationRGBImageFilter.h.

Member Typedef Documentation

◆ BinaryObjectImage

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::BinaryObjectImage = typename Superclass::BinaryObjectImage

Convenient type alias.

Definition at line 73 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ ConstPointer

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self>

Definition at line 64 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ IndexList

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::IndexList = typename Superclass::IndexList

Definition at line 74 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ IndexType

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::IndexType = typename Superclass::IndexType

Definition at line 75 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ InputImagePointer

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::InputImagePointer = typename Superclass::InputImagePointer

Definition at line 78 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ InputImageType

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::InputImageType = typename Superclass::InputImageType

Definition at line 79 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ PixelType

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::PixelType = typename Superclass::PixelType

Definition at line 77 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ Pointer

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self>

Definition at line 63 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ RegionType

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::RegionType = typename Superclass::RegionType

Definition at line 76 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ RGBHCVImage

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::RGBHCVImage = Image<RGBHCVPixel>

Definition at line 81 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ RGBHCVPixel

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::RGBHCVPixel = Vector<float, 6>

Definition at line 80 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ Self

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::Self = VoronoiSegmentationRGBImageFilter

Standard class type aliases.

Definition at line 61 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ Superclass

template<typename TInputImage , typename TOutputImage >
using itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::Superclass = VoronoiSegmentationImageFilterBase<TInputImage, TOutputImage>

Definition at line 62 of file itkVoronoiSegmentationRGBImageFilter.h.

Constructor & Destructor Documentation

◆ VoronoiSegmentationRGBImageFilter()

template<typename TInputImage , typename TOutputImage >
itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::VoronoiSegmentationRGBImageFilter ( )
protected

ImageDimension enumeration

◆ ~VoronoiSegmentationRGBImageFilter()

template<typename TInputImage , typename TOutputImage >
itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::~VoronoiSegmentationRGBImageFilter ( )
overrideprotecteddefault

ImageDimension enumeration

Member Function Documentation

◆ CreateAnother()

template<typename TInputImage , typename TOutputImage >
virtual::itk::LightObject::Pointer itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::CreateAnother ( ) const
virtual

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.

◆ GetMaxValueOfRGB()

template<typename TInputImage , typename TOutputImage >
virtual double itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::GetMaxValueOfRGB ( ) const
virtual

ImageDimension enumeration

◆ GetMean()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::GetMean ( double  x[6])
inline

ImageDimension enumeration

Definition at line 105 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ GetMeanPercentError()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::GetMeanPercentError ( double  x[6])
inline

ImageDimension enumeration

Definition at line 89 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ GetMeanTolerance()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::GetMeanTolerance ( double  x[6])
inline

ImageDimension enumeration

Definition at line 137 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ GetNameOfClass()

template<typename TInputImage , typename TOutputImage >
virtual const char* itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::VoronoiSegmentationImageFilterBase< TInputImage, TOutputImage >.

◆ GetSTD()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::GetSTD ( double  x[6])
inline

ImageDimension enumeration

Definition at line 113 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ GetSTDPercentError()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::GetSTDPercentError ( double  x[6])
inline

ImageDimension enumeration

Definition at line 97 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ GetSTDTolerance()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::GetSTDTolerance ( double  x[6])
inline

ImageDimension enumeration

Definition at line 145 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ GetTestMean()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::GetTestMean ( unsigned int  x[3])
inline

ImageDimension enumeration

Definition at line 180 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ GetTestSTD()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::GetTestSTD ( unsigned int  x[3])
inline

ImageDimension enumeration

Definition at line 188 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ New()

template<typename TInputImage , typename TOutputImage >
static Pointer itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

ImageDimension enumeration

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

◆ SetInput() [1/3]

template<typename TInputImage , typename TOutputImage >
virtual void itk::ProcessObject::SetInput

Protected method for setting indexed and named inputs.

Subclasses make use of them for setting input. As this method only used the base DataObject pointer, derived classes should expose a type check methods.

◆ SetInput() [2/3]

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::SetInput ( const InputImageType input)
overridevirtual

ImageDimension enumeration

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

◆ SetInput() [3/3]

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::SetInput ( unsigned int  ,
const InputImageType input 
)
overridevirtual

ImageDimension enumeration

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

◆ SetMaxValueOfRGB()

template<typename TInputImage , typename TOutputImage >
virtual void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::SetMaxValueOfRGB ( double  _arg)
virtual

Maximum value of the RGB, needed for color space conversions. default as 8 bit per channel, if it is different, need to be set before doing anything.

◆ SetMean()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::SetMean ( const double  x[6])
inline

ImageDimension enumeration

Definition at line 121 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ SetMeanPercentError()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::SetMeanPercentError ( const double  x[6])
Todo:
Document.

◆ SetSTD()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::SetSTD ( const double  x[6])
inline

ImageDimension enumeration

Definition at line 129 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ SetSTDPercentError()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::SetSTDPercentError ( const double  x[6])

ImageDimension enumeration

◆ SetTestMean()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::SetTestMean ( unsigned int  t1,
unsigned int  t2,
unsigned int  t3 
)
inline

Set the three channels to test the mean and STD respectively 0:red, 1:green, 2:blue, 3:hue, 4:chroma, 5:value.

Definition at line 164 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ SetTestSTD()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::SetTestSTD ( unsigned int  t1,
unsigned int  t2,
unsigned int  t3 
)
inline

ImageDimension enumeration

Definition at line 172 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ TakeAPrior()

template<typename TInputImage , typename TOutputImage >
void itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::TakeAPrior ( const BinaryObjectImage aprior)
override

ImageDimension enumeration

◆ TestHomogeneity()

template<typename TInputImage , typename TOutputImage >
bool itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::TestHomogeneity ( IndexList Plist)
overrideprivate

ImageDimension enumeration

Member Data Documentation

◆ InputImageDimension

template<typename TInputImage , typename TOutputImage >
constexpr unsigned int itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::InputImageDimension = TInputImage::ImageDimension
staticconstexpr

ImageDimension enumeration

Definition at line 206 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ m_MaxValueOfRGB

template<typename TInputImage , typename TOutputImage >
double itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::m_MaxValueOfRGB
private

ImageDimension enumeration

Definition at line 230 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ m_Mean

template<typename TInputImage , typename TOutputImage >
double itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::m_Mean[6]
private

ImageDimension enumeration

Definition at line 224 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ m_MeanPercentError

template<typename TInputImage , typename TOutputImage >
double itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::m_MeanPercentError[6]
private

ImageDimension enumeration

Definition at line 228 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ m_MeanTolerance

template<typename TInputImage , typename TOutputImage >
double itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::m_MeanTolerance[6]
private

ImageDimension enumeration

Definition at line 226 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ m_STD

template<typename TInputImage , typename TOutputImage >
double itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::m_STD[6]
private

ImageDimension enumeration

Definition at line 225 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ m_STDPercentError

template<typename TInputImage , typename TOutputImage >
double itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::m_STDPercentError[6]
private

ImageDimension enumeration

Definition at line 229 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ m_STDTolerance

template<typename TInputImage , typename TOutputImage >
double itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::m_STDTolerance[6]
private

ImageDimension enumeration

Definition at line 227 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ m_TestMean

template<typename TInputImage , typename TOutputImage >
unsigned int itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::m_TestMean[3]
private

ImageDimension enumeration

Definition at line 231 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ m_TestSTD

template<typename TInputImage , typename TOutputImage >
unsigned int itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::m_TestSTD[3]
private

ImageDimension enumeration

Definition at line 232 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ m_WorkingImage

template<typename TInputImage , typename TOutputImage >
RGBHCVImage::Pointer itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::m_WorkingImage
private

ImageDimension enumeration

Definition at line 233 of file itkVoronoiSegmentationRGBImageFilter.h.

◆ OutputImageDimension

template<typename TInputImage , typename TOutputImage >
constexpr unsigned int itk::VoronoiSegmentationRGBImageFilter< TInputImage, TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension
staticconstexpr

ImageDimension enumeration

Definition at line 207 of file itkVoronoiSegmentationRGBImageFilter.h.


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