Squeeze Channels

Node Icon

Remove singleton channels, i.e. channels with 1 element.

Example 1: An input with channel shape [1, 3, 1] will have a new channel shape of [3] if all singleton channels are squeezed.

Example 2: An input with channel shape [1, 3, 1] will have a new channel shape of [3, 1] if only channel [0] is squeezed.

Inputs

Input

Input Image or Mask.

Type: Mask, Image, List, Required, Single

Outputs

Output

Result.

Type: Image, List

Settings

Type Selection

Select if all or specific singleton dimensions should be removed.

Values: All, Specific

Channels to Squeeze Integers

Select specific singleton channel indices that will be removed.

See also

Keywords: