OpenCvSharp.Blob Struct that contain information about one blob. Constructor Label assigned to the blob Area (moment 00) Area (moment 00) X min X max Y min Y max CvRect(MinX, MinY, MaxX - MinX, MaxY - MinY) Centroid Moment 10 Moment 01 Moment 11 Moment 20 Moment 02 True if central moments are being calculated Central moment 11 Central moment 20 Central moment 02 Normalized central moment 11. Normalized central moment 20. Normalized central moment 02. Hu moment 1. Hu moment 2. Contour Internal contours Calculates angle orientation of a blob. This function uses central moments so cvCentralMoments should have been called before for this blob. (cvAngle) Angle orientation in radians. Calculates centroid. Centroid will be returned and stored in the blob structure. (cvCentroid) Centroid. Save the image of a blob to a file. The function uses an image (that can be the original pre-processed image or a processed one, or even the result of cvRenderBlobs, for example) and a blob structure. Then the function saves a copy of the part of the image where the blob is. Name of the file. Image. Set central/hu moments and centroid value from moment values (M**) Constants which are defined by cvblob Render each blog with a different color. Render centroid. Render bounding box. Render angle. Print blob data to log out. Print blob data to std out. Up. Up and right. Right. Down and right. Down. Down and left. Left. Up and left. Move vectors of chain codes. Print the ID of each track in the image. Draw bounding box of each track in the image. \see cvRenderTracks Print track info to log out. Print track info to log out. Functions of cvblob library Calculates angle orientation of a blob. This function uses central moments so cvCentralMoments should have been called before for this blob. (cvAngle) Blob. Angle orientation in radians. Calculates centroid. Centroid will be returned and stored in the blob structure. (cvCentroid) Blob whose centroid will be calculated. Centroid. Calculates area of a polygonal contour. Contour (polygon type). Area of the contour. Calculates the circularity of a polygon (compactness measure). Contour (polygon type). Circularity: a non-negative value, where 0 correspond with a circumference. Calculates perimeter of a chain code contour. Contour (polygon type). Perimeter of the contour. Calculates perimeter of a chain code contour. Contour (chain code type). Perimeter of the contour. Convert a chain code contour to a polygon. Chain code contour. A polygon. Filter blobs by area. Those blobs whose areas are not in range will be erased from the input list of blobs. (cvFilterByArea) List of blobs. Minimum area. Maximum area. Filter blobs by label. Delete all blobs except those with label l. List of blobs. Label to leave. Draw a binary image with the blobs that have been given. (cvFilterLabels) List of blobs to be drawn. Output binary image (depth=IPL_DEPTH_8U and nchannels=1). Get the label value from a labeled image. Blob data. X coordenate. Y coordenate. Label value. Find greater blob. (cvGreaterBlob) List of blobs. The greater blob. Find the largest blob. (cvLargestBlob) List of blobs. The largest blob. Label the connected parts of a binary image. (cvLabel) Input binary image (depth=IPL_DEPTH_8U and num. channels=1). List of blobs. Number of pixels that has been labeled. Calculates mean color of a blob in an image. Blob list The target blob Original image. Average color. Calculates convex hull of a contour. Uses the Melkman Algorithm. Code based on the version in http://w3.impa.br/~rdcastan/Cgeometry/. Contour (polygon type). Convex hull. Draws or prints information about a blob. Label data. Blob. Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Draws or prints information about a blob. Label data. Blob. Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Render mode. By default is CV_BLOB_RENDER_COLOR|CV_BLOB_RENDER_CENTROID|CV_BLOB_RENDER_BOUNDING_BOX|CV_BLOB_RENDER_ANGLE. Draws or prints information about a blob. Label data. Blob. Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Render mode. By default is CV_BLOB_RENDER_COLOR|CV_BLOB_RENDER_CENTROID|CV_BLOB_RENDER_BOUNDING_BOX|CV_BLOB_RENDER_ANGLE. Color to render (if CV_BLOB_RENDER_COLOR is used). If mode CV_BLOB_RENDER_COLOR is used. 1.0 indicates opaque and 0.0 translucent (1.0 by default). Draws or prints information about blobs. (cvRenderBlobs) List of blobs. Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Draws or prints information about blobs. (cvRenderBlobs) List of blobs. Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Render mode. By default is CV_BLOB_RENDER_COLOR|CV_BLOB_RENDER_CENTROID|CV_BLOB_RENDER_BOUNDING_BOX|CV_BLOB_RENDER_ANGLE. If mode CV_BLOB_RENDER_COLOR is used. 1.0 indicates opaque and 0.0 translucent (1.0 by default). Draw a contour. Chain code contour. Image to draw on. Draw a contour. Chain code contour. Image to draw on. Color to draw (default, white). Draw a polygon. Polygon contour. Image to draw on. Draw a polygon. Polygon contour. Image to draw on. Color to draw (default, white). Prints tracks information. List of tracks. Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Prints tracks information. List of tracks. Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Render mode. By default is CV_TRACK_RENDER_ID. Prints tracks information. List of tracks. Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Render mode. By default is CV_TRACK_RENDER_ID. Save the image of a blob to a file. The function uses an image (that can be the original pre-processed image or a processed one, or even the result of cvRenderBlobs, for example) and a blob structure. Then the function saves a copy of the part of the image where the blob is. Name of the file. Image. Blob. 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). Contour (polygon type). A simplify version of the original polygon. 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). Contour (polygon type). Minimum distance. A simplify version of the original polygon. Updates list of tracks based on current blobs. List of blobs. List of tracks. Max distance to determine when a track and a blob match. Max number of frames a track can be inactive. Updates list of tracks based on current blobs. List of blobs. List of tracks. Max distance to determine when a track and a blob match. Max number of frames a track can be inactive. If a track becomes inactive but it has been active less than thActive frames, the track will be deleted. Tracking based on: A. Senior, A. Hampapur, Y-L Tian, L. Brown, S. Pankanti, R. Bolle. Appearance Models for Occlusion Handling. Second International workshop on Performance Evaluation of Tracking and Surveillance Systems & CVPR'01. December, 2001. (http://www.research.ibm.com/peoplevision/PETS2001.pdf) Write a contour to a CSV (Comma-separated values) file. Polygon contour. File name. Write a contour to a SVG file. Polygon contour. File name. Write a contour to a SVG file. Polygon contour. File name. Stroke color (black by default). Fill color (white by default). Blob set Label values Constructor (init only) Constructor (copy) Constructor (copy) Constructor (init and cvLabel) Input binary image (depth=IPL_DEPTH_8U and nchannels=1). Calculates mean color of a blob in an image. (cvBlobMeanColor) The target blob Original image. Filter blobs by area. Those blobs whose areas are not in range will be erased from the input list of blobs. (cvFilterByArea) Minimun area. Maximun area. Filter blobs by label. Delete all blobs except those with label l. Label to leave. Draw a binary image with the blobs that have been given. (cvFilterLabels) Output binary image (depth=IPL_DEPTH_8U and nchannels=1). Find greater blob. (cvGreaterBlob) The greater blob. Find the largest blob. (cvGreaterBlob) The largest blob. Label the connected parts of a binary image. (cvLabel) Number of pixels that has been labeled. Label the connected parts of a binary image. (cvLabel) Input binary image (depth=IPL_DEPTH_8U and num. channels=1). Number of pixels that has been labeled. Draws or prints information about blobs. (cvRenderBlobs) Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Draws or prints information about blobs. (cvRenderBlobs) Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Render mode. By default is CV_BLOB_RENDER_COLOR|CV_BLOB_RENDER_CENTROID|CV_BLOB_RENDER_BOUNDING_BOX|CV_BLOB_RENDER_ANGLE. Draws or prints information about blobs. (cvRenderBlobs) Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Render mode. By default is CV_BLOB_RENDER_COLOR|CV_BLOB_RENDER_CENTROID|CV_BLOB_RENDER_BOUNDING_BOX|CV_BLOB_RENDER_ANGLE. If mode CV_BLOB_RENDER_COLOR is used. 1.0 indicates opaque and 0.0 translucent (1.0 by default). Updates list of tracks based on current blobs. List of tracks. Max distance to determine when a track and a blob match. Max number of frames a track can be inactive. Tracking based on: A. Senior, A. Hampapur, Y-L Tian, L. Brown, S. Pankanti, R. Bolle. Appearance Models for Occlusion Handling. Second International workshop on Performance Evaluation of Tracking and Surveillance Systems & CVPR'01. December, 2001. (http://www.research.ibm.com/peoplevision/PETS2001.pdf) Updates list of tracks based on current blobs. List of tracks. Max distance to determine when a track and a blob match. Max number of frames a track can be inactive. If a track becomes inactive but it has been active less than thActive frames, the track will be deleted. Tracking based on: A. Senior, A. Hampapur, Y-L Tian, L. Brown, S. Pankanti, R. Bolle. Appearance Models for Occlusion Handling. Second International workshop on Performance Evaluation of Tracking and Surveillance Systems & CVPR'01. December, 2001. (http://www.research.ibm.com/peoplevision/PETS2001.pdf) Chain code (direction) Up. Up and right. Right. Down and right. Down. Down and left. Left. Up and left. Point where contour begin. Polygon description based on chain codes. Convert a chain code contour to a polygon. A polygon. Calculates perimeter of a polygonal contour. Perimeter of the contour. Draw a contour. Image to draw on. Draw a contour. Image to draw on. Color to draw (default, white). Polygon based contour. Converts this to CSV string Calculates area of a polygonal contour. Area of the contour. Calculates the circularity of a polygon (compactness measure). Circularity: a non-negative value, where 0 correspond with a circumference. Calculates convex hull of a contour. Uses the Melkman Algorithm. Code based on the version in http://w3.impa.br/~rdcastan/Cgeometry/. Convex hull. Calculates perimeter of a chain code contour. Perimeter of the contour. Draw a polygon. Image to draw on. Draw a polygon. Image to draw on. Color to draw (default, white). 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). A simplify version of the original polygon. 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). Minimun distance. A simplify version of the original polygon. Write a contour to a CSV (Comma-separated values) file. File name. Write a contour to a SVG file. File name Write a contour to a SVG file. File name Stroke color Fill color Struct that contain information about one track. Track identification number. Label assigned to the blob related to this track. X min. X max. Y min. Y max. Centroid. Indicates how much frames the object has been in scene. Indicates number of frames that has been active from last inactive period. Indicates number of frames that has been missing. Prints tracks information. Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Prints tracks information. Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Render mode. By default is CV_TRACK_RENDER_ID. Prints tracks information. Input image (depth=IPL_DEPTH_8U and num. channels=3). Output image (depth=IPL_DEPTH_8U and num. channels=3). Render mode. By default is CV_TRACK_RENDER_ID. Label values for each pixel Label value Image sizw Row length Column Length Returns deep copied instance of this Value of invalid pixel. -1 == uint.MaxValue Render mode of cvRenderBlobs No flags (=0) Render each blog with a different color. [CV_BLOB_RENDER_COLOR] Render centroid. CV_BLOB_RENDER_CENTROID] Render bounding box. [CV_BLOB_RENDER_BOUNDING_BOX] Render angle. [CV_BLOB_RENDER_ANGLE] Print blob data to log out. [CV_BLOB_RENDER_TO_LOG] Print blob data to std out. [CV_BLOB_RENDER_TO_STD] Render mode of cvRenderTracks No flags [0] Print the ID of each track in the image. [CV_TRACK_RENDER_ID] Draw bounding box of each track in the image. \see cvRenderTracks [CV_TRACK_RENDER_BOUNDING_BOX]