| Home | Trees | Indices | Help |
|---|
|
|
1 # PyCV - A Computer Vision Package for Python Incorporating Fast Training of Face Detection 2 3 # Copyright 2007 Nanyang Technological University, Singapore. 4 # Authors: Minh-Tri Pham, Viet-Dung D. Hoang, and Tat-Jen Cham. 5 6 # This file is part of PyCV. 7 8 # PyCV is free software: you can redistribute it and/or modify 9 # it under the terms of the GNU General Public 10 # License as published by the Free Software Foundation, either version 11 # 3 of the License, or (at your option) any later version. 12 13 # PyCV is distributed in the hope that it will be useful, 14 # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 # GNU General Public License for more details. 17 18 # You should have received a copy of the GNU General Public License 19 # along with this program. If not, see <http://www.gnu.org/licenses/>. 20 21 # --------------------------------------------------------------------- 22 #!/usr/bin/env python 23 24 25 __all__ = ['ObjectLocation'] 26 27 # import the necessary things 28 from numpy import array 29 30 31 #------------------------------------------------------------------------------- 32 # Object Location class 33 #-------------------------------------------------------------------------------35 """The location of an object in an image. 36 37 :Parameters: 38 x : double 39 The object's center point's location's x component. 40 y : double 41 The object's center point's location's y component. 42 shape_type : integer 43 Type of the shape bounding the object, this can be: 44 0: a square/circle 45 1: a rectangle/ellipse 46 rx : double 47 The x-axis radius. 48 ry : double 49 The y-axis radius. 50 The values of rx and ry depend on shape_type: 51 shape_type=0: rx = ry = l/2, where l is the length of the square, or 52 the radius of the circle 53 shape_type=1: rx = w/2, ry = h/2, where (w,h) is the size of the rectangle, 54 or the two radiuses (fix this) of the ellipse 55 angle : double 56 Angle of rotation, clock-wise, w.r.t. x-axis (in radian) 57 """ 58 x = 0.0 59 y = 0.0 60 shape_type = 0 61 rx = 0.0 62 ry = 0.0 63 angle = 0.064
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Mon Feb 25 10:24:20 2008 | http://epydoc.sourceforge.net |