[ITK-users] Write a result image witout resampling

suneeza hanif suneezahanif02 at gmail.com
Thu Feb 11 11:16:57 EST 2016


Hello Simon,

Thank you for your reply.

The problem is after doing registration, the transformed image is written
in a file. The quality of transformed image is not same as moving image.
When I change the window and level of an image then it look similar.

Best Regards,
Suneeza

On Thu, Feb 11, 2016 at 4:41 PM, Simon Alexander <skalexander at gmail.com>
wrote:

> In general it is only going to be possible to avoid re-sampling when your
> transform is strictly rigid (i.e. the sampling lattice of the image can be
> rigidly transformed and remain regularly shaped).   Rescaling the intensity
> is a completely different issue, but can be used to avoid introducing extra
> quantization error, for example if you use floating point images in ways
> that will adjust the value range and then casting them to an integer type.
>
> What are you trying to achieve?
>
> On Wed, 10 Feb 2016 at 16:57 suneeza hanif <suneezahanif02 at gmail.com>
> wrote:
>
>> Hello Gabriel,
>>
>> I have same problem when I do re-sampling, image quality is not same as
>> before. You mentioned that you changed the cast filter type to  RescaleIntensityImageFilter
>> type but when I tried to change it I got an error. As  RescaleIntensityImageFilter
>> type already contains input and output image type and casting filter type
>> also needs input and output image type.
>>
>> Can you please tell me in detail how did you manage to get the desired
>> results. This would be of great help.
>>
>> Thanks.
>>
>> Best Regards,
>> Suneeza
>>
>> On Tue, Jan 26, 2016 at 6:57 PM, Gabriel A. Giménez <
>> gabrielgimenez85 at gmail.com> wrote:
>>
>>> Thanks Dženan Zukić...., I changed the cast filter type
>>> to RescaleIntensityImageFilter and I got the expected result.
>>>
>>> Best Regards...
>>>
>>> 2016-01-10 16:22 GMT-03:00 Dženan Zukić <dzenanz at gmail.com>:
>>>
>>>> Hi Gabriel,
>>>>
>>>> you probably need to use interpolation method of a higher quality for
>>>> the final resampling, i.e. windowed sinc
>>>> <http://www.itk.org/Doxygen/html/classitk_1_1WindowedSincInterpolateImageFunction.html>
>>>> instead of linear
>>>> <http://www.itk.org/Doxygen/html/classitk_1_1LinearInterpolateImageFunction.html>
>>>> .
>>>>
>>>> Regards,
>>>> Dženan
>>>>
>>>> On Fri, Jan 8, 2016 at 9:17 PM, Gabriel A. Giménez <
>>>> gabrielgimenez85 at gmail.com> wrote:
>>>>
>>>>> Hi everyone...how are you ?
>>>>>
>>>>> I'm going to point, to finish the registration process build the new
>>>>> transformed fixed image (based on the manual examples), but the quality of
>>>>> the generated image is degraded...how I can create a new image with the
>>>>> same quality as the original image? I just need to apply the transformation
>>>>> parameters.
>>>>>
>>>>> Regards and thanks in advance,
>>>>>
>>>>> --
>>>>> *Gabriel Alberto Giménez.*
>>>>>
>>>>> _____________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Kitware offers ITK Training Courses, for more information visit:
>>>>> http://www.kitware.com/products/protraining.php
>>>>>
>>>>> Please keep messages on-topic and check the ITK FAQ at:
>>>>> http://www.itk.org/Wiki/ITK_FAQ
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://public.kitware.com/mailman/listinfo/insight-users
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> *Gabriel Alberto Giménez.*
>>>
>>> _____________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://www.kitware.com/products/protraining.php
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/insight-users
>>>
>>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/insight-users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20160211/22ae38bb/attachment.html>


More information about the Insight-users mailing list