After the colormap has been modified as desired (see below), click on the "Save" button to write out the modified colormap. If the [-cmap_only] argument is specified, only the colormap will be written to the output file; if the [-cmap_only] argument is not specified, all attributes and data from the input object will be written to the output file along with the modified colormap.
On creation, the main editpseudo window may be placed manually (the default method), or placed automatically. For automatic placement of the main editpseudo window, specify the desired location in device (screen) coordinates, using the [-x] and [-y] arguments.
While the main editpseudo window should be created with a default size that is appropriate to the type of colormap modification (pseudocoloring or thresholding) being used, a width and height for the main editpseudo window can be specified explicitly using the [-width] and [-height] arguments. Alternatively, you may allow the main editpseudo window to size itself initially, and then use the window manager to interactively modify its size as desired.
If desired, editpseudo may be forced to use a private colormap with the [-priv] argument.
By default, the update time is 1, or every second; this implies that editpsuedo will check the input file for modification every second. Suppose that while you are displaying a colormap with editpsuedo, the data object containing colormap is over-written. After no more than one second had passed, editpsuedo will automatically register the fact that the data object has changed, and update the displayed colormap accordingly. Setting the update time to 0.25 would cause editpsuedo to check the input file for potential modifications every 0.25 seconds, or 4 times a second. Setting the update time to 0 would tell editpsuedo not to check the input file for modifications at all. The update time is specified in seconds or fractions of a second, and must be greater than or equal to zero.
---- Using the Pseudocolor Method of Colormap Modification ----
About the Pseudocolor Display The pseudocolor display includes (1) a palette of the colors in which image pixels appear, (2) a set of Red, Green, and Blue scrollbars with text parameter boxes to the right of each, and (3) a "Reset" button at the upper right of the display. The palette is used to display the current colors of the pixels in the image, and allows you to select pixels for color change. The Red, Green, and Blue scrollbars allow you to specify colors for pixels. If desired, specific values for red, green, and blue may be typed directly into the text parameter boxes that appear to the right of the scrollbars. The "Reset" button causes all selected pixels in the palette to be un-selected, so that the pseudocoloring process may be repeated.
Performing a Pseudocolor Operation
1: Select the desired pixels from the color palette
2: Specify the desired color by typing in Red, Green, and Blue values or by moving the Red, Green, and Blue scrollbars
3: Click on the By default, the color palette appears in the form of a grid of color cells. Each color cell represents a pixel in the input image, and appears in the same color as the pixel does in the image. The color cells are arranged in the order that the pixels appear in the image's colormap; ie, the upper leftmost colorcell is the first color in the colormap and lower rightmost pixel box is the last color in the colormap.
Pixels may be selected for color change using the following methods. These descriptions assume use of the colorcell grid, but pixel selection for the color bar and color wheel work similarly. Pixels may be selected individually, or in ranges. Note that all selected pixels on the colorcell grid will have their color changed when you set the red, green, and blue values. The "Reset" button un-selects all selected pixels in the colorcell grid.
Selecting a single pixel To select a single pixel for color change, click on the color cell representing the desired pixel. The color cell will appear intented and stippled when it is selected. To unselect the pixel, click the mouse button on it again, or use the "Reset" button.
Selecting a range of pixels To select a range of pixels for color change, click on a pixel at the end of the range to be changed. Holding the button down, move the mouse to the desired end point; the range may be moved back and forth as long as the mouse button is held down. Releasing the mouse button sets the range. Multiple ranges may be selected by repeating this process on previously unselected pixels. Portions of a selected range may be unselected by repeating on previously selected pixels. To unselect the range, repeat the selection process, or use the "Reset" button.
Options of the PseudoColor Object Click on the "Options" button to display the internal menuform which is associated with the pseudocolor object. Using the menuform of the pseudocolor object, you may change the palette type used by the psuedocolor object from Color Cell to Color Bar or Color Wheel. For more details on the features offered by the psuedocolor object, click on the "Help" button of the pseudocolor object menuform.
Example 1 % editpseudo -i image:moon -cmap_only -o new_cmap.viff
% putimage -i image:moon -cmap new_cmap.viffExample 2 % editpseudo -i image:ball -o new_moon.viff
% putimage -i new_moon.viff