Class ConnectedComponentCollection
Represents a collection of connected components.
public class ConnectedComponentCollection : Collection<ConnectedComponent>, IList<ConnectedComponent>, ICollection<ConnectedComponent>, IList, ICollection, IReadOnlyList<ConnectedComponent>, IReadOnlyCollection<ConnectedComponent>, IEnumerable<ConnectedComponent>, IEnumerable
- Inheritance
-
ConnectedComponentCollection
- Implements
- Inherited Members
Constructors
ConnectedComponentCollection(Size)
Initializes a new instance of the ConnectedComponentCollection class using the specified image size.
public ConnectedComponentCollection(Size imageSize)
Parameters
imageSize
SizeThe size of the image from which the connected components were extracted.
ConnectedComponentCollection(IList<ConnectedComponent>, Size)
Initializes a new instance of the ConnectedComponentCollection class as a wrapper for the specified list of connected components.
public ConnectedComponentCollection(IList<ConnectedComponent> components, Size imageSize)
Parameters
components
IList<ConnectedComponent>The list of connected components that is wrapped by the new collection.
imageSize
SizeThe size of the image from which the connected components were extracted.
Properties
ImageSize
Gets the pixel-accurate size of the image from which the connected components were extracted.
public Size ImageSize { get; }