Home | History | Annotate | Download | only in its

Lines Matching refs:Image

21 import Image
45 """Convert a captured image object to a RGB image.
53 RGB float-3 image array, with pixel values in [0.0, 1.0].
69 """Convert a captured image object to separate Y,U,V image planes.
97 """Convert a YUV420 8-bit planar image to an RGB image.
103 w: The width of the image.
104 h: The height of the image.
109 RGB float-3 image array, with pixel values in [0.0, 1.0].
128 """Load a YUV420 image file, and return as an RGB image.
132 w: The width of the image.
133 h: The height of the image.
138 RGB float-3 image array, with pixel values in [0.0, 1.0].
147 """Load a YUV420 image file, and return separate Y, U, and V plane images.
151 w: The width of the image.
152 h: The height of the image.
169 """Decompress a JPEG-compressed image, returning as an RGB image.
175 A numpy array for the RGB image, with pixels in [0,1].
177 img = Image.open(cStringIO.StringIO(jpeg_buffer))
183 """Applies a LUT to every pixel in a float image array.
185 Internally converts to a 16b integer image, since the LUT can work with up
203 img: Numpy float image array, with pixel values in [0,1].
207 Float image array after applying LUT to each pixel.
216 """Multiplies a 3x3 matrix with each float-3 image pixel.
226 img: Numpy float image array, with pixel values in [0,1].
230 The numpy float-3 image array resulting from the matrix mult.
240 """Get a patch (tile) of an image.
243 img: Numpy float image array, with pixel values in [0,1].
247 Float image array of the patch.
258 """Calculate the mean of each color channel in the image.
261 img: Numpy float image array, with pixel values in [0,1].
264 A list of mean values, one per color channel in the image.
273 """Calculate the variance of each color channel in the image.
276 img: Numpy float image array, with pixel values in [0,1].
279 A list of mean values, one per color channel in the image.
288 """Save a float-3 numpy array image to a file.
292 Image can be 3-channel, which is interpreted as RGB, or can be 1-channel,
295 Can optionally specify that the image should be gamma-encoded prior to
296 writing it out; this should be done if the image contains linear pixel
297 values, to make the image look "normal".
300 img: Numpy image array data.
302 apply_gamma: (Optional) apply gamma to the image prior to writing it.
308 Image.fromarray((img * 255.0).astype(numpy.uint8), "RGB").save(fname)
311 Image.fromarray(img3, "RGB").save(fname)
313 raise its.error.Error('Unsupported image type')
324 Test by using a canned set of values on a 1x1 pixel image.
341 Test by using a canned set of values on a 1x1 pixel image. The LUT will