CRISTAL Image Processing: Image provides tools for processing digital images from video and scanned sources. Images can be manipulated and supplemented using any of the functions in the Graphic menu. Implementation of the Image procedures requires a special hardware configuration. If the requisite hardware is not present, a "Graphics Setup Error" message will be displayed. Frame Grab: Frame grab activates the image capture procedure. The video signal source for Frame grab can either be a video camera or a video cassette recorder. Frame grab transforms an analog signal into a digital format suitable for computer processing and storage. Camera input recognizes the video signal source as a video camera. When this option is activated, a live video image can be displayed on the graphics screen. The image is Frame grabbed (digitized) by pressing the left mouse button. The image can then be saved to disk as a [.PIC] file. Images not saved will be overwritten (replaced) by the next Frame grabbed image. Return to live video by pressing and holding the left mouse button. Release the button to grab (digitize) another image. Press the right mouse button to terminate the Frame grab procedure. VCR input recognizes the video signal source as a video cassette recorder (VCR). When this option is activated, a VCR video image can be displayed on the graphics screen. The image is Frame grabbed (digitized) by pressing the left mouse button. The image can then be saved to disk as a [.PIC] file. Images not saved will be overwritten (replaced) by the next Frame grabbed image. Return to VCR video by pressing and holding the left mouse button. Release the button to grab (digitize) another image. Press the right mouse button to terminate the Frame grab procedure. Annotate: Annotate allows a Frame grabbed (digitized) image to be annotated with data from cells in the worksheet. This data can be text, numbers, macro statements, or formulas. A single typographic style and size is used in Annotate, and it cannot be adjusted (see Draw\Text for alternatives to Annotate). Annotations can originate from either the CRISTAL editor or the worksheet environment. Map Screen: Map screen provides the mechanism for executing macro commands from the graphics screen. A grid (10 X 10) consisting of references to cell addresses in the worksheet is superimposed on the graphics screen. Use the mouse to position the cursor at the desired grid cell and pressing the left mouse button. The Macro located in the corresponding cell in the worksheet is executed. The display of the grid, which can contain 100 cell references, can be hidden during the setup procedure so that it doesn't interfere with the image display. Each grid cell can contain an icon produced from a reduced digital image, or the grid can map a single image dissected into 100 parts. To create a screen mapped image, select Map screen, specify an image file name to map, and respond to the query, "Show the Grid: Yes/No." [Y]es displays the grid on the image. Each grid cell is labeled with a worksheet cell address of the default cell block (A1..J10), or any specified cell block. To execute Macros located in those cells in the worksheet, position the cursor at the matching grid cell and press the left mouse button. Cut and Paste: Cut and Paste allows a specified segment of the graphic image to be copied to a new location. Position the cursor at the location of the image segment to be cut, and press the left mouse button. Size the frame around the desired area. Press the left mouse button again to set the frame boundary. Move the frame to the new location and press the left mouse button to paste in place. Holding the left mouse button down will continuously paint the screen with the framed image. Press the right mouse button to exit the procedure. Rotate: Rotate allows a specified segment of the graphics screen to be rotated [90,180 270 degrees] and moved to a new screen location. Position the cursor at the location of the image segment to be rotated and press the left mouse button. Size the frame around the desired area. Press the left mouse button again to set the frame boundary. Move the frame to the new location and press the left mouse button to paste in place. Holding the left mouse button down will continuously paint the screen with the rotated image. Press the right mouse button to exit the procedure. Size to Grid: Size to grid is used with the Map Screen procedure to build image maps from digitized images. Images are automatically reduced to fit into a defined grid matrix. To reduce an image to a predefined grid size, first specify an image file. The current image will be reduced if no other is specified. The image will appear with an overlay grid of 100 cells. Point to the grid cell where the reduced image is to be placed and press the left mouse button. The full screen image is then reduced to fit within that grid cell area. If additional reduced images are desired respond [Y]es to the screen prompt "Continue Y/N", and repeat the procedure. To quit the procedure, respond [N]o to the screen query, "Continue Y/N", and specify a file name for saving the reduced images (the image map file). Pan and Zoom: Pan and Zoom allows a specified portion of the graphics screen to be viewed at different levels of magnification (Zoom), while simultaneously permitting changes to the view window (Pan). Upon entering the Pan/Zoom mode, press the left mouse button mouse to increase the magnification. Press the left button for each incremental step through the 16 levels of magnification. Pan is controlled by moving the mouse to attain the desired view. Press the right mouse button to return the image to its original size and view window, and return to the worksheet environment. Erase: Erase permits either the entire image or a portion of the graphic image to be deleted. The response to the screen query, "Erase Screen All/Part", determines whether or not the entire screen is deleted. Select Part for selective deletion. If Part is selected, press the left mouse button to mark a corner of the eraser frame. Move the mouse to size the eraser, and press the left button to set eraser size. Move the mouse to position the eraser at the area of the screen to be deleted. Press the left mouse button to erase the image area located within the frame. The eraser remains active until the right mouse button is pressed, repeatedly deleting portions of the graphic image with each pressing of the left mouse button. Holding the left mouse button down will continuously erase the screen with the eraser frame. Press the right mouse button to exit the procedure. Graphic Options: Options provides control of graphic settings for Text size and style, Width of line, Line style, Fill style, Cursor color, and Background color. The selections specified at this submenu level serve as the default settings for the Graphic menu functions. Text Size/Style: Text size/style sets the default values for text type and scale. The desired style is specified from a list of 10 alternatives, including one for Greek/math symbols. Text size is set according to (character width x height) values displayed on the message line. The system default setting for size is (50x50). Respond [YES] to [Set text size] and press the left mouse button to activate the scaling procedure. Move the mouse to adjust the size of the text. Press the left mouse button to set size. Width of Line: Width of line provides control over the default line weight for Graphic functions. Width can be set at one of four alternatives: [1,2,4,8 units]. Line Style: Line style provides control over the default Line type for Graphic functions. Line style can be set at one of three alternatives: [Continuous, Segment, Dot]. Fill Style: Fill style provides control over the fill type for Graph and Draw functions. Fill style can be set at one of four alternatives: [No fill, Dithered, Grid, Solid fill]. Cursor Color: Cursor Color controls the setting for the color of the Graphic cursor. The selection is made from the color palette at the base of the graphics screen. Place the cursor over the desired color and press the left mouse button to select. Background Color: Background color controls the setting for the color of the Graphic screen background. The selection is made from the color palette at the base of the graphics screen. Use the mouse place the cursor over the desired color and press the left mouse button to select. Appendix Two: CRISTAL Graphics and Image Processing