sum_channels¶
-
menpo.feature.
sum_channels
(pixels, channels=None)[source]¶ Create the sum of the channels of an image that can be used for visualization.
- Parameters
pixels (
Image
or subclass or(C, X, Y, ..., Z)
ndarray) – Either the image object itself or an array with the pixels. The first dimension is interpreted as channels.channels (list of int or
None
) – The list of channels to be used. IfNone
, then all the channels are employed.