How to segment the area of interest in the image

i am a beginer of the ITK, as the title, i want to segment the specified region of the image , how can i do?

In the most general form, as you stated here, it is an unsolved problem. See Wikipedia article. Many constraints are needed in order for it to be tractable. Image modality, organ of interest, tissue of interest, etc are all common constraints.

1 Like

thank you for your relpy, maybe i did not make myself clear.
i want to use OtsuThresholdImageFilter to segment lung, first , i have already distinguish the body and background by OtsuThresholdImageFilter, than i want to segment lung from the body part which is the result of the first step. my question is how to use OtsuThresholdImageFilter just on the body pixels.

by the way, i process 2D image.

I seem to have solved the problem,use the member function SetMaskImage and SetMaskValue of OtsuThresholdImageFilter

1 Like