<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><span id="ms-rterangepaste-start"></span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">Dear all</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"> I am a novice of ITK. I want to remove skull of the CTA Dicom image use watershed algorithm. But when I write the result without colormap, there was a error:</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"> </p>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>IntelliSense: There are no overloaded functions that match the parameter list "itk::ImageFileWriter<TInputImage>::SetInput
[TInputImage=itk::Image<signed short, 3U>]" </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"> parameter type: (itk::Image<itk::IdentifierType, 3U> *)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"> object type: itk::ImageFileWriter<itk::Image<signed short, 3U>><span class="x_Apple-tab-span" style="white-space:pre">
</span>c:\ITK\text\ITK_VTK\myprojectwater.cxx<span class="x_Apple-tab-span" style="white-space:pre">
</span>162</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"> I am looking forward to your answer.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"> Thank you.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">And this is my code:</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"></p>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">typedef signed short PixelType;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>const unsigned int Dimension = 3;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>typedef itk::Image< PixelType, Dimension > ImageType;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>typedef itk::ImageSeriesReader< ImageType > ReaderType;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>ReaderType::Pointer reader = ReaderType::New();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>typedef itk::GDCMImageIO ImageIOType;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>ImageIOType::Pointer dicomIO = ImageIOType::New();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>reader->SetImageIO( dicomIO );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>typedef itk::GDCMSeriesFileNames NamesGeneratorType;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>NamesGeneratorType::Pointer nameGenerator = NamesGeneratorType::New();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>nameGenerator->SetUseSeriesDetails( true );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>nameGenerator->AddSeriesRestriction("0008|0021" );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>nameGenerator->SetDirectory( argv[1] );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>try</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>{</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << std::endl << "The directory: " << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << std::endl << argv[1] << std::endl << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << "Contains the following DICOM Series: ";</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << std::endl << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>typedef std::vector< std::string > SeriesIdContainer;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>const SeriesIdContainer & seriesUID = nameGenerator->GetSeriesUIDs();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>SeriesIdContainer::const_iterator seriesItr = seriesUID.begin();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>SeriesIdContainer::const_iterator seriesEnd = seriesUID.end();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>while( seriesItr != seriesEnd )</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>{</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << seriesItr->c_str() << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>++seriesItr;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>}</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::string seriesIdentifier;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>if( argc > 3 ) </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>{</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>seriesIdentifier = argv[3];</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>}</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>else</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>{</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>seriesIdentifier = seriesUID.begin()->c_str();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>}</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << std::endl << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << "Now reading series: " << std::endl << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << seriesIdentifier << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << std::endl << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>typedef std::vector< std::string > FileNamesContainer;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>FileNamesContainer fileNames;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>fileNames = nameGenerator->GetFileNames( seriesIdentifier );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>reader->SetFileNames( fileNames );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>try</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>{</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>reader->Update();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>}</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>catch (itk::ExceptionObject &ex)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>{</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << ex << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>return EXIT_FAILURE;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>}</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>typedef itk::ImageFileWriter< ImageType > WriterType;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>WriterType::Pointer writer0 = WriterType::New();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>writer0->SetFileName( argv[2] );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>writer0->SetInput( reader->GetOutput() );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << "Writing the image as " << std::endl << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << argv[2] << std::endl << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>try</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>{</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>writer0->Update();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>}</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>catch (itk::ExceptionObject &ex)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>{</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << ex << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>return EXIT_FAILURE;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>}</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>typedef itk::GradientMagnitudeRecursiveGaussianImageFilter<</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>ImageType,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>ImageType</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>> GradientMagnitudeFilterType;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>GradientMagnitudeFilterType::Pointer gradienMagnitudeFilter = GradientMagnitudeFilterType::New();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>gradienMagnitudeFilter->SetInput( reader->GetOutput() );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>gradienMagnitudeFilter->SetSigma( 1.0 );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>//</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>//</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>typedef itk::WatershedImageFilter<</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>ImageType</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>> WatershedFilterType;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>WatershedFilterType::Pointer watershedFilter = WatershedFilterType::New();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>watershedFilter->SetInput( gradienMagnitudeFilter->GetOutput() );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>watershedFilter->SetThreshold( atof( argv[2] ) );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>watershedFilter->SetLevel( atof( argv[3] ) );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>//typedef itk::ImageFileWriter< itk::IdentifierType,3 > WriterType;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>//WriterType::Pointer writer = WriterType::New();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>WriterType::Pointer writer = WriterType::New();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>writer->SetInput( watershedFilter->GetOutput() );</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>writer->SetFileName("C:\\ITK\\text\\ITK_VTK\\water.mhd");</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>//writer->SetImageIO(gdcmIO);</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>try</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>{</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>// Software Guide : BeginCodeSnippet</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>writer->Update();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>// Software Guide : EndCodeSnippet</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>}</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>catch (itk::ExceptionObject &ex)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>{</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << ex << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>return EXIT_FAILURE;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>}</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>}</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>catch (itk::ExceptionObject &ex)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>{</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>std::cout << ex << std::endl;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>return EXIT_FAILURE;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span class="x_Apple-tab-span" style="white-space:pre"></span>}<span class="x_Apple-tab-span" style="white-space:pre">
</span></div>
<span id="ms-rterangepaste-end"></span><br>
<p></p>
</div>
</body>
</html>