X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSegmentationDialog.cxx;h=53fd8d21a60f538b73b9ab9a10325360bac56360;hb=2db65b693062a7d5bb04df546be45f9b9513997f;hp=4fb788e45384bbd865cd99523f8dd3a5de5c7f56;hpb=11359456787921edeba06494b3c1e26ca16e6797;p=clitk.git diff --git a/vv/vvSegmentationDialog.cxx b/vv/vvSegmentationDialog.cxx index 4fb788e..53fd8d2 100644 --- a/vv/vvSegmentationDialog.cxx +++ b/vv/vvSegmentationDialog.cxx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef _vvSegmentationDialog_CXX #define _vvSegmentationDialog_CXX #include @@ -546,7 +546,7 @@ void vvSegmentationDialog::Save() QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); vvProgressDialog progress("Saving "+fileName.toStdString()); qApp->processEvents(); - vvImageWriter *writer = new vvImageWriter; + vvImageWriter::Pointer writer = vvImageWriter::New(); writer->SetOutputFileName(fileName.toStdString()); writer->SetInput(mManager->GetSlicer(0)->GetImage()); writer->Update(dimension,"unsigned_char");