[ITK] IKT ThresholdSegmentationLevelSetFilter does not give expected output with 3D data
Timothee Evain
tevain at telecom-paristech.fr
Mon Sep 19 04:33:12 EDT 2016
Hi,
That error means that your inputs do not have the same origin, so they don't overlap.
I guess this comes from the fact you are only setting the size for the FastMarching output (line 124).
You should set the origin, the spacing and the direction as well.
It's worked in 2D probably because the input image had a [0,0] origin, which is the default also.
HTH,
Tim
----- Mail original -----
De: "riddhish bhalodia" <riddhishb at gmail.com>
À: community at itk.org
Envoyé: Samedi 17 Septembre 2016 01:53:21
Objet: [ITK] IKT ThresholdSegmentationLevelSetFilter does not give expected output with 3D data
Hello
I have been trying to use ThresholdSegmentationLevelSetFilter.py with a NIFTY volume, and I have modified the example code (which works perfectly for 2D) to incorporate 3D data.
It gives a strange error
InputImage Origin: [0.0000000e+00, 0.0000000e+00, 0.0000000e+00], InputImage_1 Origin: [9.8000000e+01, 1.3400000e+02, -7.2000000e+01]
Tolerance: 1.0000000e-06
InputImage Direction: 1.0000000e+00 0.0000000e+00 0.0000000e+00
0.0000000e+00 1.0000000e+00 0.0000000e+00
0.0000000e+00 0.0000000e+00 1.0000000e+00
, InputImage_1 Direction: -1.0000000e+00 0.0000000e+00 0.0000000e+00
0.0000000e+00 -1.0000000e+00 0.0000000e+00
0.0000000e+00 0.0000000e+00 1.0000000e+00
Tolerance: 1.0000000e-06
This is resulting as the writer does not have any output at all.
I cant seem to find anything wrong with the code I have written https://gist.github.com/riddhishb/c12b70e25a7c2e727a3bc62ee27960d7
Any help in this aspect will be appreciated
Thank You
Regards
--
Riddhish Bhalodia
_______________________________________________
Community mailing list
Community at itk.org
http://public.kitware.com/mailman/listinfo/community
More information about the Community
mailing list