Commit e1e525c7 authored by Emmanuel Christophe's avatar Emmanuel Christophe

BUG: fix functor const correctness

parent fb2bdc76
......@@ -51,7 +51,7 @@ public:
}
~HillShadingFunctor() {}
inline TOutput operator()(const TNeighIter & it)
inline TOutput operator()(const TNeighIter & it) const
{
const typename IteratorType::OffsetType LEFT ={{-1,0}};
const typename IteratorType::OffsetType RIGHT ={{1,0}};
......
......@@ -53,7 +53,7 @@ public:
typedef TInputImage InputImageType;
typedef typename itk::Statistics::ScalarImageTextureCalculator< InputImageType> TextureCalcType;
inline TOutput operator()(const TNeighIter & it)
inline TOutput operator()(const TNeighIter & it) const
{
unsigned int neighborhoodSize = it.Size();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment