Hello,
I am a MATLAB newbie. I have a school task in which I received an xray of a head in lateral position in order to segment a tumor and calculate it's area and centroid.
I used
imbinarize_image_adaptative = imbinarize(tumorP,"adaptive","ForegroundPolarity","bright","Sensitivity",0.3); to obtain a threshold image and image_thres_adapt_remove = bwareaopen(imbinarize_image_adaptative,4150,6); to remove details. However i am fraid that i have removed too much information from the picture. I add here the picture resulting from threshold and bwareaopen.
I was told by my professor to use erosion and dilation to try obtain an image where I can apply the existent functions to calculate the area and centroid. I was told that the tumor needs to have a higher brightness to use them.
I have tried different strels and I subtracted the image from the erosion (B) from the image resulting from bwareaopen however, I always have the edges of the skull so I don't really know what to anymore. Can someone help me?
I don't want to remove so much information but at the same time I don't know how to obtain an image that enables me to do the calculations otherwise.