Image Scope
1. Usages of Image Scope
When handle image, scope can be used to select pixels to be operated. It is set of conditions to manufacture part of image.
2. Define Scope
Scope is determined by both "Shape Constraints" and "Match Colors List".
2.1 Shape Constraints
- "Shape" limits coordinates of pixels.
- Option "Shape exclude" means pixels outside the shape.
2.1.1 Whole Image
All pixels of the image.
2.1.2 Rectangle, Circle, Ellipse, Polygon
- Drag anchors to adjust shape.
- Drag shape to translate it.
- Right click image to pop menu of shape.
- For polygon, left click image to add points for the polygon.
2.1.3 Matting
- Click image to add points into start points for matting.
- There are Eight-neighbor Matting and Four-neighbor Matting.
2.1.4 Outline
- Select a picture with transparent background and its outline is fetched as "Shape".
- Width and height of the outline can be adjusted.
2.2 Match Colors List
- Pixels selected by "Shape Constraints" are matched to the colors list.
- Option "Color exclude" means not matching any color of the list.
2.2.1 Define Colors List
- If colors list is empty, then the result of matching is always true.
- To add colors, click button Color to pop palette, or check "Pick color" and click image.
2.2.2 Algorithms of Matching Colors
- When difference of two colors, that is called "Color Distance", is less than the threshold, the colors are "matched"
- Multiple algorithms can be selected to calculate color distance. Some are more accurate while some are less costed.
- Weights can be set for some algorithms. Notice whether they are positive or negative.
- When compare an image pixel with colors list, their relationship is "OR",
which means result is TRUE when the pixel matches any color in the list.
2.3 Other Options
- Background image. Can be any image or empty.
It does not affect usage of scope. That is, scope defined against an image can be applied to any other image.
- Option "Scope exclude" means pixels outside the scope.
- Option "Handle transparent".
3. Display Scope
To indicate selected pixels obviously, "masked image" is displayed:
- Selected pixels are displayed as their orignial colors.
- Unselected pixels are displayed as blending colors in orignial colors, mask color, and mask opacity.
- For image mostly in dark colors, suggest light color as mask color.
- For image mostly in light colors, suggest dark color as mask color.
- Click button "Pop"(CTRL+P) to show source image, selected pixels, and masked image.
4. Manage Scopes
- When handle image, conditions of selecting pixels can be saved as scope.
- When handle image, saved scope can be applied as conditions to select pixels.
- Scopes are saved and managed in tree.