X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkMorphoMathFilter.txx;h=8b380c8c9b45f8dd414b1cdecccfc05c10924dbe;hb=aa424793243b9b210a0d009f5cb8031db985549a;hp=2eb3a0261c280da9193d39e270d1746f6a478944;hpb=6194949c0beb1589904e22381b9aba1bbface172;p=clitk.git diff --git a/segmentation/clitkMorphoMathFilter.txx b/segmentation/clitkMorphoMathFilter.txx index 2eb3a02..8b380c8 100644 --- a/segmentation/clitkMorphoMathFilter.txx +++ b/segmentation/clitkMorphoMathFilter.txx @@ -117,6 +117,7 @@ GenerateOutputInformation() // Define the images //--------------------------------- ImagePointer m_input = dynamic_cast(itk::ProcessObject::GetInput(0)); + const unsigned int dim = ImageType::ImageDimension; //--------------------------------- // Cast into internalimagetype @@ -131,7 +132,7 @@ GenerateOutputInformation() // Compute the radius in pixel //--------------------------------- if (m_RadiusInMMIsSet) { - for(uint i=0; iGetSpacing()[i]); } } @@ -145,7 +146,7 @@ GenerateOutputInformation() padFilter->SetInput(input); typename ImageType::SizeType lower; typename ImageType::SizeType upper; - for(uint i=0; i<3; i++) { + for(uint i=0; iSetPadLowerBound(lower);