Example #1
0
 /// <summary>
 /// Release unmanaged memory associated with this binary descriptor
 /// </summary>
 protected override void DisposeObject()
 {
     if (_ptr != IntPtr.Zero)
     {
         LineDescriptorInvoke.cveLineDescriptorBinaryDescriptorRelease(ref _ptr);
     }
 }
Example #2
0
 /// <summary>
 /// Release the unmanaged memory associated with this object.
 /// </summary>
 protected override void DisposeObject()
 {
     if (_ptr != IntPtr.Zero)
     {
         LineDescriptorInvoke.cveLineDescriptorLSDDetectorRelease(ref _ptr, ref _sharedPtr);
     }
 }
Example #3
0
 /// <summary>
 /// Detect lines inside an image.
 /// </summary>
 /// <param name="image">Input image</param>
 /// <param name="keylines">Vector that will store extracted lines for one or more images</param>
 /// <param name="scale">Scale factor used in pyramids generation</param>
 /// <param name="numOctaves">Number of octaves inside pyramid</param>
 /// <param name="mask">Mask matrix to detect only KeyLines of interest</param>
 public void Detect(Mat image, VectorOfKeyLine keylines, int scale, int numOctaves, Mat mask = null)
 {
     LineDescriptorInvoke.cveLineDescriptorLSDDetectorDetect(_ptr, image, keylines, scale, numOctaves, mask);
 }
Example #4
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public LSDDetector()
 {
     _ptr = LineDescriptorInvoke.cveLineDescriptorLSDDetectorCreate(ref _sharedPtr);
 }
Example #5
0
 /// <summary>
 /// Descriptors computation.
 /// </summary>
 /// <param name="image">Input image</param>
 /// <param name="keylines">Vector containing lines for which descriptors must be computed</param>
 /// <param name="descriptors">Computed descriptors will be stored here</param>
 /// <param name="returnFloatDescr">When true, original non-binary descriptors are returned</param>
 public void Compute(Mat image, VectorOfKeyLine keylines, Mat descriptors, bool returnFloatDescr = false)
 {
     LineDescriptorInvoke.cveLineDescriptorBinaryDescriptorCompute(_ptr, image, keylines, descriptors, returnFloatDescr);
 }
Example #6
0
 /// <summary>
 /// Line detection.
 /// </summary>
 /// <param name="image">Input image</param>
 /// <param name="keylines">Vector that will store extracted lines for one or more images</param>
 /// <param name="mask">Mask matrix to detect only KeyLines of interest</param>
 public void Detect(Mat image, VectorOfKeyLine keylines, Mat mask = null)
 {
     LineDescriptorInvoke.cveLineDescriptorBinaryDescriptorDetect(_ptr, image, keylines, mask);
 }
Example #7
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public BinaryDescriptor()
 {
     _ptr = LineDescriptorInvoke.cveLineDescriptorBinaryDescriptorCreate(ref _sharedPtr);
 }
Example #8
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public BinaryDescriptor()
 {
     _ptr = LineDescriptorInvoke.cveLineDescriptorBinaryDescriptorCreate();
 }
 /// <summary>
 /// Default constructor
 /// </summary>
 public LSDDetector()
 {
     _ptr = LineDescriptorInvoke.cveLineDescriptorLSDDetectorCreate();
 }