[Insight-users] problem with tif image size
Luis Ibanez
luis.ibanez at kitware.com
Mon Oct 24 23:10:25 EDT 2005
Hi Onezero,
Please look at the multiple examples on the use of the
ResampleImageFilter that are presented in the ITK Software Guide
http://www.itk.org/ItkSoftwareGuide.pdf
Note that you specify to the ResampleImageFilter the size and
grid-sampling characteristics of the output image.
The code for all the Examples described in the software guide
can be found in the directory:
Insight/Examples
If you continue experiencing any problems, please post to this
list a minimal (yet complete) piece of your code that illustrates
the problem that you are facing.
Note that when talking about the "image size" you *MUST* make
the distinction between the number of pixels in the image, and
the physical size of this image in millimeters once that yuo
take the pixel spacing into account. This is discussed in detail
in the ITK Software Guide.
Regards,
Luis
----------------
OnezerO wrote:
> Hello,
>
> I'm building an example for a university's project, my example needs
> (for matters of performance) a set of slices in a tiff image of 128x128
> pixels, i've downloaded a group o DCM files, with the use of
> DicomSeriesReadImageWrite2 example with somes changes i generate a 3D
> tiff image but is not of 128x128 pixels, i try to use the
> ResampleImageFilter for take this generated tiff and try to shrink it,
> but it's break because of a memory allocation problem.
>
> Somebody know another way to change the size of a tiff image? i also try
> to use image software but i lose the slices.
>
> Thanks
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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