diff --git a/Code/ObjectDetection/otbDescriptorsListSampleGenerator.h b/Code/ObjectDetection/otbDescriptorsListSampleGenerator.h index 8a773dbb06fa2308bb1bab1455b9e46c326154e1..e3340d3cbb597fb5281796987cc04f31b3b75a5c 100644 --- a/Code/ObjectDetection/otbDescriptorsListSampleGenerator.h +++ b/Code/ObjectDetection/otbDescriptorsListSampleGenerator.h @@ -191,7 +191,7 @@ private: #ifdef ITK_USE_CENTERED_PIXEL_COORDINATES_CONSISTENTLY if( itk::Math::RoundHalfIntegerUp<IndexValueType>(index[i]) < static_cast<IndexValueType>( region.GetIndex(i) ) + static_cast<IndexValueType>(m_NeighborhoodRadius) ) #else - if( index[i] < static_cast<TCoordRepType>( region.GetIndex(i) ) + m_NeighborhoodRadius ) + if( index[i] < static_cast<IndexValueType>( region.GetIndex(i) ) + m_NeighborhoodRadius ) #endif { return false;