Horizontal and vertical projection of an image
2 ビュー (過去 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
2011 年 4 月 3 日
what do you mean by project in the horizontal & vertical direction and then concatenate?
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!