Skip to content
Snippets Groups Projects
Commit 11994f64 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: fix itkTypeMacro

parent 41a91297
Branches
Tags
No related merge requests found
...@@ -72,7 +72,8 @@ public: ...@@ -72,7 +72,8 @@ public:
OutputType operator ()(const InputType& in) OutputType operator ()(const InputType& in)
{ {
// TODO : support different types !!! // TODO : support different types & Precision correctly
// TODO : make the multiplication by hand ?
VectorType inVector(in.GetDataPointer(), in.Size()); VectorType inVector(in.GetDataPointer(), in.Size());
VectorType outVector = m_Matrix * inVector; VectorType outVector = m_Matrix * inVector;
return OutputType(outVector.data_block(), outVector.size()); return OutputType(outVector.data_block(), outVector.size());
...@@ -120,7 +121,7 @@ public: ...@@ -120,7 +121,7 @@ public:
itkNewMacro(Self); itkNewMacro(Self);
/** Run-time type information (and related methods). */ /** Run-time type information (and related methods). */
itkTypeMacro(MatrixMultiplyImageFilter, itk::UnaryFunctorImageFilter); itkTypeMacro(MatrixMultiplyImageFilter, otb::UnaryFunctorImageFilter);
/** Pixel types. */ /** Pixel types. */
typedef typename TInputImage::PixelType InputPixelType; typedef typename TInputImage::PixelType InputPixelType;
...@@ -148,7 +149,6 @@ private: ...@@ -148,7 +149,6 @@ private:
MatrixMultiplyImageFilter(const Self &); //purposely not implemented MatrixMultiplyImageFilter(const Self &); //purposely not implemented
void operator =(const Self&); //purposely not implemented void operator =(const Self&); //purposely not implemented
}; };
} // end namespace otb } // end namespace otb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment