<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-flowed"
style="font-family: -moz-fixed; font-size: 13px;" lang="x-western"><b>Hi,
I'm trying to read a series of TIFF images captured with a confocal
microscope, but ITK give me this error message.
<br>
Error Message:
<br>
</b><br>
------------------------------------------------------------------<br>
TIFFReadDirectory: Warning,
e:/Documentos/Universidad/Data/ch0/t01_001.tif: unknown field with tag
33923 (0x8483) encountered.
<br>
------------------------------------------------------------------<br>
<br>
<b>I send also a link to the images I'm trying to read.<br>
<a class="moz-txt-link-freetext"
href="http://us.f13.yahoofs.com/bc/4415f191ma8e3b5a7/bc/Imagenes/images.zip?bf8ybWEBPx7Z_y9k">http://us.f13.yahoofs.com/bc/4415f191ma8e3b5a7/bc/Imagenes/images.zip?bf8ybWEBPx7Z_y9k</a>
</b><br>
<br>
------------------------------------------------------------------<br>
Print of the reader:
<br>
NumericSeriesFileNames (01729180)
<br>
RTTI typeinfo: class itk::NumericSeriesFileNames
<br>
Reference Count: 2
<br>
Modified Time: 13
<br>
Debug: Off
<br>
Observers:
<br>
none
<br>
StartIndex: 0
<br>
EndIndex: 1
<br>
IncrementIndex: 1
<br>
SeriesFormat: e:/Documentos/Universidad/Data/ch0/t01_%03d.tif
<br>
Filenames[0]: e:/Documentos/Universidad/Data/ch0/t01_000.tif
<br>
Filenames[1]: e:/Documentos/Universidad/Data/ch0/t01_001.tif
<br>
------------------------------------------------------------------<br>
<br>
<b><br>
The code I use to read the volumen is:
</b><br>
<br>
------------------------------------------------------------------<br>
const unsigned char Dimension = 3;
<br>
typedef unsigned char PixelType;
<br>
typedef itk::Image< PixelType, Dimension > ImageType;
<br>
<br>
ImageType::Pointer LoadImage( const char * fileNameFormat, int first,
int last )
<br>
{
<br>
typedef itk::ImageSeriesReader< ImageType > ReaderType;
<br>
ReaderType::Pointer reader;
<br>
ImageType::Pointer image;
<br>
<br>
reader = ReaderType::New();
<br>
<br>
reader->SetImageIO(itk::TIFFImageIO::New());
<br>
reader->SetFileName(fileNameFormat);
<br>
<br>
<br>
typedef itk::NumericSeriesFileNames NameGeneratorType;
<br>
NameGeneratorType::Pointer nameGenerator = NameGeneratorType::New();
<br>
<br>
nameGenerator->SetSeriesFormat( fileNameFormat );
<br>
nameGenerator->SetStartIndex( first );
<br>
nameGenerator->SetEndIndex( last );
<br>
nameGenerator->SetIncrementIndex( 1 );
<br>
<br>
reader->SetFileNames( nameGenerator->GetFileNames() ); <br>
std::cout << nameGenerator << std::endl;
<br>
<br>
try
<br>
{
<br>
reader->Update(); }
<br>
catch( itk::ExceptionObject &e )
<br>
{
<br>
std::cout<<e<<std::endl;
<br>
}
<br>
<br>
image = reader->GetOutput();
<br>
<br>
return image;
<br>
}
<br>
------------------------------------------------------------------<br>
<br>
<b>And if I use the itkLSMImageIO object and the file has .lsm
extension I get the folowing message:
</b><br>
<br>
------------------------------------------------------------------<br>
TIFFFieldWithTag: Internal error, unknown tag 0x866c.
<br>
Assertion failed: fip != NULL, file
E:\lenguajes\Insight\Utilities\tiff\tif_dirinfo.c, line 468
<br>
<br>
abnormal program termination
<br>
------------------------------------------------------------------<br>
<br>
<b>if the file has .tif extension the error is:
<br>
</b><br>
------------------------------------------------------------------<br>
itk::ExceptionObject (0117FBE0)
<br>
Location: "unknown"
<br>
File: E:\lenguajes\Insight\Code\IO\itkTIFFImageIO.cxx
<br>
Line: 1092
<br>
Description: itk::ERROR: LSMImageIO(017290B0): Cannot open the file!
<br>
------------------------------------------------------------------<br>
<br>
<b>Does anyone know how to read this image format or if I'm missing
something?
<br>
<br>
Thanks.
<br>
Camilo.
<br>
</b>
<br>
</div>
</body>
</html>