Edge Detection - Automatic/Adaptive Thresholding by scanning of image
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Akhilesh Singh
am 7 Feb. 2014
Kommentiert: Rena Berman
am 24 Jan. 2017
*Sir, i want to find out following points in my images:
1. convert the jpg to black/white or grayscale.
2. Make the size of all the figs. equal.
3. Take left hand bottom corner as origin.
4. scan left to right and bottom to top.
5. scan for intensities > threshold values [Note their position(coordinates) in an array]
6. After the entire fig is scanned, find the area with help of the(which i find the coordinates)coordinates.*
1 Kommentar
Akzeptierte Antwort
Image Analyst
am 7 Feb. 2014
Your post keeps getting smaller and smaller. If I wait long enough it may disappear entirely, which would be okay since it is (or was) essentially the same as your other question. But to answer this one
- grayImage = rgb2gray(jpgImage);
- Use imresize()
- Unneeded
- Unneeded
- binaryImage = grayImage > thresholdValue. This does the whole image in one shot - no need to do any scanning, starting from the corner or anywhere else. "Positions" are encoded into binaryImage.
- area = sum(binaryImage(:))
1 Kommentar
Image Analyst
am 8 Feb. 2014
You're welcome. But I don't understand the grammar of what you say after the comma.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox 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!