How to convert black and white image to a matrix 100 x 100 ?
3 次查看(过去 30 天)
显示 更早的评论
Dear all, I have a black and white image that I want to read it as a matrix of size 100 x 100, I need the elements of the matrix to be 1 for black pixels and -1 for the white pixels, could any one help me in how to have the size of the matrix to be 100 x 100 and its elements 1 and -1? thank you
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!