All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Public Member Functions
face_contour_detector.image_information.image_information.AverageValueExtractor Class Reference

Subclass of ImageInformation which extracts several average values. More...

Inheritance diagram for face_contour_detector.image_information.image_information.AverageValueExtractor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
 Constructor method.
def extract_information
 For a given image (as CvMat in RGB format) extract whatever kind of information.

Detailed Description

Subclass of ImageInformation which extracts several average values.

Author:
Fabian Wenzelmann
Date:
2011-02-20

For each pixel the brightness is defined as $ red * 0.299 + green * 0.587 + blue * 0.114$. The average of all those values is returned. Name is "AveragePixelBrightness". Also calculates for each color channel the average value. For them the names are for example "AverageR" for the red color channel. Also calculates three standard deviation values (for each component one). The names are "StandardDeviationR" and so on. Also (last also) returns "StandardBrightnessDeviation" All returned values are of type float.

Definition at line 80 of file image_information.py.


Constructor & Destructor Documentation

Constructor method.

Parameters:
selfthe object pointer

Definition at line 83 of file image_information.py.


Member Function Documentation

For a given image (as CvMat in RGB format) extract whatever kind of information.

Parameters:
selfthe object pointer
imgthe 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 86 of file image_information.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


face_contour_detector
Author(s): Fabian Wenzelmann and Julian Schmid
autogenerated on Wed Dec 26 2012 16:18:18