vx.vxstats, (vx.vxinfo)
vx.vxstats(image)vx.vxinfo(image)
vxstats Returns some basic descriptive statistics of an images contents. This function returns a dict with the following values.
key | Value | |
---|---|---|
mean | The mean pixel value of the image. | |
median | The median pixel value of the image. | |
min | The minimum pixel value of the image. | |
max | The maximum pixel value of the image. | |
std | The standard deviation of the pixel value of the image. | |
mean0 | The mean pixel value of the image excluding all zero valued pixels. | |
min0 | The minimum pixel value of the image excluding all zero valued pixels. | |
max0 | The maximum pixel value of the image excluding all zero valued pixels. | |
std0 | The standard deviation of the pixel value of the image excluding all zero valued pixels. |
vxinfo Returns some basic information of an image. This function returns a dict with the following values.
key | Value |
---|---|
shape | A tuple of the array dimensions of the image |
dtype | the numpy datatype associated with the image. |
color | True if the image is a color image with three channels, otherwise False. |
Parameters
image |
This is the specifier for the image to be displayed. The image may be
specified by either
(a) a file name of a vx, png, or jpeg format file, (b) a vx.Vx image,
a numpy array, or a PIL image.
|
---|
Examples
