I am using imshowpair to show the difference between a raw image and one to which I have applied edge detection. However, the "raw" image displays differently in imshowpair than it does when I open it with imshow. Here is the code I am using; the image I'm analyzing is attached to this post:
I = imread('Camera_20_08_23_121.bmp');
BW_canny = edge(I,'canny');
title('Unfiltered Canny Filter');
This is the image created with imshow:
And this is the image created with imshowpair:
The image on the left in the latter example appears to have been contrast-enhanced in some way, but I can't find anything in the documentation on what might have caused the difference. The left-side image could be of use to me, so I'd like to try and create that image by itself using imshow (i.e. unlinked to an imshowpair command).
Therefore, my questions are twofold, and possibly linked:
- What did imshowpair do to the image to modify it?
- How can I reproduce the image on the left side of the imshowpair example programmatically so that I can display just that image by itself?
Note: I have tried converting the original image to a binary one using the mean-value method from the imshow documentation, but the result is not the same as the left-side imshowpair figure, which appears to still be grayscale.