00001
00002 #ifndef ELLIPSE_REGION_H_
00003 #define ELLIPSE_REGION_H_
00004 #include "Point.h"
00005
00006 class Ellipse_region {
00007 public:
00008
00009 Ellipse_region();
00010 ~Ellipse_region();
00011
00013 void setCenter(Point *p);
00014
00016 void setMajAngle(double maj);
00017
00019 void setMinAngle(double min);
00020
00022 void setMajLength(double maj);
00023
00025 void setMinLength(double min);
00026
00028 void setSize(double sz);
00029
00031 void setMomentX_Y_XY(double x, double y, double xy);
00032
00034 void setWidth(double w);
00035
00037 void setHeight(double h);
00038
00040 double getArea();
00041
00042 private:
00043 Point *center;
00044 double maj_angle, min_angle;
00045 double maj_length, min_length;
00046 double size;
00047 double moment_x, moment_y, moment_xy;
00048 double img_width, img_height;
00049
00050
00051
00052
00053 };
00054
00055
00056 #endif