fast::ImageChannelConverter class

Remove and/or reverse channels from an image.



Base classes

class ProcessObject
Abstract base class for all process objects.

Public functions

auto create(std::vector<int> channelsToRemove, bool reverse) -> std::shared_ptr<ImageChannelConverter>
Create instance.
void setChannelsToRemove(bool channel1, bool channel2, bool channel3, bool channel4)
void setReverseChannels(bool reverse)
void execute() virtual

Protected variables

std::array<bool, 4> m_channelsToRemove
bool m_reverse

Function documentation

std::shared_ptr<ImageChannelConverter> fast::ImageChannelConverter::create(std::vector<int> channelsToRemove, bool reverse)

Create instance.

channelsToRemove List of image channels to remove
reverse Whether to reverse image channels or not. E.g. converting BGR to RGB.
Returns instance