Home | History | Annotate | Download | only in www

Lines Matching full:objects

59 <p class="lead magick-description">Connected-component labeling (alternatively connected-component analysis, blob extraction, region labeling, blob discovery, or region extraction) uniquely labels connected components in an image.  The labeling process scans the image, pixel-by-pixel from top-left to bottom-right, in order to identify connected pixel regions, i.e. regions of adjacent pixels which share the same set of intensity values.  For example, let's find the objects in this image:</p>
61 <a href="../images/objects.gif"><img src="../images/objects.gif" width="256" height="171" class="image-slices" alt="purse" /></a>
63 <p>To identify the objects in this image, use this command:</p>
65 convert objects.gif -connected-components 4 -auto-level -depth 8 objects.png
67 <p>The detected objects are uniquely labeled. Use auto leveling to visualize the detected objects:</p>
69 <a href="../images/objects.png"><img src="../images/objects.png" width="256" height="171" class="image-slices" alt="Objects" /></a>
73 convert objects.gif -define connected-components:verbose=true -connected-components 4 objects.png
75 <p>Five objects were detected in the source image with these statistics:</p>
77 Objects (id: bounding-box centroid area mean-color):
85 <p>You might want to eliminate small objects by merging them with their larger neighbors. If so, use this command:</p>
87 convert objects.gif -define connected-components:area-threshold=410 -connected-components 4 \
88 -auto-level objects.jpg
90 <p>Here are the expected results. Notice, how the small objects are now merged with the background.</p>
92 <a href="../images/objects.jpg"><img src="../images/objects.jpg" width="256" height="171" class="image-slices" alt="Objects" /></a>
94 <p>Notice how two of the objects were merged leaving three remaining objects:</p>
96 Objects (id: bounding-box centroid area mean-color):
102 <p>You may want to remove certain objects by making them transparent. Use <code>-define connected-components:remove=<em>list-of-ids</em></code> (e.g. -define connected-components:remove=2,4-5). Or use <code>-define connected-components:keep=<em>list-of-ids</em></code> to keep these objects and make all others transparent.</p>