Split an image using a threshold
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Merve YILDIRIM
am 6 Jun. 2020
Beantwortet: Image Analyst
am 6 Jun. 2020
Hello, ı have image(2230*1949 double) . I want to Split an it to 2 image using a threshold value. How can i do?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 6 Jun. 2020
Try this
brightThings = grayImage > yourThresholdValue; % Creates a binary (logical) image.
imshow(brightThings);
props = regionprops(brightThings, 'All') % Measure a bunch of things about each bright blob.
Obviously, change variable names if you have to, to match what names you already have.
If you're just beginning image processing you really need to step through my Image Segmentation Tutorial in my File Exchange : http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862&sort=downloads_desc.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!