Skip to content

f_SliceComponent

rasberry edited this page Jan 19, 2024 · 2 revisions

SliceComponent

Usage

 Slices an image component into multiple layers.
 -s (space)                   Color space to use (default RGB)
 -c (component)               Component to slice (default R)
 -n (number)                  Number of slices to use (default 16)
 -r (number[%])               Reset the component to given value (0.0-1.0 / 0%-100%)
 -o (number)                  Keep only a specific slice between 1 and -n

 Available Spaces             Components
 Cie1931                      [X,Y,Z,A] - International Commission on Illumination 1931
 Cie1960                      [U,V,W,A] - International Commission on Illumination 1960
 Cmy                          [C,M,Y,A] - Cyan, Magenta, Yellow
 Hsi                          [H,S,I,A] - Hue, Saturation, Intensity
 Hsl                          [H,S,L,A] - Hue, Saturation, Lightness
 Hsv                          [H,S,V,A] - Hue, Saturation, Value
 LinearRgb                    [R,G,B,A] - RGB with D65 gamma removed
 Rgb                          [R,G,B,A] - Red, Green, Blue (passthrough)
 YCbCrBt202                   [Y,B,R,A] - Luma, Blue-Red difference chroma : BT. 2020
 YCbCrBt601                   [Y,B,R,A] - Luma, Blue-Red difference chroma : BT. 601
 YCbCrBt709                   [Y,B,R,A] - Luma, Blue-Red difference chroma : BT. 709
 YCbCrJpeg                    [Y,B,R,A] - Luma, Blue-Red difference chroma
 YCbCrSmpte240m               [Y,B,R,A] - Luma, Blue-Red difference chroma : SMPTE 240M
 YDbDr                        [Y,B,R,A] - Luma, Blue-Red difference chroma : SECAM
 Yiq                          [Y,I,Q,A] - Luma, In-phase, Quadrature : NTSC 1953
 YiqFcc                       [Y,I,Q,A] - Luma, In-phase, Quadrature : FCC 1987
 YuvBT601                     [Y,U,V,A] - Luma, U-axis, V-axis : BT. 601
 YuvBT709                     [Y,U,V,A] - Luma, U-axis, V-axis : BT. 709

Examples

cookie creek
-c G -o 7 SliceComponent-cookie-1 SliceComponent-creek-1
-s HSV -c H -o 11 SliceComponent-cookie-2 SliceComponent-creek-2