<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<small><font face="Helvetica, Arial, sans-serif">Hi,<br>
<br>
What is happening further up the pipeline before the <font
face="Courier New, Courier, monospace">itkImageSeriesWriter</font>?<br>
<br>
I have encountered this unexpected message when an upstream filter sets
the <font face="Courier New, Courier, monospace">RequestedRegion </font>to
something other than the <font face="Courier New, Courier, monospace">LargestPossibleRegion
</font>(for example if using an <font
face="Courier New, Courier, monospace">itkExtractImageFilter</font>).
If this is the case, then you will need to set the <font
face="Courier New, Courier, monospace">RequestedRegion </font>of the
image to the <font face="Courier New, Courier, monospace">LargestPossibleRegion
</font>before writing.<br>
<br>
HTH<br>
<br>
Dan<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:verenas@uni-koblenz.de">verenas@uni-koblenz.de</a> wrote:</font></small>
<blockquote
cite="mid52616.134.2.188.3.1168508838.squirrel@deliver.uni-koblenz.de"
type="cite">
<pre wrap="">Hi,
the error:
Description: itk::ERROR: ImageSeriesWriter(0x9a5d5b8): The number of
filenames passed is 100 but 50 were expected
occurs, when the filter you used previously changes the number of slices
of your original volume. You can try NumericSeriesFileNames or
DICOMSeriesFileNames to produce as much filenames as your new volume
requires.
hth,
verena
</pre>
<blockquote type="cite">
<pre wrap="">hi,
I did some operation to an image and finally I get
image = someFilter->GetOutput();
someFilter->Update();
image->Update();
//std::cout<<image<<std::endl;
{write the image by itkImageSeriesWriter}
The problem is: if block the std::cout line, then I get error message
while trying to write by itkImageSeriesWriter. Here is the error
message:
Exception thrown while reading the image
itk::ExceptionObject (0x99dbee0)
Location: "void itk::ImageSeriesWriter<TInputImage,
TOutputImage>::GenerateData() [with TInputImage = itk::Image<unsigned
char, 3u>, TOutputImage = itk::Image<unsigned char, 2u>]"
File: /mnt/drive3/itk/Insight/Code/IO/itkImageSeriesWriter.txx
Line: 314
Description: itk::ERROR: ImageSeriesWriter(0x9a5d5b8): The number of
filenames passed is 100 but 50 were expected
However, if the std::cout line is not blocked, then everything will be
fine. Why is that??? Thanks for your comments.
zl2k
_______________________________________________
Insight-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
Insight-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
</body>
</html>