Changeset 26330

Show
Ignore:
Timestamp:
12/11/08 01:12:05 (4 years ago)
Author:
schima
Message:

cvExtractSURFを、ソースから見よう見まねでラップ

Location:
lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp
Files:
4 added
19 modified

Legend:

Unmodified
Added
Removed
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/AllClasses.h

    r22982 r26330  
    1717#include "CvSubdiv2D.h" 
    1818#include "CvSubdiv2DPoint.h" 
     19#include "CvTermCriteria.h" 
    1920#include "CvVideoWriter.h" 
    2021#include "IplConvKernel.h" 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/AllStructures.h

    r17367 r26330  
    1212#include "CvSize.h" 
    1313#include "CvSlice.h" 
    14 #include "CvTermCriteria.h" 
     14#include "CvSURFPoint.h" 
     15#include "CvSURFParams.h" 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CV.cpp

    r26069 r26330  
    26832683        } 
    26842684        #pragma endregion  
     2685        #pragma region ExtractSURF 
     2686        /// <summary> 
     2687        /// SURF??? 
     2688        /// </summary> 
     2689        /// <param name="img"></param> 
     2690        /// <param name="mask"></param> 
     2691        /// <param name="keypoints"></param> 
     2692        /// <param name="descriptors"></param> 
     2693        /// <param name="storage"></param> 
     2694        /// <param name="params"></param> 
     2695        void CV::ExtractSURF( N::CvArr^ img, N::CvArr^ mask, N::CvSeq^ keypoints, N::CvSeq^ descriptors, N::CvMemStorage^ storage, N::CvSURFParams params ) 
     2696        { 
     2697                CHECK_NULL(img); 
     2698                //CHECK_NULL(mask); 
     2699                ::CvArr* mask_ptr = (mask != nullptr) ? mask->Ptr : NULL; 
     2700                CHECK_NULL(keypoints); 
     2701                CHECK_NULL(descriptors); 
     2702                //CHECK_NULL(storage); 
     2703                ::CvMemStorage* storage_ptr = (storage != nullptr) ? storage->Ptr : NULL; 
     2704 
     2705                ::CvSeq* keypoints_ptr = keypoints->SeqPtr; 
     2706                ::CvSeq** keypoints_ptrptr = &keypoints_ptr; 
     2707                ::CvSeq* descriptors_ptr = descriptors->SeqPtr; 
     2708                ::CvSeq** descriptors_ptrptr = &descriptors_ptr; 
     2709 
     2710                ::cvExtractSURF(img->Ptr, mask_ptr, keypoints_ptrptr, descriptors_ptrptr, storage_ptr, params); 
     2711        } 
     2712        #pragma endregion 
    26852713        #pragma region FastArctan 
    26862714        /// <summary> 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CV.h

    r26307 r26330  
    211211                static void Error( N::CvStatus status, String^ func_name, String^ err_msg, String^ file_name, Int32 line ); 
    212212                static void Exp( N::CvArr^ src, N::CvArr^ dst ); 
     213                static void ExtractSURF( N::CvArr^ img, N::CvArr^ mask, N::CvSeq^ keypoints, N::CvSeq^ descriptors, N::CvMemStorage^ storage, N::CvSURFParams params ); 
    213214                static Single FastArctan( Single y, Single x ); 
    214215                static void FillConvexPoly( N::CvArr^ img, array<N::CvPoint>^ pts, N::CvColor color ); 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvColor.h

    r22279 r26330  
    2121        /// </summary> 
    2222        [Serializable] 
     23        [StructLayout(LayoutKind::Sequential)] 
    2324        public value class CvColor : IEquatable<CvColor> 
    2425        { 
    2526        private:                 
     27                Byte r; 
     28                Byte g; 
     29                Byte b; 
    2630 
    2731        internal: 
     
    2933 
    3034        public: 
    31                 CvColor(Byte r, Byte g, Byte b); 
    32  
    3335                /// <summary> 
    3436                /// R成分 
    3537                /// </summary> 
    36                 property Byte R; 
     38                property Byte R{ 
     39                        Byte get(void){ return r; } 
     40                        void set(Byte value) { r = value; } 
     41                } 
    3742                /// <summary> 
    3843                /// G成分 
    3944                /// </summary> 
    40                 property Byte G; 
     45                property Byte G{ 
     46                        Byte get(void){ return g; } 
     47                        void set(Byte value) { g = value; } 
     48                } 
    4149                /// <summary> 
    4250                /// B成分 
    4351                /// </summary> 
    44                 property Byte B; 
     52                property Byte B{ 
     53                        Byte get(void){ return b; } 
     54                        void set(Byte value) { b = value; } 
     55                } 
    4556 
    4657                #pragma region 色定数 
     
    113124                static property CvColor Brown{ CvColor get(void){               return CvColor(165, 42, 42);    } } 
    114125                #pragma endregion                
     126 
     127                CvColor(Byte r, Byte g, Byte b); 
    115128                         
    116129                static bool operator==(CvColor lhs, CvColor rhs); 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvHaarFeatureRect.h

    r22561 r26330  
    1818        /// </summary> 
    1919        [Serializable] 
     20        [StructLayout(LayoutKind::Sequential)] 
    2021        public value class CvHaarFeatureRect 
    2122        { 
     23        private: 
     24                N::CvRect r; 
     25                Single weight; 
     26 
    2227        public:          
    23                 CvHaarFeatureRect(N::CvRect r, Single weight); 
    24  
    2528                /// <summary> 
    2629                /// �� 
    2730                /// </summary> 
    28                 property N::CvRect R; 
     31                property N::CvRect R{ 
     32                        N::CvRect get(void){ return r; } 
     33                        void set(N::CvRect value) { r = value; } 
     34                } 
    2935                /// <summary> 
    3036                /// �d�� 
    3137                /// </summary> 
    32                 property Single Weight; 
     38                property Single Weight{ 
     39                        Single get(void){ return weight; } 
     40                        void set(Single value) { weight = value; } 
     41                } 
     42 
     43                CvHaarFeatureRect(N::CvRect r, Single weight); 
    3344 
    3445                virtual String^ ToString() override;             
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvPoint.h

    r22402 r26330  
    2222        /// </summary> 
    2323        [Serializable] 
     24        [StructLayout(LayoutKind::Sequential)] 
    2425        public value class CvPoint : IEquatable<CvPoint>, ICvObject 
    2526        { 
     27        private: 
     28                Int32 x; 
     29                Int32 y; 
     30 
    2631        internal: 
    2732                static operator __CvPoint( CvPoint self ); 
     
    3338        public:          
    3439                /// <summary> 
    35                 /// x 座標.通常は0が原点 
     40                /// x座標を取得・設定する.通常は0が原点 
    3641                /// </summary> 
    37                 property Int32 X; 
     42                property Int32 X{ 
     43                        Int32 get(void){ return x; } 
     44                        void set(Int32 value) { x = value; } 
     45                } 
    3846                /// <summary> 
    39                 /// y 座標.通常は0が原点 
     47                /// y座標を取得・設定する.通常は0が原点 
    4048                /// </summary> 
    41                 property Int32 Y; 
     49                property Int32 Y{ 
     50                        Int32 get(void){ return y; } 
     51                        void set(Int32 value) { y = value; } 
     52                } 
     53 
    4254                /// <summary> 
    4355                /// 元データのバイトサイズ、 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvPoint2D32f.h

    r22402 r26330  
    1818        /// </summary> 
    1919        [Serializable] 
     20        [StructLayout(LayoutKind::Sequential)] 
    2021        public value class CvPoint2D32f : IEquatable<CvPoint2D32f>, ICvObject 
    2122        { 
     23        private: 
     24                Single x; 
     25                Single y; 
     26 
    2227        internal: 
    2328                static operator __CvPoint2D32f(CvPoint2D32f self); 
     
    2833 
    2934        public: 
     35                /// <summary> 
     36                /// x座標を取得・設定する.通常は0が原点 
     37                /// </summary> 
     38                property Single X{ 
     39                        Single get(void){ return x; } 
     40                        void set(Single value) { x = value; } 
     41                } 
     42                /// <summary> 
     43                /// y座標を取得・設定する.通常は0が原点 
     44                /// </summary> 
     45                property Single Y{ 
     46                        Single get(void){ return y; } 
     47                        void set(Single value) { y = value; } 
     48                } 
     49 
    3050                /// <summary> 
    3151                /// 元データのバイトサイズ、 
     
    4666                        } 
    4767                } 
    48                 /// <summary> 
    49                 /// x 座標.通常は0が原点 
    50                 /// </summary> 
    51                 property Single X; 
    52                 /// <summary> 
    53                 /// y 座標.通常は0が原点 
    54                 /// </summary> 
    55                 property Single Y; 
    5668 
    5769                CvPoint2D32f(Single x, Single y);        
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvPoint2D64f.h

    r22402 r26330  
    1818        /// </summary> 
    1919        [Serializable] 
     20        [StructLayout(LayoutKind::Sequential)] 
    2021        public value class CvPoint2D64f : IEquatable<CvPoint2D64f>, ICvObject 
    2122        { 
     23        private: 
     24                Double x; 
     25                Double y; 
     26 
    2227        internal: 
    2328                static operator __CvPoint2D64f(CvPoint2D64f self); 
     
    2833 
    2934        public: 
     35                /// <summary> 
     36                /// x座標を取得・設定する.通常は0が原点 
     37                /// </summary> 
     38                property Double X{ 
     39                        Double get(void){ return x; } 
     40                        void set(Double value) { x = value; } 
     41                } 
     42                /// <summary> 
     43                /// y座標を取得・設定する.通常は0が原点 
     44                /// </summary> 
     45                property Double Y{ 
     46                        Double get(void){ return y; } 
     47                        void set(Double value) { y = value; } 
     48                } 
     49 
    3050                /// <summary> 
    3151                /// 元データのバイトサイズ、 
     
    4969                        } 
    5070                } 
    51                 /// <summary> 
    52                 /// x 座標.通常は0が原点 
    53                 /// </summary> 
    54                 property Double X; 
    55                 /// <summary> 
    56                 /// y 座標.通常は0が原点 
    57                 /// </summary> 
    58                 property Double Y; 
    5971 
    6072                CvPoint2D64f(Double x, Double y);                
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvPoint3D32f.h

    r22402 r26330  
    1818        /// </summary> 
    1919        [Serializable] 
     20        [StructLayout(LayoutKind::Sequential)] 
    2021        public value class CvPoint3D32f : IEquatable<CvPoint3D32f>, ICvObject 
    2122        { 
     23        private: 
     24                Single x; 
     25                Single y; 
     26                Single z; 
     27 
    2228        internal: 
    2329                static operator __CvPoint3D32f(CvPoint3D32f self); 
     
    2834 
    2935        public: 
     36                /// <summary> 
     37                /// x座標を取得・設定する.通常は0が原点 
     38                /// </summary> 
     39                property Single X{ 
     40                        Single get(void){ return x; } 
     41                        void set(Single value) { x = value; } 
     42                } 
     43                /// <summary> 
     44                /// y座標を取得・設定する.通常は0が原点 
     45                /// </summary> 
     46                property Single Y{ 
     47                        Single get(void){ return y; } 
     48                        void set(Single value) { y = value; } 
     49                } 
     50                /// <summary> 
     51                /// z座標を取得・設定する.通常は0が原点 
     52                /// </summary> 
     53                property Single Z{ 
     54                        Single get(void){ return z; } 
     55                        void set(Single value) { z = value; } 
     56                } 
     57 
    3058                /// <summary> 
    3159                /// 元データのバイトサイズ、 
     
    4674                        } 
    4775                } 
    48                 /// <summary> 
    49                 /// x 座標.通常は0が原点 
    50                 /// </summary> 
    51                 property Single X; 
    52                 /// <summary> 
    53                 /// y 座標.通常は0が原点 
    54                 /// </summary> 
    55                 property Single Y; 
    56                 /// <summary> 
    57                 /// z 座標.通常は0が原点 
    58                 /// </summary> 
    59                 property Single Z; 
    6076 
    6177                CvPoint3D32f(Single x, Single y, Single z);              
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvPoint3D64f.h

    r22402 r26330  
    1818        /// </summary> 
    1919        [Serializable] 
     20        [StructLayout(LayoutKind::Sequential)] 
    2021        public value class CvPoint3D64f : IEquatable<CvPoint3D64f>, ICvObject 
    2122        {        
     23        private: 
     24                Double x; 
     25                Double y; 
     26                Double z; 
     27 
    2228        internal: 
    2329                static operator __CvPoint3D64f(CvPoint3D64f self); 
     
    2834 
    2935        public: 
     36                /// <summary> 
     37                /// x座標を取得・設定する.通常は0が原点 
     38                /// </summary> 
     39                property Double X{ 
     40                        Double get(void){ return x; } 
     41                        void set(Double value) { x = value; } 
     42                } 
     43                /// <summary> 
     44                /// y座標を取得・設定する.通常は0が原点 
     45                /// </summary> 
     46                property Double Y{ 
     47                        Double get(void){ return y; } 
     48                        void set(Double value) { y = value; } 
     49                } 
     50                /// <summary> 
     51                /// z座標を取得・設定する.通常は0が原点 
     52                /// </summary> 
     53                property Double Z{ 
     54                        Double get(void){ return z; } 
     55                        void set(Double value) { z = value; } 
     56                } 
     57 
    3058                /// <summary> 
    3159                /// 元データのバイトサイズ、 
     
    5179                        } 
    5280                } 
    53                 /// <summary> 
    54                 /// x 座標.通常は0が原点 
    55                 /// </summary> 
    56                 property Double X; 
    57                 /// <summary> 
    58                 /// y 座標.通常は0が原点 
    59                 /// </summary> 
    60                 property Double Y; 
    61                 /// <summary> 
    62                 /// z 座標.通常は0が原点 
    63                 /// </summary> 
    64                 property Double Z; 
    6581 
    6682                CvPoint3D64f(Double x, Double y, Double z);              
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvRect.cpp

    r17367 r26330  
    88 
    99using namespace System; 
     10using namespace System::Runtime::InteropServices; 
     11namespace N = KwsmLab::OpenCvSharp; 
    1012 
    1113//typedef CvRect __CvRect; 
     
    4345        void CvRect::Set(Int32 x, Int32 y, Int32 width, Int32 height) 
    4446        { 
    45                 this->X = x; 
    46                 this->Y = y; 
    47                 this->Width = width; 
    48                 this->Height = height; 
     47                this->x = x; 
     48                this->y = y; 
     49                this->width = width; 
     50                this->height = height; 
    4951        } 
    5052        /// <summary> 
     
    5557        void CvRect::Set(N::CvPoint location, N::CvRect size) 
    5658        { 
    57                 this->X = location.X; 
    58                 this->Y = location.Y; 
    59                 this->Width = size.Width; 
    60                 this->Height = size.Height; 
     59                this->x = location.X; 
     60                this->y = location.Y; 
     61                this->width = size.Width; 
     62                this->height = size.Height; 
    6163        } 
    6264 
     
    6971        CvRect::operator __CvRect(CvRect self) 
    7072        { 
    71                 return cvRect(self.X, self.Y, self.Width, self.Height); 
     73                return ::cvRect(self.x, self.y, self.width, self.height); 
    7274        } 
    7375        /// <summary> 
     
    7880        CvRect::operator CvRect(__CvRect cr) 
    7981        { 
    80                 return OpenCvSharp::CvRect(cr.x, cr.y, cr.width, cr.height); 
     82                return N::CvRect(cr.x, cr.y, cr.width, cr.height); 
    8183        } 
    8284        /// <summary> 
     
    9294                        try{ 
    9395                                __CvRect* _ptr = (__CvRect*)(ptr.ToPointer()); 
    94                                 return CvRect(_ptr->x, _ptr->y, _ptr->width, _ptr->height); 
     96                                return N::CvRect(_ptr->x, _ptr->y, _ptr->width, _ptr->height); 
    9597                        }catch(...){ 
    9698                                throw gcnew InvalidCastException(); 
     
    117119        bool CvRect::operator==(CvRect lhs, CvRect rhs) 
    118120        { 
    119                 return (lhs.X == rhs.X && lhs.Y == rhs.Y && lhs.Width == rhs.Width && lhs.Height == rhs.Height); 
     121                return (lhs.x == rhs.x && lhs.y == rhs.y && lhs.width == rhs.width && lhs.height == rhs.height); 
    120122        } 
    121123        /// <summary> 
     
    126128        bool CvRect::Equals(CvRect cs) 
    127129        { 
    128                 return (this->X == cs.X && this->Y == cs.Y && this->Width == cs.Width && this->Height == cs.Height); 
     130                return (this->x == cs.x && this->y == cs.y && this->width == cs.width && this->height == cs.height); 
    129131        } 
    130132        /// <summary> 
     
    134136        String^ CvRect::ToString() 
    135137        { 
    136                 return String::Format("CvRect (x:{0} y:{1} width:{2} height:{3})", X, Y, Width, Height); 
     138                return String::Format("CvRect (x:{0} y:{1} width:{2} height:{3})", x, y, width, height); 
    137139        } 
    138140} 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvRect.h

    r17367 r26330  
    1 #pragma once 
     1/** 
     2 * (C) 2008 Schima 
     3 * This code is licenced under the LGPL. 
     4 */ 
     5 
     6#pragma once 
    27 
    38#include "CvPoint.h" 
     
    510 
    611using namespace System; 
     12using namespace System::Runtime::InteropServices; 
    713 
    814// 名前衝突回避 
     
    1622        /// </summary> 
    1723        [Serializable] 
     24        [StructLayout(LayoutKind::Sequential)] 
    1825        public value class CvRect : IEquatable<CvRect>, ICvObject 
    1926        { 
     27        private: 
     28                Int32 x; 
     29                Int32 y; 
     30                Int32 width; 
     31                Int32 height; 
     32 
    2033        internal: 
    2134                static operator __CvRect(CvRect self); 
     
    2437                static explicit operator CvRect( IntPtr ptr ); 
    2538 
    26         public: 
     39        public:  
     40                /// <summary> 
     41                /// x 座標を取得・設定する.通常は0が原点 
     42                /// </summary> 
     43                property Int32 X{ 
     44                        Int32 get(void){ return x; } 
     45                        void set(Int32 value) { x = value; } 
     46                } 
     47                /// <summary> 
     48                /// y 座標を取得・設定する.通常は0が原点 
     49                /// </summary> 
     50                property Int32 Y{ 
     51                        Int32 get(void){ return y; } 
     52                        void set(Int32 value) { y = value; } 
     53                } 
     54                /// <summary> 
     55                /// 矩形の幅を取得・設定する 
     56                /// </summary> 
     57                property Int32 Width{ 
     58                        Int32 get(void){ return width; } 
     59                        void set(Int32 value) { width = value; } 
     60                } 
     61                /// <summary> 
     62                /// 矩形の高さを取得・設定する 
     63                /// </summary> 
     64                property Int32 Height{ 
     65                        Int32 get(void){ return height; } 
     66                        void set(Int32 value) { height = value; } 
     67                } 
     68 
    2769                /// <summary> 
    2870                /// 元データのバイトサイズ、 
     
    4688                        } 
    4789                } 
    48                 /// <summary> 
    49                 /// x 座標を取得・設定する.通常は0が原点 
    50                 /// </summary> 
    51                 property Int32 X; 
    52                 /// <summary> 
    53                 /// y 座標取得・設定する.通常は0が原点 
    54                 /// </summary> 
    55                 property Int32 Y; 
    56                 /// <summary> 
    57                 /// 矩形の幅を取得・設定する 
    58                 /// </summary> 
    59                 property Int32 Width; 
    60                 /// <summary> 
    61                 /// 矩形の高さを取得・設定する 
    62                 /// </summary> 
    63                 property Int32 Height; 
    6490                /// <summary> 
    6591                /// 矩形の左上の座標を取得・設定する 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvScalar.h

    r17367 r26330  
    1919        /// </summary> 
    2020        [Serializable] 
     21        [StructLayout(LayoutKind::Sequential)] 
    2122        public value class CvScalar : IEquatable<CvScalar>, ICvObject 
    2223        { 
     24        private: 
     25                Double val0; 
     26                Double val1; 
     27                Double val2; 
     28                Double val3; 
     29 
    2330        internal: 
    2431                static operator __CvScalar(CvScalar self);               
     
    2835 
    2936        public: 
     37                /// <summary> 
     38                /// 1番目の要素 
     39                /// </summary> 
     40                property Double Val0{ 
     41                        Double get(void){ return val0; } 
     42                        void set(Double value) { val0 = value; } 
     43                } 
     44                /// <summary> 
     45                /// 2番目の要素 
     46                /// </summary> 
     47                property Double Val1{ 
     48                        Double get(void){ return val1; } 
     49                        void set(Double value) { val1 = value; } 
     50                } 
     51                /// <summary> 
     52                /// 3番目の要素 
     53                /// </summary> 
     54                property Double Val2{ 
     55                        Double get(void){ return val2; } 
     56                        void set(Double value) { val2 = value; } 
     57                } 
     58                /// <summary> 
     59                /// 4番目の要素 
     60                /// </summary> 
     61                property Double Val3{ 
     62                        Double get(void){ return val3; } 
     63                        void set(Double value) { val3 = value; } 
     64                } 
     65 
    3066                /// <summary> 
    3167                /// 元データのバイトサイズ、 
     
    5389                        } 
    5490                } 
    55                 /// <summary> 
    56                 /// 1番目の要素 
    57                 /// </summary> 
    58                 property Double Val0; 
    59                 /// <summary> 
    60                 /// 2番目の要素 
    61                 /// </summary> 
    62                 property Double Val1; 
    63                 /// <summary> 
    64                 /// 3番目の要素 
    65                 /// </summary> 
    66                 property Double Val2; 
    67                 /// <summary> 
    68                 /// 4番目の要素 
    69                 /// </summary> 
    70                 property Double Val3; 
    7191 
    7292                CvScalar(... array<Double>^ arr); 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvSize.h

    r17367 r26330  
    2020        /// </summary> 
    2121        [Serializable] 
     22        [StructLayout(LayoutKind::Sequential)] 
    2223        public value class CvSize : IEquatable<CvSize>, ICvObject 
    2324        { 
     25        private: 
     26                Int32 width; 
     27                Int32 height; 
     28 
    2429        internal: 
    2530                CvSize(__CvSize strct); 
     
    2934 
    3035        public: 
     36                /// <summary> 
     37                /// 矩形の幅を取得・設定する 
     38                /// </summary> 
     39                property Int32 Width{ 
     40                        Int32 get(void){ return width; } 
     41                        void set(Int32 value) { width = value; } 
     42                } 
     43                /// <summary> 
     44                /// 矩形の高さを取得・設定する 
     45                /// </summary> 
     46                property Int32 Height{ 
     47                        Int32 get(void){ return height; } 
     48                        void set(Int32 value) { height = value; } 
     49                } 
     50 
    3151                /// <summary> 
    3252                /// 元データのバイトサイズ、 
     
    4868                        } 
    4969                } 
    50                 /// <summary> 
    51                 /// 矩形の幅 
    52                 /// </summary> 
    53                 property Int32 Width; 
    54                 /// <summary> 
    55                 /// 矩形の高さ 
    56                 /// </summary> 
    57                 property Int32 Height; 
    5870 
    5971                CvSize(Int32 width, Int32 height); 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvSize2D32f.h

    r17367 r26330  
    1818        /// </summary> 
    1919        [Serializable] 
     20        [StructLayout(LayoutKind::Sequential)] 
    2021        public value class CvSize2D32f : IEquatable<CvSize2D32f>, ICvObject 
    2122        { 
     23        private: 
     24                Single width; 
     25                Single height; 
     26 
    2227        internal: 
    2328                CvSize2D32f(__CvSize2D32f strct); 
     
    2833 
    2934        public: 
     35                /// <summary> 
     36                /// 矩形の幅を取得・設定する 
     37                /// </summary> 
     38                property Single Width{ 
     39                        Single get(void){ return width; } 
     40                        void set(Single value) { width = value; } 
     41                } 
     42                /// <summary> 
     43                /// 矩形の高さを取得・設定する 
     44                /// </summary> 
     45                property Single Height{ 
     46                        Single get(void){ return height; } 
     47                        void set(Single value) { height = value; } 
     48                } 
     49 
    3050                /// <summary> 
    3151                /// 元データのバイトサイズ、 
     
    4666                        } 
    4767                } 
    48                 /// <summary> 
    49                 /// 矩形の幅 
    50                 /// </summary> 
    51                 property Single Width; 
    52                 /// <summary> 
    53                 /// 矩形の高さ 
    54                 /// </summary> 
    55                 property Single Height; 
    56                  
    5768 
    5869                CvSize2D32f(Single width, Single height); 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvSlice.h

    r17367 r26330  
    1919        /// </summary> 
    2020        [Serializable] 
     21        [StructLayout(LayoutKind::Sequential)] 
    2122        public value class CvSlice : IEquatable<CvSlice>, ICvObject 
    2223        { 
     24        private: 
     25                Int32 startIndex; 
     26                Int32 endIndex; 
     27 
    2328        internal: 
    2429                static operator __CvSlice(CvSlice self); 
     
    2934        public:  
    3035                /// <summary> 
    31                 /// x ��W�D�ʏ�0�����_ 
     36                /// �X���C�X�̐擪�l 
    3237                /// </summary> 
    33                 property Int32 StartIndex; 
     38                property Int32 StartIndex{ 
     39                        Int32 get(void){ return startIndex; } 
     40                        void set(Int32 value) { startIndex = value; } 
     41                } 
    3442                /// <summary> 
    35                 /// y ��W�D�ʏ�0�����_ 
     43                /// �X���C�X�̏I�[�l 
    3644                /// </summary> 
    37                 property Int32 EndIndex; 
     45                property Int32 EndIndex{ 
     46                        Int32 get(void){ return endIndex; } 
     47                        void set(Int32 value) { endIndex = value; } 
     48                } 
     49 
    3850                /// <summary> 
    3951                /// ���f�[�^�̃o�C�g�T�C�Y�A 
     
    5466                        } 
    5567                } 
     68 
    5669                /// <summary> 
    5770                /// �V�[�P���X�S�̂�����X���C�X�̃X���C�X���������                /// </summary> 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvSubdiv2DEdge.h

    r17367 r26330  
    3030        /// </remarks> 
    3131        [Serializable] 
     32        [StructLayout(LayoutKind::Sequential)] 
    3233        public value class CvSubdiv2DEdge : IEquatable<CvSubdiv2DEdge>, ICvObject 
    3334        { 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/OpenCvSharp.vcproj

    r26033 r26330  
    212212                        </File> 
    213213                        <File 
     214                                RelativePath=".\CvSURFParams.cpp" 
     215                                > 
     216                        </File> 
     217                        <File 
    214218                                RelativePath=".\Extras.cpp" 
    215219                                > 
     
    290294                                        > 
    291295                                </File> 
     296                                <File 
     297                                        RelativePath=".\CvSURFPoint.cpp" 
     298                                        > 
     299                                </File> 
    292300                        </Filter> 
    293301                        <Filter 
     
    490498                        </File> 
    491499                        <File 
     500                                RelativePath=".\CvSURFParams.h" 
     501                                > 
     502                        </File> 
     503                        <File 
    492504                                RelativePath=".\Extras.h" 
    493505                                > 
     
    762774                                <File 
    763775                                        RelativePath=".\CvSubdiv2DEdge.h" 
     776                                        > 
     777                                </File> 
     778                                <File 
     779                                        RelativePath=".\CvSURFPoint.h" 
    764780                                        > 
    765781                                </File>