Blob Colorize
The Blob Colorize module provides a way to recolorize blobs (segmented objects) based on another image (normally the
source pixel data). This is required when you have processed an image into separated blobs but need to recombine
the blobs with their original color information that was lost during processing.
The Blob Colorize will use a source pixel image and replace each non-black object with the various colors
drawn from the source image. This is functionally similar to using the blobs as masks into the source pixel
image and summing the resulting pixels to form the new color.
Interface
Instructions
1. Source - Select which image represents the source pre-processed RGB pixel image of the current image
2. Color - Select which color statistic to gather based on the source image that will be the new color
of the respective blob
Example
| Source | Blob Colorize |
 |  |
The above demonstrates the blob colorizing routine after thresholding the image for high intensity, dilating by
2 and then using the blob colorizing module to recolor the resulting white blobs.
This technique is very handy for laser light detection. The issue with laser lights is that while we see them as
red (or green) but the camera sees them as white light surrounded by a red halo due to the color range limitation of CCDs. In order to detect "red" spots we
need to first detect likely laser spots, expand the blob and then test for color. The following shows
two laser lights from the SRV-1 robot and the final step of
the detected two laser lights with the X coordinate of the blobs (this can be used for distance sensing).
Download the robofile that accomplishes this.
| Source | Laser Detected |
 |  |
See Also
Colorize
|