|
Revision 31262, 1.3 kB
(checked in by schima, 4 years ago)
|
|
CoreをExternに名前変更
|
| Line | |
|---|
| 1 | #pragma once
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 | namespace KwsmLab {
|
|---|
| 5 | namespace OpenCvSharp {
|
|---|
| 6 | namespace Extern
|
|---|
| 7 | {
|
|---|
| 8 | /// <summary>
|
|---|
| 9 | /// �������C���`�����l���̖��ȍs��/// </summary>
|
|---|
| 10 | public ref class WCvMatND
|
|---|
| 11 | {
|
|---|
| 12 | private:
|
|---|
| 13 | CvMatND* _ptr;
|
|---|
| 14 |
|
|---|
| 15 | public:
|
|---|
| 16 | /// <summary>
|
|---|
| 17 | /// ���f�[�^�ł���MatND*������� /// </summary>
|
|---|
| 18 | initonly IntPtr Ptr;
|
|---|
| 19 | /// <summary>
|
|---|
| 20 | /// sizeof(CvMatND) ������� /// </summary>
|
|---|
| 21 | literal Int32 SizeOf = static_cast<Int32>(sizeof(CvMatND));
|
|---|
| 22 |
|
|---|
| 23 | /// <summary>
|
|---|
| 24 | /// ���� /// </summary>
|
|---|
| 25 | WCvMatND(IntPtr ptr)
|
|---|
| 26 | {
|
|---|
| 27 | this->_ptr = reinterpret_cast<CvMatND*>(ptr.ToPointer());
|
|---|
| 28 | this->Ptr = IntPtr(ptr);
|
|---|
| 29 | }
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | property int type {
|
|---|
| 33 | int get(){ return _ptr->type; }
|
|---|
| 34 | };
|
|---|
| 35 | property int dims{
|
|---|
| 36 | int get(){ return _ptr->dims; }
|
|---|
| 37 | }
|
|---|
| 38 | property IntPtr refcount{
|
|---|
| 39 | IntPtr get(){ return IntPtr(_ptr->refcount); }
|
|---|
| 40 | }
|
|---|
| 41 | property int hdr_refcount{
|
|---|
| 42 | int get(){ return _ptr->hdr_refcount; }
|
|---|
| 43 | }
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 | property IntPtr data{
|
|---|
| 47 | IntPtr get(){ return IntPtr(_ptr->data.ptr); }
|
|---|
| 48 | }
|
|---|
| 49 | property uchar* ptr{
|
|---|
| 50 | uchar* get(){ return _ptr->data.ptr; }
|
|---|
| 51 | }
|
|---|
| 52 | property short* s{
|
|---|
| 53 | short* get(){ return _ptr->data.s; }
|
|---|
| 54 | }
|
|---|
| 55 | property int* i{
|
|---|
| 56 | int* get(){ return _ptr->data.i; }
|
|---|
| 57 | }
|
|---|
| 58 | property float* fl{
|
|---|
| 59 | float* get(){ return _ptr->data.fl; }
|
|---|
| 60 | }
|
|---|
| 61 | property double* db{
|
|---|
| 62 | double* get(){ return _ptr->data.db; }
|
|---|
| 63 | }
|
|---|
| 64 |
|
|---|
| 65 | };
|
|---|
| 66 | }
|
|---|
| 67 | }
|
|---|
| 68 | } |
|---|