Commit 2729166f authored by remi cresson's avatar remi cresson

FIX: smart shrink for odd padding radius

parent f18f4184
......@@ -57,10 +57,9 @@ TensorflowMultisourceModelFilter<TInputImage, TOutputImage>
for(unsigned int dim = 0; dim<OutputImageType::ImageDimension; ++dim)
{
const SizeValueType psz = patchSize[dim];
const SizeValueType rval = 0.5 * psz;
const SizeValueType lval = psz - rval;
const SizeValueType lval = 0.5 * psz;
region.GetModifiableIndex()[dim] += lval;
region.GetModifiableSize()[dim] -= psz;
region.GetModifiableSize()[dim] -= psz - 1;
}
}
......
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