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 caf7bc59 authored by cfouard's avatar cfouard
Browse files

FIXED some bad handled vtk smart pointers

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@2037 ec899d31-69d1-42ba-9299-647d76f65fb3
parent d724e380
......@@ -152,7 +152,7 @@ vtkSmartPointer<vtkImageData> ManualThreshold::itkProcess(vtkSmartPointer<vtkIma
itkToVtkFilter->Update();
// --------------------- Create and return a copy (the filters will be deleted)--
vtkImageData * resultImage = itkToVtkFilter->GetOutput();
vtkSmartPointer<vtkImageData> resultImage = itkToVtkFilter->GetOutput();
int extent[6];
resultImage->GetExtent(extent);
result->SetExtent(extent);
......
......@@ -233,7 +233,7 @@ vtkSmartPointer<vtkImageData> RegionGrowing::itkProcess(vtkSmartPointer<vtkImage
observer->Reset();
// --------------------- Create and return a copy (the filters will be deleted)--
vtkImageData * resultImage = itkToVtkFilter->GetOutput();
vtkSmartPointer<vtkImageData> resultImage = itkToVtkFilter->GetOutput();
int extent[6];
resultImage->GetExtent(extent);
result->SetExtent(extent);
......
......@@ -163,7 +163,7 @@ void BoxVOI::process ( ImageComponent * comp ) {
extractVOI->Update();
// --------------------- Create and return a copy (the filters will be deleted)--
vtkImageData * resultImage = extractVOI->GetOutput();
vtkSmartPointer<vtkImageData> resultImage = extractVOI->GetOutput();
// Adapt properties of the new volume
double *inputO = inputImage->GetOrigin();
......
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