How can I debug the Basic Module of 3D Slicer?

I am making my moudle via 3D Slicer. I want to save text file of HounsFiled Unit that I had segmented by using Segmentation , Segmentation Editor in 3D Slicer.
but I don’t know segmentation algorithm well. so I tried to debug Segmentation module this way .

but I can’t find AdditionalLauncherSettings.ini in C:\D\S4RS\Slicer-build\Modules\Loadable\Segmentations.

When I debug my moudle , there was a AdditionalLauncherSettings.ini in my moudle’s directory.

Thanks for reading, have a nice day!

I am working on Windows10,Visual Studio2019 , Slicer-master (Release).

I want hounsfield unit value of the blue part of the 3D View in the picture and save the text file.
I’m also curious about the algorithm until the segmented image is displayed in the 3D View on the right. I’ve read the MRML node part, but I’m not sure how to debug it. If only the segmented video part is accessible in my module, I want to save only the HU value of the necessary area separately.

Getting intensity values, computing histogram, etc. is the easiest to do in Python (it takes about 5 lines of code). See a full example in the script repository.

No additional launcher settings are needed for core modules, such as Segmentations (they are included in the regular launcher settings).

@lassoan Thank you for your kind reply every time. :slight_smile:

I’ll try through the link you wrote.

I’m not familiar with other languages, platforms, andides other than c++ and Visual Studio, so I’m reading and studying the Slicer document part every day about the loadable module.Please understand that there are many questions.

How is it possible when I use the results I’ve processed in another module in My module? I’ve read the MRML node part, but I don’t know how to use it. Can you do Slicer Tutorial with Video or Picture?

Not to say there is anything bad or wrong with C++, but it will be very valuable to your understanding of 3D Slicer to learn the python interface. It allows you to probe the structure of the program and understand the architecture in ways that are effectively impossible to do with C++. Working through the python tutorials will help you even if you ultimately develop your cod in C++.

I thought it was necessary to learn python by simply modifying the logic of storing HU as a txt file, referring to the place where Lasoan linked yesterday.

I tried to write the code script repository and checked the HU for test logic semented volume from import sampledata.
how can I do for volume that I segmented by using segmented module and volume??

If I do make segmented volume and I want to get its HU,How do I write the code??
When I use import SampleData , I get only SampleData’s HU…

Thanks for your reply.
If I want to use Slicer’s scene or segmentation or volume etc…
What can I use library or header or class and How can I use that (ex : #include <opencv2/opencv.hpp> cv::Mat test …) or refer this??

this mean I want segmented volume’s HU not sampleData’s HU like this picture (HU at x,y,z,HU)