Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage > Class Template Reference

This class performs the segmentation of a detail image extracted from a morphological pyramid analysis. More...

#include <otbMorphologicalPyramidSegmenter.h>

+ Inheritance diagram for otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >:
+ Collaboration diagram for otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >:

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef InputImageType::Pointer InputImagePointerType
 
typedef TInputImage InputImageType
 
typedef InputImageType::PixelType InputPixelType
 
typedef OutputImageType::Pointer OutputImagePointerType
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef TOutputImage OutputImageType
 
typedef OutputImageType::PixelType OutputPixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef Segmenter Self
 
typedef OutputImageType::SizeType SizeType
 
typedef
OutputImageType::SpacingType 
SpacingType
 
typedef
itk::ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual double GetConnectedThresholdQuantile ()
 
InputImageTypeGetDetailsImage (void)
 
virtual unsigned long GetMinimumObjectSize ()
 
virtual const char * GetNameOfClass () const
 
virtual OutputPixelType GetNumberOfObjects ()
 
InputImageTypeGetOriginalImage (void)
 
virtual double GetSeedsQuantile ()
 
virtual bool GetSegmentDarkDetailsBool ()
 
virtual void SegmentDarkDetailsBoolOff ()
 
virtual void SegmentDarkDetailsBoolOn ()
 
virtual void SetConnectedThresholdQuantile (double _arg)
 
void SetDetailsImage (const InputImageType *detailsImage)
 
virtual void SetMinimumObjectSize (unsigned long _arg)
 
void SetOriginalImage (const InputImageType *originalImage)
 
virtual void SetSeedsQuantile (double _arg)
 
virtual void SetSegmentDarkDetailsBool (bool _arg)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::ImageSource< TOutputImage >
static const
ImageRegionSplitterBase
GetGlobalDefaultSplitter (void)
 

Static Public Attributes

static const unsigned int DetailsImageDimension = TInputImage::ImageDimension
 
static const unsigned int OriginalImageDimension = TInputImage::ImageDimension
 
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension
 

Protected Member Functions

 Segmenter ()
 
 ~Segmenter ()
 
void EnlargeOutputRequestedRegion (void)
 
void GenerateData (void)
 
void GenerateInputRequestedRegion (void)
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 

Private Member Functions

 Segmenter (const Self &)
 
void operator= (const Self &)
 

Private Attributes

double m_ConnectedThresholdQuantile
 
unsigned long m_MinimumObjectSize
 
OutputPixelType m_NumberOfObjects
 
double m_SeedsQuantile
 
bool m_SegmentDarkDetailsBool
 

Detailed Description

template<class TInputImage, class TOutputImage>
class otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >

This class performs the segmentation of a detail image extracted from a morphological pyramid analysis.

This class performs the segmentation of a detail image extracted from a morphological pyramid analysis.

The Segmentation is perfomed using the ConnectedThresholdImageFilter. The seeds are extracted from the image using the ImageToPointSetFilter. The thresolds are set by using quantiles computed with the HistogramGenerator.

See Also
MorphologicalPyramidAnalyseFilter
MorphologicalPyramidSynthesisFilter
ResampleImageFilter
LinearInterpolateImageFunction
ScaleTransform

Definition at line 46 of file otbMorphologicalPyramidSegmenter.h.

Member Typedef Documentation

template<class TInputImage, class TOutputImage>
typedef itk::SmartPointer<const Self> otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::ConstPointer

Definition at line 54 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
typedef InputImageType::Pointer otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::InputImagePointerType

Definition at line 62 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
typedef TInputImage otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::InputImageType

Template parameters typedefs

Definition at line 58 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
typedef InputImageType::PixelType otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::InputPixelType

Definition at line 61 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
typedef OutputImageType::Pointer otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::OutputImagePointerType

Definition at line 64 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
typedef OutputImageType::RegionType otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::OutputImageRegionType

Definition at line 66 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
typedef TOutputImage otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::OutputImageType

Definition at line 63 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
typedef OutputImageType::PixelType otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::OutputPixelType

Definition at line 65 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
typedef itk::SmartPointer<Self> otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::Pointer

Definition at line 53 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
typedef Segmenter otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::Self

Standard typedefs

Definition at line 51 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
typedef OutputImageType::SizeType otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::SizeType

Definition at line 67 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
typedef OutputImageType::SpacingType otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::SpacingType

Definition at line 68 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
typedef itk::ImageToImageFilter<TInputImage, TOutputImage> otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::Superclass

Definition at line 52 of file otbMorphologicalPyramidSegmenter.h.

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage >
otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::Segmenter ( )
protected

Constructor

Definition at line 45 of file otbMorphologicalPyramidSegmenter.txx.

template<class TInputImage, class TOutputImage>
otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::~Segmenter ( )
inlineprotected

Destructor

Definition at line 118 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::Segmenter ( const Self )
private

Member Function Documentation

template<class TInputImage, class TOutputImage>
virtual::itk::LightObject::Pointer otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::CreateAnother ( void  ) const
template<class TInputImage , class TOutputImage >
void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::EnlargeOutputRequestedRegion ( void  )
protected

Configure the output data.

Configure the output data

Definition at line 132 of file otbMorphologicalPyramidSegmenter.txx.

template<class TInputImage , class TOutputImage >
void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::GenerateData ( void  )
protected

Main computation method

Definition at line 144 of file otbMorphologicalPyramidSegmenter.txx.

template<class TInputImage , class TOutputImage >
void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::GenerateInputRequestedRegion ( void  )
protected

Configure the input datas.

Definition at line 104 of file otbMorphologicalPyramidSegmenter.txx.

template<class TInputImage, class TOutputImage>
virtual double otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::GetConnectedThresholdQuantile ( )
virtual
template<class TInputImage , class TOutputImage >
Segmenter< TInputImage, TOutputImage >::InputImageType * otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::GetDetailsImage ( void  )

Get the details image.

Returns
detailsImage The input details image.

Set the details image.

Returns
detailsImage The input details image.

Definition at line 72 of file otbMorphologicalPyramidSegmenter.txx.

template<class TInputImage, class TOutputImage>
virtual unsigned long otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::GetMinimumObjectSize ( )
virtual
template<class TInputImage, class TOutputImage>
virtual const char* otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

Type macro

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage, class TOutputImage>
virtual OutputPixelType otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::GetNumberOfObjects ( )
virtual

Get the number of segmented objects

template<class TInputImage , class TOutputImage >
Segmenter< TInputImage, TOutputImage >::InputImageType * otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::GetOriginalImage ( void  )

Get the original image.

Returns
originalImage The original image to segment.

Definition at line 94 of file otbMorphologicalPyramidSegmenter.txx.

template<class TInputImage, class TOutputImage>
virtual double otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::GetSeedsQuantile ( )
virtual
template<class TInputImage, class TOutputImage>
virtual bool otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::GetSegmentDarkDetailsBool ( )
virtual
template<class TInputImage, class TOutputImage>
static Pointer otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::New ( )
static

Creation through object factory macro

template<class TInputImage, class TOutputImage>
void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::operator= ( const Self )
private
template<class TInputImage , class TOutputImage >
void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protected

PrintSelf method

Definition at line 308 of file otbMorphologicalPyramidSegmenter.txx.

template<class TInputImage, class TOutputImage>
virtual void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::SegmentDarkDetailsBoolOff ( )
virtual
template<class TInputImage, class TOutputImage>
virtual void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::SegmentDarkDetailsBoolOn ( )
virtual
template<class TInputImage, class TOutputImage>
virtual void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::SetConnectedThresholdQuantile ( double  _arg)
virtual

Quantile for connected thresholding

template<class TInputImage , class TOutputImage >
void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::SetDetailsImage ( const InputImageType detailsImage)

Set the details image.

Parameters
detailsImageThe details image from the morphological pyramid

Definition at line 61 of file otbMorphologicalPyramidSegmenter.txx.

template<class TInputImage, class TOutputImage>
virtual void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::SetMinimumObjectSize ( unsigned long  _arg)
virtual

Min object size parameter accessor

template<class TInputImage , class TOutputImage >
void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::SetOriginalImage ( const InputImageType originalImage)

Set the original image.

Parameters
originalImageThe original image to segment.

Definition at line 83 of file otbMorphologicalPyramidSegmenter.txx.

template<class TInputImage, class TOutputImage>
virtual void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::SetSeedsQuantile ( double  _arg)
virtual

Quantile for seeds extraction

template<class TInputImage, class TOutputImage>
virtual void otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::SetSegmentDarkDetailsBool ( bool  _arg)
virtual

Toogle the darker detail segmentation

Member Data Documentation

template<class TInputImage, class TOutputImage>
const unsigned int otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::DetailsImageDimension = TInputImage::ImageDimension
static

ImageDimension constants

Definition at line 72 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
double otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::m_ConnectedThresholdQuantile
private

Quantile to set the connectedThresholdFilter threshold

Definition at line 140 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
unsigned long otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::m_MinimumObjectSize
private

Minimum size for the segmented object

Definition at line 136 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
OutputPixelType otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::m_NumberOfObjects
private

Number of segmented objects

Definition at line 144 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
double otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::m_SeedsQuantile
private

Quantile for seeds determination

Definition at line 138 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
bool otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::m_SegmentDarkDetailsBool
private

Set to true if the details to segment are darker than background

Definition at line 142 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
const unsigned int otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::OriginalImageDimension = TInputImage::ImageDimension
static

Definition at line 74 of file otbMorphologicalPyramidSegmenter.h.

template<class TInputImage, class TOutputImage>
const unsigned int otb::MorphologicalPyramid::Segmenter< TInputImage, TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension
static

Definition at line 76 of file otbMorphologicalPyramidSegmenter.h.


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