ConnectedComponent.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  *  ConnectedComponent.h
00003  *
00004  *  (C) 2006 AG Aktives Sehen <agas@uni-koblenz.de>
00005  *           Universitaet Koblenz-Landau
00006  *
00007  *  Information on Code Review state:
00008  *  §Author: SB; DevelTest: ; Reviewer: ; Review: ; State:   
00009  *  
00010  *  Additional information:  
00011  *  $Id: ConnectedComponent.h 44313 2011-04-06 22:46:28Z agas $ 
00012  *******************************************************************************/
00013 
00014 #ifndef CONNECTEDCOMPONENT_H
00015 #define CONNECTEDCOMPONENT_H
00016 
00026 class ConnectedComponent{
00027 
00028   public:
00029 
00033     ConnectedComponent()  
00034     {
00035       m_MinX = 0;
00036       m_MinY = 0;
00037       m_MaxX = 0;
00038       m_MaxY = 0;
00039       m_CogX = 0;
00040       m_CogY = 0;
00041       m_SegmentSize = 0;
00042       m_LabelId = 0;
00043     }
00044 
00045   
00057   ConnectedComponent(int pi_labelId, int pi_MinX, int pi_MinY,
00058       int pi_MaxX, int pi_MaxY,
00059       double pi_CogX, double pi_CogY,
00060       int pi_SegmentSize=0)
00061   {
00062     m_LabelId = pi_labelId;
00063     m_MinX = pi_MinX;
00064     m_MinY = pi_MinY;
00065     m_MaxX = pi_MaxX;
00066     m_MaxY = pi_MaxY;
00067     m_CogX = pi_CogX;
00068     m_CogY = pi_CogY;
00069     m_SegmentSize = pi_SegmentSize;
00070   }
00071 
00075   ~ConnectedComponent() {}
00076 
00077   
00083   void setMinCoordinates(int pi_MinX, int pi_MinY)
00084   {
00085     m_MinX = pi_MinX;
00086     m_MinY = pi_MinY;
00087   };
00088  
00094   void setMaxCoordinates(int pi_MaxX, int pi_MaxY)
00095   {
00096     m_MaxX = pi_MaxX;
00097     m_MaxY = pi_MaxY;
00098   };
00099 
00103   void setCOG(double pi_CogX, double pi_CogY)
00104   {
00105     m_CogX = pi_CogX;
00106     m_CogY = pi_CogY;
00107   };
00108 
00112   void setSegmentSize (int pi_SegmentSize)
00113   { 
00114     m_SegmentSize = pi_SegmentSize; 
00115   }
00116 
00120   int getMinX() const {return m_MinX;}
00121   int getMinY() const {return m_MinY;}
00122   int getMaxX() const {return m_MaxX;}
00123   int getMaxY() const {return m_MaxY;}
00124   double getCogX() const {return m_CogX;}
00125   double getCogY() const {return m_CogY;}
00126   int getSegmentSize() const {return m_SegmentSize;}
00127   unsigned getLabelId() const {return m_LabelId; }
00128 
00129 private:
00133   int m_MinX;
00137   int m_MinY;
00141   int m_MaxX;
00145   int m_MaxY;
00149   double m_CogX;
00153   double m_CogY;
00157   int m_SegmentSize;
00158   
00159   unsigned m_LabelId;
00160 };
00161 
00162 #endif
00163 
00164 


or_libs
Author(s): raphael
autogenerated on Mon Oct 6 2014 02:53:18