Subclass of ImageInformation that extracts min / max pixel values from image. More...
Public Member Functions | |
def | __init__ |
Constructor method. | |
def | extract_information |
For a given image (as CvMat in RGB format) extract whatever kind of information. |
Subclass of ImageInformation that extracts min / max pixel values from image.
For each color component there is a min / max component so it returns a list with 6 three tuples. The max value of the red component has the name MaxR and so on. All values are of tpye int.
Definition at line 45 of file image_information.py.
Constructor method.
self | the object pointer |
Definition at line 48 of file image_information.py.
def face_contour_detector.image_information.image_information.MinMaxExtractor.extract_information | ( | self, | |
img | |||
) |
For a given image (as CvMat in RGB format) extract whatever kind of information.
self | the object pointer |
img | the image as CvMat in RGB format |
Extract the information from the image. Return value is a list. This list contains three tuples. Such a tuple t has the form t = (name, value, type). Where name is the name of the property t represents for example MaxPixelValue. value is the value of this property for example 200 if 200 is the maximal pixel value in img. type is a string and is one of "int", "float", "string". These tuples can be added to xml_image_information.
Reimplemented from face_contour_detector.image_information.image_information.ImageInformation.
Definition at line 51 of file image_information.py.