horizontal and vertical histogram of a given image.

조회 수: 2 (최근 30일)
Haseeb Hassan
Haseeb Hassan 2017년 9월 16일
댓글: Image Analyst 2017년 9월 19일
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

답변 (1개)

Image Analyst
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
Haseeb Hassan
Haseeb Hassan 2017년 9월 19일
But i want to break the edges.So what you suggest for that.
Image Analyst
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 CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by