Display of Image Attributes

Building the Cantata Workspace


  1. Select and Display the image blobs.viff.
  2. Label the image and display it. Use the Labeling operator of the MMACH toolbox.
  3. Pseudocolor the labeled image with Autocolor selected with the "random" colormap. This enables better visualization of the connected regions.
  4. Use the Statistics operator to find out the maximum pixel value. This gives the number of regions in the image.
  5. 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.
  6. 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:
    1. Transfer the Value Segment of the table to Map Segment using Copy from Value operator. Now the file becomes a colormap.
    2. Insert the labeled image into the colormap using the operator Insert Segments.
    3. Map the colormap through the value data using the Map Data operator.
  7. Finally display the image using the Display Image operator. Passing the mouse over a region, the pixel value will indicate its area.

Exercises


DIP Feedback Form

Copyright © 1995 KRI, ISTEC, Ramiro Jordán, Roberto Lotufo. All Rights Reserved.