ABSOLUTE
Take the absolute value of the data in the current image data buffer.
BIT8 [min] [max]
Converts the file in the OMA image buffer to have a dynamic range of 0 to 255. That is, 8 unsigned bits per pixel. This conversion is automatically done before saving the image buffer as a TIFF image. If the optional min and max are specified, they are used for the scaling rather than the min and max of the current image buffer.
BLKAVE n
Set a flag that determines whether or not the BLOCK command sums or averages the values within the specified block. If n = 0, sum values. Otherwise, average.
BLOCK n [m]
Group image data into n x m blocks. This command reduces the size of the data buffer. The values are averaged or summed, depending on the flag specified with the BLKAVE command.
BLOCKRGB n [m]
Group the RGB image data into n x m blocks. This command reduces the size of the data buffer. The values are averaged or summed, depending on the flag specified with the BLKAVE command.
CALCULATE
Print calculations on the rectangle specified with the RECTANGLE command or with the rectangle tools. The average, rms, # of points, and the x and y “center of mass” are printed. The mean, rms, centroid_X and centroid_Y are passed to the command_return_variables.
CALCALL
Print calculations on the entire image. The average, rms, # of points, and the x and y “center of mass” are printed. The mean, rms, centroid_X and centroid_Y are passed to the command_return_variables.
CLIP n
Sets all data values in the current image buffer that are > n to n.
CLIPFRACT fraction
Clip data at a fraction of the maximum value. Fraction is a real argument.
CORECT n
Performs corrections on the data in the current image buffer by subtracting the background saved with the SBACK command, multiplying that result by n, and then dividing by the response saved with the SRESPONSE command.
CROP
Use the current rectangle to crop the image in the buffer.
CROPRGB
Use the current rectangle to crop the (assumed RGB) image in the buffer.
DFILTER dt tmax
Nonlinear diffusion filter -- supposed to smooth with out messing up gradients. See paper by Kaminski.
DIFFX
Differentiate the data in the current image data buffer in the x direction.
DIFFY
Differentiate the data in the current image data buffer in the y direction.
EXP scale_factor denom
Result is scale_factor*exp(data/denom)
FILBOX
Replace the data within the rectangle by interpolating between values on left and right of rectangle.
FILMSK <filename>
Use the specified file as a mask to define regions of the image where data should be interpolated between values on the left and right. An example of the use for this command would be to remove particles from a Rayleigh image. The mask could be formed by finding portions of the image with large gradient, smoothing, and clipping.
FLIPHORIZ
Flips the image in the OMA buffer horizontally
FLIPVERT
Flips the image in the OMA buffer vertically
FLUCTUATION n
Calculates a fluctuation by subtracting the mean saved with the SMEAN command. If n=0, the fluctuation is calculated. If n is not 0, the fluctuation^2/n is returned. No check is made for overflow.
FRAME NewWidth NewHeight [Value] [X0] [Y0]
Put a “frame” around the current image -- making it a new size.
Default Value is 0.
Default of X0 and Y0 center the old image in the frame.
FRAME2 NewWidth NewHeight [Value] [X0] [Y0]
Put a “frame” around the current image. Same idea as the FRAME command but more robust and more consistent in the definition of X0 and Y0. X0 and Y0 are the coordinates of the start of the new image in the current image's coordinate system. X0 and Y0 can be positive (will crop out some of the current image) or negative (The new image will have a border with the pixels containing the Value specified). If X0 or Y0 are not integers, the routine will interpolate pixel values. Default Value is 0. Default of X0 and Y0 center the old image in the frame.
FTEMP n
Free memory associated with temporary image n.
n must be in the range 0-9.
GETMATCH parameterfile
Load the file matching parameters contained in the text file “parameterfile”. The format of the file is as follows:
x1_ref y1_ref x1_i1 y1_i1 x1_i2 y1_i2
x2_ref y2_ref x2_i1 y2_i1 x2_i2 y2_i2
image1_width image1_height
image2_width image2_height
Note that there is no prefix added to the file name.
GNOISE mean rms [seed]
Gaussian deviate generator using built-in random-number Generator followed by Box-Muller transform
GRADIENT
Find the magnitude of the gradient of the data in the current image buffer. Use 2 pixels on either side of current pixel for gradient.
GRAD2
Find the magnitude of the gradient of the data in the current image buffer. Use the current pixel and the one next to it for gradient.
GRADPK n
Determine gradient magnitude from 4 points at a distance n from center pixel.
GSMOOTH dx [dy]
Gaussian Smoothing of the Data. dx and dy are the smoothing size parameters. If dy is omitted, it is taken as dx. dx and dy must be odd. sigma_x = (dx-1)/3.5
GSMOO2 dx [dy]
Gaussian Smoothing of the Data. dx and dy are the smoothing size parameters. If dy is omitted, it is taken as dx. dx and dy must be odd. sigma_x = (dx-1)/6.0
GTEMP n
Get temporary image n that has been previously saved using STEMP n.
n must be in the range 0-9.
INTEGRATE direction_flag selection_flag
Sum up the data in the horizontal ( direction_flag=0 ) or vertical (direction_flag=1 ) direction. The two-dimensional image becomes a single line. If selection_flag=1, the subset of the image specified by the selection rectangle is used. Possible cases are:
direction_flag = 1 The result is an array in x; sum in y direction
direction_flag = 0 The result is an array in y; sum in x direction
selection_box = 1 A selection box specifies what region to sum
selection_box = 0 Sum all channels or tracks
INTFILL direction_flag selection_flag
As above, but a two-dimensional image is formed by duplicating the summed values.
INVERT
Inverts the image in the current image data buffer, causing the first data point to become the last data point.
IMPOWR scale_factor <filename>
Raise the current image to a power specified by a second image in a file. The power is the value in the second image divided by the scale factor.
LN scale_factor
Take the natural log of the data in the image buffer. Scale the result by scale_factor.
MAKNEW n m
Change the resolution of the data in the current data buffer to be n x m pixels. Linear interpolation is performed.
MATCH image2_data_file
This command is used to create matching image pairs from images taken with different magnification, displacement, and rotation. The first image is assumed to be in the current image buffer. “image2_data_file” specifies the name of a file containing the second image. The necessary image matching parameters are stored in an ASCII text file and must be loaded with the GETMATCH command prior to executing the MATCH command. The command creates two new images and stores them in files named Match_1 and Match_2. Image 1 should be the lower resolution of the two.
MIRROR
Form a left-right mirror image operation on the data in the current data buffer.
NOISE average rms [seed]
Creates a noise image with the specified average and rms.
POSITVE
Sets all negative values in the image buffer to 0. Positive values are unaffected.
POWER y
Raise the data in the current image buffer to the power y (float).
RECTCENTER n m
Select rectangle of size n x m about center of image.
RECTANGLE ulx uly lrx lry
Specify a rectangle that calculations are to be done on. The arguments are upper left x coordinate; upper left y coordinate; lower right x; lower right y.
RNDOFF
Round the DATAWORD values Down to the nearest integer value.
RNDUP
Round the DATAWORD values UP to the nearest integer value.
ROTATE [value]
Rotates the data in the current image buffer. If no value is specified, the image is value is specified, the image is rotated by the specified number of degrees (this may be a real number).
ROTCRP rotation_angle
This command does the following operations using other internal routines
1) rotate the existing image by “rotation_angle”.
2) crop the rotated image to be so that no “filled” pixels are present (will be smaller than original).
RGB2GREY [red_mult green_mult blue_mult]
Convert an RGB image to a monochrome image by adding the red, green, and blue components. If the optional multipliers are specified, each component will be scaled before the components are summed.
RGB2RED
Extract the red component of an RGB image.
RGB2GREEN
Extract the green component of an RGB image.
RGB2BLUE
Extract the blue component of an RGB image.
SBACK
Save the data in the current data buffer as a background to be used by the CORECT command.
SMEAN
Save the data in the current data buffer as a mean to be used by the FLUCTUATION command.
SMEAR amount
Process pixels > 0 by the specified amount (float). Negative values are set to 0.
SMOOTH [n,m]
Performs an n x m smoothing operation on data in the current image buffer. If only n is specified, an n x n smoothing is done; with no argument, a 2 x 2 smoothing is performed. For the smoothing operation to be perfectly centered on each data point, the arguments must be odd. For Gaussian smoothing, use GSMOOTH.
SQRT
Take the square root of the data in the current image buffer.
SQUARE
Square the data in the current image data buffer.
SRESPONSE
Save the data in the current data buffer as a response to be used by the CORECT command.
STEMP n
Save current image as temporary image n. This can be retrieved with GTEMP.
n must be in the range 0-9.
SUBSAMPLE n [m]
Sub-sample the current image, keeping every n-th and m-th pixel and discarding the rest. This command does not do any interpolation (as MAKNEW does) or pixel summing (as BLOCK does). If m is omitted, it is taken equal to n.
TSMOOTH
Smooth radius based on x_dim = Temp[0], y_dim = Temp[1]
This is a function that enables (Rectangular) smoothing of an image, with variable filter size. It works basically like SMOOTH 13 13, say, but it takes the x_dim and y_dim locally based on the values in the Temporary buffers T[0] and T[1]. It has been used to variably smooth an image based on the local length scale which was modelled.