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

This class compute the smallest region of the image containing every pixel with the foreground value. More...

#include <otbBinaryImageMinimalBoundingRegionCalculator.h>

+ Inheritance diagram for otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >:
+ Collaboration diagram for otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >:

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef InputImageType::Pointer InputImagePointerType
 
typedef TInputImage InputImageType
 
typedef InputImageType::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef InputImageType::RegionType RegionType
 
typedef
BinaryImageMinimalBoundingRegionCalculator 
Self
 
typedef
itk::ImageToImageFilter
< TInputImage, TInputImage > 
Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual PixelType GetInsideValue ()
 
virtual const char * GetNameOfClass () const
 
virtual unsigned int GetPad ()
 
virtual RegionType GetRegion ()
 
virtual void SetInsideValue (PixelType _arg)
 
virtual void SetPad (unsigned int _arg)
 

Static Public Member Functions

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

Protected Member Functions

 BinaryImageMinimalBoundingRegionCalculator ()
 
virtual ~BinaryImageMinimalBoundingRegionCalculator ()
 
void GenerateData (void)
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 

Private Member Functions

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

Private Attributes

PixelType m_InsideValue
 
unsigned int m_Pad
 
RegionType m_Region
 

Detailed Description

template<class TInputImage>
class otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >

This class compute the smallest region of the image containing every pixel with the foreground value.

This class is used for instance in the RCC8 calculator filter, where the input region used for computation has to be the smallest possible for costs reasons. The Pad arg allows the user to get a region of pad pixel larger at each bound in case a security margin has to be kept.

See Also
ImageToImageRCC8Calculator

Definition at line 39 of file otbBinaryImageMinimalBoundingRegionCalculator.h.

Member Typedef Documentation

template<class TInputImage >
typedef itk::SmartPointer<const Self> otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::ConstPointer
template<class TInputImage >
typedef InputImageType::Pointer otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::InputImagePointerType
template<class TInputImage >
typedef TInputImage otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::InputImageType
template<class TInputImage >
typedef InputImageType::PixelType otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::PixelType
template<class TInputImage >
typedef itk::SmartPointer<Self> otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::Pointer
template<class TInputImage >
typedef InputImageType::RegionType otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::RegionType

Standard typedefs

Definition at line 44 of file otbBinaryImageMinimalBoundingRegionCalculator.h.

template<class TInputImage >
typedef itk::ImageToImageFilter<TInputImage, TInputImage> otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::Superclass

Constructor & Destructor Documentation

template<class TInputImage >
otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::BinaryImageMinimalBoundingRegionCalculator ( )
protected

Constructor

Definition at line 32 of file otbBinaryImageMinimalBoundingRegionCalculator.txx.

template<class TInputImage >
virtual otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::~BinaryImageMinimalBoundingRegionCalculator ( )
inlineprotectedvirtual

Destructor

Definition at line 68 of file otbBinaryImageMinimalBoundingRegionCalculator.h.

template<class TInputImage >
otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::BinaryImageMinimalBoundingRegionCalculator ( const Self )
private

Member Function Documentation

template<class TInputImage >
virtual::itk::LightObject::Pointer otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::CreateAnother ( void  ) const
template<class TInputImage >
void otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::GenerateData ( void  )
protected
template<class TInputImage >
virtual PixelType otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::GetInsideValue ( )
virtual
template<class TInputImage >
virtual const char* otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::GetNameOfClass ( ) const
virtual

Type macro

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage >
virtual unsigned int otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::GetPad ( )
virtual
template<class TInputImage >
virtual RegionType otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::GetRegion ( )
virtual

Toogle the pad option

template<class TInputImage >
static Pointer otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::New ( )
static

Creation through object factory macro

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

PrintSelf method

Definition at line 149 of file otbBinaryImageMinimalBoundingRegionCalculator.txx.

template<class TInputImage >
virtual void otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::SetInsideValue ( PixelType  _arg)
virtual
template<class TInputImage >
virtual void otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::SetPad ( unsigned int  _arg)
virtual

Member Data Documentation

template<class TInputImage >
PixelType otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::m_InsideValue
private

Inside value

Definition at line 81 of file otbBinaryImageMinimalBoundingRegionCalculator.h.

template<class TInputImage >
unsigned int otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::m_Pad
private

Toogle if pad wanted

Definition at line 79 of file otbBinaryImageMinimalBoundingRegionCalculator.h.

template<class TInputImage >
RegionType otb::BinaryImageMinimalBoundingRegionCalculator< TInputImage >::m_Region
private

The computed region

Definition at line 77 of file otbBinaryImageMinimalBoundingRegionCalculator.h.


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