[ITK] [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.
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list