|
V+ 12.4 Release Notes |
VCOPY (cam, scale, dmode, lut) dest_ibr = src_ibr
Copy the image from one image buffer region to another.
The scaling, subsampling, look-up table (LUT), and access to the display frame features require the AdeptVision Enhanced Vision Interface (EVI) board.
See the Details section when using the Pulnix TM-1001 camera.
cam Optional integer value specifying a virtual camera. The V.THRESHOLD and V.2ND.THRESH values associated with the virtual camera are used when the scale parameter is 0.5 (see Details).
scale Optional real-valued expression specifies magnification of the copy. The acceptable values are 0.5, 1, and 2. The default is 1. This feature requires the AdeptVision VXL option.
dmode Optional real-valued expression specifying the display mode for this operator. The choices are: -1 = no draw, 0 = erase, 1 = draw solid, 2 = complement, 3 = draw dashed, and 4 = complement dashed. The default is 1 (draw solid).
lut Optional integer in the range 1 to 133 maximum (the actual maximum value is set with the DEVICE instruction) that specifies a defined look-up table. (The default value is 0, which indicates normal operation.) The table is defined with a VDEF.LUT instruction and specifies a replacement value for each possible graylevel value. See the description of VDEF.LUT. This feature requires the AdeptVision VXL option.
dest_ibr Integer value specifying the image buffer region to receive the copied image. Image buffer regions specify both a size and a frame store (see the description of VDEF.AOI).
src_ibr Integer values specifying the image buffer region to copy. The image buffer region's AOI must have been defined with a VDEF.AOI instruction.
VCOPY copies one image buffer region to another and optionally zooms the image. Both the grayscale and binary images are copied.
If the scale parameter is 0.5, the image is averaged with a 2x2 convolution. The result is then subsampled and thresholded using the threshold parameters for the virtual camera specified in cam.
If the scale parameter is 2, the source frame store must be the display frame store (src_ibr must have the form nnn009). The result is zoomed by 2x.
NOTE: VCOPY is the only instruction that can copy to or from the display frame store.
If lut is specified, the output image is piped through that user LUT prior to output. If subsampling or zooming, thresholding is not performed when using the user LUT.
After a frame is copied, the destination frame assumes some attributes of the source frame. In particular, the virtual camera that was associated with the source frame becomes associated with the destination frame. This affects subsequent measurement or inspection operations on the frame, such as VRULERI or VWINDOW, because conversion of pixel units to millimeters is determined by the camera calibration.
Considerations when using 1K x 1K frame stores:
- There is a design restriction that does not allow zooming 0.5 out of the display frame buffer-doing so will cause an image processing board failure.
- There is a design restriction that does not allow zooming 0.5 with a LUT-the system ignores the LUT.
- There is a design restriction that does not allow zooming by 0.5 into the display frame buffer-doing so causes an invalid argument.
Copy one image buffer region in virtual frame store 11 to another image buffer region in the same virtual frame store:
VCOPY 4011 = 5011VDEF.AOI (program instruction)
VDEF.LUT (program instruction)
|
Please submit comments to: techpubs@adept.com |