root/lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvMatND.h @ 30907

Revision 30907, 1.7 kB (checked in by schima, 4 years ago)

DisposableObjectによりリソース解放処理を統一化

Line 
1/**
2 * (C) 2008 Schima
3 * This code is licenced under the LGPL.
4 */
5
6#pragma once
7
8#include "ICvArr.h"
9#include "MatrixType.h"
10
11typedef CvMatND __CvMatND;
12
13using namespace System;
14using namespace System::Runtime::InteropServices;
15namespace N = KwsmLab::OpenCvSharp;
16
17namespace KwsmLab {
18namespace OpenCvSharp
19{
20        /// <summary>
21        /// �������C���`�����l���̖��ȍs��/// </summary>
22        public ref class CvMatND : public CvArr//, public ICvArr<CvMatND^>
23        {
24        protected:
25                virtual void Release( void ) override;
26
27        internal:               
28                /// <summary>
29                /// �s��b�_�ւ̃|�C���^ [ (__CvMatND*)Ptr ]
30                /// </summary>
31                property __CvMatND* MatNDPtr{
32                        __CvMatND* get(void){ return (__CvMatND*)this->Ptr; }
33                }               
34                CvMatND(void);
35                CvMatND(Boolean isEnabledDispose);
36                CvMatND(__CvMatND* ptr);
37                CvMatND(__CvMatND* ptr, Boolean isEnabledDispose);
38
39        public:
40
41                #pragma region �v���p�e�B
42                /// <summary>
43                /// ���f�[�^�|�C���^�̃o�C�g�T�C�Y�A
44                /// ���Ȃ킿 sizeof(CvMatND) �������
45                /// </summary>
46                static property Int32 SizeOf{
47                        Int32 get(void){ return sizeof(__CvMatND); }
48                }
49
50                /// <summary>
51                /// CvMatND �V�O�l�`�� (CV_MATND_MAGIC_VAL)�D�v�f�̌^�ƃt���O
52                /// </summary>
53                virtual property Int32 Type{
54                        Int32 get(void) { return MatNDPtr->type; }
55                }
56                /// <summary>
57                /// �s��[�^�ւ̃|�C���^.
58                /// ��ۂɊi�[���Ă����[�^�^�ɉ����ēK�Xbyte*��uble*���ɃL���X�g���ė��p����
59                /// </summary>
60                property IntPtr Data{
61                        IntPtr get(void) { return (IntPtr)(MatNDPtr->data.ptr); }
62                }
63                /// <summary>
64                /// �z��������������
65                /// </summary>
66                virtual property Int32 Dims{
67                        Int32 get(void) new{ return MatNDPtr->dims; }
68                }
69                #pragma endregion
70        };
71}
72}
Note: See TracBrowser for help on using the browser.