next up previous contents
Next: Fourier commands Up: BLOB analysis methods Previous: Calculating features based on

Finding blobs with certain properties

 

tsipix Find blobs having specified property when using specified threshold
-d <idata> data frame containing property-threshold pairs
-dout <pixdata> data frame containing resulting pixels
-in <image> original image
[-feat <featnbr> ] used feature
[-colmost <gray | r g b> color for most frequent pixels
[-colless <gray | r g b> color for less frequent pixels

This command requires data frame that contains two fields. First field contains numeric value of feature featnbr (see section 6.7.1). Second field contains threshold value used when blob was segmented. Original image is segmented again using same threshold and pixels that belong to interesting blob are stored in data frame pixdata. These pixels can be shown using command f2i.

If several (property,threshold) pairs are specified, it is possible that same pixel satisfies many property-threshold conditions. Then pixels satisfying most conditions are coloured using color specified by -colmost and pixels satisfying only one condition are coloured using color specified by -colless. Colors for other occurrences are interpolated.

Example: If stedata contains some (steepness,threshold) pairs from image img, following commands find blobs having those steepnesses and shows them with red color in the original image.

...
# Find pixels
NDA> tsipix -d stedata -dout pixels -in img_neg -feat 7 \
 -colmost 255 0 0 -colless 170 0 0
# Pixels into image
NDA> f2i -d pixels -iout img_out -bgimg img
# Show image
NDA> mkgrp g
NDA> bgimg g -img img_out
NDA> show g



Anssi Lensu
Thu May 17 15:00:44 EET DST 2001