X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkImageContinuousDilate3D.cxx;h=7a1bf0a819e229fa272bb318f5ce2fb66e2f0ab4;hb=464deff51f697881cd76b3cfb934859cd7c31df7;hp=5ed81c769bba5d88a86835d5f54ffada7a8c751d;hpb=ef9f90810fcc3800acac54a104f14ff505135fd3;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousDilate3D.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousDilate3D.cxx index 5ed81c7..7a1bf0a 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousDilate3D.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkImageContinuousDilate3D.cxx @@ -15,7 +15,7 @@ void ImageContinuousDilate3D::Process() vtkImageData* ImageContinuousDilate3D::dilateFilterRecursive(vtkImageData* image, int repetitions, double x, double y, double z) { - vtkImageContinuousDilate3D *dilateFilter = vtkImageContinuousDilate3D ::New(); + vtkImageContinuousDilate3D *dilateFilter = vtkImageContinuousDilate3D::New(); //EED 2017-01-01 Migration VTK7 #if VTK_MAJOR_VERSION <= 5 dilateFilter->SetInput (image); @@ -30,34 +30,31 @@ vtkImageData* ImageContinuousDilate3D::dilateFilterRecursive(vtkImageData* image { resultRec = dilateFilter->GetOutput(); return resultRec; - } - else { - vtkImageData* resultRec = dilateFilterRecursive(dilateFilter->GetOutput(), (repetitions-1), x, y, z); - } + }else{ + return dilateFilterRecursive(dilateFilter->GetOutput(), (repetitions-1), x, y, z); + }// if repetitions } void ImageContinuousDilate3D::bbUserSetDefaultValues() { - - + bbSetInputX(3); + bbSetInputY(3); + bbSetInputY(3); + bbSetInputRepetitions(0); } void ImageContinuousDilate3D::bbUserInitializeProcessing() { - - } void ImageContinuousDilate3D::bbUserFinalizeProcessing() { - // THE FINALIZATION METHOD BODY : // Here does nothing // but this is where you should desallocate the internal/output pointers // if any - -} } -// EO namespace bbcreaVtk + +} // EO namespace bbcreaVtk