horizontal and vertical histogram of a given image.
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167229/image.png)
This is an image showing the two occluding objects edges detected now i want to find the horizontal histogram of the given image and want to split it.Please anybody can help. 58X105 is imaged size
0 件のコメント
回答 (1 件)
Image Analyst
2017 年 9 月 16 日
What do you mean by horizontal histogram? A histogram is the frequency of occurrence vs. gray level? Do you actually mean profile, which is the sum of all gray levels as a function of distance? If so
horizontalProfile = sum(grayImage, 1); % Sum vertically to produce the horizontal profile.
verticalProfile = sum(grayImage, 2); % Sum horizontally to produce the vertical profile.
6 件のコメント
Image Analyst
2017 年 9 月 19 日
Why? If all you have are edges, for some reason, then fill them to create solid blobs, and then use watershed.
参考
カテゴリ
Help Center および File Exchange で Computer Vision with Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!