Changeset 32637

Show
Ignore:
Timestamp:
04/20/09 08:35:11 (4 years ago)
Author:
schima
Message:

minor updates

Location:
lang/cpluspluscli/OpenCvSharp2/trunk
Files:
39 modified

Legend:

Unmodified
Added
Removed
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Blob/AssemblyInfo.cpp

    r31867 r32637  
    1 #include "stdafx.h" 
     1#include "stdafx.h" 
    22 
    33using namespace System; 
     
    88 
    99// 
    10 // �A�Z���u���Ɋւ����ʏ��͈ȉ��̑����Z�b�g������Đ��䂳�����B 
    11 // �A�Z���u���Ɋ֘A�t�����Ă�����ύX�����́A 
    12 // �����̑����l��X���Ă��������B 
     10// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 
     11// アセンブリに関連付けられている情報を変更するには、 
     12// これらの属性値を変更してください。 
    1313// 
    1414[assembly:AssemblyTitleAttribute("OpenCvSharp.Blob")]; 
     
    2222 
    2323// 
    24 // �A�Z���u���̃o�[�W�������́A�ȉ���4 �‚̒l�ō\���������܂�: 
     24// アセンブリのバージョン情報は、以下の 4 つの値で構成されています: 
    2525// 
    2626//      Major Version 
     
    2929//      Revision 
    3030// 
    31 // ���ׂĂ̒l��肷�邩�A���̂悤��'*' ���ă��r�W���������r���h�ԍ���/ ���ɂ��邱�Ƃ��ł��܂�: 
     31// すべての値を指定するか、下のように '*' を使ってリビジョンおよびビルド番号を 
     32// 既定値にすることができます: 
    3233 
    3334[assembly:AssemblyVersionAttribute("1.0.*")]; 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Blob/CvBlob.cpp

    r31873 r32637  
    1 #include "StdAfx.h" 
     1#include "StdAfx.h" 
    22#include "CvBlob.h" 
    33 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Blob/Stdafx.cpp

    r31867 r32637  
    1 // stdafx.cpp : �W���C���N���[�h OpenCvSharp.Blob.pch �݂̂�/ �܂ރ\�[�X �t�@�C���́A�v���R���p�C���ς݃w�b�_�[�ɂȂ����B 
    2 // stdafx.obj �ɂ̓v���R���p�C���ς݌^�����܂܂����B 
     1// stdafx.cpp : 標準インクルード OpenCvSharp.Blob.pch のみを 
     2// 含むソース ファイルは、プリコンパイル済みヘッダーになります。 
     3// stdafx.obj にはプリコンパイル済み型情報が含まれます。 
    34 
    45#include "stdafx.h" 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvChain.h

    r32273 r32637  
    2222        public: 
    2323                /// <summary> 
    24                 /// 元データであるCvChain*を取得する 
    25                 /// </summary> 
    26                 initonly IntPtr Ptr; 
    27                 /// <summary> 
    28                 /// sizeof(CvChain) を取得する 
     24                /// sizeof(CvChain)  
    2925                /// </summary> 
    3026                literal Int32 SizeOf = static_cast<Int32>(sizeof(CvChain));  
    3127 
    3228                /// <summary> 
    33                 /// 初期化 
     29                /// Constructor 
    3430                /// </summary> 
    3531                WCvChain(IntPtr ptr) : WCvSeq(ptr) 
    3632                { 
    3733                        this->_ptr = static_cast<CvChain*>(ptr.ToPointer()); 
    38                         this->Ptr = IntPtr(ptr); 
    3934                } 
    4035 
    41                 property System::Drawing::Point origin{ 
     36 
     37                /// <summary> 
     38                /// Data pointer (CvChain*) 
     39                /// </summary> 
     40                property IntPtr CvPtr 
     41                { 
     42                        IntPtr get(){ return IntPtr(_ptr); } 
     43                } 
     44 
     45                property System::Drawing::Point origin 
     46                { 
    4247                        System::Drawing::Point get(){ return System::Drawing::Point(_ptr->origin.x, _ptr->origin.y); } 
    4348                }                
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvChainPtReader.h

    r32273 r32637  
    1 /** 
     1/** 
    22 * (C) 2008-2009 Schima 
    33 * This code is licenced under the LGPL. 
     
    2222        public: 
    2323                /// <summary> 
    24                 /// Data pointer (CvChainPtReader*) 
    25                 /// </summary> 
    26                 initonly IntPtr Ptr; 
    27                 /// <summary> 
    2824                /// sizeof(CvChainPtReader)  
    2925                /// </summary> 
     
    3632                { 
    3733                        this->_ptr = static_cast<CvChainPtReader*>(ptr.ToPointer()); 
    38                         this->Ptr = IntPtr(ptr); 
     34                } 
     35 
     36 
     37                /// <summary> 
     38                /// Data pointer (CvChainPtReader*) 
     39                /// </summary> 
     40                property IntPtr CvPtr 
     41                { 
     42                        IntPtr get(){ return IntPtr(_ptr); } 
    3943                } 
    4044 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvConDensation.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// pointer (CvConDensation*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvConDensation) 
    2824                /// </summary> 
     
    3430                WCvConDensation(IntPtr ptr) 
    3531                { 
    36                         this->_ptr = static_cast<CvConDensation*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr);                 
     32                        this->_ptr = static_cast<CvConDensation*>(ptr.ToPointer());      
    3833                } 
    3934 
    4035 
     36                /// <summary> 
     37                /// Data pointer (CvConDensation*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
     42                } 
    4143 
    4244 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvConnectedComp.h

    r32628 r32637  
    1 /** 
     1/** 
    22* (C) 2008-2009 Schima 
    33* This code is licenced under the LGPL. 
     
    2121        public: 
    2222                /// <summary> 
    23                 /// data pointer (CvConnectedComp*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvConnectedComp) 
    2824                /// </summary> 
     
    3430                WCvConnectedComp(IntPtr ptr) 
    3531                { 
    36                         this->_ptr = static_cast<CvConnectedComp*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr);                         
     32                        this->_ptr = static_cast<CvConnectedComp*>(ptr.ToPointer());             
     33                } 
     34 
     35 
     36                /// <summary> 
     37                /// Data pointer (CvConnectedComp*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
    3842                } 
    3943 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvContour.h

    r32273 r32637  
    2222        public: 
    2323                /// <summary> 
    24                 /// 元データであるCvContour*を取得する 
    25                 /// </summary> 
    26                 initonly IntPtr Ptr; 
    27                 /// <summary> 
    28                 /// sizeof(CvContour) を取得する 
     24                /// sizeof(CvContour)  
    2925                /// </summary> 
    3026                literal Int32 SizeOf = static_cast<Int32>(sizeof(CvContour));  
    3127 
    3228                /// <summary> 
    33                 /// 初期化 
     29                /// Constructor 
    3430                /// </summary> 
    3531                WCvContour(IntPtr ptr) : WCvSeq(ptr) 
    3632                { 
    3733                        this->_ptr = static_cast<CvContour*>(ptr.ToPointer()); 
    38                         this->Ptr = IntPtr(ptr); 
    3934                } 
    4035 
    41                 property int color { 
     36                /// <summary> 
     37                /// Data pointer (CvContour*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
     42                } 
     43 
     44                property int color  
     45                { 
    4246                        int get(){ return _ptr->color; } 
    4347                }; 
    44                 property System::Drawing::Rectangle rect{ 
     48                property System::Drawing::Rectangle rect 
     49                { 
    4550                        System::Drawing::Rectangle get(){ return System::Drawing::Rectangle(_ptr->rect.x, _ptr->rect.y, _ptr->rect.width, _ptr->rect.height); } 
    4651                }                
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvContourTree.h

    r32273 r32637  
    1 /** 
     1/** 
    22 * (C) 2008-2009 Schima 
    33 * This code is licenced under the LGPL. 
     
    2222        public: 
    2323                /// <summary> 
    24                 /// Data pointer (CvContourTree*) 
    25                 /// </summary> 
    26                 initonly IntPtr Ptr; 
    27                 /// <summary> 
    2824                /// sizeof(CvContourTree)  
    2925                /// </summary> 
     
    3632                { 
    3733                        this->_ptr = static_cast<CvContourTree*>(ptr.ToPointer()); 
    38                         this->Ptr = IntPtr(ptr); 
    3934                } 
    4035 
     36                /// <summary> 
     37                /// Data pointer (CvContourTree*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
     42                } 
    4143 
    4244                property System::Drawing::Point p1 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvFileNode.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// data pointer (CvFileNode*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvFileNode) 
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<CvFileNode*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
    3833                }                
     34 
     35 
     36                /// <summary> 
     37                /// Data pointer (CvFileNode*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
     42                } 
    3943 
    4044 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvFont.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// data pointer(CvFont*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvFont) 
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<CvFont*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
    3833                } 
     34 
     35 
     36                /// <summary> 
     37                /// Data pointer (CvFont*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
     42                } 
     43 
    3944 
    4045                property int font_face  
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvGraph.h

    r32280 r32637  
    1 /** 
     1/** 
    22 * (C) 2008-2009 Schima 
    33 * This code is licenced under the LGPL. 
     
    2222        public: 
    2323                /// <summary> 
    24                 ///  
    25                 /// </summary> 
    26                 initonly IntPtr Ptr; 
    27                 /// <summary> 
    2824                /// sizeof(CvGraph) 
    2925                /// </summary> 
     
    3127 
    3228                /// <summary> 
    33                 ///  
     29                /// Constructor 
    3430                /// </summary> 
    3531                WCvGraph(IntPtr ptr) : WCvSet(ptr) 
    3632                { 
    3733                        this->_ptr = static_cast<CvGraph*>(ptr.ToPointer()); 
    38                         this->Ptr = IntPtr(ptr); 
    3934                } 
    4035 
    41                 property IntPtr edges{ 
     36                /// <summary> 
     37                /// Data pointer (CvGraph*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
     42                } 
     43 
     44                property IntPtr edges 
     45                { 
    4246                        IntPtr get(void){ return IntPtr(_ptr->edges); } 
    4347                }                
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvGraphEdge.h

    r32628 r32637  
    1 /** 
     1/** 
    22* (C) 2008-2009 Schima 
    33* This code is licenced under the LGPL. 
     
    2020        public: 
    2121                /// <summary> 
    22                 /// data pointer (CvGraphEdge*) 
    23                 /// </summary> 
    24                 initonly IntPtr Ptr; 
    25                 /// <summary> 
    2622                /// sizeof(CvGraphEdge) 
    2723                /// </summary> 
     
    3430                { 
    3531                        this->_ptr = static_cast<CvGraphEdge*>(ptr.ToPointer()); 
    36                         this->Ptr = IntPtr(ptr); 
    3732                } 
     33 
     34 
     35                /// <summary> 
     36                /// Data pointer (CvGraphEdge*) 
     37                /// </summary> 
     38                property IntPtr CvPtr 
     39                { 
     40                        IntPtr get(){ return IntPtr(_ptr); } 
     41                } 
     42 
    3843 
    3944                property int flags 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvGraphScanner.h

    r32628 r32637  
    1 /** 
     1/** 
    22* (C) 2008-2009 Schima 
    33* This code is licenced under the LGPL. 
     
    2020        public: 
    2121                /// <summary> 
    22                 /// data pointer (CvGraphScanner*) 
    23                 /// </summary> 
    24                 initonly IntPtr Ptr; 
    25                 /// <summary> 
    2622                /// sizeof(CvGraphScanner) 
    2723                /// </summary> 
     
    2925 
    3026                /// <summary> 
    31                 ///  
     27                /// Constructor 
    3228                /// </summary> 
    3329                WCvGraphScanner(IntPtr ptr) 
    3430                { 
    3531                        this->_ptr = static_cast<CvGraphScanner*>(ptr.ToPointer()); 
    36                         this->Ptr = IntPtr(ptr); 
    3732                } 
     33 
     34 
     35                /// <summary> 
     36                /// Data pointer (CvGraphScanner*) 
     37                /// </summary> 
     38                property IntPtr CvPtr 
     39                { 
     40                        IntPtr get(){ return IntPtr(_ptr); } 
     41                } 
     42 
    3843 
    3944                property IntPtr vtx 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvGraphVtx.h

    r32628 r32637  
    1 /** 
     1/** 
    22* (C) 2008-2009 Schima 
    33* This code is licenced under the LGPL. 
     
    2020        public: 
    2121                /// <summary> 
    22                 /// data pointer(CvGraphVtx*) 
    23                 /// </summary> 
    24                 initonly IntPtr Ptr; 
    25                 /// <summary> 
    2622                /// sizeof(CvGraphVtx) 
    2723                /// </summary> 
     
    3329                WCvGraphVtx(IntPtr ptr) 
    3430                { 
    35                         this->_ptr = static_cast<CvGraphVtx*>(ptr.ToPointer()); 
    36                         this->Ptr = IntPtr(ptr);                                 
     31                        this->_ptr = static_cast<CvGraphVtx*>(ptr.ToPointer());                  
     32                } 
     33 
     34 
     35                /// <summary> 
     36                /// Data pointer (CvGraphVtx*) 
     37                /// </summary> 
     38                property IntPtr CvPtr 
     39                { 
     40                        IntPtr get(){ return IntPtr(_ptr); } 
    3741                } 
    3842 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvHaarClassifierCascade.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// Data pointer(CvHaarClassifierCascade*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvHaarClassifierCascade)  
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<CvHaarClassifierCascade*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
     33                } 
     34 
     35 
     36                /// <summary> 
     37                /// Data pointer (CvHaarClassifierCascade*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
    3842                } 
    3943 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvHistogram.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// Data pointer(CvHistogram*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvHistogram)  
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<CvHistogram*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
    3833                } 
     34 
     35 
     36                /// <summary> 
     37                /// Data pointer (CvHistogram*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
     42                } 
     43 
    3944 
    4045                /// <summary> 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvKalman.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// data pointer(CvKalman*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvKalman)  
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<CvKalman*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
     33                } 
     34 
     35 
     36                /// <summary> 
     37                /// Data pointer (CvKalman*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
    3842                } 
    3943 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvLineIterator.h

    r32628 r32637  
    1 /** 
     1/** 
    22* (C) 2008-2009 Schima 
    33* This code is licenced under the LGPL. 
     
    1919        public: 
    2020                /// <summary> 
    21                 /// data pointer (CvLineIterator*) 
    22                 /// </summary> 
    23                 initonly IntPtr Ptr; 
    24                 /// <summary> 
    2521                /// sizeof(CvLineIterator) 
    2622                /// </summary> 
     
    3329                { 
    3430                        this->_ptr = static_cast<CvLineIterator*>(ptr.ToPointer()); 
    35                         this->Ptr = ptr; 
    3631                } 
     32 
     33                 
     34                /// <summary> 
     35                /// Data pointer (CvLineIterator*) 
     36                /// </summary> 
     37                property IntPtr CvPtr 
     38                { 
     39                        IntPtr get(){ return IntPtr(_ptr); } 
     40                } 
     41 
    3742 
    3843                property IntPtr ptr 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvMat.h

    r31568 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// 元データであるCvMat*を取得する 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    27                 /// sizeof(CvMat) を取得する 
     23                /// sizeof(CvMat)  
    2824                /// </summary> 
    2925                literal Int32 SizeOf = static_cast<Int32>(sizeof(CvMat));  
    3026 
    3127                /// <summary> 
    32                 /// 初期化 
     28                /// Constructor 
    3329                /// </summary> 
    3430                WCvMat(IntPtr ptr) 
    3531                { 
    3632                        this->_ptr = static_cast<CvMat*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
    3833                } 
    3934 
    40                 property int type { 
     35                /// <summary> 
     36                /// Data pointer (CvMat*) 
     37                /// </summary> 
     38                property IntPtr CvPtr 
     39                { 
     40                        IntPtr get(){ return IntPtr(_ptr); } 
     41                } 
     42 
     43 
     44                property int type  
     45                { 
    4146                        int get(){ return _ptr->type; } 
    4247                }; 
    43                 property int step{ 
     48                property int step 
     49                { 
    4450                        int get(){ return _ptr->step; } 
    4551                } 
    46                 property IntPtr refcount{ 
     52                property IntPtr refcount 
     53                { 
    4754                        IntPtr get(){ return IntPtr(_ptr->refcount); } 
    4855                } 
    4956 
    50                 property IntPtr data{ 
     57                property IntPtr data 
     58                { 
    5159                        IntPtr get(){ return IntPtr(_ptr->data.ptr); } 
    5260                } 
    53                 property uchar* ptr{ 
     61                property uchar* data_ptr 
     62                { 
    5463                        uchar* get(){ return _ptr->data.ptr; } 
    5564                } 
    56                 property short* s{ 
     65                property short* data_s 
     66                { 
    5767                        short* get(){ return _ptr->data.s; } 
    5868                } 
    59                 property int* i{ 
     69                property int* data_i 
     70                { 
    6071                        int* get(){ return _ptr->data.i; } 
    6172                } 
    62                 property float* fl{ 
     73                property float* data_fl 
     74                { 
    6375                        float* get(){ return _ptr->data.fl; } 
    6476                } 
    65                 property double* db{ 
     77                property double* data_db 
     78                { 
    6679                        double* get(){ return _ptr->data.db; } 
    6780                } 
    6881 
    69                 property int rows{ 
     82                property int rows 
     83                { 
    7084                        int get(){ return _ptr->rows; } 
    7185                } 
    72                 property int height{ 
     86                property int height 
     87                { 
    7388                        int get(){ return _ptr->height; } 
    7489                } 
    75                 property int cols{ 
     90                property int cols 
     91                { 
    7692                        int get(){ return _ptr->cols; } 
    7793                } 
    78                 property int width{ 
     94                property int width 
     95                { 
    7996                        int get(){ return _ptr->width; } 
    8097                } 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvMatND.h

    r32443 r32637  
    2323        public: 
    2424                /// <summary> 
    25                 /// 元データであるCvMatND*を取得する 
    26                 /// </summary> 
    27                 initonly IntPtr Ptr; 
    28                 /// <summary> 
    29                 /// sizeof(CvMatND) を取得する 
     25                /// sizeof(CvMatND)  
    3026                /// </summary> 
    3127                literal Int32 SizeOf = static_cast<Int32>(sizeof(CvMatND));  
     
    3733                { 
    3834                        this->_ptr = static_cast<CvMatND*>(ptr.ToPointer()); 
    39                         this->Ptr = IntPtr(ptr); 
     35                } 
     36 
     37 
     38                /// <summary> 
     39                /// Data pointer (CvMatND*) 
     40                /// </summary> 
     41                property IntPtr CvPtr 
     42                { 
     43                        IntPtr get(){ return IntPtr(_ptr); } 
    4044                } 
    4145 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvMemStorage.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// Data pointer (CvMemStorage*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvMemStorage)  
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<CvMemStorage*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
    3833                } 
     34 
     35 
     36                /// <summary> 
     37                /// Data pointer (CvMemStorage*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
     42                } 
     43 
    3944 
    4045                property int signature  
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvQuadEdge2D.h

    r32628 r32637  
    2020        public: 
    2121                /// <summary> 
    22                 /// data pointer (CvQuadEdge2D*) 
    23                 /// </summary> 
    24                 initonly IntPtr Ptr; 
    25                 /// <summary> 
    2622                /// sizeof(CvQuadEdge2D) 
    2723                /// </summary> 
     
    3329                WCvQuadEdge2D(IntPtr ptr) 
    3430                { 
    35                         if(ptr == IntPtr::Zero) { 
    36                                 throw gcnew ArgumentNullException("ptr"); 
    37                         } 
    3831                        this->_ptr = static_cast<CvQuadEdge2D*>(ptr.ToPointer()); 
    39                         this->Ptr = IntPtr(ptr); 
    4032                }                
     33 
     34 
     35                /// <summary> 
     36                /// Data pointer (CvQuadEdge2D*) 
     37                /// </summary> 
     38                property IntPtr CvPtr 
     39                { 
     40                        IntPtr get(){ return IntPtr(_ptr); } 
     41                } 
    4142 
    4243                 
     
    4546                        int get(void) { return _ptr->flags; } 
    4647                } 
    47  
    4848                // struct CvSubdiv2DPoint* pt[4]; 
    4949                property IntPtr pt 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvSeq.h

    r31568 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// 元データであるCvSeq*を取得する 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    27                 /// sizeof(CvSeq) を取得する 
     23                /// sizeof(CvSeq)  
    2824                /// </summary> 
    2925                literal Int32 SizeOf = static_cast<Int32>(sizeof(CvSeq));  
    3026 
    3127                /// <summary> 
    32                 /// 初期化 
     28                /// Constructor 
    3329                /// </summary> 
    3430                WCvSeq(IntPtr ptr) 
    3531                { 
    3632                        this->_ptr = static_cast<CvSeq*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
    3833                } 
    3934 
    40                 property int flags { 
     35                /// <summary> 
     36                /// Data pointer (CvSeq*) 
     37                /// </summary> 
     38                property IntPtr CvPtr 
     39                { 
     40                        IntPtr get(){ return IntPtr(_ptr); } 
     41                } 
     42 
     43                property int flags  
     44                { 
    4145                        int get(){ return _ptr->flags; } 
    4246                }; 
    43                 property int header_size{ 
     47                property int header_size 
     48                { 
    4449                        int get(){ return _ptr->header_size; } 
    4550                } 
    46                 property IntPtr h_prev{ 
     51                property IntPtr h_prev 
     52                { 
    4753                        IntPtr get(){ return IntPtr(_ptr->h_prev); } 
    4854                } 
    49                 property IntPtr h_next{ 
     55                property IntPtr h_next 
     56                { 
    5057                        IntPtr get(){ return IntPtr(_ptr->h_next); } 
    5158                } 
    52                 property IntPtr v_prev{ 
     59                property IntPtr v_prev 
     60                { 
    5361                        IntPtr get(){ return IntPtr(_ptr->v_prev); } 
    5462                } 
    55                 property IntPtr v_next{ 
     63                property IntPtr v_next 
     64                { 
    5665                        IntPtr get(){ return IntPtr(_ptr->v_next); } 
    5766                } 
    58                 property int total { 
     67                property int total 
     68                { 
    5969                        int get(){ return _ptr->total; } 
    6070                }; 
    61                 property int elem_size { 
     71                property int elem_size  
     72                { 
    6273                        int get(){ return _ptr->elem_size; } 
    6374                }; 
    6475 
    65                 property IntPtr block_max{ 
     76                property IntPtr block_max 
     77                { 
    6678                        IntPtr get(){ return IntPtr(_ptr->block_max); } 
    6779                } 
    68                 property IntPtr ptr{ 
     80                property IntPtr ptr 
     81                { 
    6982                        IntPtr get(){ return IntPtr(_ptr->ptr); } 
    7083                } 
    71                 property int delta_elems { 
     84                property int delta_elems  
     85                { 
    7286                        int get(){ return _ptr->delta_elems; } 
    7387                }; 
    7488 
    75                 property IntPtr storage{ 
     89                property IntPtr storage 
     90                { 
    7691                        IntPtr get(){ return IntPtr(_ptr->storage); } 
    7792                } 
    78                 property IntPtr free_blocks{ 
     93                property IntPtr free_blocks 
     94                { 
    7995                        IntPtr get(){ return IntPtr(_ptr->free_blocks); } 
    8096                } 
    81                 property IntPtr first{ 
     97                property IntPtr first 
     98                { 
    8299                        IntPtr get(){ return IntPtr(_ptr->first); } 
    83100                } 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvSeqBlock.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// data pointer(CvSeqBlock*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvSeqBlock)  
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<CvSeqBlock*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
     33                } 
     34 
     35 
     36                /// <summary> 
     37                /// Data pointer (CvSeqBlock*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
    3842                } 
    3943 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvSeqReader.h

    r32628 r32637  
    2020        public: 
    2121                /// <summary> 
    22                 /// data pointer (CvSeqReader*) 
    23                 /// </summary> 
    24                 initonly IntPtr Ptr; 
    25                 /// <summary> 
    2622                /// sizeof(CvSeqReader)  
    2723                /// </summary> 
     
    3430                { 
    3531                        this->_ptr = static_cast<CvSeqReader*>(ptr.ToPointer()); 
    36                         this->Ptr = IntPtr(ptr); 
    3732                } 
     33 
     34 
     35                /// <summary> 
     36                /// Data pointer (CvSeqReader*) 
     37                /// </summary> 
     38                property IntPtr CvPtr 
     39                { 
     40                        IntPtr get(){ return IntPtr(_ptr); } 
     41                } 
     42 
    3843 
    3944                property int header_size 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvSet.h

    r32280 r32637  
    2222        public: 
    2323                /// <summary> 
    24                 /// 元データであるCvSet*を取得する 
    25                 /// </summary> 
    26                 initonly IntPtr Ptr; 
    27                 /// <summary> 
    2824                /// sizeof(CvSet) を取得する 
    2925                /// </summary> 
     
    3127 
    3228                /// <summary> 
    33                 /// 初期化 
     29                /// Constructor 
    3430                /// </summary> 
    3531                WCvSet(IntPtr ptr) : WCvSeq(ptr) 
    3632                { 
    3733                        this->_ptr = static_cast<CvSet*>(ptr.ToPointer()); 
    38                         this->Ptr = IntPtr(ptr); 
    3934                } 
    4035 
    41                 property IntPtr free_elems{ 
     36                /// <summary> 
     37                /// Data pointer (CvSet*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
     42                } 
     43 
     44                property IntPtr free_elems 
     45                { 
    4246                        IntPtr get(void) { return IntPtr(_ptr->free_elems); } 
    4347                } 
    44                 property int active_count{ 
     48                property int active_count 
     49                { 
    4550                        int get(void) { return _ptr->active_count; } 
    4651                } 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvSetElem.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// data pointer (CvSetElem*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvSetElem)  
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<CvSetElem*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
    3833                }                
     34 
     35                 
     36                /// <summary> 
     37                /// Data pointer (CvSetElem*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
     42                } 
    3943 
    4044                 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvSparseMat.h

    r31568 r32637  
    1616        public: 
    1717                /// <summary> 
    18                 /// 元データであるCvSparseMat*を取得する 
    19                 /// </summary> 
    20                 initonly IntPtr Ptr; 
    21                 /// <summary> 
    22                 /// sizeof(CvSparseMat) を取得する 
     18                /// sizeof(CvSparseMat)  
    2319                /// </summary> 
    2420                literal Int32 SizeOf = static_cast<Int32>(sizeof(CvSparseMat));  
    2521 
    2622                /// <summary> 
    27                 /// 多次元,多チャンネルの疎な行列 
     23                /// Constructor 
    2824                /// </summary> 
    2925                WCvSparseMat(IntPtr ptr) 
    3026                { 
    3127                        this->_ptr = static_cast<CvSparseMat*>(ptr.ToPointer()); 
    32                         this->Ptr = IntPtr(ptr); 
    3328                } 
    3429 
    35                 property int type { 
     30 
     31                /// <summary> 
     32                /// Data pointer (CvSparseMat*) 
     33                /// </summary> 
     34                property IntPtr CvPtr 
     35                { 
     36                        IntPtr get(){ return IntPtr(_ptr); } 
     37                } 
     38 
     39 
     40                property int type  
     41                { 
    3642                        int get(){ return _ptr->type; } 
    37                 }; 
    38                 property int dims{ 
     43                } 
     44                property int dims 
     45                { 
    3946                        int get(){ return _ptr->dims; } 
    4047                } 
    41                 property IntPtr refcount{ 
     48                property IntPtr refcount 
     49                { 
    4250                        IntPtr get(){ return IntPtr(_ptr->refcount); } 
    4351                } 
    44                 property int hdr_refcount{ 
     52                property int hdr_refcount 
     53                { 
    4554                        int get(){ return _ptr->hdr_refcount; } 
    4655                } 
    4756 
    4857                 
    49                 property IntPtr heap{ 
     58                property IntPtr heap 
     59                { 
    5060                        IntPtr get(){ return IntPtr(_ptr->heap); } 
    5161                } 
    52                 property IntPtr hashtable{ 
     62                property IntPtr hashtable 
     63                { 
    5364                        IntPtr get(){ return IntPtr(_ptr->hashtable); } 
    5465                } 
    55                 property int hashsize { 
     66                property int hashsize  
     67                { 
    5668                        int get(){ return _ptr->hashsize; } 
    57                 }; 
    58                 property int valoffset { 
     69                } 
     70                property int valoffset 
     71                { 
    5972                        int get(){ return _ptr->valoffset; } 
    60                 }; 
    61                 property int idxoffset { 
     73                } 
     74                property int idxoffset  
     75                { 
    6276                        int get(){ return _ptr->idxoffset; } 
    63                 }; 
    64                 property array<int>^ size { 
     77                } 
     78                property array<int>^ size 
     79                { 
    6580                        array<int>^ get(){  
    6681                                array<int>^ result = gcnew array<int>(CV_MAX_DIM); 
     
    7085                                return result; 
    7186                        } 
    72                 }; 
     87                } 
    7388        }; 
    7489} 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvStereoBMState.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// Data pointer (CvStereoBMState*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvStereoBMState)  
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<CvStereoBMState*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
     33                } 
     34 
     35 
     36                /// <summary> 
     37                /// Data pointer (CvStereoBMState*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
    3842                } 
    3943 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvStereoGCState.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// data pointer (CvStereoGCState*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvStereoGCState)  
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<CvStereoGCState*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
     33                } 
     34 
     35 
     36                /// <summary> 
     37                /// Data pointer (CvStereoGCState*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
    3842                } 
    3943 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvStringHashNode.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// Data pointer (CvStringHashNode*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvStringHashNode)  
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<CvStringHashNode*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
    3833                }                
    3934  
     35                 
     36                /// <summary> 
     37                /// Data pointer (CvStringHashNode*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
     42                } 
     43 
    4044 
    4145                property unsigned hashval 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvSubdiv2D.h

    r32430 r32637  
    2222        public: 
    2323                /// <summary> 
    24                 /// Data pointer (CvSubdiv2D*) 
    25                 /// </summary> 
    26                 initonly IntPtr Ptr; 
    27                 /// <summary> 
    2824                /// sizeof(CvSubdiv2D) 
    2925                /// </summary> 
     
    3632                { 
    3733                        this->_ptr = static_cast<CvSubdiv2D*>(ptr.ToPointer()); 
    38                         this->Ptr = IntPtr(ptr); 
     34                } 
     35 
     36 
     37                /// <summary> 
     38                /// Data pointer (IplImage*) 
     39                /// </summary> 
     40                property IntPtr CvPtr 
     41                { 
     42                        IntPtr get(){ return IntPtr(_ptr); } 
    3943                } 
    4044 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvSubdiv2DPoint.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// CvSubdiv2DPoint* 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(CvSubdiv2DPoint) 
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<CvSubdiv2DPoint*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
    3833                }                
     34 
     35 
     36                /// <summary> 
     37                /// Data pointer (CvSubdiv2DPoint*) 
     38                /// </summary> 
     39                property IntPtr CvPtr 
     40                { 
     41                        IntPtr get(){ return IntPtr(_ptr); } 
     42                } 
    3943 
    4044                 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WIplConvKernel.h

    r32628 r32637  
    2121        public: 
    2222                /// <summary> 
    23                 /// data pointer (IplConvKernel*) 
    24                 /// </summary> 
    25                 initonly IntPtr Ptr; 
    26                 /// <summary> 
    2723                /// sizeof(IplConvKernel)  
    2824                /// </summary> 
     
    3531                { 
    3632                        this->_ptr = static_cast<IplConvKernel*>(ptr.ToPointer()); 
    37                         this->Ptr = IntPtr(ptr); 
     33                } 
     34 
     35                /// <summary> 
     36                /// Data pointer (IplConvKernel*) 
     37                /// </summary> 
     38                property IntPtr CvPtr 
     39                { 
     40                        IntPtr get(){ return IntPtr(_ptr); } 
    3841                } 
    3942 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WIplImage.h

    r31568 r32637  
    1 /** 
     1/** 
    22 * (C) 2008-2009 Schima 
    33 * This code is licenced under the LGPL. 
     
    1212{ 
    1313        /// <summary> 
    14         /// IPL �摜�w�b�_ 
     14        /// IPL 画像ヘッダ 
    1515        /// </summary> 
    1616        public ref class WIplImage 
     
    2121        public: 
    2222                /// <summary> 
    23                 /// ���f�[�^�ł���lImage*�������         /// </summary> 
    24                 initonly IntPtr Ptr; 
    25                 /// <summary> 
    26                 /// sizeof(IplImage) �������            /// </summary> 
     23                /// sizeof(IplImage)  
     24                /// </summary> 
    2725                literal Int32 SizeOf = static_cast<Int32>(sizeof(IplImage));  
    2826 
    2927                /// <summary> 
    30                 /// ����                /// </summary> 
     28                /// Constructor 
     29                /// </summary> 
    3130                WIplImage(IntPtr ptr) 
    3231                { 
    3332                        this->_ptr = static_cast<IplImage*>(ptr.ToPointer()); 
    34                         this->Ptr = IntPtr(ptr); 
    3533                } 
    3634 
    37                 property int align { 
     35                /// <summary> 
     36                /// Data pointer (IplImage*) 
     37                /// </summary> 
     38                property IntPtr CvPtr 
     39                { 
     40                        IntPtr get(){ return IntPtr(_ptr); } 
     41                } 
     42 
     43                property int align 
     44                { 
    3845                        int get(){ return _ptr->align; } 
    39                 }; 
    40                 property int alphaChannel{ 
     46                } 
     47                property int alphaChannel 
     48                { 
    4149                        int get(){ return _ptr->alphaChannel; } 
    4250                } 
    4351                [Obsolete] 
    44                 property IntPtr BorderMode{ 
     52                property IntPtr BorderMode 
     53                { 
    4554                        IntPtr get(){ return IntPtr(_ptr->BorderMode); } 
    4655                } 
    4756                [Obsolete] 
    48                 property IntPtr BorderConst{ 
     57                property IntPtr BorderConst 
     58                { 
    4959                        IntPtr get(){ return IntPtr(_ptr->BorderConst); } 
    5060                } 
    5161                [Obsolete] 
    52                 property IntPtr colorModel{ 
     62                property IntPtr colorModel 
     63                { 
    5364                        IntPtr get(){ return IntPtr(_ptr->colorModel); } 
    5465                } 
    5566                [Obsolete] 
    56                 property IntPtr channelSeq{ 
     67                property IntPtr channelSeq 
     68                { 
    5769                        IntPtr get(){ return IntPtr(_ptr->channelSeq); } 
    5870                } 
    59                 property int dataOrder{ 
     71                property int dataOrder 
     72                { 
    6073                        int get(){ return _ptr->dataOrder; } 
    6174                } 
    62                 property Int32 depth{ 
     75                property Int32 depth 
     76                { 
    6377                        Int32 get(){ return _ptr->depth; } 
    6478                } 
    65                 property int height { 
     79                property int height  
     80                { 
    6681                        int get(){ return _ptr->height; } 
    67                 }; 
    68                 property int ID{ 
     82                } 
     83                property int ID 
     84                { 
    6985                        int get(){ return _ptr->ID; } 
    7086                } 
    71                 property IntPtr imageData{ 
     87                property IntPtr imageData 
     88                { 
    7289                        IntPtr get(){ return IntPtr(_ptr->imageData); } 
    7390                } 
    74                 property IntPtr imageDataOrigin{ 
     91                property IntPtr imageDataOrigin 
     92                { 
    7593                        IntPtr get(){ return IntPtr(_ptr->imageDataOrigin); } 
    7694                } 
    7795                [Obsolete] 
    78                 property IntPtr imageID{ 
     96                property IntPtr imageID 
     97                { 
    7998                        IntPtr get(){ return IntPtr(_ptr->imageId); } 
    8099                } 
    81                 property int imageSize{ 
     100                property int imageSize 
     101                { 
    82102                        int get(){ return _ptr->imageSize; } 
    83103                } 
    84104                [Obsolete] 
    85                 property IntPtr maskROI{ 
     105                property IntPtr maskROI 
     106                { 
    86107                        IntPtr get(){ return IntPtr(_ptr->maskROI); } 
    87108                } 
    88                 property int nChannels{ 
     109                property int nChannels 
     110                { 
    89111                        int get(){ return _ptr->nChannels; } 
    90112                } 
    91                 property int nSize { 
     113                property int nSize  
     114                { 
    92115                        int get(){ return _ptr->nSize; } 
    93                 }; 
    94                 property int origin { 
     116                } 
     117                property int origin  
     118                { 
    95119                        int get(){ return _ptr->origin; } 
    96                 }; 
    97                 property IntPtr roi{ 
     120                } 
     121                property IntPtr roi 
     122                { 
    98123                        IntPtr get(){ return IntPtr(_ptr->roi); } 
    99124                } 
    100125                [Obsolete] 
    101                 property IntPtr tileInfo{ 
     126                property IntPtr tileInfo 
     127                { 
    102128                        IntPtr get(){ return IntPtr(_ptr->tileInfo); } 
    103129                } 
    104                 property int width { 
     130                property int width 
     131                { 
    105132                        int get(){ return _ptr->width; } 
    106                 }; 
    107                 property int widthStep { 
     133                } 
     134                property int widthStep  
     135                { 
    108136                        int get(){ return _ptr->widthStep; } 
    109                 }; 
     137                } 
    110138        }; 
    111139} 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/Src/Class/CvConnectedComp.cs

    r32510 r32637  
    4040        public CvConnectedComp() 
    4141        { 
    42             IntPtr ptr = AllocMemory(SizeOf); 
    43             this._data = new Extern.WCvConnectedComp(ptr); 
    44             this._ptr = _data.Ptr; 
     42            this._ptr = AllocMemory(SizeOf); 
     43            this._data = new Extern.WCvConnectedComp(this._ptr); 
    4544        } 
    4645#if LANG_JP 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/Src/Class/CvRandState.cs

    r32628 r32637  
    108108            Cv.RandInit(this, param1, param2, seed, disttype); 
    109109        } 
     110#if LANG_JP 
     111        /// <summary> 
     112        ///  
     113        /// </summary> 
     114        /// <param name="ptr"></param> 
     115#else 
     116        /// <summary> 
     117        /// Initializes from pointer 
     118        /// </summary> 
     119        /// <param name="ptr"></param> 
     120#endif 
     121        public CvRandState(IntPtr ptr) 
     122        { 
     123            if (ptr == null) 
     124            { 
     125                throw new ArgumentNullException("ptr"); 
     126            } 
     127            CvRandState s = (CvRandState)Marshal.PtrToStructure(ptr, typeof(CvRandState)); 
     128            if (s == null) 
     129            { 
     130                throw new OpenCvSharpException(); 
     131            } 
     132            this.disttype = s.disttype; 
     133            this.param = s.param; 
     134            this.state = s.state; 
     135        } 
    110136 
    111137 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/Src/CvArr/CvMat.cs

    r32543 r32637  
    7979            } 
    8080            this.data = new Extern.WCvMat(this.ptr); 
     81            NotifyMemoryPressure(SizeOf); 
    8182        } 
    8283#if LANG_JP 
     
    566567        public unsafe byte* DataByte 
    567568        { 
    568             get { return data.ptr; } 
     569            get { return data.data_ptr; } 
    569570        } 
    570571#if LANG_JP 
     
    579580        public unsafe short* DataInt16 
    580581        { 
    581             get { return data.s; } 
     582            get { return data.data_s; } 
    582583        } 
    583584#if LANG_JP 
     
    592593        public unsafe int* DataInt32 
    593594        { 
    594             get { return data.i; } 
     595            get { return data.data_i; } 
    595596        } 
    596597#if LANG_JP 
     
    605606        public unsafe float* DataSingle 
    606607        { 
    607             get { return data.fl; } 
     608            get { return data.data_fl; } 
    608609        } 
    609610#if LANG_JP 
     
    618619        public unsafe double* DataDouble 
    619620        { 
    620             get { return data.db; } 
     621            get { return data.data_db; } 
    621622        } 
    622623#if LANG_JP 
     
    637638                    unsafe 
    638639                    { 
    639                         dataArrayByte = new PointerAccessor.Byte1(data.ptr); 
     640                        dataArrayByte = new PointerAccessor.Byte1(data.data_ptr); 
    640641                    } 
    641642                } 
     
    660661                    unsafe 
    661662                    { 
    662                         dataArrayShort = new PointerAccessor.Short1(data.s); 
     663                        dataArrayShort = new PointerAccessor.Short1(data.data_s); 
    663664                    } 
    664665                } 
     
    683684                    unsafe 
    684685                    { 
    685                         dataArrayInt = new PointerAccessor.Int1(data.i); 
     686                        dataArrayInt = new PointerAccessor.Int1(data.data_i); 
    686687                    } 
    687688                } 
     
    706707                    unsafe 
    707708                    { 
    708                         dataArrayFloat = new PointerAccessor.Float1(data.fl); 
     709                        dataArrayFloat = new PointerAccessor.Float1(data.data_fl); 
    709710                    } 
    710711                } 
     
    729730                    unsafe 
    730731                    { 
    731                         dataArrayDouble = new PointerAccessor.Double1(data.db); 
     732                        dataArrayDouble = new PointerAccessor.Double1(data.data_db); 
    732733                    } 
    733734                }