video processing( find white pixel in binary image)
11 次查看(过去 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
更多回答(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!