[Insight-users] Re-sort a 3D Volume
Roger Bramon Feixas
rogerbramon at gmail.com
Thu Apr 5 11:06:04 EDT 2007
Hi,
Thanks but it doesn't solve the problem. I tried doing an Update
before the PushBackInput and I also tried after it...
Has anyone got another solution about the problem?
Thanks
Roger
2007/4/5, Bill Lorensen <wlorens1 at nycap.rr.com>:
> Roger,
>
> Try doing an Update on each ExtractImageFilter before the PushBackInput. I
> suspect a bug in the pipeline processing. I notice that the tests both do
> an Update before setting the poutputs.
>
> Bill
>
> At 03:34 AM 4/5/2007, Roger Bramon Feixas wrote:
> >Hi,
> >
> >I need to re-order the slices of a 3D volume. I tried to extract 2D
> >slices using a "itkExtractImageFilter" and create a new volume using
> >"itkTileImageFilter" but it doesn't work. The extraction works good
> >because I write the output in an image and it's correct. The problem
> >is in "itkTileImageFilter". I receive data empty error when I want to
> >use tileImageFilter output. That is my algorism:
> >
> >before the loop:
> >
> > - I instantiate the TileImageFilter
> > - I set the layout in 1,1,0
> >
> >into the loop over the images:
> >
> > - I allocated a different ExtractImageFilter for each image
> > - I fed the TileImageFilter with the output of each different
> >ExtractImageFilter: tileFilter->PushBackInput( extractFilter- >GetOutput()
> >). I also tried to do that using: tileFilter->SetInput ( i,
> >extractFilter->GetOutput() )
> >
> >after the loop:
> >
> > TileImageFilter->Update();
> >
> >After the loop, the layout is : 1,1,X where X is the number of slices
> >that I pushed. Also, I read in a insight-user mail that they solved a
> >similar problem saving all of ExtractimageFilter objects in a vector
> >but in my way it doesn't work.
> >
> >I hope anybody know anything about my problem.
> >
> >
> >Thanks,
> >
> >Roger
> >
> >_______________________________________________
> >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