subtracting images processing,
이전 댓글 표시
im trying to subtract two images with the same format in matlab, but unfortunatly im getting the image to dark i cant see anything so what i can do to change im sending the code below
clc, clear; close all;
%read image
a= imread('pentan1h_6uLmin_0240.tif');
b= imread('pentan1h_6uLmin_0250.tif');
c=imsubtract(a,b);
subplot(2,2,1),imshow(a),title('dry')
subplot(2,2,2),imshow(b),title('pen')
subplot(2,2,3),imshow(c),title('after')
this is the picture im getting

채택된 답변
추가 답변 (2개)
Image Analyst
2019년 4월 20일
Try [] to scale your data to your display
imshow(c, []);
wan noor
2019년 12월 14일
0 개 추천
Try use iamabsdiff function so that you will always have a non negative result.
댓글 수: 1
Image Analyst
2019년 12월 14일
or imadjust() to scale the intensities to the 1% points of the histogram tails.
카테고리
도움말 센터 및 File Exchange에서 Contrast Adjustment에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!