How to define custom ColorCheckerCard in opencv CCM Module?

Viewed 29

I am following color_correction tutorials as answered here , my issue is how to define custom colorchecker card instead of using cv2.ccm.COLORCHECKER_Macbeth used in model = cv2.ccm_ColorCorrectionModel(src, cv2.ccm.COLORCHECKER_Macbeth)in python. for example to take refernces of colorchecker cards from another image.

These are the reference color values

ColorChecker = [[[0.67641682 0.61224762 0.57638458]]

 [[0.87616153 0.80042344 0.75123413]]

 [[0.22659968 0.62270767 0.78941459]]

 [[0.47816477 0.59082752 0.40708232]]

 [[0.56312346 0.70216882 0.86078772]]

 [[0.10430079 0.75964361 0.78187035]]

 [[0.94163213 0.76247098 0.49745221]]

 [[0.0808389  0.59770984 0.88975889]]

 [[0.8468733  0.45231102 0.46404328]]

 [[0.46366801 0.29538113 0.55270592]]

 [[0.76192292 0.82526033 0.38488867]]

 [[0.93554674 0.81874509 0.35230009]]

 [[0.13568649 0.54287656 0.80991713]]

 [[0.36966072 0.7138439  0.51226979]]

 [[0.79470453 0.2912071  0.26181848]]

 [[0.92231191 0.83995897 0.33929923]]

 [[0.89481279 0.42071543 0.60896245]]

 [[0.03100524 0.59772277 0.77495085]]

 [[0.90272874 0.89962226 0.89653408]]

 [[0.86663921 0.8733761  0.87769623]]

 [[0.73189984 0.75470151 0.77038708]]

 [[0.67163744 0.69371533 0.70570644]]

 [[0.56247747 0.58333741 0.60197339]]

 [[0.36551994 0.40773652 0.40939019]]]
0 Answers
Related