Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions > Class Template Reference
[Projection modules]

This is the class to handle generic remote sensing transform. More...

#include <otbGenericRSTransform.h>

Inheritance diagram for otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >:
Inheritance graph
[legend]
Collaboration diagram for otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef otb::Transform
< TScalarType,
NInputDimensions,
NOutputDimensions > 
Superclass
 Standard class typedefs.
typedef GenericRSTransform Self
 Standard class typedefs.
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer
typedef Superclass::ScalarType ScalarType
 Type of the scalar representing coordinate and vector elements.
typedef itk::Point< ScalarType,
NInputDimensions > 
InputPointType
 Standard coordinate point type for this class.
typedef itk::Point< ScalarType,
NOutputDimensions > 
OutputPointType
typedef itk::Vector< double, 2 > SpacingType
typedef itk::Point< double, 2 > OriginType
typedef itk::Transform< double,
NInputDimensions,
NOutputDimensions > 
GenericTransformType
typedef
GenericTransformType::Pointer 
GenericTransformPointerType
typedef
otb::CompositeTransform
< GenericTransformType,
GenericTransformType
TransformType
typedef TransformType::Pointer TransformPointerType
typedef
Superclass::InverseTransformBasePointer 
InverseTransformBasePointer
typedef
TransformDirection::TransformationDirection 
DirectionOfMappingEnumType
enum  TransformDirection { FORWARD = 0, INVERSE = 1 }
typedef Superclass::ParametersType ParametersType
 Type of the input parameters.
typedef
Superclass::ParametersValueType 
ParametersValueType
 Type of the input parameters.
typedef itk::Array2D< doubleJacobianType
 Type of the Jacobian matrix.
typedef itk::Vector
< TScalarType,
NInputDimensions > 
InputVectorType
 Standard vector type for this class.
typedef itk::Vector
< TScalarType,
NOutputDimensions > 
OutputVectorType
typedef itk::CovariantVector
< TScalarType,
NInputDimensions > 
InputCovariantVectorType
 Standard covariant vector type for this class.
typedef itk::CovariantVector
< TScalarType,
NOutputDimensions > 
OutputCovariantVectorType
typedef vnl_vector_fixed
< TScalarType,
NInputDimensions > 
InputVnlVectorType
 Standard vnl_vector type for this class.
typedef vnl_vector_fixed
< TScalarType,
NOutputDimensions > 
OutputVnlVectorType
typedef
Superclass::InverseTransformBaseType 
InverseTransformBaseType
 Base inverse transform type.
typedef double CoordRepType

Public Member Functions

virtual const char * GetNameOfClass () const
 Run-time type information (and related methods).
virtual void SetInputProjectionRef (const char *_arg)
 Set/Get for input and output projections.
virtual const char * GetInputProjectionRef () const
virtual void SetOutputProjectionRef (const char *_arg)
virtual const char * GetOutputProjectionRef () const
virtual void SetDEMDirectory (const char *_arg)
virtual const char * GetDEMDirectory () const
virtual void SetGeoidFile (const char *_arg)
virtual const char * GetGeoidFile () const
virtual void SetAverageElevation (double _arg)
virtual double GetAverageElevation ()
const itk::MetaDataDictionaryGetInputDictionary () const
 Set/Get Dictionary.
void SetInputDictionary (const itk::MetaDataDictionary &dictionary)
const itk::MetaDataDictionaryGetOutputDictionary () const
void SetOutputDictionary (const itk::MetaDataDictionary &dictionary)
virtual ImageKeywordlist GetInputKeywordList ()
 Set/Get Keywordlist.
void SetInputKeywordList (const ImageKeywordlist &kwl)
virtual ImageKeywordlist GetOutputKeywordList ()
void SetOutputKeywordList (const ImageKeywordlist &kwl)
virtual void SetInputOrigin (OriginType _arg)
 Set the origin of the vector data.
virtual const OriginTypeGetInputOrigin ()
virtual void SetInputSpacing (SpacingType _arg)
 Set the spacing (size of a pixel) of the vector data.
virtual const SpacingTypeGetInputSpacing ()
virtual void SetOutputOrigin (OriginType _arg)
 Set the origin of the vector data.
virtual const OriginTypeGetOutputOrigin ()
virtual void SetOutputSpacing (SpacingType _arg)
 Set the spacing (size of a pixel) of the vector data.
virtual const SpacingTypeGetOutputSpacing ()
virtual bool IsUpToDate ()
 Check if the transform is up to date.
virtual
Projection::TransformAccuracy 
GetTransformAccuracy ()
 Get Transform accuracy.
virtual const TransformTypeGetTransform () const
 Methods prototypes.
OutputPointType TransformPoint (const InputPointType &point) const
 Method to transform a point.
virtual void InstanciateTransform ()
 Instanciate the transformation according to informations.
bool GetInverse (Self *inverseTransform) const
virtual InverseTransformBasePointer GetInverseTransform () const
 Return an inverse of this transform.
virtual void SetParameters (const typename Superclass::ParametersType &)
unsigned int GetInputSpaceDimension (void) const
 Get the size of the input space.
unsigned int GetOutputSpaceDimension (void) const
 Get the size of the output space.
virtual OutputVectorType TransformVector (const InputVectorType &) const
 Method to transform a vector.
virtual OutputVnlVectorType TransformVector (const InputVnlVectorType &) const
 Method to transform a vnl_vector.
virtual OutputVnlVectorType TransformVector (const InputVnlVectorType &) const
 Method to transform a vnl_vector.
virtual OutputCovariantVectorType TransformCovariantVector (const InputCovariantVectorType &) const
 Method to transform a CovariantVector.
virtual void SetParameters (const ParametersType &)
 Set the transformation parameters and update internal transformation.
virtual void SetParameters (const ParametersType &)
 Set the transformation parameters and update internal transformation.
virtual void SetParameters (const ParametersType &)=0
 Set the transformation parameters and update internal transformation.
virtual void SetParametersByValue (const ParametersType &p)
 Set the transformation parameters and update internal transformation.
virtual void SetParametersByValue (const ParametersType &p)
 Set the transformation parameters and update internal transformation.
virtual void SetParametersByValue (const ParametersType &p)=0
 Set the transformation by copying parameters and update internal transformation.
virtual const ParametersTypeGetParameters (void) const
 Get the Transformation Parameters.
virtual void SetFixedParameters (const ParametersType &)
 Set the fixed parameters and update internal transformation.
virtual void SetFixedParameters (const ParametersType &)
 Set the fixed parameters and update internal transformation.
virtual void SetFixedParameters (const ParametersType &)=0
 Set the fixed parameters.
virtual const ParametersTypeGetFixedParameters (void) const
 Get the Fixed Parameters.
virtual const JacobianTypeGetJacobian (const InputPointType &) const
 Compute the Jacobian of the transformation.
virtual unsigned int GetNumberOfParameters (void) const
 Return the number of parameters that completely define the Transfom.
bool GetInverse (Self *) const
 Returns a boolean indicating whether it is possible or not to compute the inverse of this current Transform.
virtual std::string GetTransformTypeAsString () const
 Generate a platform independant name.
virtual bool IsLinear () const
 Indicates if this transform is linear.
virtual LightObject::Pointer CreateAnother () const
 Create an object from an instance, potentially deferring to a factory.
virtual void DebugOn () const
 Turn debugging output on.
virtual void DebugOff () const
 Turn debugging output off.
bool GetDebug () const
 Get the value of the debug flag.
void SetDebug (bool debugFlag) const
 Set the value of the debug flag.
virtual unsigned long GetMTime () const
 Return this objects modified time.
virtual void Register () const
 Increase the reference count (mark as used by another object).
virtual void UnRegister () const
 Decrease the reference count (release by another object).
virtual void SetReferenceCount (int)
 Sets the reference count (use with care).
unsigned long AddObserver (const EventObject &event, Command *)
 Allow people to add/remove/invoke observers (callbacks) to any ITK object.
unsigned long AddObserver (const EventObject &event, Command *) const
Command * GetCommand (unsigned long tag)
 Get the command associated with the given tag.
void InvokeEvent (const EventObject &)
 Call Execute on all the Commands observing this event id.
void InvokeEvent (const EventObject &) const
 Call Execute on all the Commands observing this event id.
void RemoveObserver (unsigned long tag)
 Remove the observer with this tag value.
void RemoveAllObservers ()
 Remove all observers .
bool HasObserver (const EventObject &event) const
 Return true if an observer is registered for this event.
MetaDataDictionary & GetMetaDataDictionary (void)
const MetaDataDictionary & GetMetaDataDictionary (void) const
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
virtual void Delete ()
 Delete an itk object.
void Print (std::ostream &os, Indent indent=0) const
 Cause the object to print itself out.
virtual int GetReferenceCount () const
 Gets the reference count on this object.

Static Public Member Functions

static Pointer New ()
 Method for creation through the object factory.
static void SetGlobalWarningDisplay (bool flag)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
static bool GetGlobalWarningDisplay ()
 Get the value of the global debug output control flag.
static void GlobalWarningDisplayOn ()
static void GlobalWarningDisplayOff ()
static void BreakOnError ()
 This method is called when itkExceptionMacro executes.

Static Public Attributes

static const unsigned int InputSpaceDimension = NInputDimensions
 Dimension of the domain space.
static const unsigned int OutputSpaceDimension = NOutputDimensions
static const unsigned int SpaceDimension = NInputDimensions
static const unsigned int ParametersDimension = NInputDimensions * (NInputDimensions + 1)

Protected Types

typedef int InternalReferenceCountType
 Define the type of the reference count according to the target.

Protected Member Functions

virtual void Modified () const
 Update the modification time for this object.
void PrintSelf (std::ostream &os, itk::Indent indent) const
 Methods invoked by Print() to print information about the object including superclasses.
bool PrintObservers (std::ostream &os, Indent indent) const
virtual void PrintHeader (std::ostream &os, Indent indent) const
 Define a default print header for all objects.
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 Define a default print trailer for all objects.

Protected Attributes

ParametersType m_Parameters
ParametersType m_FixedParameters
JacobianType m_Jacobian
InternalReferenceCountType m_ReferenceCount
 Number of uses of this object by other objects.
SimpleFastMutexLock m_ReferenceCountLock
 Mutex lock to protect modification to the reference count.

Private Member Functions

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

Private Attributes

ImageKeywordlist m_InputKeywordList
ImageKeywordlist m_OutputKeywordList
itk::MetaDataDictionary m_InputDictionary
itk::MetaDataDictionary m_OutputDictionary
std::string m_InputProjectionRef
std::string m_OutputProjectionRef
std::string m_DEMDirectory
std::string m_GeoidFile
double m_AverageElevation
SpacingType m_InputSpacing
OriginType m_InputOrigin
SpacingType m_OutputSpacing
OriginType m_OutputOrigin
TransformPointerType m_Transform
GenericTransformPointerType m_InputTransform
GenericTransformPointerType m_OutputTransform
bool m_TransformUpToDate
Projection::TransformAccuracy m_TransformAccuracy

Detailed Description

template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
class otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >

This is the class to handle generic remote sensing transform.

The transformation will transform the coordinate from any map projection or sensor model to any map projection or sensor model.

If one of the projection (output or input) is a map projection, it can be specified using the WKT or the EPSG code.

Definition at line 50 of file otbGenericRSTransform.h.


Member Typedef Documentation

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
typedef itk::Vector< TScalarType, NInputDimensions > otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::InputVectorType [inherited]

Standard vector type for this class.

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 73 of file otbTransform.h.

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
typedef vnl_vector_fixed< TScalarType, NInputDimensions > otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::InputVnlVectorType [inherited]

Standard vnl_vector type for this class.

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 81 of file otbTransform.h.

typedef int itk::LightObject::InternalReferenceCountType [protected, inherited]

Define the type of the reference count according to the target.

This allows the use of atomic operations

Definition at line 137 of file itkLightObject.h.

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
typedef Superclass::InverseTransformBaseType otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::InverseTransformBaseType [inherited]

Base inverse transform type.

This type should not be changed to the concrete inverse transform type or inheritance would be lost.

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 90 of file otbTransform.h.

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
typedef itk::Array2D< double > otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::JacobianType [inherited]

Type of the Jacobian matrix.

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 70 of file otbTransform.h.

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
typedef Superclass::ParametersType otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::ParametersType [inherited]

Type of the input parameters.

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Reimplemented in otb::RationalTransform< TScalarType, Dimension >.

Definition at line 66 of file otbTransform.h.

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
typedef Superclass::ParametersValueType otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::ParametersValueType [inherited]

Type of the input parameters.

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 67 of file otbTransform.h.

template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
typedef Superclass::ScalarType otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::ScalarType

Type of the scalar representing coordinate and vector elements.

Reimplemented from otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 63 of file otbGenericRSTransform.h.

template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
typedef GenericRSTransform otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::Self

Standard class typedefs.

Reimplemented from otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 59 of file otbGenericRSTransform.h.

template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
typedef otb::Transform<TScalarType, NInputDimensions, NOutputDimensions> otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::Superclass

Standard class typedefs.

Reimplemented from otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 58 of file otbGenericRSTransform.h.


Member Function Documentation

unsigned long itk::Object::AddObserver ( const EventObject event,
Command cmd 
) [inherited]

Allow people to add/remove/invoke observers (callbacks) to any ITK object.

This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and an itk::Command to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. The memory for the Command becomes the responsibility of this object, so don't pass the same instance of a command to two different objects

Definition at line 389 of file itkObject.cxx.

Referenced by otb::StreamingImageVirtualWriter< TInputImage >::GenerateData(), itk::ProgressAccumulator::RegisterInternalFilter(), otb::StreamingImageFileWriter< TInputImage >::UpdateOutputData(), and otb::WriterWatcherBase::WriterWatcherBase().

{
  if (!this->m_SubjectImplementation)
    {
    this->m_SubjectImplementation = new SubjectImplementation;
    }
  return this->m_SubjectImplementation->AddObserver(event,cmd);
}

void itk::LightObject::BreakOnError (  )  [static, inherited]

This method is called when itkExceptionMacro executes.

It allows the debugger to break on error.

Definition at line 149 of file itkLightObject.cxx.

{
  ;  
}

LightObject::Pointer itk::Object::CreateAnother ( void   )  const [virtual, inherited]

Create an object from an instance, potentially deferring to a factory.

This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::LightObject.

Reimplemented in otb::Wrapper::ApplicationFactory< TApplication >, otb::BSQImageIOFactory, otb::DefaultImageMetadataInterfaceFactory, otb::FormosatImageMetadataInterfaceFactory, otb::GDALImageIOFactory, otb::IkonosImageMetadataInterfaceFactory, otb::JPEG2000ImageIOFactory, otb::KMLVectorDataIOFactory, otb::LUMImageIOFactory, otb::MSTARImageIOFactory, otb::MWImageIOFactory, otb::OGRVectorDataIOFactory, otb::ONERAImageIOFactory, otb::OpticalDefaultImageMetadataInterfaceFactory, otb::PleiadesImageMetadataInterfaceFactory, otb::QuickBirdImageMetadataInterfaceFactory, otb::RADImageIOFactory, otb::SarDefaultImageMetadataInterfaceFactory, otb::SpotImageMetadataInterfaceFactory, otb::TerraSarImageMetadataInterfaceFactory, otb::TileMapImageIOFactory, otb::WorldView2ImageMetadataInterfaceFactory, itk::BSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >, itk::CreateObjectFunction< T >, itk::TransformFactoryBase, itk::AnalyzeImageIOFactory, itk::BioRadImageIOFactory, itk::BMPImageIOFactory, itk::Brains2MaskImageIOFactory, itk::DICOMImageIO2Factory, itk::DicomImageIOFactory, itk::GDCMImageIOFactory, itk::GE4ImageIOFactory, itk::GE5ImageIOFactory, itk::GEAdwImageIOFactory, itk::GiplImageIOFactory, itk::JPEGImageIOFactory, itk::LSMImageIOFactory, itk::MetaImageIOFactory, itk::NiftiImageIOFactory, itk::NrrdImageIOFactory, itk::PNGImageIOFactory, itk::RawImageIOFactory< TPixel, VImageDimension >, itk::SiemensVisionImageIOFactory, itk::StimulateImageIOFactory, itk::TIFFImageIOFactory, itk::VTKImageIOFactory, itk::Bruker2DSEQImageIOFactory, itk::MatlabTransformIOFactory, itk::MINC2ImageIOFactory, itk::MRCImageIOFactory, itk::PhilipsRECImageIOFactory, itk::TxtTransformIOFactory, itk::VoxBoCUBImageIOFactory, itk::VTKImageIO2Factory, and itk::SpatialObjectFactoryBase.

Definition at line 231 of file itkObject.cxx.

References itk::SmartPointer< TObjectType >::GetPointer(), and itk::Object::New().

Referenced by itk::StreamingImageIOBase::GetActualNumberOfSplitsForWriting().

{
  return Object::New().GetPointer();
}

void itk::Object::DebugOff (  )  const [virtual, inherited]

Turn debugging output off.

Definition at line 253 of file itkObject.cxx.

{
  m_Debug = false;
}

void itk::Object::DebugOn (  )  const [virtual, inherited]

Turn debugging output on.

Definition at line 242 of file itkObject.cxx.

{
  m_Debug = true;
}

void itk::LightObject::Delete (  )  [virtual, inherited]

Delete an itk object.

Delete a itk object.

This method should always be used to delete an object when the new operator was used to create it. Using the C delete method will not work with reference counting.

This method should always be used to delete an object when the new operator was used to create it. Using the C++ delete method will not work with reference counting.

Definition at line 88 of file itkLightObject.cxx.

{
  this->UnRegister();
}

Command * itk::Object::GetCommand ( unsigned long  tag  )  [inherited]

Get the command associated with the given tag.

NOTE: This returns a pointer to a Command, but it is safe to asign this to a Command::Pointer. Since Command inherits from LightObject, at this point in the code, only a pointer or a reference to the Command can be used.

Definition at line 414 of file itkObject.cxx.

References itk::Object::GetCommand().

Referenced by itk::Object::GetCommand().

{
  if (this->m_SubjectImplementation)
    {
    return this->m_SubjectImplementation->GetCommand(tag);
    }
  return NULL;
}

bool itk::Object::GetDebug (  )  const [inherited]

Get the value of the debug flag.

Definition at line 264 of file itkObject.cxx.

{
  return m_Debug;
}

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual const ParametersType& otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::GetFixedParameters ( void   )  const [inline, virtual, inherited]

Get the Fixed Parameters.

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 142 of file otbTransform.h.

    {
    itkExceptionMacro( << "Subclasses should override this method (GetFixedParameters)" );
    // Next line is needed to avoid errors due to:
    // "function must return a value".
    return this->m_FixedParameters;
    }

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
bool itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >::GetInverse ( Self  )  const [inline, inherited]

Returns a boolean indicating whether it is possible or not to compute the inverse of this current Transform.

If it is possible, then the inverse of the transform is returned in the inverseTransform variable passed by the user. The inverse is recomputed if this current transform has been modified. This method is intended to be overriden by derived classes.

Reimplemented in itk::MatrixOffsetTransformBase< TScalarType, NInputDimensions, NOutputDimensions >, itk::Rigid2DTransform< TScalarType >, itk::Rigid3DTransform< TScalarType >, itk::ScaleTransform< TScalarType, NDimensions >, itk::Similarity2DTransform< TScalarType >, itk::TranslationTransform< TScalarType, NDimensions >, itk::MatrixOffsetTransformBase< TScalarType, NDimensions, NDimensions >, itk::MatrixOffsetTransformBase< TScalarType, 2, 2 >, and itk::MatrixOffsetTransformBase< TScalarType, 3, 3 >.

Definition at line 237 of file itkTransform.h.

{return false;}

template<class TScalarType , unsigned int NInputDimensions, unsigned int NOutputDimensions>
GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::InverseTransformBasePointer otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::GetInverseTransform (  )  const [virtual]

Return an inverse of this transform.

If the inverse has not been implemented, return NULL. The type of the inverse transform does not necessarily need to match the type of the forward transform. This allows one to return a numeric inverse transform instead.

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 356 of file otbGenericRSTransform.txx.

{
  Self * inverseTransform = Self::New();

  bool success = this->GetInverse(inverseTransform);

  if (!success)
    {
    itkExceptionMacro(<< "Failed to create inverse transform");
    }

  return inverseTransform;
}

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual const JacobianType& otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::GetJacobian ( const InputPointType  )  const [inline, virtual, inherited]

Compute the Jacobian of the transformation.

This method computes the Jacobian matrix of the transformation at a given input point. The rank of the Jacobian will also indicate if the transform is invertible at this point.

The Jacobian is be expressed as a matrix of partial derivatives of the output point components with respect to the parameters that defined the transform:

\[ J=\left[ \begin{array}{cccc} \frac{\partial x_{1}}{\partial p_{1}} & \frac{\partial x_{1}}{\partial p_{2}} & \cdots & \frac{\partial x_{1}}{\partial p_{m}}\\ \frac{\partial x_{2}}{\partial p_{1}} & \frac{\partial x_{2}}{\partial p_{2}} & \cdots & \frac{\partial x_{2}}{\partial p_{m}}\\ \vdots & \vdots & \ddots & \vdots \\ \frac{\partial x_{n}}{\partial p_{1}} & \frac{\partial x_{n}}{\partial p_{2}} & \cdots & \frac{\partial x_{n}}{\partial p_{m}} \end{array}\right] \]

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 177 of file otbTransform.h.

    {
    itkExceptionMacro( << "Subclass should override this method (GetJacobian)" );
    // Next line is needed to avoid errors due to:
    // "function must return a value" .
    return this->m_Jacobian;
    }

MetaDataDictionary & itk::Object::GetMetaDataDictionary ( void   )  [inherited]
const MetaDataDictionary & itk::Object::GetMetaDataDictionary ( void   )  const [inherited]
Returns:
A constant reference to this objects MetaDataDictionary.

Reimplemented in otb::ImageMetadataInterfaceBase.

Definition at line 543 of file itkObject.cxx.

{
  if(m_MetaDataDictionary==NULL)
    {
    m_MetaDataDictionary=new MetaDataDictionary;
    }
  return *m_MetaDataDictionary;
}

unsigned long itk::Object::GetMTime ( void   )  const [virtual, inherited]

Return this objects modified time.

Return the modification for this object.

Reimplemented in itk::ImageRegistrationMethod< TFixedImage, TMovingImage >, itk::ImageToSpatialObjectRegistrationMethod< TFixedImage, TMovingSpatialObject >, itk::MultiResolutionImageRegistrationMethod< TFixedImage, TMovingImage >, itk::PointSetToImageRegistrationMethod< TFixedPointSet, TMovingImage >, itk::PointSetToPointSetRegistrationMethod< TFixedPointSet, TMovingPointSet >, itk::DeformationFieldSource< TOutputImage >, itk::InverseDeformationFieldImageFilter< TInputImage, TOutputImage >, itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >, itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >, itk::BoundingBox< TPointIdentifier, VPointDimension, TCoordRep, TPointsContainer >, itk::ImageAdaptor< TImage, TAccessor >, itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >, itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >, itk::ImageSpatialObject< TDimension, TPixelType >, itk::MeshSpatialObject< TMesh >, itk::SceneSpatialObject< TSpaceDimension >, itk::SpatialObject< TDimension >, itk::ImageAdaptor< TImage, Accessor::AsinPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::SqrtPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, otb::Accessor::VectorImageToASPixelAccessor< TImage::PixelType::ValueType > >, itk::ImageAdaptor< TImage, Accessor::TanPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::CosPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::VectorToRGBPixelAccessor< TImage::PixelType::ValueType > >, itk::ImageAdaptor< TImage, Accessor::RGBToVectorPixelAccessor< TImage::PixelType::ComponentType > >, itk::ImageAdaptor< TImage, Accessor::ComplexToModulusPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::AbsPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::ShiftScalePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::SinPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::LogPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::ComplexToPhasePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< VectorImage< TPixelType, Dimension >, Accessor::VectorImageToImagePixelAccessor< TPixelType > >, itk::ImageAdaptor< TImage, Accessor::Log10PixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::AtanPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::ComplexToRealPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::ComplexToImaginaryPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::ExpNegativePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::ExpPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::AcosPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::RGBToLuminancePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, Accessor::AddPixelAccessor< TImage::PixelType > >, itk::ImageSpatialObject< TDimension, unsigned char >, itk::SpatialObject< 3 >, and itk::SpatialObject< ::itk::GetMeshDimension< TMesh >::PointDimension >.

Definition at line 286 of file itkObject.cxx.

Referenced by itk::BoundingBox< TPointIdentifier, VPointDimension, TCoordRep, TPointsContainer >::GetMTime(), itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetMTime(), itk::DeformationFieldSource< TOutputImage >::GetMTime(), itk::SpatialObject< TDimension >::GetMTime(), itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >::GetMTime(), itk::InverseDeformationFieldImageFilter< TInputImage, TOutputImage >::GetMTime(), itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetMTime(), itk::SpatialObject< ::itk::GetMeshDimension< TMesh >::PointDimension >::GetObjectMTime(), otb::Function::StandardRenderingFunction< TPixel, TRGBPixel, TPixelRepresentationFunction, TTransferFunction >::Initialize(), itk::VTKImageExportBase::PipelineModifiedCallback(), and itk::ProcessObject::UpdateOutputInformation().

{
  return m_MTime.GetMTime();
}

template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
virtual const char* otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::GetNameOfClass (  )  const [virtual]

Run-time type information (and related methods).

Reimplemented from otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual const ParametersType& otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::GetParameters ( void   )  const [inline, virtual, inherited]

Get the Transformation Parameters.

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 132 of file otbTransform.h.

  {
    return m_Parameters;
  }

virtual int itk::LightObject::GetReferenceCount (  )  const [inline, virtual, inherited]

Gets the reference count on this object.

Definition at line 105 of file itkLightObject.h.

    {return static_cast<int>(m_ReferenceCount);}

template<class TScalarType , unsigned int NInputDimensions, unsigned int NOutputDimensions>
std::string itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >::GetTransformTypeAsString (  )  const [virtual, inherited]

Generate a platform independant name.

GenerateName.

Implements itk::TransformBase.

Definition at line 63 of file itkTransform.txx.

{
  OStringStream n;
  n << GetNameOfClass();
  n << "_";
  if ( typeid ( TScalarType ) == typeid ( float ) )
    {
    n << "float";
    }
  else if ( typeid ( TScalarType ) == typeid ( double ) )
    {
      n << "double";
    }
  else
    {
      n << "other";
    }
  n << "_" << this->GetInputSpaceDimension() << "_" << this->GetOutputSpaceDimension();
  return n.str();
}

bool itk::Object::HasObserver ( const EventObject event  )  const [inherited]

Return true if an observer is registered for this event.

Definition at line 467 of file itkObject.cxx.

{
  if (this->m_SubjectImplementation)
    {
    return this->m_SubjectImplementation->HasObserver(event);
    }
  return false;
}

void itk::Object::InvokeEvent ( const EventObject event  )  [inherited]

Call Execute on all the Commands observing this event id.

Definition at line 446 of file itkObject.cxx.

Referenced by itk::VTKImageExportBase::UpdateDataCallback().

{
  if (this->m_SubjectImplementation)
    {
    this->m_SubjectImplementation->InvokeEvent(event,this);
    }
}

void itk::Object::InvokeEvent ( const EventObject event  )  const [inherited]

Call Execute on all the Commands observing this event id.

The actions triggered by this call doesn't modify this object.

Definition at line 457 of file itkObject.cxx.

{
  if (this->m_SubjectImplementation)
    {
    this->m_SubjectImplementation->InvokeEvent(event,this);
    }
}

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual bool itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >::IsLinear (  )  const [inline, virtual, inherited]

Indicates if this transform is linear.

A transform is defined to be linear if the transform of a linear combination of points is equal to the linear combination (with the same coefficients) of the individual transforms of each point. The transform T will be linear if given two points P and Q, and scalar coefficients a and b, then

T( a*P + b*Q ) = a * T(P) + b * T(Q)

By default, we assume this to NOT be the case for most transforms. However, transforms for which this is true will overload and reimplement this method accordingly.

Reimplemented in itk::BSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >, itk::IdentityTransform< TScalarType, NDimensions >, itk::KernelTransform< TScalarType, NDimensions >, itk::MatrixOffsetTransformBase< TScalarType, NInputDimensions, NOutputDimensions >, itk::ScaleTransform< TScalarType, NDimensions >, itk::TranslationTransform< TScalarType, NDimensions >, itk::MatrixOffsetTransformBase< TScalarType, NDimensions, NDimensions >, itk::MatrixOffsetTransformBase< TScalarType, 2, 2 >, and itk::MatrixOffsetTransformBase< TScalarType, 3, 3 >.

Definition at line 263 of file itkTransform.h.

{ return false; }

template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
virtual void otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::Modified ( void   )  const [inline, protected, virtual]

Update the modification time for this object.

Make sure this object's modified time is greater than all others.

Many filters rely on the modification time to determine if they need to recompute their data.

Reimplemented from itk::Object.

Definition at line 193 of file otbGenericRSTransform.h.

  {
    this->Superclass::Modified();
    m_TransformUpToDate = false;
  }

template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
static Pointer otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::New (  )  [static]

Method for creation through the object factory.

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

void itk::LightObject::Print ( std::ostream &  os,
Indent  indent = 0 
) const [inherited]

Cause the object to print itself out.

Avoid DLL boundary problems.

This function will be common to all itk objects. It just calls the header/self/trailer virtual print methods, which can be overriden by subclasses (any itk object).

Definition at line 135 of file itkLightObject.cxx.

References itk::Indent::GetNextIndent().

Referenced by itk::operator<<(), and itk::WeakPointer< ProcessObject >::Print().

{
  this->PrintHeader(os, indent); 
  this->PrintSelf(os, indent.GetNextIndent());
  this->PrintTrailer(os, indent);
}

template<class TScalarType , unsigned int NInputDimensions, unsigned int NOutputDimensions>
void otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const [protected, virtual]

Methods invoked by Print() to print information about the object including superclasses.

Chaining method to print an object's instance variables, as well as its superclasses.

Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 373 of file otbGenericRSTransform.txx.

References itk::Indent::GetNextIndent().

{
  Superclass::PrintSelf(os, indent);
  os << indent << "Up to date: " << m_TransformUpToDate << std::endl;
  if (m_TransformUpToDate)
    {
    os << indent << "Input transform: "<< std::endl;
    m_InputTransform->Print(os, indent.GetNextIndent());
    os << indent << "Output transform: " << std::endl;
    m_OutputTransform->Print(os, indent.GetNextIndent());
    }
  else
    {
    os << indent << "Input transform: NULL" << std::endl;
    os << indent << "Output transform: NULL" << std::endl;
    }
  os << indent << "Accuracy: "
      << (m_TransformAccuracy == Projection::PRECISE ?
                "PRECISE" : (m_TransformAccuracy == Projection::ESTIMATE ?
                                  "ESTIMATE" : "UNKNOWN")) << std::endl;
}

void itk::Object::Register (  )  const [virtual, inherited]

Increase the reference count (mark as used by another object).

Reimplemented from itk::LightObject.

Definition at line 309 of file itkObject.cxx.

Referenced by itk::ObjectFactoryBase::RegisterFactory().

{
  itkDebugMacro(<< "Registered, "
                << "ReferenceCount = " << (m_ReferenceCount+1));

  // call the parent
  Superclass::Register();
}

void itk::Object::RemoveAllObservers (  )  [inherited]

Remove all observers .

Definition at line 435 of file itkObject.cxx.

{
  if (this->m_SubjectImplementation)
    {
    this->m_SubjectImplementation->RemoveAllObservers();
    }
}

void itk::Object::RemoveObserver ( unsigned long  tag  )  [inherited]

Remove the observer with this tag value.

Definition at line 425 of file itkObject.cxx.

Referenced by otb::StreamingImageVirtualWriter< TInputImage >::GenerateData(), and otb::StreamingImageFileWriter< TInputImage >::UpdateOutputData().

{
  if (this->m_SubjectImplementation)
    {
    this->m_SubjectImplementation->RemoveObserver(tag);
    }
}

void itk::Object::SetDebug ( bool  debugFlag  )  const [inherited]

Set the value of the debug flag.

A non-zero value turns debugging on.

Definition at line 275 of file itkObject.cxx.

{
  m_Debug = debugFlag;
}

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual void otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::SetFixedParameters ( const ParametersType  )  [inline, virtual, inherited]

Set the fixed parameters and update internal transformation.

Definition at line 138 of file otbTransform.h.

    { itkExceptionMacro( << "Subclasses should override this method (SetFixedParameters)" ) }

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual void itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >::SetFixedParameters ( const ParametersType  )  [inline, virtual, inherited]
virtual void itk::TransformBase::SetFixedParameters ( const ParametersType  )  [pure virtual, inherited]
void itk::Object::SetGlobalWarningDisplay ( bool  flag  )  [static, inherited]

This is a global flag that controls whether any debug, warning or error messages are displayed.

Set the value of the global debug output control flag.

Definition at line 370 of file itkObject.cxx.

template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
virtual void otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::SetInputOrigin ( OriginType  _arg  )  [virtual]

Set the origin of the vector data.

See also:
GetOrigin()
template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
virtual void otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::SetInputProjectionRef ( const char *  _arg  )  [virtual]

Set/Get for input and output projections.

template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
virtual void otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::SetInputSpacing ( SpacingType  _arg  )  [virtual]

Set the spacing (size of a pixel) of the vector data.

See also:
GetSpacing()
void itk::Object::SetMetaDataDictionary ( const MetaDataDictionary rhs  )  [inherited]
template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
virtual void otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::SetOutputOrigin ( OriginType  _arg  )  [virtual]

Set the origin of the vector data.

See also:
GetOrigin()
template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
virtual void otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::SetOutputSpacing ( SpacingType  _arg  )  [virtual]

Set the spacing (size of a pixel) of the vector data.

See also:
GetSpacing()
virtual void itk::TransformBase::SetParameters ( const ParametersType  )  [pure virtual, inherited]
template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual void otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::SetParameters ( const ParametersType  )  [inline, virtual, inherited]

Set the transformation parameters and update internal transformation.

SetParameters gives the transform the option to set it's parameters by keeping a reference to the parameters, or by copying. To force the transform to copy it's parameters call SetParametersByValue.

See also:
SetParametersByValue

Definition at line 118 of file otbTransform.h.

    { itkExceptionMacro( << "Subclasses should override this method (SetParameters)" ) }

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual void itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >::SetParameters ( const ParametersType  )  [inline, virtual, inherited]

Set the transformation parameters and update internal transformation.

SetParameters gives the transform the option to set it's parameters by keeping a reference to the parameters, or by copying. To force the transform to copy it's parameters call SetParametersByValue.

See also:
SetParametersByValue

Reimplemented in itk::TranslationTransform< TScalarType, NDimensions >, otb::Transform< double, 2, 2 >, otb::Transform< TScalarType, Dimension, Dimension >, itk::MatrixOffsetTransformBase< TScalarType, NDimensions, NDimensions >, itk::MatrixOffsetTransformBase< TScalarType, 2, 2 >, and itk::MatrixOffsetTransformBase< TScalarType, 3, 3 >.

Definition at line 155 of file itkTransform.h.

Referenced by itk::ImageToImageMetric< TFixedImage, TMovingImage >::MultiThreadingInitialize().

    { itkExceptionMacro( << "Subclasses should override this method" ) }

virtual void itk::TransformBase::SetParametersByValue ( const ParametersType p  )  [pure virtual, inherited]

Set the transformation by copying parameters and update internal transformation.

This method forces the transform to copy the parameters. The default implementation is to call SetParameters. This call must be overridden if the transform normally implements SetParameters by keeping a reference to the parameters.

See also:
SetParameters

Implemented in otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >, itk::Transform< TScalarType, NDimensions, NDimensions >, itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >, itk::Transform< TScalarType, 2, 2 >, itk::Transform< TScalarType, 3, 2 >, and itk::Transform< double, NInputDimensions, NOutputDimensions >.

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual void otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::SetParametersByValue ( const ParametersType p  )  [inline, virtual, inherited]

Set the transformation parameters and update internal transformation.

This method forces the transform to copy the parameters. The default implementation is to call SetParameters. This call must be overridden if the transform normally implements SetParameters by keeping a reference to the parameters.

See also:
SetParameters

Definition at line 128 of file otbTransform.h.

  { this->SetParameters (p); }

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual void itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >::SetParametersByValue ( const ParametersType p  )  [inline, virtual, inherited]

Set the transformation parameters and update internal transformation.

This method forces the transform to copy the parameters. The default implementation is to call SetParameters. This call must be overridden if the transform normally implements SetParameters by keeping a reference to the parameters.

See also:
SetParameters

Reimplemented in otb::Transform< double, 2, 2 >, and otb::Transform< TScalarType, Dimension, Dimension >.

Definition at line 165 of file itkTransform.h.

    { this->SetParameters ( p ); }

void itk::Object::SetReferenceCount ( int  ref  )  [virtual, inherited]

Sets the reference count (use with care).

If there is a delete method, invoke it.

Reimplemented from itk::LightObject.

Definition at line 347 of file itkObject.cxx.

{
  itkDebugMacro(<< "Reference Count set to " << ref);

  // ReferenceCount in now unlocked.  We may have a race condition to
  // to delete the object.
  if( ref <= 0 )
    {
    this->InvokeEvent(DeleteEvent());
    }

  Superclass::SetReferenceCount(ref);
}

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual OutputCovariantVectorType otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::TransformCovariantVector ( const InputCovariantVectorType  )  const [inline, virtual, inherited]

Method to transform a CovariantVector.

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 107 of file otbTransform.h.

  { return OutputCovariantVectorType(); }

template<class TScalarType , unsigned int NInputDimensions, unsigned int NOutputDimensions>
GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::OutputPointType otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::TransformPoint ( const InputPointType  )  const [virtual]

Method to transform a point.

Reimplemented from otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 290 of file otbGenericRSTransform.txx.

{
  InputPointType inputPoint = point;

  // Apply input origin/spacing
  inputPoint[0] = inputPoint[0] * m_InputSpacing[0] + m_InputOrigin[0];
  inputPoint[1] = inputPoint[1] * m_InputSpacing[1] + m_InputOrigin[1];

  // Transform point
  OutputPointType outputPoint;
  outputPoint = this->GetTransform()->TransformPoint(inputPoint);

  // Apply output origin/spacing
  outputPoint[0] = (outputPoint[0] - m_OutputOrigin[0]) / m_OutputSpacing[0];
  outputPoint[1] = (outputPoint[1] - m_OutputOrigin[1]) / m_OutputSpacing[1];

//  otbMsgDevMacro("GenericRSTransform: " << point << " -> " << outputPoint);

  return outputPoint;
}

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual OutputVectorType otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::TransformVector ( const InputVectorType  )  const [inline, virtual, inherited]

Method to transform a vector.

Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 99 of file otbTransform.h.

    { return OutputVectorType(); }

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual OutputVnlVectorType itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >::TransformVector ( const InputVnlVectorType  )  const [inline, virtual, inherited]

Method to transform a vnl_vector.

Reimplemented in otb::Transform< double, 2, 2 >, and otb::Transform< TScalarType, Dimension, Dimension >.

Definition at line 140 of file itkTransform.h.

    { return OutputVnlVectorType(); }

template<class TScalarType, unsigned int NInputDimensions = 3, unsigned int NOutputDimensions = 3>
virtual OutputVnlVectorType otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >::TransformVector ( const InputVnlVectorType  )  const [inline, virtual, inherited]

Method to transform a vnl_vector.

Definition at line 103 of file otbTransform.h.

    { return OutputVnlVectorType(); }

void itk::Object::UnRegister (  )  const [virtual, inherited]

Decrease the reference count (release by another object).

If there is a delete method, invoke it.

Reimplemented from itk::LightObject.

Definition at line 324 of file itkObject.cxx.

Referenced by itk::Object::New(), and itk::ObjectFactoryBase::UnRegisterFactory().

{
  // call the parent
  itkDebugMacro(<< "UnRegistered, "
                << "ReferenceCount = " << (m_ReferenceCount-1));

  if ( (m_ReferenceCount-1) <= 0)
    {
    this->InvokeEvent(DeleteEvent());
    }

  Superclass::UnRegister();
}


Member Data Documentation

template<class TScalarType = double, unsigned int NInputDimensions = 2, unsigned int NOutputDimensions = 2>
const unsigned int otb::GenericRSTransform< TScalarType, NInputDimensions, NOutputDimensions >::InputSpaceDimension = NInputDimensions [static]

Dimension of the domain space.

Reimplemented from otb::Transform< TScalarType, NInputDimensions, NOutputDimensions >.

Definition at line 85 of file otbGenericRSTransform.h.

Number of uses of this object by other objects.

Definition at line 141 of file itkLightObject.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated at Sun May 13 2012 16:10:32 for OTB with doxygen 1.7.1