Top  Previous  Next

measBlobs ( integer Input [, integer Photo, string File, string User ] )

Use this function to activate interactive blob measurements that allow the user to collect information about geometrical, optical and topological properties of objects represented by blobs. Equivalent to selecting the Blob Measurements command in the Measure menu. A blob is an area of connected pixels in the Input image, which can be only of the multiphase type. Such an image is usually created as a result of the segmentation of the original Photo image. ImageWarp takes intensity measurements from the Photo image, using the Input image as a binary mask.
Prior to performing point measurements, the image must be calibrated with proper spatial and intensity calibration scales, and the background corrected for transmission and optical density measurements.

An integer between 1 and 99 specifying the frame number of the multiphase image for which the measurements are taken.  
An optional integer between 1 and 116 specifying the number of the image frame used for intensity measurements. This is usually an original real-color or grayscale image from which the Input image was derived as a result of image processing and segmentation. When measuring intensity parameters, ImageWarp treats the Input image as a binary mask for the Photo image. If you do not need to perform the intensity measurements, you can omit this parameter or set its value to the number of the Input frame and work with the multiphase image only.  
An optional string specifying the name of the ImageWarp data file for saving measurement results. If the file already exists, the data previously stored will be loaded into the Measurement table and the measurement parameters recorded in the file will be used to activate the set of measurements for the session. If no such a file exists, it will be created when the user presses the Save button on the dialog. In this case the set of parameters must be selected manually by pressing the Parameters button or specified in advance by using the combination of the setParamScope and selectParam functions.  
An optional string specifying the formulas for calculating user-defined parameter. See User-defined parameters for more details.  

This set of statements binarizes a sample image, initializes measurement parameters using the global scope and activates interactive blob measurements:  
setCurDir ("samples")  
loadIm (1,"sample8.iwd")  
threshRGB(1, 2 , M_PRESET , TRUE, 1, 87,213, 46,151, 143,220)  
selectParam ("Area","Circularity","DCircle","BlueAvrg")  
measBlobs (2,1,"blobs.dbs")  

For more information on the Blob Measurements dialog box and the list of supported parameters refer to ImageWarp User's Guide.