[ITK-users] Problem with writing

SiavashK siavashk at ece.ubc.ca
Mon Jul 6 13:30:15 EDT 2015


1. What is the format of the filename that you are trying to read and the one
that you are trying to write out too? unsigned short might not be the best
pixel type.

2. What are the dimensions of the input, is it a 2D image or 3D?

3. Try placing the reader and writer in a try-catch statement to see if an
exception is thrown. Something like this:

try
{
	reader->Update();
}
catch (itk::ExceptionObject &excp)
{
	std::cout << excp << std::endl;
	return EXIT_FAILURE;
}

try
{
	writer->Update();
}
catch (itk::ExceptionObject &excp)
{
	std::cout << excp << std::endl;
	return EXIT_FAILURE;
}



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Problem-with-writing-tp7587545p7587547.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list