Edwardlzy / SRCNN

Tensorflow implementation of single image super-resolution using a Convolutional Neural Network
http://mmlab.ie.cuhk.edu.hk/projects/SRCNN.html
MIT License
47 stars 17 forks source link

img = im2double(img) # Only use the luminance value. #3

Open 07Agarg opened 6 years ago

07Agarg commented 6 years ago

Hi @Edwardlzy , I am replicating the same paper . I am having trouble pre-processing the input image.

This function is normalizing image converted to YCB_CR format .

Where in the code are you extracting the luminance value of YCB_CR format image? Also, according to the paper, Gaussian blur needs to be added to the input image before rescaling it by factor of 3.