| ImageStabiliz(s)ation |
From Steve's (Steven Elliott - CRS Marketing) email:
...
The vsgIOImageStabilisation function provides the same functionality as the
VSG Series Three Software ImageStabilisation command. It is defined for
Delphi as:
vsgIOImageStabilisation(Flag, ADCx : integer; ADCxmin, ADCxmax, SCRxmin,
SCRxmax : double; ADCy : integer; ADCymin, ADCymax, SCRymin, SCRymax :
double) : longint; stdcall;
The usage is the same as in the VSG Series Three Software. To turn on use:
vsgIOImageStabilisation(1, ADCXMinimumValue, ADCXMaximumValue, ScreenXMin,
ScreenXMax, ADCYMinimumValue, ADCYMaximumValue, ScreenYMin, ScreenYMax);
To turn off use:
vsgIOImageStabilisation(0,0,0,0,0,0,0,0,0);
...
cW = SCREENWIDTH/2; cH = SCREENHEIGHT/2; IMAGESTABILISE(1,0,4095,-cH,cH,0,4095,-cW,cW)where cH and cW are half height and half width of the monitor in pixels.
(1000 * 10[V]) / (60*W[deg]*stabX) = xGain[mV/minarc]
W is calculated on the basis of vd as:
W = 2*(arctan(0.5*MonW/vd)); # deg #
The actual pixel ranges (expected by the ImageStabilise function) then should be scaled by these coefficients:#----- stabcal -----# BLOCK stabcal stabX = 400*((1000*10)/(xGain*60*W)) stabY = 300*((1000*10)/(yGain*60*H)) ENDBLOCKand the call to ImageStabilise function is:
IMAGESTABILISE(1,0,4095,-stabY,stabY,0,4095,stabX,-stabX)Note: x is inverted for some obscure reason: ...stabX,-stabX...