Discussion:
[ITK-users] How to get the displacementfield from compositetransform?
wangtaoiz
2017-03-27 04:29:57 UTC
Permalink
Dear all:
Here I have this question, I have several transforms and I added
them to be a compositetransform, finally I want to get the displacementfield
vectors form the compositetransform? How can I make it?

Thanks a lot
Wang



--
View this message in context: http://itk-users.7.n7.nabble.com/How-to-get-the-displacementfield-from-compositetransform-tp38035.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
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
Francois Budin
2017-03-27 13:26:47 UTC
Permalink
Hello Wang,

You can use the filter described in [1]. It can convert any ITK transform
into a displacement field.

Hope this helps,
Francois

[1]
https://itk.org/Doxygen/html/classitk_1_1TransformToDisplacementFieldFilter.html
Post by wangtaoiz
Here I have this question, I have several transforms and I added
them to be a compositetransform, finally I want to get the
displacementfield
vectors form the compositetransform? How can I make it?
Thanks a lot
Wang
--
View this message in context: http://itk-users.7.n7.nabble.
com/How-to-get-the-displacementfield-from-compositetransform-tp38035.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
wangtaoiz
2017-03-27 14:12:38 UTC
Permalink
Thanks for your reply, I have tryed the TransformToDisplacementFieldFilter
but the program throw a exception in run time, I wondered if it becaues the
input transform is a compositetransform and it can not directly be
transfered. Actually I just want to get the combination of the
displacementfield in a compositetransform.

Wang



--
View this message in context: http://itk-users.7.n7.nabble.com/How-to-get-the-displacementfield-from-compositetransform-tp38035p38043.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
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
wangtaoiz
2017-03-27 14:28:10 UTC
Permalink
For instance, I have transforms A, B, C after registration. Then I used these
transforms, the codes should be:
...
A.AddTransform(B);
A.AddTransform(C);
...
Resample.SetTransform(A);
...

In this way, I sequentially used transform A, then B and finally C. Now I
want the get the combined transform scalar value directly, so I asked if
there is a to get the displacementfield by these compositetransform. Hope
for some guidances!

Thanks
Wang



--
View this message in context: http://itk-users.7.n7.nabble.com/How-to-get-the-displacementfield-from-compositetransform-tp38035p38044.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
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
Francois Budin
2017-03-27 17:36:35 UTC
Permalink
Hello Wang,

What was the exception message that you were getting? Did you try the
TransformToDisplacementFieldFilter with only one simple transform (such as
an affine transform) to see if your implementation was working in that
case? Did you specify a size or a reference image for the
TransformToDisplacementFieldFilter?

Hope this helps,
Francois
Post by wangtaoiz
For instance, I have transforms A, B, C after registration. Then I used these
...
A.AddTransform(B);
A.AddTransform(C);
...
Resample.SetTransform(A);
...
In this way, I sequentially used transform A, then B and finally C. Now I
want the get the combined transform scalar value directly, so I asked if
there is a to get the displacementfield by these compositetransform. Hope
for some guidances!
Thanks
Wang
--
View this message in context: http://itk-users.7.n7.nabble.
com/How-to-get-the-displacementfield-from-compositetransform-
tp38035p38044.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
wangtaoiz
2017-03-28 00:35:10 UTC
Permalink
Yeah, I followed your advice and it really worked. Use the filter to get a
displacementfield image and the saclars are really what I want, Thank you!
Wang



--
View this message in context: http://itk-users.7.n7.nabble.com/How-to-get-the-displacementfield-from-compositetransform-tp38035p38046.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
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
Francois Budin
2017-03-28 13:30:45 UTC
Permalink
Glad I could help. Enjoy using ITK, and feel free to contribute if you find
things to improve.

Francois
Post by wangtaoiz
Yeah, I followed your advice and it really worked. Use the filter to get a
displacementfield image and the saclars are really what I want, Thank you!
Wang
--
View this message in context: http://itk-users.7.n7.nabble.
com/How-to-get-the-displacementfield-from-compositetransform-
tp38035p38046.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
Loading...