Line detect the length of a pixel in image processing
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
roya a
am 29 Jun. 2014
Kommentiert: roya a
am 30 Jun. 2014
Hi, I have one image with a lot of vertical lines. I want to know number of lines and length of each of the lines. Please help me. Thanks
2 Kommentare
Image Analyst
am 29 Jun. 2014
Here's some help: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Usually when people want advice on image analysis, they attach and image. That would explain a lot, like whether the image is gray scale, color, computer graphics, blurry, lines are wiggly, etc. What can we say until we see your image?
Akzeptierte Antwort
Image Analyst
am 29 Jun. 2014
There are thousands of vertical lines there, if you call a vertical line a series of white pixels in a single column with no breaks in it. You can count them simply by labeling the image using 4-connectivity
[labeledImage, numberOfRegions] = bwlabel(binaryImage, 4);
Now, some of those white blobs may be horizontal, or rounded blobs, so you might want to call regionprops and check the PixelIdxList property to make sure all the pixels in each blob are in the same column. Use unique on the x (column) coordinates for that.
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Computer Vision with Simulink finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
