how to plot a histogram with "Image Row" & "Number of edges in each row"?
2 次查看(过去 30 天)
显示 更早的评论
I am using Sobel method to find vertical Edge of an image. after that I need a histogram that show me "Image Row" in Horizon Axis & show me "Number of edges in each row" in horizon axis. how to do it? the attached image is the histogram that I want(that is for understanding the problem)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/152894/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/152895/image.jpeg)
this is the picture that I want to extract from it
0 个评论
回答(1 个)
Image Analyst
2013-11-8
You have to define what intensity in the edge detection image constitutes an edge. Maybe it's 20, or 5 or 40 or whatever. The lower the number, the more and bigger edges you will be defining. Let's say that you're going to say if the edge image is more than 10, it's an edge. Then to create the image you showed, you just do
binaryImage = edgeImage > 10;
imshow(binaryImage);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!