Skip to content
Snippets Groups Projects
Commit 6be78147 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: correct wavelet boundaries

parent ce6b72bd
No related branches found
No related tags found
No related merge requests found
......@@ -819,11 +819,11 @@ WaveletFilterBank< TInputImage, TOutputImage, TWaveletOperator, INVERSE >
highPassOperator.SetUpSampleFactor( this->GetUpSampleFilterFactor() );
highPassOperator.CreateDirectional();
if ( radius[0] < highPassOperator.GetRadius()[0] )
radius[0] = highPassOperator.GetRadius()[0];
for ( unsigned int i = 1; i < InputImageDimension; i++ )
radius[i] = 0;
{
if ( radius[i] < highPassOperator.GetRadius()[i] )
radius[i] = highPassOperator.GetRadius()[i];
}
InputImageRegionType paddedRegion = destRegion;
paddedRegion.PadByRadius( radius );
......
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