<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I am working with MSVC2010, ITK4.3 and QT5.0.1 and I've got two
issues regarding the reading of images :<br>
<br>
1. The following code is extracted from
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType">http://www.itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType</a> makes
the program crashed on the fourth line :<br>
<br>
<i> std::string inputFilename = "vtk.png";</i><i><br>
</i><i> typedef itk::ImageIOBase::IOComponentType ScalarPixelType;</i><i><br>
</i><i> itk::ImageIOBase::Pointer imageIO =
itk::ImageIOFactory::CreateImageIO(inputFilename.c_str(),
itk::ImageIOFactory::ReadMode);</i><i><br>
</i><i> imageIO->SetFileName(inputFilename);</i><i><br>
</i><i> imageIO->ReadImageInformation();</i><br>
<br>
The image file exists in the current directory, and the result is
the same with a .jpeg or .png file.<br>
<br>
<br>
2. When including the file "itkTIFFImageIO.h"<br>
<i>#include <itkTIFFImageIO.h></i><br>
the project does not compile because of the following error :<br>
<br>
c:\appli\itk\include\itk-4.3\itktiff\tiff.h(31): fatal error C1083:
unable to open include : 'tif_config.h' : No such file or directory<br>
<br>
Indeed the file tif_config.h is not in the
"(CMAKE_INSTALL_PREFIX)\include\itk-4.3\itktif" directory whereas
the installation seemed to be OK. I don't have any problem with png
or jpeg files.<br>
<br>
Thank you for your help<br>
<br>
Françoise L.<br>
</body>
</html>