Screenshots     Download     Purchase     Documentation     Tutorials     Resources     Contact     Forum     Search  

 

Replace Blob

The replace blob module will replace white blobs present in the current image with the specified color object shape as selected in the interface. The shapes' sizes will be based on the area of the blob being replaced. This module is useful if you want to better define the shape of the blob with a known shape. For example, replacing detected blobs with a better defined circle can aid in subsequent detection or analysis.

Interface

Instructions

1. Select the color the replaced shape will appear in
2. Select the shape that is used to replace each blob present in the image.

bounding box - replaces each blob with it bounding box extents (xmax, ymax, xmin, ymin)
minimal enclosure - replaces each blob with its minimal enclosure parallelogram (rectangle)
circular enclosure - replaces each blob with a circle that encompasses the entire blob (aka Circumscribed Circle)
inscribed circle - replaces each blob with the largest inner circle that fits into the blob
crosshair - marks each blob's center of gravity with a cross hair
square area - replaces each blob with a square of the same area centered at the center of gravity of the blob
circle area - replaces each blob with a circle of the same area centered at the center of gravity of the blob
triangle area - replaces each blob with a triangle of the same area centered at the center of gravity of the blob
star area - replaces each blob with a star of the same area centered at the center of gravity of the blob
diamond area - replaces each blob with a diamond of the same area centered at the center of gravity of the blob
inner square - replaces each blob with the largest Cartesian (not rotated) square that fits in the blob
inner rectangle - replaces each blob with the largest Cartesian (not rotated) rectangle that fits in the blob
minimal quadrilateral - replaces each blob with the largest 4 sides polygon that fits around the blob 3. Select if the object should be filled or just drawn as an outline
4. Select what the resulting graphic will be drawn on.
Source - the original captured image
Current - the current image seen at this point in the processing pipeline
XXX - other images created by the Marker module.

Example

SourceCircle Blob

The example above shows an image RGBFiltered, Dilated and then blob replaced with red circles. Notice how the red traffic light is now better pronounced than in the source image.

Variables

MER_COORINATES - xmin, ymin, xmax, ymax coordinates of the Minimal Enclosed Rectangle for
each detected blob. Note that this is an ARRAY with 4 numbers per blob

MEP_COORINATES - xmin, ymin, xmax, ymax coordinates of the Minimal Enclosed Polygon for each detected blob. Note that this is an ARRAY with 4 numbers per blob

See Also


Convex Hull
Smooth Hull


© 2005 - 2010 RoboRealm. All Rights Reserved. | Contact | Glossary | Privacy | Disclaimer | Link to Us | Resources | Site Map