Home | History | Annotate | Download | only in its

Lines Matching refs:reshape

64         u = u.reshape(h/2, w/2).repeat(2, axis=1).repeat(2, axis=0)
65 v = v.reshape(h/2, w/2).repeat(2, axis=1).repeat(2, axis=0)
66 yuv = numpy.dstack([y, u.reshape(w*h), v.reshape(w*h)])
68 flt.reshape(w*h*3)[:] = yuv.reshape(h*w*3)[:]
69 flt = numpy.dot(flt.reshape(w*h,3), ccm_yuv_to_rgb.T).clip(0, 255)
71 rgb.reshape(w*h*3)[:] = flt.reshape(w*h*3)[:]
92 return ((y.astype(numpy.float32) / 255.0).reshape(h, w, 1),
93 (u.astype(numpy.float32) / 255.0).reshape(h/2, w/2, 1),
94 (v.astype(numpy.float32) / 255.0).reshape(h/2, w/2, 1))
149 img2.reshape(w*h*3)[:] = (numpy.dot(img.reshape(h*w, 3), mat.T)
150 ).reshape(w*h*3)[:]
224 img3 = (img * 255.0).astype(numpy.uint8).repeat(3).reshape(h,w,3)
246 x = numpy.array([0.1,0.2,0.3]).reshape(1,1,3)
247 y = apply_matrix_to_image(x, mat).reshape(3).tolist()
261 x = numpy.array([0.1,0.2,0.3]).reshape(1,1,3)
262 y = apply_lut_to_image(x, lut).reshape(3).tolist()