class ExtractComps(config={}, **kwds)[source]

Bases: pyctools.core.base.Transformer

Extract colour components.

Extract one or more components from a multi-component (RGB, YCrCb, etc.) input. The output components are specified by the config items start and stop. As in a Python slice, stop should be one more than the last component required.

Note that this operation is just as easily done with an Arithmetic component:

extract_R = Arithmetic(func='data[:,:,0:1]')
extract_G = Arithmetic(func='data[:,:,1:2]')
extract_B = Arithmetic(func='data[:,:,2:3]')

Comments or questions? Please email