Top  Previous  Next

measPoints ( integer Input [, integer Radius, string File ] )

Use this function to activate interactive point measurements that allow the user to define point features and collect information about their coordinates and intensity values. Equivalent to selecting the Point Measurements command in the Measure menu. 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 image for which the measurements are taken.  
An optional integer between 0 and 16 specifying the radius of the point features for intensity measurements. Enter any value from 0 to 16. If this parameter is 0, only a single pixel will be taken into consideration.  
Default value:0  
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.  
This set of statements reads a sample image, initializes measurement parameters using the global scope and activates interactive point measurements:  
setCurDir ("samples")  
loadIm (1,"sample8.iwd")  
selectParam ("Count","GrayAvrg","CenterX","CenterY")  
measPoints (1,5,"points.dbs")  
For more information on the Point Measurements dialog box and the list of supported parameters refer to ImageWarp User's Guide.