subtracting images processing,
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Edmilson Carvalho
el 19 de Abr. de 2019
Comentada: Image Analyst
el 14 de Dic. de 2019
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

0 comentarios
Respuesta aceptada
KALYAN ACHARJYA
el 20 de Abr. de 2019
Editada: KALYAN ACHARJYA
el 20 de Abr. de 2019
If you see the result image, its not exactly compleyely dark. If you subtract the similar pixel elements, definitely you get the black pixels (zero). I don't seems there is any issue with result, as most part of the both suntract images are same. There are minor differences in both images, which are reflected in result image (see some non black pixels).
One Suggestion: If the images same type, make it double then do the subtraction.
What is your aim to doing so?
0 comentarios
Más respuestas (2)
Image Analyst
el 20 de Abr. de 2019
Try [] to scale your data to your display
imshow(c, []);
0 comentarios
wan noor
el 14 de Dic. de 2019
Try use iamabsdiff function so that you will always have a non negative result.
1 comentario
Image Analyst
el 14 de Dic. de 2019
or imadjust() to scale the intensities to the 1% points of the histogram tails.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!