check pixel value
3 ビュー (過去 30 日間)
古いコメントを表示
sir in a given binary image i need to check a given pixel whether it is black or white how to do plz help in coading
if i give (32X43)pixel i need to check whether that pixel is white or black
0 件のコメント
採用された回答
Walter Roberson
2011 年 3 月 29 日
pixel_is_white = logical(Image(i,j));
or
pixel_is_white = Image(i,j) ~= 0;
pixel_is_black = ~Image(i,j);
or
pixel_is_black = Image(i,j) == 0;
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Import, Export, and Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!