[Insight-users] itkImageSeriesWriter strange problem
Dan Mueller
d.mueller at qut.edu.au
Thu Jan 11 15:01:26 EST 2007
Hi,
What is happening further up the pipeline before the itkImageSeriesWriter?
I have encountered this unexpected message when an upstream filter sets
the RequestedRegion to something other than the LargestPossibleRegion
(for example if using an itkExtractImageFilter). If this is the case,
then you will need to set the RequestedRegion of the image to the
LargestPossibleRegion before writing.
HTH
Dan
verenas at uni-koblenz.de wrote:
> 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
>>
>>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070112/e8cd2b81/attachment.html
More information about the Insight-users
mailing list