# Suggestion for Module Extension Development with SimpleITK and ITK-elastix

**URL:** <https://discourse.slicer.org/t/suggestion-for-module-extension-development-with-simpleitk-and-itk-elastix/31300>\
**Category:** Development\
**Tags:** extensions-manager, python, itk-python\
**Created:** [August 22, 2023, 7:53pm UTC](https://discourse.slicer.org/t/suggestion-for-module-extension-development-with-simpleitk-and-itk-elastix/31300 "2023-08-22T19:53:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![calici](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@calici](https://discourse.slicer.org/u/calici)\
**Post date:** [August 22, 2023, 7:53pm UTC](https://discourse.slicer.org/t/suggestion-for-module-extension-development-with-simpleitk-and-itk-elastix/31300/1 "2023-08-22T19:53:57Z")

</div>

Hi,

I would like to develop a module extension in 3D slicer for projecting planned needle trajectories to current image by registering pre-operative CT to intra-operative CT.

I have already object-oriented python scripts with many classes and functions for registration, image processing and visualization. For image processing I am using SimpleITK functions and for registration I am using itk-elastix.

I would like to incorporate all these functionalities in this module. However I am having a bit hard time to constuct general pipeline.

My first idea was to install SimpleITK and itk-elastix packages and write everything in the Logic class but I could not install itk-elastix. Since there is already Elastix module in Slicer, I guess I can use that module in my custom module.

What would be your suggestions for creating such an extension?

How can I bundle my module with external python packages for example itk-elastix?

Thank you!
