Lines Matching full:numpy
23 import numpy
102 template: numpy array; chart template for locator
103 img_3a: numpy array; RGB image for chart location
155 if numpy.amax(scene) <= 1.0:
156 scene = (scene * 255.0).astype(numpy.uint8)
159 for scale in numpy.arange(scale_start, scale_stop, scale_step):
228 input_img (2D numpy.ndarray): Grayscale image stored as a 2D
229 numpy array.
238 img = numpy.array(input_img, copy=True)
242 img = img.astype(numpy.uint8)
276 box = numpy.int0(cv2.cv.BoxPoints(rect))
278 box = numpy.int0(cv2.boxPoints(rect))
286 median_area = numpy.median(areas)
302 return numpy.median(filtered_angles)
321 white_level = numpy.amax(chart).astype(float)
325 blur = blur[:, :, numpy.newaxis]
329 self.assertTrue(numpy.isclose(sharpness[2]/sharpness[4],
330 numpy.sqrt(2), atol=0.1))
331 self.assertTrue(numpy.isclose(sharpness[4]/sharpness[8],
332 numpy.sqrt(2), atol=0.1))
379 assert numpy.isclose(
381 assert numpy.isclose(