|
Revision 32637, 1.2 kB
(checked in by schima, 4 years ago)
|
|
minor updates
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * (C) 2008-2009 Schima
|
|---|
| 3 | * This code is licenced under the LGPL.
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | #pragma once
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | namespace KwsmLab {
|
|---|
| 10 | namespace OpenCvSharp {
|
|---|
| 11 | namespace Extern
|
|---|
| 12 | {
|
|---|
| 13 | /// <summary>
|
|---|
| 14 | /// 膨張・収縮処理で用いる構造要素
|
|---|
| 15 | /// </summary>
|
|---|
| 16 | public ref class WIplConvKernel
|
|---|
| 17 | {
|
|---|
| 18 | private:
|
|---|
| 19 | IplConvKernel* _ptr;
|
|---|
| 20 |
|
|---|
| 21 | public:
|
|---|
| 22 | /// <summary>
|
|---|
| 23 | /// sizeof(IplConvKernel)
|
|---|
| 24 | /// </summary>
|
|---|
| 25 | literal Int32 SizeOf = static_cast<Int32>(sizeof(IplConvKernel));
|
|---|
| 26 |
|
|---|
| 27 | /// <summary>
|
|---|
| 28 | /// Constructor
|
|---|
| 29 | /// </summary>
|
|---|
| 30 | WIplConvKernel(IntPtr ptr)
|
|---|
| 31 | {
|
|---|
| 32 | this->_ptr = static_cast<IplConvKernel*>(ptr.ToPointer());
|
|---|
| 33 | }
|
|---|
| 34 |
|
|---|
| 35 | /// <summary>
|
|---|
| 36 | /// Data pointer (IplConvKernel*)
|
|---|
| 37 | /// </summary>
|
|---|
| 38 | property IntPtr CvPtr
|
|---|
| 39 | {
|
|---|
| 40 | IntPtr get(){ return IntPtr(_ptr); }
|
|---|
| 41 | }
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 | property int nCols
|
|---|
| 45 | {
|
|---|
| 46 | int get(){ return _ptr->nCols; }
|
|---|
| 47 | }
|
|---|
| 48 | property int nRows
|
|---|
| 49 | {
|
|---|
| 50 | int get(){ return _ptr->nRows; }
|
|---|
| 51 | }
|
|---|
| 52 | property int anchorX
|
|---|
| 53 | {
|
|---|
| 54 | int get(){ return _ptr->anchorX; }
|
|---|
| 55 | }
|
|---|
| 56 | property int anchorY
|
|---|
| 57 | {
|
|---|
| 58 | int get(){ return _ptr->anchorY; }
|
|---|
| 59 | }
|
|---|
| 60 | property IntPtr values
|
|---|
| 61 | {
|
|---|
| 62 | IntPtr get(){ return IntPtr(_ptr->values); }
|
|---|
| 63 | }
|
|---|
| 64 | property int nShiftR
|
|---|
| 65 | {
|
|---|
| 66 | int get(){ return _ptr->nShiftR; }
|
|---|
| 67 | }
|
|---|
| 68 | };
|
|---|
| 69 | }
|
|---|
| 70 | }
|
|---|
| 71 | } |
|---|