implemented color mapping with soft segmentation and gain a better result; gradient mapping and tone optimization to be implemented