OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | List of all members
otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType > Class Template Reference

#include <otbStreamingMosaicFilterWithBlendingBase.h>

+ Inheritance diagram for otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >:
+ Collaboration diagram for otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef DistanceImageType::ConstPointer DistanceImageConstPointer
 
typedef itk::LinearInterpolateImageFunction< DistanceImageTypeDistanceImageDefaultInterpolatorType
 
typedef DistanceImageType::InternalPixelType DistanceImageInternalPixelType
 
typedef DistanceImageInterpolatorType::Pointer DistanceImageInterpolatorPointer
 
typedef itk::InterpolateImageFunction< DistanceImageTypeDistanceImageInterpolatorType
 
typedef DistanceImageType::PixelType DistanceImagePixelType
 
typedef DistanceImageType::Pointer DistanceImagePointer
 
typedef DistanceImageType::PointType DistanceImagePointType
 
typedef DistanceImageType::RegionType DistanceImageRegionType
 
typedef TDistanceImage DistanceImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef StreamingMosaicFilterWithBlendingBase Self
 
typedef otb::StreamingMosaicFilterBase< TInputImage, TOutputImage, TInternalValueType > Superclass
 
- Public Types inherited from otb::StreamingMosaicFilterBase< TInputImage, TOutputImage, double >
typedef itk::ImageRegionConstIterator< OutputImageTypeConstIteratorType
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::ContinuousIndex< double, 2 > ContinuousIndexType
 
typedef itk::NearestNeighborInterpolateImageFunction< InputImageType, InternalValueTypeDefaultInterpolatorType
 
typedef std::vector< unsigned int > IndicesListType
 
typedef InputImageType::IndexType InputImageIndexType
 
typedef InputImageType::InternalPixelType InputImageInternalPixelType
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::ConstPointer InputImagePointer
 
typedef InputImageType::PointType InputImagePointType
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef InputImageType::SizeType InputImageSizeType
 
typedef InputImageType::SpacingType InputImageSpacingType
 
typedef TInputImage InputImageType
 
typedef otb::VectorImage< InternalValueType, 2 > InternalImageType
 
typedef InternalImageType::PixelType InternalPixelType
 
typedef double InternalValueType
 
typedef InterpolatorType::Pointer InterpolatorPointerType
 
typedef itk::InterpolateImageFunction< InputImageType, InternalValueTypeInterpolatorType
 
typedef itk::ImageRegionIterator< OutputImageTypeIteratorType
 
typedef vnl_matrix< InternalValueTypeMatrixType
 
typedef OutputImageType::IndexType OutputImageIndexType
 
typedef OutputImageType::InternalPixelType OutputImageInternalPixelType
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::PointType OutputImagePointType
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef OutputImageType::SizeType OutputImageSizeType
 
typedef OutputImageType::SpacingType OutputImageSpacingType
 
typedef TOutputImage OutputImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef StreamingMosaicFilterBase Self
 
typedef otb::StreamingTraits< OutputImageTypeStreamingTraitsType
 
typedef itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
 

Public Member Functions

virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from otb::StreamingMosaicFilterBase< TInputImage, TOutputImage, double >
virtual const char * GetNameOfClass () const
 
virtual void SetInterpolator (InterpolatorType *_arg)
 
 itkGetObjectMacro (Interpolator, InterpolatorType)
 
virtual void SetNoDataOutputPixel (OutputImagePixelType _arg)
 
virtual OutputImagePixelType GetNoDataOutputPixel ()
 
virtual void SetNoDataInputPixel (InputImagePixelType _arg)
 
virtual InputImagePixelType GetNoDataInputPixel ()
 
virtual void SetOutputSpacing (OutputImageSpacingType _arg)
 
virtual OutputImageSpacingType GetOutputSpacing ()
 
virtual void SetOutputOrigin (OutputImagePointType _arg)
 
virtual OutputImagePointType GetOutputOrigin ()
 
virtual void SetOutputSize (OutputImageSizeType _arg)
 
virtual OutputImageSizeType GetOutputSize ()
 
virtual void SetAutomaticOutputParametersComputation (bool _arg)
 
virtual bool GetAutomaticOutputParametersComputation ()
 
virtual void SetShiftScaleInputImages (bool _arg)
 
virtual bool GetShiftScaleInputImages ()
 
virtual void ShiftScaleInputImagesOn ()
 
virtual void ShiftScaleInputImagesOff ()
 
virtual void SetShiftMatrix (MatrixType shiftMatrix)
 
virtual void SetScaleMatrix (MatrixType scaleMatrix)
 
virtual MatrixType GetShiftMatrix ()
 
virtual MatrixType GetScaleMatrix ()
 
DistanceImageInternalPixelType m_DistanceOffset
 
DistanceImageInterpolatorPointer m_DistanceInterpolator
 
virtual void SetDistanceOffset (DistanceImageInternalPixelType _arg)
 
virtual DistanceImageInternalPixelType GetDistanceOffset ()
 
virtual void SetDistanceInterpolator (DistanceImageInterpolatorType *_arg)
 
 itkGetObjectMacro (DistanceInterpolator, DistanceImageInterpolatorType)
 
void PushBackInputs (const TInputImage *image, const TDistanceImage *distance)
 
virtual void PrepareDistanceImageAccessors (typename std::vector< DistanceImageType * > &currentDistanceImage, typename std::vector< DistanceImageInterpolatorPointer > &distanceInterpolator)
 
 StreamingMosaicFilterWithBlendingBase ()
 
 ~StreamingMosaicFilterWithBlendingBase ()
 
void AddUsedInputImageIndex (unsigned int inputImageIndex) override
 
unsigned int GetNumberOfInputImages () override
 
unsigned int GetUsedInputImageIndice (unsigned int i) override
 
 StreamingMosaicFilterWithBlendingBase (const Self &)
 
void operator= (const Self &)
 

Additional Inherited Members

- Protected Member Functions inherited from otb::StreamingMosaicFilterBase< TInputImage, TOutputImage, double >
 StreamingMosaicFilterBase ()
 
 ~StreamingMosaicFilterBase ()
 
void GenerateOutputInformation (void) override
 
void GenerateInputRequestedRegion (void) override
 
void AfterThreadedGenerateData () override
 
void BeforeThreadedGenerateData () override
 
virtual void ImageToExtent (InputImageType *image, InputImagePointType &extentInf, InputImagePointType &extentSup)
 
virtual bool OutputRegionToInputRegion (const OutputImageRegionType &mosaicRegion, InputImageRegionType &inputRegion, InputImageType *&inputImage)
 
virtual void NormalizePixelValue (InternalValueType &pixelValue)
 
virtual bool IsPixelNotEmpty (InputImagePixelType &inputPixel)
 
virtual unsigned int GetNumberOfUsedInputImages ()
 
virtual void ComputeOutputParameters ()
 
virtual unsigned int GetNumberOfBands ()
 
virtual void ComputeRequestedRegionOfInputImage (unsigned int inputImageIndex)
 
virtual void ShiftScaleValue (InternalValueType &value, const unsigned int &imageIndex, unsigned int &band)
 
virtual void CheckShiftScaleMatrices ()
 
virtual void PrepareImageAccessors (typename std::vector< InputImageType * > &image, typename std::vector< InterpolatorPointerType > &interpolator)
 

Detailed Description

template<class TInputImage, class TOutputImage, class TDistanceImage, class TInternalValueType = double>
class otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >

Base class for mosaic filters with blending.

Input must be couples of images: one image (e.g. otb::VectorImage) and one distance image (e.g. otb::Image) which represents the distance between a pixel an the edge of the image. This distance image will be then used to compute the blending of the input images. Two parameters can be set: -Distance image interpolator: explicit -Distance image offset: this value is added to the interpolated distance image value, which allows creating a margin around the edges of the image (i.e. around the 0-value distance image contour)

Support streaming

Definition at line 49 of file otbStreamingMosaicFilterWithBlendingBase.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef itk::SmartPointer<const Self> otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::ConstPointer

Definition at line 56 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ DistanceImageConstPointer

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef DistanceImageType::ConstPointer otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::DistanceImageConstPointer

Definition at line 64 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ DistanceImageDefaultInterpolatorType

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef itk::LinearInterpolateImageFunction<DistanceImageType> otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::DistanceImageDefaultInterpolatorType

Definition at line 69 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ DistanceImageInternalPixelType

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef DistanceImageType::InternalPixelType otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::DistanceImageInternalPixelType

Definition at line 67 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ DistanceImageInterpolatorPointer

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef DistanceImageInterpolatorType::Pointer otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::DistanceImageInterpolatorPointer

Definition at line 70 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ DistanceImageInterpolatorType

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef itk::InterpolateImageFunction<DistanceImageType> otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::DistanceImageInterpolatorType

Definition at line 68 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ DistanceImagePixelType

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef DistanceImageType::PixelType otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::DistanceImagePixelType

Definition at line 66 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ DistanceImagePointer

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef DistanceImageType::Pointer otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::DistanceImagePointer

Definition at line 63 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ DistanceImagePointType

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef DistanceImageType::PointType otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::DistanceImagePointType

Definition at line 65 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ DistanceImageRegionType

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef DistanceImageType::RegionType otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::DistanceImageRegionType

Definition at line 71 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ DistanceImageType

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef TDistanceImage otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::DistanceImageType

Distance image typedefs

Definition at line 59 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ Pointer

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef itk::SmartPointer<Self> otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::Pointer

Definition at line 55 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ Self

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef StreamingMosaicFilterWithBlendingBase otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::Self

Standard class typedef

Definition at line 53 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ Superclass

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
typedef otb::StreamingMosaicFilterBase<TInputImage, TOutputImage, TInternalValueType> otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::Superclass

Definition at line 54 of file otbStreamingMosaicFilterWithBlendingBase.h.

Constructor & Destructor Documentation

◆ StreamingMosaicFilterWithBlendingBase() [1/2]

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType >
otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::StreamingMosaicFilterWithBlendingBase
protected

Distance offset accessors

Definition at line 31 of file otbStreamingMosaicFilterWithBlendingBase.hxx.

◆ ~StreamingMosaicFilterWithBlendingBase()

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::~StreamingMosaicFilterWithBlendingBase ( )
inlineprotected

Distance offset accessors

Definition at line 101 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ StreamingMosaicFilterWithBlendingBase() [2/2]

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::StreamingMosaicFilterWithBlendingBase ( const Self )
private

Distance offset accessors

Member Function Documentation

◆ AddUsedInputImageIndex()

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType >
void otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::AddUsedInputImageIndex ( unsigned int  inputImageIndex)
overrideprotectedvirtual

Distance offset accessors

Reimplemented from otb::StreamingMosaicFilterBase< TInputImage, TOutputImage, double >.

Definition at line 47 of file otbStreamingMosaicFilterWithBlendingBase.hxx.

◆ GetDistanceOffset()

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
virtual DistanceImageInternalPixelType otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::GetDistanceOffset ( )
virtual

Distance offset accessors

◆ GetNameOfClass()

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
virtual const char* otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::GetNameOfClass ( ) const
virtual

◆ GetNumberOfInputImages()

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType >
unsigned int otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::GetNumberOfInputImages
overrideprotectedvirtual

Distance offset accessors

Reimplemented from otb::StreamingMosaicFilterBase< TInputImage, TOutputImage, double >.

Definition at line 66 of file otbStreamingMosaicFilterWithBlendingBase.hxx.

◆ GetUsedInputImageIndice()

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
unsigned int otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::GetUsedInputImageIndice ( unsigned int  i)
inlineoverrideprotectedvirtual

Distance offset accessors

Reimplemented from otb::StreamingMosaicFilterBase< TInputImage, TOutputImage, double >.

Definition at line 110 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ itkGetObjectMacro()

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::itkGetObjectMacro ( DistanceInterpolator  ,
DistanceImageInterpolatorType   
)

Distance offset accessors

◆ operator=()

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
void otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::operator= ( const Self )
private

Distance offset accessors

◆ PrepareDistanceImageAccessors()

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType >
void otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::PrepareDistanceImageAccessors ( typename std::vector< DistanceImageType * > &  currentDistanceImage,
typename std::vector< DistanceImageInterpolatorPointer > &  distanceInterpolator 
)
virtual

Prepare interpolators, valid regions, and input images pointers

Definition at line 78 of file otbStreamingMosaicFilterWithBlendingBase.hxx.

◆ PushBackInputs()

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
void otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::PushBackInputs ( const TInputImage *  image,
const TDistanceImage *  distance 
)
inline

Method to add one image Two images are required -1 input image (must be TInputImage type) -1 input distance image (must be TDistanceImage: distance to the edges of the image)

Definition at line 88 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ SetDistanceInterpolator()

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
virtual void otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::SetDistanceInterpolator ( DistanceImageInterpolatorType _arg)
virtual

Set/Get the distance interpolator function.

◆ SetDistanceOffset()

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
virtual void otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::SetDistanceOffset ( DistanceImageInternalPixelType  _arg)
virtual

Distance offset accessors

Member Data Documentation

◆ m_DistanceInterpolator

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
DistanceImageInterpolatorPointer otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::m_DistanceInterpolator
private

Distance offset accessors

Definition at line 122 of file otbStreamingMosaicFilterWithBlendingBase.h.

◆ m_DistanceOffset

template<class TInputImage , class TOutputImage , class TDistanceImage , class TInternalValueType = double>
DistanceImageInternalPixelType otb::StreamingMosaicFilterWithBlendingBase< TInputImage, TOutputImage, TDistanceImage, TInternalValueType >::m_DistanceOffset
private

Distance offset accessors

Definition at line 121 of file otbStreamingMosaicFilterWithBlendingBase.h.


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