[Insight-users] Simple registration question (ImageRegistartion1.cxx )
Navneeth Subramanian
navneeth.s at gmail.com
Tue Sep 28 08:41:17 EDT 2010
The cause is seen in line 600:
resampler->SetDefaultPixelValue( 100 );
This is the value being applied during the interpolation of the moving image
based on the computed transform.
Change it & you're all set.
best,
navneeth
On Sat, Sep 25, 2010 at 1:13 AM, marco giordano <marco.giord at gmail.com>wrote:
> Yes, exactly the last slice of the registered image.
>
> Is there anyway to limit this effect?
>
> What if one adds empty slices on the lowest (highest) border? does that
> affect the registration?
>
> Thx
>
> 2010/9/24 Kishore Mosaliganti <kishoreraom at gmail.com>
>
> By last image, did you mean the last slice of the registered (moving)
>> image?
>>
>> If so, I think this is because of the image transform applied that
>> moves the image totally out of that image plane. It will happen to the
>> boundary slices usually.
>>
>> Kishore
>>
>> On Fri, Sep 24, 2010 at 10:56 AM, marco giordano <marco.giord at gmail.com>
>> wrote:
>> > Hi,
>> >
>> > I have a simple issue that I can not solve neither understand the cause
>> of
>> > it.
>> >
>> > I run the Example ImageRegistartion1.cxx on 2 3D CT images (256x256x11)
>> > modyfing the code to take into account the third dimension and float
>> number
>> > for representation.
>> >
>> > Output looks like this:
>> >
>> > ....
>> > 25 = 104.112 : [0.097946, -0.00159973, 0.00035025]
>> > 26 = 104.082 : [0.0979543, -0.00155174, 0.000494857]
>> > Result =
>> > Translation X = 0.0979543
>> > Translation Y = -0.00155174
>> > Translation Z = 0.000494857
>> > Iterations = 28
>> > Metric value = 104.135
>> >
>> > Registration runs succeffully but I notice in my registrated image that
>> the
>> > last slice (slice Number 11) is all set to the Deafult Value 100.
>> >
>> > Is that due to the interpolation or something I did not specify in my
>> code?
>> >
>> > Is it possible to avoid this effect?
>> >
>> > Thank you very much.
>> >
>> >
>> > --
>> > M. Giordano
>> >
>> >
>> > _____________________________________
>> > 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.html
>> >
>> > 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://www.itk.org/mailman/listinfo/insight-users
>> >
>> >
>>
>
>
>
> --
> Marco Giordano
>
>
> _____________________________________
> 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.html
>
> 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://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100928/f1af080a/attachment.htm>
More information about the Insight-users
mailing list