Display of Image Attributes
Building the Cantata Workspace
- Select and Display the image blobs.viff.
- Label the image and display it. Use the
Labeling operator of the MMACH toolbox.
- Pseudocolor the labeled image with
Autocolor
selected with the "random" colormap. This enables better visualization of
the connected regions.
- Use the
Statistics operator to find out the
maximum pixel value. This gives the number of regions in the image.
- Take the
Histogram of the labeled image
with bin size set to 1 and number of bins to the number
of regions obtained in 4. Print its contents using
Print Data.
This table gives the area (number of pixels) of each region.
- Use the table just built (histogram) as a colormap to the
labeled image. The resultant image will have pixels representing
the area of each connected region. Perform the following the steps:
- Transfer the Value Segment of the table to Map Segment
using
Copy from Value
operator. Now the file becomes a colormap.
- Insert the labeled image into the colormap using the operator
Insert Segments.
- Map the colormap through the value data using the
Map Data operator.
- Finally display the image using the
Display Image operator.
Passing the mouse over a region, the pixel value will indicate its area.
Exercises
- There may be some problem rendering
the shades of this image as its range is very large, although
it uses few shades. Discuss and implement possible solutions to this problem.
You can use the
Clip Outside operator.
DIP Feedback Form