Jump to content

Archive:Kdenlive/Manual/Effects/Alpha manipulation/Color Selection: Difference between revisions

From KDE Wiki Sandbox
Yurchor (talk | contribs)
m minor fixes
Yurchor (talk | contribs)
Marked this version for translation
Line 13: Line 13:
[[File:Color_selection_effect.png]]
[[File:Color_selection_effect.png]]


<!--T:14-->
'''Color to select''': the color to select. This is the center point of the selected color subspace.
'''Color to select''': the color to select. This is the center point of the selected color subspace.


<!--T:15-->
'''Invert selection''': When ON, the selected color will be transparent, as normally used with keying. When OFF (default) the selected color will be opaque, for example for alpha controlled adjustment of that color only.
'''Invert selection''': When ON, the selected color will be transparent, as normally used with keying. When OFF (default) the selected color will be opaque, for example for alpha controlled adjustment of that color only.


Line 20: Line 22:
'''Selection Subspace''' options are: RGB (Red Green Blue), ABI and HCI  (Hue Chromacity Intensity)
'''Selection Subspace''' options are: RGB (Red Green Blue), ABI and HCI  (Hue Chromacity Intensity)


<!--T:16-->
Specifies in which of the three color spaces (RGB, ABI, HCI) the delta controls will work. Both ABI and HCI are separated luma/chroma. HCI is a cylindrical "Hue Chromacity Intensity" space, and ABI is a cartesian version thereof. Both suffer from chroma subsampling, and will give less sharp results than RGB.
Specifies in which of the three color spaces (RGB, ABI, HCI) the delta controls will work. Both ABI and HCI are separated luma/chroma. HCI is a cylindrical "Hue Chromacity Intensity" space, and ABI is a cartesian version thereof. Both suffer from chroma subsampling, and will give less sharp results than RGB.


<!--T:17-->
{{Note|Chroma subsampling is not a fault of this plugin. Frei0r plugins work in RGB 4:4:4. If you supply it with a truly 4:4:4 video, it will produce perfectly sharp alpha from all three color spaces.}}
{{Note|Chroma subsampling is not a fault of this plugin. Frei0r plugins work in RGB 4:4:4. If you supply it with a truly 4:4:4 video, it will produce perfectly sharp alpha from all three color spaces.}}


<!--T:18-->
{{Note|HCI is slow, because it has to calculate atan2() and hypot() for each pixel.}}
{{Note|HCI is slow, because it has to calculate atan2() and hypot() for each pixel.}}


<!--T:19-->
{Note|ABI is based on the alpha an beta coordinates, upon which most of the Hxx type colorspaces are defined.}}
{Note|ABI is based on the alpha an beta coordinates, upon which most of the Hxx type colorspaces are defined.}}


<!--T:20-->
See http://en.wikipedia.org/wiki/HSL_and_HSV
See http://en.wikipedia.org/wiki/HSL_and_HSV


Line 33: Line 40:
'''Subspace Shape''' options are: Box, Ellipsoid, Diamond
'''Subspace Shape''' options are: Box, Ellipsoid, Diamond


<!--T:21-->
Determines the shape of the color subspace. Options are: box, ellipsoid or diamond. Box is the biggest of them (by volume) and diamond the smallest. Imagine an octahedron inscribed inside an ellipsoid, which is in turn inscribed in a box. The tips of the diamond touch the ellipsoid, and the box, at the center of the sides of the box.
Determines the shape of the color subspace. Options are: box, ellipsoid or diamond. Box is the biggest of them (by volume) and diamond the smallest. Imagine an octahedron inscribed inside an ellipsoid, which is in turn inscribed in a box. The tips of the diamond touch the ellipsoid, and the box, at the center of the sides of the box.


Line 38: Line 46:
'''Edge Mode''' Options are: Hard, Fat, Normal, Skinny, Slope
'''Edge Mode''' Options are: Hard, Fat, Normal, Skinny, Slope


<!--T:22-->
"Hard" means the alpha channel will be thresholded to two values only, fully opaque and fully transparent. This is mainly useful for keying.  
"Hard" means the alpha channel will be thresholded to two values only, fully opaque and fully transparent. This is mainly useful for keying.  


<!--T:23-->
The remaining options ("Fat", "Normal" and "Skinny") create a gradual transition between transparent and opaque. Alpha will be a function of the difference of color from the selected color, with cutoff at the delta points. The fatter the choice, the more the selected areas are filled towards the rim. This is useful with alpha controlled color adjustment tools.
The remaining options ("Fat", "Normal" and "Skinny") create a gradual transition between transparent and opaque. Alpha will be a function of the difference of color from the selected color, with cutoff at the delta points. The fatter the choice, the more the selected areas are filled towards the rim. This is useful with alpha controlled color adjustment tools.


Line 45: Line 55:
'''Operation''' options are: Write On Clear, Max, Min, Add and Subtract. This defines how to deal with an existing alpha channel in the clip. See [[Kdenlive/Manual/Effects/Alpha_manipulation/Alpha_shapes#Operations|Alpha Shapes]] for the meanings of these operations.
'''Operation''' options are: Write On Clear, Max, Min, Add and Subtract. This defines how to deal with an existing alpha channel in the clip. See [[Kdenlive/Manual/Effects/Alpha_manipulation/Alpha_shapes#Operations|Alpha Shapes]] for the meanings of these operations.


<!--T:24-->
The "min", "max", "add" and "subtract" options allow cascading of select0r plugins (or combination with other alpha-writting plugins). These options combine the current selection with the pre-existing alpha of the source material. This way complex selections can be built.
The "min", "max", "add" and "subtract" options allow cascading of select0r plugins (or combination with other alpha-writting plugins). These options combine the current selection with the pre-existing alpha of the source material. This way complex selections can be built.


<!--T:25-->
'''Delta XXXX:'''
'''Delta XXXX:'''
These three parameters determine the size of the color subspace along each axis. Bigger value means bigger tolerance on that axis.
These three parameters determine the size of the color subspace along each axis. Bigger value means bigger tolerance on that axis.


<!--T:26-->
For example, setting a high I delta (in ABI and HCI), will allow the selection of a specific color in both light and shadows, but will also discard most of the high-bandwidth luma signal, making the selection less spatially accurate.
For example, setting a high I delta (in ABI and HCI), will allow the selection of a specific color in both light and shadows, but will also discard most of the high-bandwidth luma signal, making the selection less spatially accurate.



Revision as of 12:13, 6 November 2012

Color Selection

This is the FilterFrei0r-select0r filter written by Marko Cebokli August 2010.

This is color based alpha selection. For example, this offers you a blue screen/green screen/chroma-keying effect.

Color to select: the color to select. This is the center point of the selected color subspace.

Invert selection: When ON, the selected color will be transparent, as normally used with keying. When OFF (default) the selected color will be opaque, for example for alpha controlled adjustment of that color only.

Selection Subspace options are: RGB (Red Green Blue), ABI and HCI (Hue Chromacity Intensity)

Specifies in which of the three color spaces (RGB, ABI, HCI) the delta controls will work. Both ABI and HCI are separated luma/chroma. HCI is a cylindrical "Hue Chromacity Intensity" space, and ABI is a cartesian version thereof. Both suffer from chroma subsampling, and will give less sharp results than RGB.

Note

Chroma subsampling is not a fault of this plugin. Frei0r plugins work in RGB 4:4:4. If you supply it with a truly 4:4:4 video, it will produce perfectly sharp alpha from all three color spaces.


Note

HCI is slow, because it has to calculate atan2() and hypot() for each pixel.


{Note|ABI is based on the alpha an beta coordinates, upon which most of the Hxx type colorspaces are defined.}}

See http://en.wikipedia.org/wiki/HSL_and_HSV

Subspace Shape options are: Box, Ellipsoid, Diamond

Determines the shape of the color subspace. Options are: box, ellipsoid or diamond. Box is the biggest of them (by volume) and diamond the smallest. Imagine an octahedron inscribed inside an ellipsoid, which is in turn inscribed in a box. The tips of the diamond touch the ellipsoid, and the box, at the center of the sides of the box.

Edge Mode Options are: Hard, Fat, Normal, Skinny, Slope

"Hard" means the alpha channel will be thresholded to two values only, fully opaque and fully transparent. This is mainly useful for keying.

The remaining options ("Fat", "Normal" and "Skinny") create a gradual transition between transparent and opaque. Alpha will be a function of the difference of color from the selected color, with cutoff at the delta points. The fatter the choice, the more the selected areas are filled towards the rim. This is useful with alpha controlled color adjustment tools.

Operation options are: Write On Clear, Max, Min, Add and Subtract. This defines how to deal with an existing alpha channel in the clip. See Alpha Shapes for the meanings of these operations.

The "min", "max", "add" and "subtract" options allow cascading of select0r plugins (or combination with other alpha-writting plugins). These options combine the current selection with the pre-existing alpha of the source material. This way complex selections can be built.

Delta XXXX: These three parameters determine the size of the color subspace along each axis. Bigger value means bigger tolerance on that axis.

For example, setting a high I delta (in ABI and HCI), will allow the selection of a specific color in both light and shadows, but will also discard most of the high-bandwidth luma signal, making the selection less spatially accurate.


See Also

See also Blue Screen which does color based alpha selection but is a bit simpler.

This page covers some Color Theory to help understand Hue, Chroma, Luminance etc.