[Insight-users] Upsamplig
Luis Ibanez
luis.ibanez at kitware.com
Mon Feb 2 21:27:02 EST 2009
Hi Serena,
What application are you using for visualizing your images ?
You should try an visualization application that takes
image spacing into account.
One of the best options is Slicer
http://www.slicer.org
You could load into Slicer both your initial image and
the resampled image, and then compare them to see if they
have the same *physical* size.
Another option is to save your two images as MetaImages,
or VTK images, and then upload them in to ParaView.
http://www.paraview.org
Where they will also be presented by taking the spacing
into account.
Please let us know what your find,
Thanks
Luis
--------------------
Serena Fabbri wrote:
>
> Hi All,
> I have a problem with ResampleImageFilter.
> I want up-sampling a 2D MR DICOM image.
> My image is 176x256 spacing=(1;1) origin=(1;0) and i want to obtain
> 392x512 DICOM image.
> I am setting spacing=(1*176/392; 1*256/512) and same origin=(1;0).
> I utilize IdentityTransform with SetIdentity( ) and
> LinearInterpolateImageFunction.
> The problem is that output image looks enlarged than the original one.
>
> Where do i made a mistake?
>
> Thanks a lot.
>
> Serena
>
>
>
> _______________________________________________
> 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