|
Revision 32857, 0.9 kB
(checked in by schima, 4 years ago)
|
|
inherited from WBase
|
| 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 | /// CvConnectedComp
|
|---|
| 15 | /// </summary>
|
|---|
| 16 | public ref class WCvConnectedComp : public WBase<CvConnectedComp>
|
|---|
| 17 | {
|
|---|
| 18 | public:
|
|---|
| 19 | /// <summary>
|
|---|
| 20 | /// Constructor
|
|---|
| 21 | /// </summary>
|
|---|
| 22 | WCvConnectedComp(IntPtr ptr) : WBase(ptr)
|
|---|
| 23 | {
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | property double area
|
|---|
| 28 | {
|
|---|
| 29 | double get(){ return _ptr->area; }
|
|---|
| 30 | }
|
|---|
| 31 | property IntPtr value
|
|---|
| 32 | {
|
|---|
| 33 | IntPtr get(){ return (IntPtr)(&(_ptr->value.val));}
|
|---|
| 34 | }
|
|---|
| 35 | property System::Drawing::Rectangle rect
|
|---|
| 36 | {
|
|---|
| 37 | System::Drawing::Rectangle get(){ return System::Drawing::Rectangle(_ptr->rect.x, _ptr->rect.y,_ptr->rect.width,_ptr->rect.height); }
|
|---|
| 38 | }
|
|---|
| 39 | property IntPtr contour
|
|---|
| 40 | {
|
|---|
| 41 | IntPtr get(){ return (IntPtr)(_ptr->contour); }
|
|---|
| 42 | }
|
|---|
| 43 | };
|
|---|
| 44 | }
|
|---|
| 45 | }
|
|---|
| 46 | } |
|---|