video processing( find white pixel in binary image)

4 ビュー (過去 30 日間)
Ariff pasha
Ariff pasha 2015 年 11 月 23 日
コメント済み: Ariff pasha 2015 年 11 月 27 日
currently my project is video processing and my problem is im trying to find white pixel of every row[[5X5] in the region of interest(ROI) that i assigned in my binary images.so that i can know if there is a pixel detected in that row. if it detected = 1, if not = 0.
can anyone help me please :(

採用された回答

Thorsten
Thorsten 2015 年 11 月 23 日
Sample data:
X = rand(5)>0.8;
Check if any pixel is 1
if any(X(:))
% do something
end
  6 件のコメント
Ariff pasha
Ariff pasha 2015 年 11 月 24 日
tq :))
Ariff pasha
Ariff pasha 2015 年 11 月 27 日
hi thorsten. now i want to find accuracy(100%).for example my roi size is 241x77.if all columns(77) detect 1 instead of 0 then i say its 100%. so i use yy= find(ROI_2(:,end)==1) to know which column has 1.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by