Back to FabImage Library website

You are here: Start » Function Reference » Image » Image Conversions » RemoveChannel

RemoveChannel


Header: FIL.h
Namespace: fil
Module: FoundationLite

Creates an image by removing a single channel from the input image.

Syntax

C++
C#
 
void fil::RemoveChannel
(
	const fil::Image& inImage,
	int inChannelIndex,
	fil::Image& outImage
)

Parameters

Name Type Range Default Description
Input value inImage const Image& Input image
Input value inChannelIndex int 0 - 3
Output value outImage Image& Output image

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

List of possible exceptions:

Error type Description
DomainError Channel cannot be removed from single-channel image in RemoveChannel.
DomainError Channel index out of range in RemoveChannel.