Skip to content
Snippets Groups Projects
Commit 5ff7ff95 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

DOC: added comment to refer to the functorImageFilter bug

parent 43d085d7
No related branches found
No related tags found
2 merge requests!621Release 7.0 (master),!353Local Rx detector
......@@ -108,19 +108,22 @@ private:
auto inputImage = GetParameterDoubleVectorImage("in");
inputImage->UpdateOutputInformation();
#if 1
// The localRxDetectionFilter can be replaced by a functorImageFilter using the appropriate
// functor. However using functorImageFilter with neighborhood is buggy (see issue #1802). Still,
// the functor has been implemented and localRxDetectionFilter will be deprecated when the
// bug is corrected.
#if 1 // Using localRxDetectionFilter
auto localRxDetectionFilter = LocalRxDetectorFilterType::New();
localRxDetectionFilter->SetInput(inputImage);
// the radius are the same along x and y for the filter
unsigned int externalRadius = GetParameterInt("er");
unsigned int internalRadius = GetParameterInt("ir");
localRxDetectionFilter->SetInternalRadius(internalRadius);
localRxDetectionFilter->SetExternalRadius(externalRadius);
#else
#else // Using a functorImageFilter
Functor::LocalRxDetectionFunctor<double> detectorFunctor;
detectorFunctor.SetInternalRadius(GetParameterInt("ir"), GetParameterInt("ir"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment