Color constancy algorithm without segmentation