xialeiliu / RankIQA

The rep for the RankIQA paper in ICCV 2017
https://xialeiliu.github.io/RankIQA/
MIT License
453 stars 117 forks source link

GNC function fails #32

Closed renedlog closed 3 years ago

renedlog commented 5 years ago

The GNC function fails due to YCBCR image is out of the Valid range caused by:

b = ycbcr + sqrt(level)*randn(sizeA);

and fails at the next step:

b=ycbcr2rgb(b)*255;

error: ycbcr2rgb: input must be a colormap (Nx3) or RGB image (NxMx3)
error: called from
    ycbcrfunc at line 31 column 5
    ycbcr2rgb at line 51 column 7
    gnc at line 7 column 2
    tid2013_generator at line 38 column 27
    tid2013_main at line 12 column 13
xialeiliu commented 5 years ago

Have you solved it? I couldn't replicate the error as you reported. Is it related to MATLAB version?