Horizontal and vertical projection of an image

Hi guys I want to project a binary black n white image in horizontal n vertical direction n den concatenate them plz help me with the matlab code.

댓글 수: 1

bym
bym 2011년 4월 3일
what do you mean by project in the horizontal & vertical direction and then concatenate?

댓글을 달려면 로그인하십시오.

 채택된 답변

Jan
Jan 2011년 4월 3일

3 개 추천

The question is not clear. Perhaps this helps:
img = rand(100, 100) < 0.1;
h_projection = any(img, 2);
v_projection = any(img, 1);
cat_projection = cat(1, h_projection, v_projection(:));
Using SUM instead of ANY might be an option also.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by