Next: Using image names as
Up: Mathematical pixel operations (Image
Previous: Mathematical pixel operations (Image
Contents
Index
Predefined Variables
The following variables are set for each pixel and may be changed in equations:
- r red value of pixel
- g green value of pixel
- b blue value of pixel
- i intensity value of pixel (integer)
- x x coordinate
- y y coordinate
- v density value of pixel (0..1)
- re FFT real (if image has been Fourier transformed)
- im FFT imaginary (if image has been Fourier transformed)
- w wavelet coefficient (if image has been Wavelet transformed)
The following variables are set for each pixel, but any changes are ignored,
because their value is calculated from equations or data points entered by
the user.
- d calibrated value of pixel (based on user calibration)
The following constants are set once, before executing the math command.
They can be changed if desired, but in some cases this would not make sense.
- IMAGES The total no. of images present
- XRES No. of horizontal pixels in the display
- YRES No. of vertical pixels in the display
- ULX Upper left x coordinate of selected area
- ULY Upper left y coordinate of selected area
- LRX Lower right x coordinate of selected area
- LRY Lower right y coordinate of selected area
- CI Current image number
- BPP Bits/pixel of current image
- FRAMES Total frames of current image
- XSIZE Width in pixels of current image
- YSIZE Height in pixels of current image
- XPOS Position of current image (0,0=upper left)
- YPOS Position of current image (0,0=upper left)
- CF Currently-visible frame no. of current image
- CALLOG0 Calibration of 1st (x) dimension, 0 = linear,
1 = logarithmic, 2 = polynomial, 3 = distance from 0,0.
- CALLOG1 Calibration of 2nd (y) dimension, 0 = linear,
1 = logarithmic, 2 = polynomial, 3 = distance from 0,0.
- CALDIMS No. of dimensions that are calibrated (0-2)
- FFTSTATE Current Fourier-transform state of image (-1, 0, or 1)
- FMIN Lowest FFT value or high-resolution wavelet coeff
- FMAX Highest FFT value or high-resolution wavelet coeff
- FFAC Conversion factor for FFT value or high-resolution
wavelet coeff to pixel value
- WAVELETSTATE Current Wavelet-transformed state of image
( -1, 0, or 1)
- WMIN Lowest low-resolution wavelet coefficient
- WMAX Highest low-resolution wavelet coefficient
- WFAC Conversion factor for low-resolution wavelet
coefficient value to pixel value
- Q00 to Q09 Image calibration coefficients for
first dimension
- Q10 to Q19 Image calibration coefficients for
2nd dimension dimension
- GRAINS The total no. of grains found in the most
recent instance of grain counting.
- SPOTS The total no. of spots found in the most
recent instance of grain counting (same as GRAINS).
- PIXELS The total no. of pixels in the current image.
- COMPENSATE The current setting of Pixel Density
Calib. in the Spot or Strip Densitometry dialog. This
determines the calibration method used when density values
are accessed.
- INVERT The current setting of Maximum Signal in the
Spot or Strip Densitometry dialog. This determines whether
the maximum signal is considered to be black or white
when density values are accessed.
Example:
i=image[1][0][XSIZE-x-1][YSIZE-y-1];
Next: Using image names as
Up: Mathematical pixel operations (Image
Previous: Mathematical pixel operations (Image
Contents
Index
root
2006-11-13