Skip to content

Instantly share code, notes, and snippets.

View bikz05's full-sized avatar

bikram bikz05

  • Amazon
  • Sunnyvale, United States
View GitHub Profile
@bikz05
bikz05 / rgb2Lab.py
Created November 3, 2014 12:26
Python Script to convert color from RGB ColorSpace to CIE Lab Color Space
import numpy as np
def func(t):
if (t > 0.008856):
return np.power(t, 1/3.0);
else:
return 7.787 * t + 16 / 116.0;
#Conversion Matrix
matrix = [[0.412453, 0.357580, 0.180423],