Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 58ba7bc4 authored by seryc's avatar seryc
Browse files

UPDATE: Try to resolve some memory leak.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@2123 ec899d31-69d1-42ba-9299-647d76f65fb3
parent dd874344
......@@ -217,6 +217,10 @@ vtkSmartPointer<vtkImageData> GaussianFilter::itkProcessStandardGaussian(vtkSmar
observerCast = NULL;
observerRescale = NULL;
castFilter = NULL;
filter = NULL;
rescaleFilter = NULL;
return result;
}
......
......@@ -450,7 +450,7 @@ vtkSmartPointer<vtkImageData> MorphologicalOperators::binaryOpeningFilter(vtkSma
dilationFilter->SetInput(erosionFilter->GetOutput());
dilationFilter->AddObserver ( itk::ProgressEvent(), observerDilation );
dilationFilter->SetKernel(structuringElement);
dilatationFilter->Update();
dilationFilter->Update();
// From ITK to VTK
itkToVtkFilter->SetInput(dilationFilter->GetOutput());
......@@ -742,7 +742,7 @@ vtkSmartPointer<vtkImageData> MorphologicalOperators::greyLevelOpeningFilter(vtk
dilationFilter->SetInput(erosionFilter->GetOutput());
dilationFilter->AddObserver ( itk::ProgressEvent(), observerDilation );
dilationFilter->SetKernel(structuringElement);
dilatationFilter->Update();
dilationFilter->Update();
// From ITK to VTK
itkToVtkFilter->SetInput(dilationFilter->GetOutput());
......
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