Horizontal and vertical projection of an image

5 次查看(过去 30 天)
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
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 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by