Back to FabImage Library website
You are here: Start » Function Reference » Image » Image Conversions » 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 | |
---|---|---|---|---|---|
![]() |
inImage | const Image& | Input image | ||
![]() |
inChannelIndex | int | 0 - 3 | ||
![]() |
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. |