# How to call twoprojectionregistration module in slicer?

**URL:** <https://discourse.slicer.org/t/how-to-call-twoprojectionregistration-module-in-slicer/9434>\
**Category:** Development\
**Tags:** registration, extensions-manager, python\
**Created:** [December 8, 2019, 5:23pm UTC](https://discourse.slicer.org/t/how-to-call-twoprojectionregistration-module-in-slicer/9434 "2019-12-08T17:23:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![James753](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/james753/32/5368_2.png) [@James753](https://discourse.slicer.org/u/James753)\
**Post date:** [December 8, 2019, 5:23pm UTC](https://discourse.slicer.org/t/how-to-call-twoprojectionregistration-module-in-slicer/9434/1 "2019-12-08T17:23:07Z")

</div>

Hi,

I am developing a registration extension recently.  
And I am going to use a remote-module in itk which is twoprojectionregistration module.  
And I can not find this module in slicer library.  
I was wondering if there is a way to call this module from itk which I built already outside slicer.  
Or I need to develop a new module with twoprojectionregistration module in c++, and calling from python script in slicer.  
Please give me some hint or suggestion.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 9, 2019, 5:20am UTC](https://discourse.slicer.org/t/how-to-call-twoprojectionregistration-module-in-slicer/9434/2 "2019-12-09T05:20:35Z")

</div>

One option is to build Slicer on your computer and one it’s done, configure ITK with Module\_TwoProjectionRegistration:BOOL=ON and start the build again.

If you are not comfortable with C++ then you can install twoprojectionregistration as a python package (`pip_install('itk-twoprojectionregistration')`) - this requires recent Slicer Preview Release.

Once you confirmed that twoprojectionregistration works well then let us know and we’ll find a good way of making it available for your extension (build the ITK external module in your extension, or add this external module to Slicer core, etc.).

---

<div class="post-metadata">

**Author:** ![James753](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/james753/32/5368_2.png) [@James753](https://discourse.slicer.org/u/James753)\
**Post date:** [December 9, 2019, 5:54am UTC](https://discourse.slicer.org/t/how-to-call-twoprojectionregistration-module-in-slicer/9434/3 "2019-12-09T05:54:53Z")

</div>

> [@lassoan](#):
>
> One option is to build Slicer on your computer and one it’s done, configure ITK with Module\_TwoProjectionRegistration:BOOL=ON and start the build again.

Thank you for your reply.  
I will try it, and let you know the result.
