Lines Matching refs:np
4 import numpy as np namespace
39 coeffs = np.vstack((x, y)).reshape(-1,order='F')
52 for x in range(0, np.size(imgMap, 1)):
53 for y in range(0, np.size(imgMap, 0)):
57 axes.set_xticks(range(0, np.size(imgMap, 1)))
58 axes.set_yticks(range(0, np.size(imgMap, 0)))
70 x_lin = np.linspace(0,1,2)
102 x_gamma = np.linspace(0, 1, 16);
120 y_srgb = np.where(x_srgb <= 0.0031308, x_srgb * 12.92, 1.055*x_srgb**(1/2.4)-0.055)
135 shadingMapSize = np.array([3, 4])
136 shadingMap1 = np.array(
145 rgbMap = np.dstack( (redMap, (greenEMap + greenOMap) / 2, blueMap) )
146 redMap = np.dstack( (redMap, np.zeros(shadingMapSize), np.zeros(shadingMapSize) ) )
147 greenEMap = np.dstack( (np.zeros(shadingMapSize), greenEMap, np.zeros(shadingMapSize) ) )
148 greenOMap = np.dstack( (np.zeros(shadingMapSize), greenOMap, np.zeros(shadingMapSize) ) )
149 blueMap = np.dstack( (np.zeros(shadingMapSize), np.zeros(shadingMapSize), blueMap ) )
185 axes.set_xticks(range(0, np.size(rgbMap, 1)))
186 axes.set_yticks(range(0, np.size(rgbMap, 0)))
195 y_rec709 = np.where(x_rec709 <= 0.018, x_rec709 * 4.500, 1.099*x_rec709**0.45-0.099)