Skip to content
Snippets Groups Projects
Commit a820fa31 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

Merge branch 'comp_windows_overlapsave' into 'develop'

COMP: fix OverlapSave filter on Windows

See merge request orfeotoolbox/otb!293
parents 69a2e5be 28c3c1c1
Branches
Tags
No related merge requests found
......@@ -186,8 +186,10 @@ OverlapSaveConvolutionImageFilter<TInputImage, TOutputImage, TBoundaryCondition>
FFTW_MEASURE);
// left zero padding
unsigned int leftskip = static_cast<unsigned int>(std::max(0L, inputIndex[0] - pieceIndex[0]));
unsigned int topskip = pieceSize[0] * static_cast<unsigned int>(std::max(0L, inputIndex[1] - pieceIndex[1]));
unsigned int leftskip = static_cast<unsigned int>(std::max(
(typename InputImageType::IndexValueType) 0, inputIndex[0] - pieceIndex[0]));
unsigned int topskip = pieceSize[0] * static_cast<unsigned int>(std::max(
(typename InputImageType::IndexValueType) 0, inputIndex[1] - pieceIndex[1]));
// zero filling
memset(inputPiece,0,pieceNbOfPixel * sizeof(InputPixelType));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment