[Insight-users] ImageIO or FILeReader or FIleWrite's problem,
Shunming Fang
shunm_fang at yahoo . com
Mon, 30 Jun 2003 14:21:57 -0700 (PDT)
If I just use one ImageIO to reader and
writer(supposed the input file and out file format is
the same), no problem. Only implmenting like the
following way, the segmentation happen before
writer->Update(), Yes, it is before writer->Update()
because try..Catch didn't catch the segmenataion.
I wander whether in itk, there are just one ImageIO
instance allowed?
Fang
--- Shunming Fang <shunm_fang at yahoo . com> wrote:
> Hello, itk_users:
> Thank your guys about smartpointer problem, that
> problem seems to be solved in my itkWrapFilter
> program, but another problem happen when I test this
> program, there is a segmentation when
> writer->Update().my code is similar to the
> fallowing:
> in main(0 function, I do the following thing:
> itk::ImageIOBase::Pointer inputImageIO;
> itk::ImageIOBase::Pointer outputImageIO;
> then, according to input file format and output file
> format:
> inputImageIO = itk::SpecificImageIO::New();
> outputImageIO = itk::SpecificImageIO::New();
> .
> .
> reader->setImageIO(inputImageIO);
> writer->setImageIO(outputImageIO);
> .
> .
> outputImage = itkWrapFilters(reader->GetOutput());
> writer->SetInput(outputImage);
> writer->Update();
>
>
> I use ddd to debug it, the segmentation happen in
> writer->Update() when the input and output file
> format
> is the same, I wander may there are some problems in
> declaring both inout and output ImageIO, anybody
> have
> some idea how to fix it?
> Thanks
> Fang
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc . yahoo . com
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc . yahoo . com