Skip to content

Internal Scripting Examples 2

The context is as follows:

$ROICIIndex contains index of ROI sampling point
$ROICIIndexMin = 1
$ROICIIndexMax = 7
$ROICIIndexMin <= $ROICIIndex <= $ROICIIndexMax
$ROICINbPoints = 50
$ROICIPointCtrl = [23; 39; 45]

This example shows how to use some mathematical functions like QuatraticBezier to be used in a ROI Curve:

Block(
  Set("min"; ScalarPlus($ROICIPointMin; 10));
  QuatraticBezier($min; $ROICIPointMax; ScalarTimes($ROICIPointCtrl; 1.5); $ROICINbPoints; $ROICIIndex)
)