University of Illinois at Urbana-Champaign

emcSetImageShift

NAME

emcSetImageShift - Change the image shift

SYNOPSIS

#include "emc.h"
int emcSetImageShift(EM *em, int units, int correction, int relative,
                     double x, double y);

DESCRIPTION

emcSetImageShift() sets the current image shift parameters

*em
points to an EM control and communications structure that was returned by the emcOpen() call.
units
the units the values are expressed in:
UNCALIBRATED_UNITS Native image shift units of instrument
ANGSTROM_UNITS Units are measured in angstroms
NANOMETER_UNITS Units are measured in nanometers
MICRON_UNITS Units are measured in microns
PIXEL_UNITS Units are measured in pixels in current camera
correction
Boolean value which enables correction of known side effects of this function.
relative
Flags what the high tension change is relative to:
EMC_RELATIVE Image shift change measured relative to current value.
EMC_ABSOLUTE Image shift changed measured relative to "no image shift" (absolute shift)
x
the amount of X-axis image shift
y
the amount of Y-axis image shift

DIAGNOSTICS

EMC_OK (0) Success
EMC_ERROR (-1) Error
EMC_UNCALIBRATED (-100) Instrument not calibrated for given request
EMC_BADUNITS (-101) Invalid units specified for this request

PREVIOUS Page 53 of 54 NEXT