setParamSize
Top  Previous  Next

setParamSize (string Param, . integer Size )

Use this function to set the size of a specified measurement parameter. Typically used for formulation of user-defined parameters. If a scalar parameter is supplied to the function, it will be converted to a vector one.

Arguments
 
Param  
 
A string specifying the name of the measurement parameter whose size is to be set. See selectParam for the list of parameters supported by ImageWarp.  
 
Size  
 
An integer specifying the new size of the measurement parameter.  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  

Example
 
This set of statements converts the "Area" parameter into a vector parameter and fills it with data:  
 
setParamSize("Area",3)  
setParamValue ("Area", 100, 0)  
setParamValue ("Area", 200, 1)  
setParamValue ("Area", 300, 2)  
Print "Area(0)=", getParamValue("Area",0)  
Print "Area(1)=", getParamValue("Area",1)  
Print "Area(2)=", getParamValue("Area",2)