[Insight-users] Insight-users Digest, Vol 58, Issue 4 Subject: Re: Upsamplig

Serena Fabbri fabbri at u.washington.edu
Tue Feb 3 21:13:01 EST 2009


Hi Luis,
thanks for your prompt answer.
I have understood the trouble....the code is ok, the error is in my image.
So thanks to suggest me to use another visualization application.

Thanks again.

Serena.



>
> Message: 6
> Date: Mon, 02 Feb 2009 21:27:02 -0500
> From: Luis Ibanez <luis.ibanez at kitware.com>
> Subject: Re: [Insight-users] Upsamplig
> To: Serena Fabbri <fabbri at u.washington.edu>
> Cc: itk <insight-users at itk.org>
> Message-ID: <4987AB76.3060507 at kitware.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>
> 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
>>
>





More information about the Insight-users mailing list