InsightSoftwareConsortium / ITKThickness3D

An ITK module to compute 3D thickness
Apache License 2.0
39 stars 18 forks source link

Is this a seperate module? Or is this a sub-module of ITK? #49

Open Jingnan-Jia opened 1 year ago

Jingnan-Jia commented 1 year ago

python -m pip install itk-thickness3d could install this module, right? However, the implementation is:

import itk

input_filename = sys.argv[1]
output_filename = sys.argv[2]

image = itk.imread(input_filename)
thickness_map = itk.MedialThicknessImageFilter3D.New(image)

itk.imwrite(thickness_map, output_filename)

The above script only import itk, instead of itk-thickness3d. So I have two questions:

  1. Can I use the function itk.MedialThicknessImageFilter3D if I only import itk?
  2. Why I installed itk-thickness3d but I do not need to use it?
Jingnan-Jia commented 1 year ago

Or why did not merge this fantistic module to main ITK branch?

T4mmi commented 1 year ago

Hi ! ITK is designed in a way that when you install any itk-xxx module their own wheels are "installed" under the itk main package so their import is transparent and everythong is imported with the import itk