video processing( find white pixel in binary image)
조회 수: 9 (최근 30일)
이전 댓글 표시
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 :(
댓글 수: 0
채택된 답변
Thorsten
2015년 11월 23일
Sample data:
X = rand(5)>0.8;
Check if any pixel is 1
if any(X(:))
% do something
end
댓글 수: 6
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!