I have 2 binary images. I substracted it, then I did logical operation of not (~)
im1=imread('im1.jpeg');im2=imread('im2.jpeg');im3=(double(im1)-double(im2));im4=~im3;
This is the image after subtracting the binary images which are not double data type.
After subtracting the images, I do logical operation of not (~).
im3=im1-im2;%without double data type
im4=~im3;
This is the result without double data type
Please, give me an explaination. Thank you!
Best Answer