Why does the image after subtracting the original image from average image displays a black screen
古いコメントを表示
Why does the image after subtracting the original image from average image displays a black screen?
採用された回答
その他の回答 (1 件)
Image Analyst
2019 年 7 月 14 日
Some or all of your values may be small (too dark to see) or would be negative (and so they will be clipped to zero if you have a uint8 image). Cast to double before subtracting, so negative numbers will be allowed (not clipped), then use [] in imshow() so that negative numbers will show up:
diffImage = double(image1) - double(image2);
imshow(diffImage, []);
カテゴリ
ヘルプ センター および File Exchange で Images についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!