finding white pixel regions
显示 更早的评论
I have an image,i want to split that image vertically and find which side has more white pixels,my image is binary type
采纳的回答
更多回答(1 个)
Andrew
2012-1-24
0 个投票
If your image is logical, then you could easily do this using the function "nnz", which gives you the number of non-zeros a matrix. Alternatively, you could just sum each side of the image if the "white pixels" are 1's.
Andrew
类别
在 帮助中心 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!