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

COMP: fix 'call to function 'PixelSizeFinder' that is neither visible in the...

COMP: fix 'call to function 'PixelSizeFinder' that is neither visible in the template definition nor found by argument-dependent lookup'
parent 4ddd5508
Branches
Tags
No related merge requests found
...@@ -32,6 +32,15 @@ ...@@ -32,6 +32,15 @@
namespace otb namespace otb
{ {
template <class PixelType> unsigned int PixelSizeFinder(itk::VariableLengthVector<PixelType> pix)
{
return pix.Size();
}
template <class PixelType> unsigned int PixelSizeFinder(PixelType pix)
{
return PixelType::Dimension;
}
/** /**
* Default constructor. * Default constructor.
*/ */
...@@ -301,15 +310,6 @@ WarpImageFilter<TInputImage,TOutputImage,TDeformationField> ...@@ -301,15 +310,6 @@ WarpImageFilter<TInputImage,TOutputImage,TDeformationField>
return ( output ); return ( output );
} }
template <class PixelType> unsigned int PixelSizeFinder(itk::VariableLengthVector<PixelType> pix)
{
return pix.Size();
}
template <class PixelType> unsigned int PixelSizeFinder(PixelType pix)
{
return PixelType::Dimension;
}
/** /**
* Compute the output for the region specified by outputRegionForThread. * Compute the output for the region specified by outputRegionForThread.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment