[Index]
[Prev]
[Next]
[Macro Equivalents]
[Application]
[Window]
[Picture]
[ROI]
[Stack]
[Slice]
[Results]
Image Picture Suite
Commands for Pictures and Stacks
Add [picture reference] or [constant]
- [to reference] -- the Picture to which the contant an/dor image is to be added. If not specified, the current picturede is used.
- [Scale extended real] -- Scale result when adding two pictures
- [Offset extended real]
- [save in reference] -- where to store the result
- [Constant extended real]
This command can take one of two forms, depending on which arguments are specified. It is assumed that the command is to operate on the selected picture, but this can be overridden. The following are typical usage forms:
1. Constant
Add Constant 10
Add Constant 10 to Picture "example"
Add Constant 10 to ROI of Picture "example"
2. An Image
Add Picture "ref"
Add Picture "ref" Scale 0.2 Offset 100
Add Picture "ref" to Picture "example"
Add Picture "ref" to Picture "example" save in Picture "sum"
AndImage [picture reference]
- And reference -- A picture or ROI to be added
- [to reference] -- the Picture to which the contant an/dor image is to be anded
- [Scale extended real] -- Scale result when anding two pictures
- [Offset extended real]
- [save in reference] -- where to store the result
- [Constant extended real]
AnalyzeParticles [picture reference]
ApplyLUT [picture reference]
Transforms the pixel data using the current look-up table.
AutoOutline Point
Binary
- Run one of these binary filters
| Convert | Erode | Dilate | OpenCycle |
| Outline | Skeletonize | Iteration | CloseCycle |
- [Count small integer]
- [Image picture reference]
Calibrate string
Under construction!
- [unit string]
- Image reference
ChangeValues [picture reference]
-- A picture or stack
Changes pixels in range to a new value
- between small integer
- and small integer
- to small integer
Choose: Selects a picture or slice as the default with updating the display
Choose [reference]
-- picture or slice
Convolve file name
Convolve a picture with a kernel stored in the file.
[and picture reference]
Dispose [picture reference]
Close a window without saving it.
Draw [picture reference]
Draw something onto the picture
- [String string]
- [Number extended real]
- [Scale boolean]
- [Line point]
- [from point]
Divide [picture reference]
- [by reference] -- the divisor
- [Scale extended real] -- Scale result when adding two pictures
- [Offset extended real]
- [save in reference] -- where to store the result
- [Constant extended real]
This command can take one of two forms, depending on which arguments are specified. It is assumed that the command is to operate on the current picture, but this can be overridden. The following are typical usage forms:
1. Constant
Divide Constant 10
Divide Picture "example" Constant 10
Divide ROI of Picture "example" Constant 10
2. An Image
Divide By Picture "ref"
Divide By Picture "ref" Scale 20 Offset 100
Divide Picture "example" By Picture "ref"
Duplicate [reference]
- [as string]
- Result: small integer -- Returns 0 or new picture ID
EnhanceContrast [picture reference]
EqualizeHistogram [picture reference]
Export [picture reference]
- [as string]
- [via PlugIn string]
- [Options string]
Fill [picture reference]
Fills the current selection with a color
- [Color small integer] -- Palette index for the fill. It will use the current foreground color as the default.
Filter
- Run one of these specified built-in or plug-in filters
| Smooth | Average | Sharpen | SharpenMore |
| FindEdges | Sobel | EdgeDetect | ReduceNoise |
| Dither | Median | Minimum | Maximum |
| Internal | PlugIn |
- [target reference]
- [named string]
Flip
| CounterClockwise | Clockwise |
| Horizontal | Vertical |
- [Image reference]
- [new window string]
- Result: small integer -- Returns 0 or new picture ID
Frame [picture reference]
Frames or draws a border around the current selection with a color
- [Color small integer] -- Palette index for the frame. It will use the current foreground color as the default.
GetInfo [picture reference]
Import [picture reference]
- [options string]
- [width integer]
- [height integer]
- [offset integer]
- [slices integer]
- [min integer]
- [max integer]
- [Result: small integer] -- Returns 0 or new picture ID
MarkSelection [picture reference]
Measure reference
MaxImage [picture reference]
- [by reference] -- the other Picture
- [Scale extended real] -- Scale result
- [Offset extended real]
- [save in reference] -- where to store the result
- [Constant extended real]
MinImage [picture reference]
- [by reference] -- the other Picture
- [Scale extended real] -- Scale result
- [Offset extended real]
- [save in reference] -- where to store the result
- [Constant extended real]
Multiply [picture reference]
- [by reference] -- the Picture multiplier
- [Scale extended real] -- Scale result when adding two pictures
- [Offset extended real]
- [Constant extended real]
This command can take one of two forms, depending on which arguments are specified. It is assumed that the command is to operate on the current picture, but this can be overridden. The following are typical usage forms:
1. Constant
Multiply Constant 10
Multiply Constant 10 targetPicture "example"
Multiply Constant 10 target ROI of Picture "example"
2. An Image
Multiply by Picture "ref"
Multiply by Picture "ref" Scale 20 Offset 100
Multiply Picture "example" by Picture "ref"
OrImage [picture reference]
- [by reference] -- the other Picture
- [Scale extended real] -- Scale result
- [Offset extended real]
- [save in reference] -- where to store the result
- [Constant extended real]
PlotProfile [picture reference]
Generates a gray scale profile plot of current rectangular selection or line.
PlotSurface [picture reference]
Revert [picture reference]
Scale [picture reference]
- [x extended real] -- multiplication factor
- [y extended real] -- defaults to same as x
- [Angle extended real] -- apply a rotation as well
- [Bilinear boolean] -- Interpolation method during rotations
- [new Window string] -- put transformed image into a new window
- Result: small integer -- Returns 0 or new picture ID
Shadow [picture reference]
| NorthWest | North | NorthEast |
| West | | East |
| SouthWest | South | SouthEast |
SortPalette [picture reference]
Subtract [picture reference]<
[from reference] -- the Picture to which the contant an/dor image is to be subtracted
[Scale extended real] -- Scale result when adding two pictures
[Offset extended real]
[save in reference] -- where to store the result
[Constant extended real]
[Background Horizontal/Vertical/RollingBall/RemoveStreaks]
[Radius small integer]
[faster boolean]
This command can take one of three forms, depending on which arguments are specified. It is assumed that the command is to operate on the selected picture, but this can be overridden. The following are typical usage forms:
1. Constant
Subtract Constant 10
Subtract Constant 10 from Picture "example"
Subtract Constant 10 from ROI of Picture "example"
2. An Image
Subtract Picture "ref"
Subtract Picture "ref" Scale 0.2 Offset 100
Subtract Picture "ref" from Picture "example"
3. Background
Subtract Background Horizontal
Subtract Background Vertical Radius 5
Subtract Background RollingBall with faster
Subtract Background RemoveStreaks from Picture "example"
Threshold
- [of integer]
- [between small integer]
- [and small integer]
- [Image reference]
XorImage [picture reference]
- [by reference] -- the other Picture
- [Scale extended real] -- Scale result
- [Offset extended real]
- [save in reference] -- where to store the result
- [Constant extended real]
Class Picture
A window containing an image or picture
Elements:
- RedLUT by numeric index, as a range of elements
- GreenLUT by numeric index, as a range of elements
- BlueLUT by numeric index, as a range of elements
- Pixel by numeric index, as a range of elements
Properties:
- Window [r/o]
- picNumber integer [r/o] -- Returns number of image window
- PID integer [r/o] -- Returns a negative permanent ID number for image
- Foreground small integer
- Background small integer
- LineWidth small integer
- Calibrated boolean [r/o] -- Returns true if calibration is turned on.
- PixelScale extended real -- Spatial Scale: Number of real units per pixel
- PixelUnits string
- AspectRatio extended real
- Palette Grayscale/System Palette/Pseudo20/Pseudo32/Rainbow/Fire1/Fire2/Ice/GrayLevels/Spectrum
- ROI a list of reference -- Region Of Interest
Class RedLUT
Class GreenLUT
Class BlueLUT
Class Pixel
Set Pixel {100,200} to 44
Set Pixel {1,32} thru {32,32} to 0
Get Pixel {1,1}
[Index]
[Prev]
[Next]
[Macro Equivalents]
Written by Rob Douglas, McKellar Designs and University of British Columbia
Last Updated November 12, 1995