google / ffcc

Fast Fourier Color Constancy: an auto white balance solution with machine learning in Fourier space
https://jonbarron.info/
Apache License 2.0
203 stars 72 forks source link

Updated ops.py with pre-processing funcs #7

Closed mahmoudnafifi closed 4 years ago

mahmoudnafifi commented 4 years ago

Added the implementation for data pre-processing, which includes: computing edge image, splatting feature vector, computing histogram. The added functions are: data_preprocess, featurize_image, compute_chroma_histogram, local_absolute_deviation, splat_non_uniform, edge_kernel, sub2ind. Added test cases for comparison with outputs from the Matlab version.