Learn Phoduit

9.5 Mask

9.5.1 Color Mask

The Color Mask node converts an image to greyscale by selecting colors. Selected colors become white, excluded colors become black, and in between colors become grey.

See Masks in Chapter 5. Localized Editing for an example.

Input

Channel
The channel currently being edited. While only one channel can be edited at a time, all channels are applied.
Add Image/Image
The image to have its colors selected. Multiple images can be added by connecting to the Add Image field. Each input Image can have its colors selected individually and then all resulting greyscale images will be merged into a single output.
Minimum
The minimum tone of the selected channel to be included in the mask. Values to the left of the range are excluded and appear black. Values to the right are included and appear white. Values in the range are included but are interpolated as gray.
Maximum
The maximum tone of the selected channel to be included in the mask. Values to the left of the range are included and appear white. Values to the right are excluded and appear black. Values in the range are included but are interpolated as gray.

Output

Image
A greyscale image formed by mixing the selected colors in each input image.

9.5.2 Color Range Mask

The Color Range Mask creates a greyscale image by selecting one or more colors and then including similar colors and optionally restricting the selection to only nearby parts of the image. Similar colors produce brighter tones in the resulting greyscale image.

Input

Image
The image to have its colors selected.
Localized

Whether selection should be restricted to the region where the colors were selected.

  • Yes: Only colors within Threshold of the selected color(s) and are also touching at least one other selected color are selected.
  • No: Any color within Threshold of the selected color(s) are selected.
Range (If Localized is set to “Yes”)
The distance in percentage of the input image’s size to search for similar colors.
Tolerance
Percentage for how close a pixel’s color must be to one of the selected colors to be considered. The resulting greyscale value is brighter if its color is closer to the selected color(s).

Output

Image
A greyscale image based on the input image with selected colors converted to grey and all other colors converted to black.

Mode

The Canvas View combo box is locked to the output image.

There are three tools available for interacting with the Color Range Mask node. All are used for setting which colors are selected.

Icon Name Keyboard Shortcut Description

Eye Dropper

E

Left click over the Canvas to set the selected color to the color under the cursor. All other selected colors are replaced.

Eye Dropper (Add)

A

Left click over the Canvas to add the color under the cursor to the list of selected colors.

Eye Dropper (Subtract)

S

Left click over the Canvas to remove the color under the cursor from the list of selected colors.

9.5.3 Levels Mask

The Levels Mask node is similar to the Levels node except it has some extra functionality that is useful for building masks.

Unlike most other Mask nodes, the Levels Mask node does not necessarily produce a greyscale image as output. You can convert the output to greyscale by using another Mask node or by using the Greyscale node.

Input

Image
The image used to build the mask.
Color Model

The color model used to define the range of tones to be remapped.

  • RGB: RGB color model.
  • HSL: HSL color model.
Input Red (If Color Model is set to “RGB”)
The range of valid red tones to be remapped from. Red tones outside of this range are processed according to the Excluded field below.
Input Green (If Color Model is set to “RGB”)
The range of valid green tones to be remapped from. Green tones outside of this range are processed according to the Excluded field below.
Input Blue (If Color Model is set to “RGB”)
The range of valid blue tones to be remapped from. Blue tones outside of this range are processed according to the Excluded field below.
Output Red (If Color Model is set to “RGB”)
The range red tones will be remapped to.
Output Green (If Color Model is set to “RGB”)
The range green tones will be remapped to.
Output Blue (If Color Model is set to “RGB”)
The range blue tones will be remapped to.
Input Hue (If Color Model is set to “HSL”)
The range of valid hues to be remapped from. Hues outside of this range are processed according to the Excluded field below.
Input Saturation (If Color Model is set to “HSL”)
The range of valid saturation to be remapped from. Saturation outside of this range are processed according to the Excluded field below.
Input Lightness (If Color Model is set to “HSL”)
The range of valid lightness to be remapped from. Lightness outside of this range are processed according to the Excluded field below.
Output Hue (If Color Model is set to “HSL”)
The range hues will be remapped to.
Output Saturation (If Color Model is set to “HSL”)
The range saturation will be remapped to.
Output Lightness (If Color Model is set to “HSL”)
The range lightness will be remapped to.
Excluded

How colors outside of the specified input range are processed.

  • Clamp: Values less than or greater than the specified range will be set to the minimum and maximum values of the range.
  • Discard Channel: Values less than or greater than the specified range are set to 0 in just that channel.
  • Discard Pixel: Pixels with any values less than or greater than their respective ranges will cause all channels to be set to 0.
Alpha

How alpha should be processed.

  • Copy Input: Copy the alpha channel from the input image.
  • Custom: Set alpha to a single specified value.
Custom Alpha (If Alpha is set to “Custom”)
Translucency for entire output image.

Output

Image
The input image with its tones remapped to build a mask.

9.5.4 Vignette Mask

The Vignette Mask node produces a greyscale image that can be composited to simulate or correct vignetting.

Input

Image
The image the mask is being built for.
Width
How wide the elliptical shape is in percentage of the input image’s width.
Height
How tall the elliptical shape is in percentage of the input image’s height.
X
Horizontal offset of elliptical shape from center. A value of -100 is all the way left and no longer visible. A value of 100 is all the way right and no longer visible. A value of 0 is centered.
Y
Vertical offset of elliptical shape from center. A value of -100 is all the way up and no longer visible. A value of 100 is all the way down and no longer visible. A value of 0 is centered.
Softness
How much of the elliptical shape is soft or solid.
Gamma
The shape of the drop off near the edges. A larger value produces a sharper edge.

Output

Image
A greyscale image the same size as the input image.