User-defined parameters
|
grabIm(1)
|
'assign custom name for user-defined parameter User1
|
renameParam("User1","Elongation")
|
'defining a formula:
|
'SetParamValue(GetParamValue(FeretMax)/GetParamValue(FeretAvrg))
|
strUser="SetParamValue(\"Elongation\",(GetParamValue(\"FeretMax\")/GetParamValue(\"FeretAvrg\")),0)"
|
'set the scope of interactive functions to global parameter list
|
setParamScope(PAR_GLOBAL)
|
'select parameters for measurements including the newly defined one
|
SelectParam("Area","Perim","FeretMax","FeretAvrg","Elongation")
|
'Submit definition string as a last argument for measurement function
|
MeasContours(1,TRUE,3,0,strUser)
|