Click or drag to resize

CvContourPolygon Class

Polygon based contour.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericListPoint
    OpenCvSharp.BlobCvContourPolygon

Namespace:  OpenCvSharp.Blob
Assembly:  OpenCvSharp.Blob (in OpenCvSharp.Blob.dll) Version: 1.0.0
Syntax
public class CvContourPolygon : List<Point>

The CvContourPolygon type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCapacity
Gets or sets the total number of elements the internal data structure can hold without resizing.
(Inherited from ListPoint.)
Public propertyCount (Inherited from ListPoint.)
Public propertyItem
Gets or sets the element at the specified index.
(Inherited from ListPoint.)
Top
Methods
  NameDescription
Public methodAdd (Inherited from ListPoint.)
Public methodAddRange (Inherited from ListPoint.)
Public methodArea
Calculates area of a polygonal contour.
Public methodAsReadOnly (Inherited from ListPoint.)
Public methodBinarySearch(T)
Searches the entire sorted ListT for an element using the default comparer and returns the zero-based index of the element.
(Inherited from ListPoint.)
Public methodBinarySearch(T, IComparerT)
Searches the entire sorted ListT for an element using the specified comparer and returns the zero-based index of the element.
(Inherited from ListPoint.)
Public methodBinarySearch(Int32, Int32, T, IComparerT)
Searches a range of elements in the sorted ListT for an element using the specified comparer and returns the zero-based index of the element.
(Inherited from ListPoint.)
Public methodCircularity
Calculates the circularity of a polygon (compactness measure).
Public methodClear (Inherited from ListPoint.)
Public methodContains (Inherited from ListPoint.)
Public methodContourConvexHull
Calculates convex hull of a contour. Uses the Melkman Algorithm. Code based on the version in http://w3.impa.br/~rdcastan/Cgeometry/.
Public methodConvertAllTOutput (Inherited from ListPoint.)
Public methodCopyTo(T) (Inherited from ListPoint.)
Public methodCopyTo(T, Int32) (Inherited from ListPoint.)
Public methodCopyTo(Int32, T, Int32, Int32)
Copies a range of elements from the ListT to a compatible one-dimensional array, starting at the specified index of the target array.
(Inherited from ListPoint.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExists (Inherited from ListPoint.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFind
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire ListT.
(Inherited from ListPoint.)
Public methodFindAll
Retrieves all the elements that match the conditions defined by the specified predicate.
(Inherited from ListPoint.)
Public methodFindIndex(PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire ListT.
(Inherited from ListPoint.)
Public methodFindIndex(Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the ListT that extends from the specified index to the last element.
(Inherited from ListPoint.)
Public methodFindIndex(Int32, Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the ListT that starts at the specified index and contains the specified number of elements.
(Inherited from ListPoint.)
Public methodFindLast
Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire ListT.
(Inherited from ListPoint.)
Public methodFindLastIndex(PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire ListT.
(Inherited from ListPoint.)
Public methodFindLastIndex(Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the ListT that extends from the first element to the specified index.
(Inherited from ListPoint.)
Public methodFindLastIndex(Int32, Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the ListT that contains the specified number of elements and ends at the specified index.
(Inherited from ListPoint.)
Public methodForEach (Inherited from ListPoint.)
Public methodGetEnumerator (Inherited from ListPoint.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRange (Inherited from ListPoint.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf(T) (Inherited from ListPoint.)
Public methodIndexOf(T, Int32)
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the ListT that extends from the specified index to the last element.
(Inherited from ListPoint.)
Public methodIndexOf(T, Int32, Int32)
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the ListT that starts at the specified index and contains the specified number of elements.
(Inherited from ListPoint.)
Public methodInsert (Inherited from ListPoint.)
Public methodInsertRange (Inherited from ListPoint.)
Public methodLastIndexOf(T) (Inherited from ListPoint.)
Public methodLastIndexOf(T, Int32)
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the ListT that extends from the first element to the specified index.
(Inherited from ListPoint.)
Public methodLastIndexOf(T, Int32, Int32)
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the ListT that contains the specified number of elements and ends at the specified index.
(Inherited from ListPoint.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPerimeter
Calculates perimeter of a chain code contour.
Public methodRemove (Inherited from ListPoint.)
Public methodRemoveAll
Removes all the elements that match the conditions defined by the specified predicate.
(Inherited from ListPoint.)
Public methodRemoveAt (Inherited from ListPoint.)
Public methodRemoveRange (Inherited from ListPoint.)
Public methodRender(Mat)
Draw a polygon.
Public methodRender(Mat, Scalar)
Draw a polygon.
Public methodReverse (Inherited from ListPoint.)
Public methodReverse(Int32, Int32)
Reverses the order of the elements in the specified range.
(Inherited from ListPoint.)
Public methodSimplify
Simplify a polygon reducing the number of vertex according the distance "delta". Uses a version of the Ramer-Douglas-Peucker algorithm (http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm).
Public methodSimplify(Double)
Simplify a polygon reducing the number of vertex according the distance "delta". Uses a version of the Ramer-Douglas-Peucker algorithm (http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm).
Public methodSort (Inherited from ListPoint.)
Public methodSort(IComparerT) (Inherited from ListPoint.)
Public methodSort(ComparisonT) (Inherited from ListPoint.)
Public methodSort(Int32, Int32, IComparerT) (Inherited from ListPoint.)
Public methodToArray (Inherited from ListPoint.)
Public methodToString
Converts this to CSV string
(Overrides ObjectToString.)
Public methodToSvg
Public methodTrimExcess (Inherited from ListPoint.)
Public methodTrueForAll (Inherited from ListPoint.)
Public methodWriteAsCsv
Write a contour to a CSV (Comma-separated values) file.
Public methodWriteAsSvg(String)
Write a contour to a SVG file.
Public methodWriteAsSvg(String, Scalar, Scalar)
Write a contour to a SVG file.
Top
See Also