Divide one image by another image?
이전 댓글 표시
I am working with two Geotiff images that have 16 bit depth. I need to estimate a ratio by using those images with equation such as below:
Ratio = (image1-image2)/(image1+image2);
The resulting ratio should be in the range of 0 to 1, but I am getting zero for all the pixels. I assumed it might have to do with image type conversion, so tried converting those images into double before estimating the ratio (as below), and it is still giving me zero for all pixels.
Ratio = (im2double(image1) - im2double(image2))/(im2double(image1) + im2double(image2))
What should be done to address this problem. Thanks.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Region and Image Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!