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

ENH: kernelSize is already integer

parent 5559c46e
No related branches found
No related tags found
No related merge requests found
......@@ -519,9 +519,9 @@ void MeanShiftImageFilter2<TInputImage,TOutputMetricImage, TOutputImage, TKernel
index[0] = static_cast<InputIndexValueType>(vcl_floor(latticePosition[0] + 0.5));
index[1] = static_cast<InputIndexValueType>(vcl_floor(latticePosition[1] + 0.5));
InputIndexValueType xMin = index[0] - static_cast<InputIndexValueType>(vcl_floor(kernelSize[0] / 2));
InputIndexValueType xMin = index[0] - kernelSize[0] / 2;
InputIndexValueType xMax = xMin + kernelSize[0];
InputIndexValueType yMin = index[1] - static_cast<InputIndexValueType>(vcl_floor(kernelSize[1] / 2));
InputIndexValueType yMin = index[1] - kernelSize[1] / 2;
InputIndexValueType yMax = yMin + kernelSize[1];
InputIndexType minIndex;
......
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