Colmap

Colmap Editor

The Colmap Editor includes a Function Curve Editor as well as the Image Canvas, Local Effect Canvas, and tool shelf.

If the MatchCol target is attached to a tool, three Image Canvases are displayed: from left to right, these are the Source, MatchCol, and Output images. See Using the MatchCol Target for more information.

Note:
To toggle between displaying the RGB channels and the alpha channel, middle-click on any of the RGBA toggles. For more information on using these toggles, refer to RGBA View Toggles.

Mode

This section describes how to make colour adjustments to images and to the channels that make up the images using the four Mode options: RGB, HLS, and Lum and Palettize. The RGB (red, green, blue) and HLS (hue, lightness, saturation) modes represent two colour models that describe the same colour space. The Lum mode represents the luminance of the pixels based on the following formula:

0.299 * Red + 0.587 * Green + 0.115 * Blue

The Palettize mode is useful for creating images for games and other applications that require restricted palettes.

In each mode, you can edit the function curves shown in the Function Curve Editor to achieve various effects (see Colmap Function Curve Editor). For example, in HLS Mode, you could use a Gamma function curve to adjust the lightness and a Linear function curve to scale down the saturation in an image. As you modify the function curves, Eddie updates the image in the Image Canvas to reflect the changes made.

You can adjust the colour channels individually by clicking the appropriate colour option (Red, Green, Blue, or Alpha), or you can adjust the colours together by selecting the Uniform option.

RGB Mode

When you select RGB mode, the Red, Green, Blue and Alpha options are displayed in the editing area. These options allow you to select and edit the function curve associated with each channel. The incoming RGBA values (along the x axis) are directly mapped to the output RGBA values (along the y axis).

HLS Mode

When you select HLS mode, the Hue, Light, Sat and Alpha options are displayed in the editing area. These options allow you to select and edit the function curve associated with each channel.

Incoming RGB values are first converted to HLS values, mapped, and then converted back to RGB values. The incoming alpha values are directly mapped to the output values.

Lum Mode

The Lum mode allows you to change the luminance, or light value, of the pixel values in an image. The incoming RGB values are first converted to a single luminance value, mapped, and then converted back to RGB. The alpha channel passes through unmodified.

Note:
The Lum mode has one associated Luminance function curve in the Function Curve Editor.

Palettize Mode

The Palettize mode is useful for creating images for games and other applications that require restricted palettes.

To select a colour, click on it in the palette. Use the Palette Control menu to manage palettes.

To load a built-in palette, choose one of the following options from the Palette Control menu: Standard, 16 Greys, 32 Greys, Primaries, 8x8x4, or 6x6x6+40. When you have finished, click Apply to refresh the canvas.

You can have as many colours as you like on a given palette. To add a colour to a palette:

1. Use the Colour Editor to select the colour you want to add. The colour appears in the Current Colour Box.

2. Choose the Add command from the Palette menu. This adds the current colour to the Palette.

3. Click Apply to refresh the canvas.

You can modify any colour on the palette.

1. Select the colour you want to change on the palette.

2. Use the Colour controls to set a new current colour.

3. Choose the Set command from the Palette menu.

You can delete a colour from the palette.

1. Select the colour you want to delete from the palette.

2. Choose the Delete command from the Palette menu.

3. Click Apply to refresh the canvas.

You can save palettes as separate files to use again later.

1. Choose the Write command from the Palette menu. The Write Palette dialogue box appears.

2. Select the directory where you want to save the palette, then type a name for the palette in the Base text box. Eddie automatically assigns the extension .pal to custom colour palette files.

3. Click OK to exit the dialogue box.

To load a palette that you have saved:

1. Choose the Read command from the Palette menu. The Read Palette dialogue box appears.

2. Select the directory containing the palette you want and then select the name of the palette you want to use.

3. Choose OK to load the palette.

4. Click Apply to refresh the canvas.

ALPHA from RGB

The ALPHA from RGB option allows you to create an alpha channel based on RGB values from the source image. Eddie averages the RGB input values to derive the alpha output values. This affects only the values in the alpha channel: the RGB values themselves remain unchanged.

Note:
The Function Curve Editor does not display an alpha function curve when the ALPHA from RGB option is selected.

To create an alpha channel based on RGB values:

1. Select the ALPHA from RGB option.

2. Select the Spline option.

3. Select the Zero All option from the Reset pop-up menu (see Reset Menu). This causes the RGB function curves to fall horizontally along the x axis.

4. Click and drag the mouse pointer over the pixels in the image you want as part of the Alpha channel. Two sets of RGB colour markers appear along the x axis: the first set of markers indicates the minimum RGB pixel values; the second indicates the maximum RGB pixel values.

5. If desired, enter a value in the Width text box and press the Enter key. This is an optional step to follow if you want to add guard keys (see Width and Key). The sample pixels will fall within the range specified by the minimum and maximum pixel value; consequently, they will have an alpha value of 1.

6. Add keypoints to each of the three RGB function curves by pressing the Key button or middle-clicking on the curve (see Colmap Function Curve Editor).

Note:
You can also use the pixel values from HLS and Luminance modes to create a matte. Follow the same steps as previously described.

Invert Alpha

The Invert Alpha option allows you to invert the pixel values in the created alpha channel.

Component

The Component toggles specify the component whose function curve appears in the Function Curve Editor. The available options depend on the mode; Uniform modifies all channels simultaneously. Note that these toggles are not available in Palettize mode.

Mapping

There are five types of colour mappings: Linear, Spline, Posterize Gamma, and Table.

With all types of mapping, the Clamp option maintains a 0 - 1 range for setting values in the output image.

Linear

To set the function curve of a channel to linear, first select the channel by clicking on its function curve in the Function Curve Editor or by using the options in the editing area, then select the Linear option. By default, all function curves are initially set to linear. Linear function curves can be modified by either clicking and dragging the end points, or by entering new values in the Scale and Offset text boxes.

The Scale option multiplies the incoming pixel values of the source image by the number you enter in its text box. For example, a value of 2.0 will double the input values of an image. The Offset option allows you to either brighten or dim an image by entering a positive or negative value in its text box.

You cannot add keypoints to modify the shape of a linear function curve.

Spline

To set the function curve of a channel to spline, first select the channel by clicking on its function curve in the Function Curve Editor or by using the options in the editing area, then select the Spline option. Spline function curves allow you to add control points to give you greater control over the mapping. The default spline curve is a Bezier curve with a control point at either end. Each control point has two handles, or tangent bars, that allow you to set curves and angles. For more information, see Bezier (Spline) Function Curves.

To edit the mapping, you can add additional control points with the middle mouse button. These points allow you to define the shape of the curve and allow you to isolate and modify particular ranges. You can edit these curves directly using the same editing techniques outlined for the spline function curves (see Editing Spline Function Curves).

Note:
The Scale, Offset, and Gamma text boxes are disabled when working with spline function curves. You cannot animate spline parameters.

Gamma

To set the function curve of a channel to gamma, first select the channel by clicking on its function curve in the Function Curve Editor or by using the options in the editing area, then select the Gamma option. Gamma function curves are modified by entering a new value in the Gamma text box, or by dragging the handle positioned at the midpoint of the curve.

These function curves allow you to make colour corrections by changing the brightness values of the pixels with middle grey values without dramatically changing the image's shadows (very dark pixels) and highlights (very light pixels). This curve is typically used to match specific video or film characteristics. You can also use gamma function curves for colour matching by sampling and then pressing the Key button. Refer to Using the MatchCol Target for more information.

Note:
You cannot set guard keys for gamma function curves.

Posterize

To set the function curve of a channel to posterized, first select the channel by clicking on its function curve in the Function Curve Editor or by using the options in the editing area, then select the Posterize option. Posterized function curves are used to limit the number and range of colours to create a posterized effect in an image.

Enter the desired number of colour levels in the associated text box. Eddie will map pixels in the image to the colour level that is the closest match. This is useful for creating special effects, such as large, flat areas of colour in an image. The effects of this option are most evident when you reduce the number of grey levels in a grey-scale.

Table

The Table mapping method allows you to use colour LUTs (look-up tables) in conjunction with film recorders, scanners, and so on.

Click Read LUT to load a table; all channels are switched to Table mode. Click Write LUT to save the current table to disk. Both of these buttons open file browsers. LUTs are 8-bit RFX binary RGB files, as used with RFX drivers and Solitaire film recorders.

The Spline Accuracy option is used when switching from Table to Spline mode. It controls how tightly the resulting spline fits to the original table data. High values result in more accuracy, but may generate too many keypoints. Low values generate fewer keypoints, but the resulting spline may not accurately reflect the table.

Reset Menu

The Reset pop-up menu allows you to manipulate individual function curves or all function curves in the current Function Curve Editor.
Use this optionTo do this
ResetReset the selected function curve to map the default values (that is, output values = input values).
ZeroSet the selected function curve to a value of zero.
OneSet the selected function curve to a value of 1.
InvertInvert the curve of the selected single component.
Reset AllReset all function curves.
Zero AllSet all function curves to a value of zero.
One AllSet all function curves to a value of 1.
Invert AllInvert all four channels to make a photographic negative of the image

Width and Key

The Width option and Key button are not available unless one or more channels are set to Spline or Gamma, and colours have been picked with the left or right mouse button.

The Key button is used either to set guard keys when setting Spline function curve control points, or after you sample pixels from the Image Canvas (refer to Sampling Colours). When a Spline function curve is selected, the Key button adds a keypoint at the intersection of the input and output sample values. When the Gamma function curve is selected, the Key button sets the gamma so that the curve goes through the intersection.

Note:
The Key button is used in all modes. If Alpha from RGB is selected, only the input (that is, x axis) sample values are used.

When adding keypoints with the Key button, guard keys prevent input values from falling outside of the defined key Width range. They determine or restrict the range of pixels affected by the current action allowing you to isolate the colour range you want to adjust. To add guard keys to the existing keypoints, enter a value in the Width text box and press the Enter key. This value represents the position of each guard key along the x axis. Although there are no restrictions, this value usually ranges from 0.01 to 0.5. Refer to Using the MatchCol Target for more information and ALPHA from RGB.

Pixel Correction

The Pixel Correction options are useful when you are outputting to video. They ensure that the colours in the image are within the legal video broadcast range.

Activate the Pixel Correction check box, then select either PAL or NTSC. The remaining options determine how the image appears in the Image Canvas:

Reset View

The Reset View button restores the display of the Function Curve Editor to its original settings.

Mode
RGB Mode
HLS Mode
Lum Mode
Palettize Mode
ALPHA from RGB
Invert Alpha
Component
Mapping
Linear
Spline
Gamma
Posterize
Table
Reset Menu
Width and Key
Pixel Correction
Reset View

SOFTIMAGE Eddie 3.5 - 10 JAN 1997