how can I crop a region of RGB image based on pixel value?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nima
am 19 Sep. 2014
Kommentiert: Image Analyst
am 19 Sep. 2014
hey, I have a RGB image (attached). I need to crop the region that has color only, and remove the bright surrounding part. for this reason I used threshold (pixel value= 215) as follows, however this results in a vector which is not desired. I need the color region to be remained as an new RGB image...
original= imread('filename'); original= original(original<215);
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 19 Sep. 2014
Since the regions may not be rectangular, which is required for a crop, you'll have to mask the areas. See my File Exchange for several color segmentation demos that can do that: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
1 Kommentar
Image Analyst
am 19 Sep. 2014
Attached are three masking demos.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Feature Detection and Extraction finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!