All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Classes | Functions | Variables
face_contour_detector.gui.image_selection_frame Namespace Reference

This package contains only the class ImageSelectionFrame. More...

Classes

class  ImageSelectionFrame
 This class is used to display proposals to the user. More...

Functions

def scale_image
 This method is used to scale an image to a maximum size.

Variables

int MAX_HEIGHT = 500
 constant defining the maximum width an displayed image is allowed to have
int MAX_WIDTH = 250
 constant defining the maximum width an displayed image is allowed to have

Detailed Description

This package contains only the class ImageSelectionFrame.

See class documentation for details.

Author:
Fabian Wenzelmann

Function Documentation

def face_contour_detector.gui.image_selection_frame.scale_image (   img,
  max_width,
  max_height 
)

This method is used to scale an image to a maximum size.

Parameters:
imgThe image to scale (PIL Image)
max_widthThe maximum width that the scaled version of this image is allowed to have
max_heightThe maximum height that the scaled version of this image is allowed to have

This function returns a scaled version of the image. The image has a width <= max_width and a height <= max_height. The scaled version preserve the proportions of the original image.

Definition at line 93 of file image_selection_frame.py.


Variable Documentation

constant defining the maximum width an displayed image is allowed to have

Definition at line 22 of file image_selection_frame.py.

constant defining the maximum width an displayed image is allowed to have

Definition at line 20 of file image_selection_frame.py.

 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