-
Download and unzip all PNG images, measured illumination files and coordinates files from Gehler-Shi.
-
Run the following command to mask out color-checker board and convert 12-bit PNG files to float32 binary files.
matlab -nojvm -nodisplay -nosplash -r 'process_gs568'
Please prepare your raw data as follows and change
DATA_DIR
in the script accordingly:--- DATA_DIR |- png | |- xxx.png |- groundtruth_568 | |- real_illum_568..mat |- coordinates |- xxx_macbeth.txt
NOTE: Each binary file begins with three int32 values representing height (h), width (w) and number of channels (c) respectively, and is followed by h*w*c float32 values in the order of matlab.
-
Randomly split the images into three subsets for cross validation. Here we provide an example: set_0, set_1 and set_2.
-
Run the following command to get the location of patches without zero values in each image. We need to get rid of zero values since they will cause numeric errors when converting pixel values from RGB to UV format.
cd .. && python get_locs_gs568.py && cd data
-
Finally, the binary image files will be stored in
gs568
and the location files will be stored ings568/loc
.
data
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||