Lines Matching refs:shape
97 img = numpy.ndarray(shape=(2*h*w*4,), dtype='<f', buffer=cap["data"])
135 if img.shape[1] % 5 != 0:
137 w = img.shape[1]*4/5
138 h = img.shape[0]
185 if img.shape[1] % 3 != 0:
187 w = img.shape[1]*2/3
188 h = img.shape[0]
251 img = numpy.ndarray(shape=(h*w,), dtype='<u2',
387 h,w = r_plane.shape[:2]
437 if len(a.shape) == 3 and a.shape[2] == 3:
440 elif len(a.shape) == 2 or len(a.shape) == 3 and a.shape[2] == 1:
571 h = img.shape[0]
572 w = img.shape[1]
588 hfull = img.shape[0]
589 wfull = img.shape[1]
606 chans = img.shape[2]
621 chans = img.shape[2]
660 (h, w, chans) = img.shape
687 h,w,chans = img.shape
712 chans = img.shape[2]