getParamSize
Top  Previous  Next

val = getParamSize ( string Param )

Use this function to retrieve the size of a specified measurement parameter of the vector type.

Arguments
 
Param  
 
A string specifying the name of the measurement parameter whose size is to be retrieved. See selectParam for the list of parameters supported by ImageWarp.  
 
Return value
 
The number of elements in the specified vector parameter. For scalar parameters the function returns 1.  
 
Error flags
 
ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  

Remark
 
To retrieve the measurement data from the Global Grid, use the Grid object.  

Example
 
This set of statements collects the line profile from a sample image and reports the size of the profile array.  
 
setCurDir ("samples")  
loadIm (1,"sample8.iwd")  
setProfile(1,"SH_LINE",10,10,115,210)  
measProfile(1)  
Print "Profile size: ", getParamSize("Profile")