[Insight-users] Slice extraction in multiple axis

Luis Ibanez luis.ibanez at kitware.com
Thu Dec 13 18:49:33 EST 2007


Hi Wagner,

Two Questions:


1) What fileformat did you used for saving the slice images ?

2) What image viewer (software) are you using to display these
    resulting slice image files ?



It is very likely that:


A) you choose to save the image in a file format that does not
    support pixel spacing (e.g. PNG, JPEG...)

and/or

B) You are using an image viewer that does not take pixel
    spacing into account.


As a verification, in your slice extraction code you can
add the call:


   extractFilter->Update();
   std::cout << "Input volume characteristics" << std::endl;
   extractFilter->GetInput()->Print( std::cout );
   std::cout << "Output slice characteristics" << std::endl;
   extractFilter->GetOutput()->Print( std::cout );


and with this output you should be able to verify if the
original spacing of the image was respected on every slice.


Please let us know your answers to questions (1) and (2).


    Thanks


        Luis

------------------
Wagner Sales wrote:
> Hi all,
> 
> I'm extracting slices from DICOM datasets em multiple axis (X, Y, Z) by 
> using the ExtractImageFilter.
> The code are really simple, and based on the example provided in ITK 
> Software Guide.
> The slices in Z orientation (transversal) are fine, but the other axis ( 
> X and Y ) appears to be not ok. This axis have an aspect little bit 
> compressed.
> I was saved this images by using the ImageWriter to be sure that's not a 
> problem in visualization, and the problems occurs too.
> I'm attaching a screen shot of the tree axis to illustrate this.
> Can anyone helps me?
> 
> Thks in advance,
> 
> Wagner Sales
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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