OTB  9.0.0
Orfeo Toolbox
Classes | Public Types | List of all members
otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage > Class Template Reference

#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 SelfConstPointer
 
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
 
typedef std::vector< RLERLEVectorType
 
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
OutputImagePixelType m_BackgroundValue
 
std::vector< OutputImagePointerm_TemporaryImages
 
std::vector< AdjacencyMapTypem_TemporaryAdjacencyMaps
 
static Pointer New ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
virtual void SetBackgroundValue (OutputImagePixelType _arg)
 
virtual OutputImagePixelType GetBackgroundValue () const
 
 LabelImageToLabelMapWithAdjacencyFilter ()
 
 ~LabelImageToLabelMapWithAdjacencyFilter () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void GenerateInputRequestedRegion () override
 
void EnlargeOutputRequestedRegion (itk::DataObject *) override
 
void BeforeThreadedGenerateData () override
 
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) override
 
void AfterThreadedGenerateData () override
 
void AddAdjacency (LabelType label1, LabelType label2, itk::ThreadIdType threadId)
 
void ParseLine (const RLEVectorType &line, itk::ThreadIdType threadId)
 
void ParseConsecutiveLines (const RLEVectorType &line1, const RLEVectorType &line2, itk::ThreadIdType threadId)
 
 LabelImageToLabelMapWithAdjacencyFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

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 39 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

Member Typedef Documentation

◆ AdjacencyMapType

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 62 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ AdjacentLabelsContainerType

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 63 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ ConstLineIteratorType

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 67 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ ConstPointer

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 46 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ IndexType

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 55 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ InputImageConstPointer

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 52 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ InputImagePixelType

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 54 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ InputImagePointer

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 51 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ InputImageRegionType

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 53 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ InputImageType

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 49 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ LabelObjectType

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 61 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ LabelType

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 64 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ OutputImageConstPointer

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 58 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ OutputImagePixelType

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 60 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ OutputImagePointer

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 57 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ OutputImageRegionType

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 59 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ OutputImageType

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

Definition at line 50 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ Pointer

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 45 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ RLEVectorType

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

ImageDimension constants

Definition at line 119 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ Self

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 43 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ Superclass

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 44 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

Constructor & Destructor Documentation

◆ LabelImageToLabelMapWithAdjacencyFilter() [1/2]

template<class TInputImage , class TOutputImage >
otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::LabelImageToLabelMapWithAdjacencyFilter
protected

Constructor

Definition at line 35 of file otbLabelImageToLabelMapWithAdjacencyFilter.hxx.

◆ ~LabelImageToLabelMapWithAdjacencyFilter()

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

Destructor

Definition at line 93 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ LabelImageToLabelMapWithAdjacencyFilter() [2/2]

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

ImageDimension constants

Member Function Documentation

◆ AddAdjacency()

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 102 of file otbLabelImageToLabelMapWithAdjacencyFilter.hxx.

References otb::find().

◆ AfterThreadedGenerateData()

template<class TInputImage , class TOutputImage >
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::AfterThreadedGenerateData
overrideprotected

ImageDimension constants

Definition at line 300 of file otbLabelImageToLabelMapWithAdjacencyFilter.hxx.

◆ BeforeThreadedGenerateData()

template<class TInputImage , class TOutputImage >
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData
overrideprotected

ImageDimension constants

Definition at line 75 of file otbLabelImageToLabelMapWithAdjacencyFilter.hxx.

◆ CreateAnother()

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

ImageDimension constants

◆ EnlargeOutputRequestedRegion()

template<class TInputImage , class TOutputImage >
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::EnlargeOutputRequestedRegion ( itk::DataObject *  )
overrideprotected

LabelImageToLabelMapWithAdjacencyFilter will produce the entire output.

Definition at line 69 of file otbLabelImageToLabelMapWithAdjacencyFilter.hxx.

◆ GenerateInputRequestedRegion()

template<class TInputImage , class TOutputImage >
void otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion
overrideprotected

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

Definition at line 41 of file otbLabelImageToLabelMapWithAdjacencyFilter.hxx.

◆ GetBackgroundValue()

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

ImageDimension constants

◆ GetNameOfClass()

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.

◆ New()

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.

◆ operator=()

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

ImageDimension constants

◆ ParseConsecutiveLines()

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 152 of file otbLabelImageToLabelMapWithAdjacencyFilter.hxx.

◆ ParseLine()

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 129 of file otbLabelImageToLabelMapWithAdjacencyFilter.hxx.

◆ PrintSelf()

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

Printself

Definition at line 393 of file otbLabelImageToLabelMapWithAdjacencyFilter.hxx.

◆ SetBackgroundValue()

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().

◆ ThreadedGenerateData()

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

ImageDimension constants

Definition at line 190 of file otbLabelImageToLabelMapWithAdjacencyFilter.hxx.

Member Data Documentation

◆ InputImageDimension

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 70 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ m_BackgroundValue

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

ImageDimension constants

Definition at line 149 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ m_TemporaryAdjacencyMaps

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency<itk::LabelObject<typename TInputImage::PixelType, TInputImage::ImageDimension>>>
std::vector<AdjacencyMapType> otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::m_TemporaryAdjacencyMaps
private

ImageDimension constants

Definition at line 152 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ m_TemporaryImages

template<class TInputImage , class TOutputImage = otb::LabelMapWithAdjacency<itk::LabelObject<typename TInputImage::PixelType, TInputImage::ImageDimension>>>
std::vector<OutputImagePointer> otb::LabelImageToLabelMapWithAdjacencyFilter< TInputImage, TOutputImage >::m_TemporaryImages
private

ImageDimension constants

Definition at line 151 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.

◆ OutputImageDimension

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

ImageDimension constants

Definition at line 71 of file otbLabelImageToLabelMapWithAdjacencyFilter.h.


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