[Insight-users] itkImageSeriesWriter strange problem
verenas at uni-koblenz.de
verenas at uni-koblenz.de
Thu Jan 11 04:47:18 EST 2007
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
> 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
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list