WIL説明書(C++)  3.0.0
FvStructureElement.h
[詳解]
1 // $Revision: 1.1 $
2 /*
3  @file FvStructureElement.h
4  @brief CFvStructureElement class interface
5  @author FAST Corporation
6 */
7 
8 #ifndef _FVSTRUCTUREELEMENT_H_INCLUDED_
9 #define _FVSTRUCTUREELEMENT_H_INCLUDED_
10 
11 #include "Data/FvDataObject.h"
12 #include "Data/FvRectangle.h"
13 #include "Data/FvCircle.h"
14 #include "Data/FvImage.h"
15 #include "MultiData/FvArray.h"
16 
17 #pragma pack(push,_FVCL_PACKING)
18 
19 namespace FVCL
20 {
21 namespace Morphology
22 {
23 
25 {
26 private:
27  void _Constructor();
28 
29 public:
31  CFvStructureElement( INT length, INT shape );
34  CFvStructureElement( const FVCL::Data::CFvImage& image, INT anchor_x = 0, INT anchor_y = 0 );
35  virtual ~CFvStructureElement();
36 
37  enum { DataID = 1040 };
38 
39  virtual INT GetDataID() const;
40  virtual bool GetPointer( INT id, void** val ) const;
41 
42  virtual bool Load( LPCTSTR szFileName );
43  virtual bool Save( LPCTSTR szFileName );
44 
45  virtual bool Create();
46  virtual bool Destroy();
47  virtual bool IsCreate() const;
48 
49  virtual bool CreateLineSE( INT length, INT shape );
50  virtual bool CreateBoxSE( INT width, INT height );
51  virtual bool CreateDiskSE( INT radius );
52  virtual bool Create( const FVCL::Data::CFvRectangle& rect );
53  virtual bool Create( const FVCL::Data::CFvCircle& circle );
54  virtual bool Create( const FVCL::Data::CFvImage& image, INT anchor_x = 0, INT anchor_y = 0 );
55 
56  virtual bool SetHandle( FHANDLE handle );
57  FHANDLE GetHandle() const;
58 
59  virtual bool SetSize( INT width, INT height );
60  virtual bool SetSize( INT width, INT height, INT step_x );
61  bool GetSize( INT* width, INT* height, INT* step_x ) const;
62 
63  INT GetWidth() const;
64  INT GetHeight() const;
65  INT GetStep() const;
66 
67  bool SetAnchor( INT anchor_x, INT anchor_y );
68  bool GetAnchor( INT* anchor_x, INT* anchor_y ) const;
69  INT GetAnchorX() const;
70  INT GetAnchorY() const;
71 
72  bool SetMask( INT x, INT y, UCHAR mask );
73  UCHAR* GetMask( INT x=0, INT y=0 );
74  UCHAR const* GetMask( INT x=0, INT y=0 ) const;
75 
76  // operator overload
77  virtual CFvStructureElement& operator = ( const CFvStructureElement& src );
78  virtual bool operator == ( const CFvStructureElement& src ) const;
79  virtual bool operator != ( const CFvStructureElement& src ) const;
80 
81 protected:
83 
90 };
91 
92 } // Morphology
93 
94 } // FVCL
95 
96 #pragma pack(pop)
97 
98 #endif // _FVSTRUCTUREELEMENT_H_INCLUDED_
#define FVCL_API
DLLエクスポートマクロ
Definition: FvMacros.h:61
INT m_StepX
マスクメモリ横幅
Definition: FvStructureElement.h:87
画像オブジェクトのインターフェース
INT m_Width
マスクの幅
Definition: FvStructureElement.h:85
unsigned char UCHAR
整数型(8ビット)[符号なし]
Definition: FvDefs.h:33
LPCSTR LPCTSTR
汎用文字列型(const付き)
Definition: FvDefs.h:57
FVCLのネームスペース
Definition: EVCbasicDeclare.txt:9
CFvArray< UCHAR > m_Mask
マスクを格納する1次元配列
Definition: FvStructureElement.h:84
INT m_Height
マスクの高さ
Definition: FvStructureElement.h:86
FHANDLE m_Handle
構造要素オブジェクトハンドル
Definition: FvStructureElement.h:82
int INT
整数型(32ビット)
Definition: FvDefs.h:36
INT m_AnchorY
Y方向アンカー位置
Definition: FvStructureElement.h:89
配列テンプレートクラス(連続型)
データオブジェクトの基本クラス
Definition: FvDataObject.h:20
矩形構造クラス
Definition: FvRectangle.h:37
円構造クラスのインターフェース
モルフォロジ構造要素クラス
Definition: FvStructureElement.h:24
矩形構造クラスのインターフェース
円構造クラス
Definition: FvCircle.h:33
void * FHANDLE
FIEオブジェクトハンドル
Definition: FvDefs.h:63
画像オブジェクト
Definition: FvImage.h:64
データオブジェクトの基本クラスのインターフェース
INT m_AnchorX
X方向アンカー位置
Definition: FvStructureElement.h:88

Documentation copyright © 2007 FAST Corporation. [B-001864]
Generated on 2023年11月02日(木) 10時12分53秒 for WIL説明書(C++) by doxygen 1.8.11