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

convert a labeled image to a label map with adjacency information. More...

#include <otbLabelImageToLabelMapWithAdjacencyFilter.h>

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

Classes

class  RLE
 

Public Types

typedef
OutputImageType::AdjacencyMapType 
AdjacencyMapType
 
typedef
OutputImageType::AdjacentLabelsContainerType 
AdjacentLabelsContainerType
 
typedef
LabelObjectType::ConstLineIterator 
ConstLineIteratorType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef InputImageType::IndexType IndexType
 
typedef
InputImageType::ConstPointer 
InputImageConstPointer
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef TInputImage InputImageType
 
typedef
OutputImageType::LabelObjectType 
LabelObjectType
 
typedef OutputImageType::LabelType LabelType
 
typedef
OutputImageType::ConstPointer 
OutputImageConstPointer
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef TOutputImage OutputImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef
LabelImageToLabelMapWithAdjacencyFilter 
Self
 
typedef
itk::ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual OutputImagePixelType GetBackgroundValue () const
 
virtual const char * GetNameOfClass () const
 
virtual void SetBackgroundValue (OutputImagePixelType _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 InputImageDimension = TInputImage::ImageDimension
 
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension
 

Protected Types

typedef std::vector< RLERLEVectorType
 

Protected Member Functions

 LabelImageToLabelMapWithAdjacencyFilter ()
 
 ~LabelImageToLabelMapWithAdjacencyFilter ()
 
void AddAdjacency (LabelType label1, LabelType label2, itk::ThreadIdType threadId)
 
virtual void AfterThreadedGenerateData ()
 
virtual void BeforeThreadedGenerateData ()
 
void EnlargeOutputRequestedRegion (itk::DataObject *)
 
void GenerateInputRequestedRegion ()
 
void ParseConsecutiveLines (const RLEVectorType &line1, const RLEVectorType &line2, itk::ThreadIdType threadId)
 
void ParseLine (const RLEVectorType &line, itk::ThreadIdType threadId)
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId)
 

Private Member Functions

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

Private Attributes

OutputImagePixelType m_BackgroundValue
 
std::vector< AdjacencyMapTypem_TemporaryAdjacencyMaps
 
std::vector< OutputImagePointerm_TemporaryImages
 

Detailed Description

template<class TInputImage, class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
class otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >

convert a labeled image to a label map with adjacency information.

Definition at line 35 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

Member Typedef Documentation

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef OutputImageType::AdjacencyMapType otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::AdjacencyMapType

Definition at line 60 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef OutputImageType::AdjacentLabelsContainerType otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::AdjacentLabelsContainerType

Definition at line 61 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef LabelObjectType::ConstLineIterator otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::ConstLineIteratorType

Const iterator over LabelObject lines

Definition at line 65 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef itk::SmartPointer<const Self> otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::ConstPointer

Definition at line 44 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef InputImageType::IndexType otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::IndexType

Definition at line 53 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef InputImageType::ConstPointer otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::InputImageConstPointer

Definition at line 50 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef InputImageType::PixelType otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::InputImagePixelType

Definition at line 52 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef InputImageType::Pointer otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::InputImagePointer

Definition at line 49 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef InputImageType::RegionType otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::InputImageRegionType

Definition at line 51 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef TInputImage otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::InputImageType

Some convenient typedefs.

Definition at line 47 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef OutputImageType::LabelObjectType otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::LabelObjectType

Definition at line 59 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef OutputImageType::LabelType otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::LabelType

Definition at line 62 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef OutputImageType::ConstPointer otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::OutputImageConstPointer

Definition at line 56 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef OutputImageType::PixelType otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::OutputImagePixelType

Definition at line 58 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef OutputImageType::Pointer otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::OutputImagePointer

Definition at line 55 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef OutputImageType::RegionType otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::OutputImageRegionType

Definition at line 57 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef TOutputImage otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::OutputImageType

Definition at line 48 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef itk::SmartPointer<Self> otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::Pointer

Definition at line 43 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef std::vector<RLE> otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::RLEVectorType
protected
template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef LabelImageToLabelMapWithAdjacencyFilter otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::Self

Standard class typedefs.

Definition at line 40 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
typedef itk::ImageToImageFilter<TInputImage, TOutputImage> otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::Superclass

Definition at line 42 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage >
otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::LabelImageToLabelMapWithAdjacencyFilter ( )
protected
template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::~LabelImageToLabelMapWithAdjacencyFilter ( )
inlineprotected

Destructor

Definition at line 91 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::LabelImageToLabelMapWithAdjacencyFilter ( const Self )
private

Member Function Documentation

template<class TInputImage , class TOutputImage >
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::AddAdjacency ( LabelType  label1,
LabelType  label2,
itk::ThreadIdType  threadId 
)
protected

Add a new adjacency

Definition at line 110 of file otbLabelImageToLabelMapWithAdjacencyFilter.txx.

template<class TInputImage , class TOutputImage >
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::AfterThreadedGenerateData ( void  )
protectedvirtual
template<class TInputImage , class TOutputImage >
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData ( void  )
protectedvirtual
template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
virtual::itk::LightObject::Pointer otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::CreateAnother ( void  ) const
template<class TInputImage , class TOutputImage >
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::EnlargeOutputRequestedRegion ( itk::DataObject )
protected

LabelImageToLabelMapWithAdjacencyFilter will produce the entire output.

Definition at line 72 of file otbLabelImageToLabelMapWithAdjacencyFilter.txx.

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

LabelImageToLabelMapWithAdjacencyFilter needs the entire input be available. Thus, it needs to provide an implementation of GenerateInputRequestedRegion().

Definition at line 42 of file otbLabelImageToLabelMapWithAdjacencyFilter.txx.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
virtual OutputImagePixelType otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::GetBackgroundValue ( ) const
virtual
template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
virtual const char* otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

Runtime information support.

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
static Pointer otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::New ( )
static

Standard New method.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::operator= ( const Self )
private
template<class TInputImage , class TOutputImage >
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::ParseConsecutiveLines ( const RLEVectorType line1,
const RLEVectorType line2,
itk::ThreadIdType  threadId 
)
protected

Parse two consecutive lines for vertical adjacency

Definition at line 164 of file otbLabelImageToLabelMapWithAdjacencyFilter.txx.

template<class TInputImage , class TOutputImage >
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::ParseLine ( const RLEVectorType line,
itk::ThreadIdType  threadId 
)
protected

Parse one line for horizontal adjacency

Definition at line 139 of file otbLabelImageToLabelMapWithAdjacencyFilter.txx.

template<class TInputImage , class TOutputImage >
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protected

Printself

Definition at line 415 of file otbLabelImageToLabelMapWithAdjacencyFilter.txx.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
virtual void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::SetBackgroundValue ( OutputImagePixelType  _arg)
virtual

Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin().

template<class TInputImage , class TOutputImage >
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
itk::ThreadIdType  threadId 
)
protectedvirtual

Member Data Documentation

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
const unsigned int otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::InputImageDimension = TInputImage::ImageDimension
static

ImageDimension constants

Definition at line 69 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
OutputImagePixelType otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::m_BackgroundValue
private
template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
std::vector<AdjacencyMapType> otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::m_TemporaryAdjacencyMaps
private
template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
std::vector< OutputImagePointer > otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::m_TemporaryImages
private
template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency< itk::LabelObject< typename TInputImage::PixelType, TInputImage::ImageDimension > >>
const unsigned int otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension
static

Definition at line 71 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.


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