OTB
9.0.0
Orfeo Toolbox
|
#include <otbChangeNoDataValueFilter.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef Functor::ChangeNoDataFunctor< typename TInputImage::PixelType, typename TOutputImage::PixelType > | FunctorType |
typedef itk::SmartPointer< Self > | Pointer |
typedef ChangeNoDataValueFilter | Self |
typedef itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, FunctorType > | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
void | SetNaNIsNoData (bool nanIsNoData) |
void | SetNewNoDataValues (std::vector< double > &newValues) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
ChangeNoDataValueFilter ()=default | |
void | GenerateOutputInformation () override |
~ChangeNoDataValueFilter () override=default | |
Private Member Functions | |
ChangeNoDataValueFilter (const Self &)=delete | |
void | operator= (const Self &)=delete |
Change no-data flags and values and replace them in image.
This filter reads the no-data flags (a boolean vector indicating for each band if a no-data value exists) and values (the actual value to be used as no-data for each band) from MetaDataDictionary, and allows changing this value.
The algorithm is the following: for each pixel, for each channel in the pixel, if there is a no-data value for this channel (according to no-data flags) and the current channel value equals to the no-data value set for this channel, then the value is changed for the new no-data value specified by the users. Otherwise, value remains untouched.
If NaNIsNoData is true:
If NaNIsNoData is false and the input has at least one band with no-data flag and no-data value :
If NaNIsNoData is false and the input has no band with no-data flag and no-data value :
Definition at line 97 of file otbChangeNoDataValueFilter.h.
typedef itk::SmartPointer<const Self> otb::ChangeNoDataValueFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 107 of file otbChangeNoDataValueFilter.h.
typedef Functor::ChangeNoDataFunctor<typename TInputImage::PixelType, typename TOutputImage::PixelType> otb::ChangeNoDataValueFilter< TInputImage, TOutputImage >::FunctorType |
Definition at line 102 of file otbChangeNoDataValueFilter.h.
typedef itk::SmartPointer<Self> otb::ChangeNoDataValueFilter< TInputImage, TOutputImage >::Pointer |
Definition at line 106 of file otbChangeNoDataValueFilter.h.
typedef ChangeNoDataValueFilter otb::ChangeNoDataValueFilter< TInputImage, TOutputImage >::Self |
Definition at line 104 of file otbChangeNoDataValueFilter.h.
typedef itk::UnaryFunctorImageFilter<TInputImage, TOutputImage, FunctorType> otb::ChangeNoDataValueFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 105 of file otbChangeNoDataValueFilter.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
privatedelete |
virtual::itk::LightObject::Pointer otb::ChangeNoDataValueFilter< TInputImage, TOutputImage >::CreateAnother | ( | void | ) | const |
|
inlineoverrideprotected |
Definition at line 140 of file otbChangeNoDataValueFilter.h.
References otb::ReadNoDataFlags(), and otb::WriteNoDataFlags().
|
virtual |
Creation through object factory macro
|
static |
Type macro
|
privatedelete |
|
inline |
Set the NaN is no data flags
nanIsNoData | If true, NaN values will be considered as no-data as well (default is false) |
Definition at line 130 of file otbChangeNoDataValueFilter.h.
|
inline |
Set the new no-data values
newValues | The vector of new no-data values (size should be >= to number of bands) |
Definition at line 120 of file otbChangeNoDataValueFilter.h.