|
Revision 31568, 1.2 kB
(checked in by schima, 4 years ago)
|
|
C style cast -> C++ style cast
|
| 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 | /// 元データであるIplConvKernel*を取得する
|
|---|
| 24 | /// </summary>
|
|---|
| 25 | initonly IntPtr Ptr;
|
|---|
| 26 | /// <summary>
|
|---|
| 27 | /// sizeof(IplConvKernel) を取得する
|
|---|
| 28 | /// </summary>
|
|---|
| 29 | literal Int32 SizeOf = static_cast<Int32>(sizeof(IplConvKernel));
|
|---|
| 30 |
|
|---|
| 31 | /// <summary>
|
|---|
| 32 | /// 初期化
|
|---|
| 33 | /// </summary>
|
|---|
| 34 | WIplConvKernel(IntPtr ptr)
|
|---|
| 35 | {
|
|---|
| 36 | this->_ptr = static_cast<IplConvKernel*>(ptr.ToPointer());
|
|---|
| 37 | this->Ptr = IntPtr(ptr);
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 | property int nCols {
|
|---|
| 42 | int get(){ return _ptr->nCols; }
|
|---|
| 43 | }
|
|---|
| 44 | property int nRows {
|
|---|
| 45 | int get(){ return _ptr->nRows; }
|
|---|
| 46 | }
|
|---|
| 47 | property int anchorX {
|
|---|
| 48 | int get(){ return _ptr->anchorX; }
|
|---|
| 49 | }
|
|---|
| 50 | property int anchorY {
|
|---|
| 51 | int get(){ return _ptr->anchorY; }
|
|---|
| 52 | }
|
|---|
| 53 | property IntPtr values {
|
|---|
| 54 | IntPtr get(){ return IntPtr(_ptr->values); }
|
|---|
| 55 | }
|
|---|
| 56 | property int nShiftR {
|
|---|
| 57 | int get(){ return _ptr->nShiftR; }
|
|---|
| 58 | }
|
|---|
| 59 | };
|
|---|
| 60 | }
|
|---|
| 61 | }
|
|---|
| 62 | } |
|---|