How to remove the black background from region of interest (gray scale& RGB)
Show older comments
Sir, i'm doing my project in image processing, i need to segment the nucleus from the histopathological image.. i've tried with colour cell segmentation code which is there in matlab help .. it works good... the thing i need is... i need to process only the gray scale value of the segmented region..
http://www.mathworks.in/help/images/examples/color-based-segmentation-using-k-means-clustering.html the image is as same as image in this help topic ans i've used the same code..
from the segmented region (ie segmented blue nuclei--last image)..i converted it into grayscale image and then i need to extract features such as texture (GLCM features),statistical features., and wavelet based features...
... i dont need the black background.. can u help me how to overcome this problem
4 Comments
Subha
on 15 Feb 2013
Image Analyst
on 15 Feb 2013
I thought Walter's response was as clever as it was hilarious. Evidently you didn't notice - hence the situation you're in now. It will be interesting/fun to see how this turns out.
Subha
on 15 Feb 2013
Image Analyst
on 15 Feb 2013
No, I'm not getting into that again. We never could get you to understand what "removing the background" means. Go back to that thread and take it up with Walter, if you want. So, did you do anything with my suggestion below?
Answers (1)
Image Analyst
on 15 Feb 2013
0 votes
You do know about entropyfilt(), var(), mean(), conv2(), and graycomatrix() don't you?
7 Comments
Subha
on 16 Feb 2013
Image Analyst
on 16 Feb 2013
Did you look in the help, and see if you can run the examples?
Subha
on 16 Feb 2013
Image Analyst
on 16 Feb 2013
What do you mean by "dialated"? And from the help:
I = imread('circuit.tif');
J = entropyfilt(I);
imshow(I), figure, imshow(J,[]);
Subha
on 19 Feb 2013
Image Analyst
on 19 Feb 2013
Yes, that might happen since as the window gets near the textured regions, the entropy starts to rise. It doesn't just rise when the central pixel is over the region.
Subha
on 20 Feb 2013
Categories
Find more on Texture Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!