I have set of two image namely main and noise and the maximum value is found using np.max(image_array)
function. This will return the values for
But, when I subtract both image using np.subtract(main,noise)
and now, if I find the maximum value of subtracted image, the value is found to be
Now, why the main image is loosing its maximum value from 1344 to 1342 ? Any help in figuring out the issue is appreciated.
Probably the pixel where the maximun value occurred for the image at 1344.056 had a value around 2 in the noise. Thus, when you substracted both then you get a maximun of 1342.312.
If you are substracting both values I supposed your goal is to remove noise from the image and then the one you call image is actually image_and_noise. So, if this is correct the image maximum is 1342.312 and the 2 that was removed belonged to the noise.