neighbour pixel operation
2 ビュー (過去 30 日間)
古いコメントを表示
sir i have a white and black (binary)image of size (1024X768).i need image to be scanned from left to right, up and down and the scan area is 3X3.if one of 8-neighbour pixel is white (255).then center point should becomes white (255). sir please help in coding
0 件のコメント
採用された回答
Walter Roberson
2011 年 4 月 9 日
blkproc or blockproc. Once you are within an individual 3x3 block, say B, then B(2,2) = max(B(2,2),255 * any(B(:)==255))
その他の回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!