[Insight-users] Problem Loading an image CT
Alexandra La Cruz
alacruz at cg . tuwien . ac . at
Fri, 5 Jul 2002 19:54:43 +0200
Hi,
I tryin to load an image CT, this image can be loaded in other aplication
using OpenGL. Now I would like to move to use itk library.
This is the information of file
Loading Finished: (HOURS:MINUTES:SECONDS): 00:00:07
Duration in ms: 7703
Transferrate in MB/s: 8.016357
xSize: 256, ySize: 256, zSize: 494, zScale:2.000000
File read correctly. Init Window handle
Textursize: 2048
And I used:
typedef itk::Image< char, 3 > myImageType;
typedef itk::ImageFileReader< myImageType > myImageReader;
myImageReader::Pointer imageReader = myImageReader::New();
std::cout <<"Getting file"<<std::endl;
imageReader->SetFileName("test.dat");
try{
imageReader->Update();
}
catch (itk::ExceptionObject & e)
{
std::cerr << "exception in file reader " << std::endl;
std::cerr << e.GetDescription() << std::endl;
std::cerr << e.GetLocation() << std::endl;
return EXIT_FAILURE;
}
std::cout <<"Done with file"<<std::endl;
In order to read the file.
But I have this exception:
----
Getting file
exception in file reader
Could not create IO object for file test.dat
Unknown
----
Could some one help me? what it is the problem?
I will thanks your valious help
Greetings
ALC
--------------------------------------------------------------
Alexandra La Cruz
Institute of Computer Graphics and Algorithms
Vienna University of Technology
mailto:alacruz@cg.tuwien.ac.at
http://www.cg.tuwien.ac.at/staff/AlexandraLaCruz.html
Tel.: +43 1 58801-18670 Fax: +43 1 58801-18698
--------------------------------------------------------------