A demo for data pre-processing of short-focus image and telephoto image.
-
Given the short-focus image
./short-focus.JPG
and telephoto image./telephoto.JPG
, we first crop the short-focus image based on the focal-length ratio between the two images. -
Then we can get
./short-focus_center.png
, it has roughly the same scenes as the telephoto image.
-
We use PWC-Net to align
./short-focus_center.png
and./telephoto.JPG
spatially. -
Then we can get the aligned telephoto image, named
./position_alignment/HR_warp.png
.
-
Color alignment is performed between
./short-focus_center.png
and./position_alignment/HR_warp.png
. -
Finally, the low-resolution image
./color_alignment/LR.png
, high-resolution image./color_alignment/HR.png
, and reference image./color_alignment/Ref.png
can be obtained.