Overview
The goal of this part of the assignment is to create hybrid images using the approach described in the SIGGRAPH 2006 paper by Oliva, Torralba, and Schyns. Hybrid images are static images that change in interpretation as a function of the viewing distance. The basic idea is that high frequency tends to dominate perception when it is available, but, at a distance, only the low frequency (smooth) part of the signal can be seen. By blending the high frequency portion of one image with the low-frequency portion of another, you get a hybrid image that leads to different interpretations at different distances.
Problem
At first, I try to use Python to do the project. Every step looks fine but the result image is a bit of disturbed. Since the images using the library matplotlib to resize the images, it normalize the images RGB to 0~1. Besides, the order of the color channels are RGB in matplotlib while the order is BGR in OpenCV. Even though I try to convert the order of color channels between two libraries, openCV seems cannot accept normalized 0~1 color values which is the same with the library Image. Moreover, when I try to save the images dealt by matplotlib, the shape (size) of the images change. Because matplotlib comes from matlib and matli