class
ImageChannelConverterRemove and/or reverse channels from an image.
Contents
- Reference
Inputs:
- 0: Image
Outputs:
- 0: 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.
Parameters | |
---|---|
channelsToRemove | List of image channels to remove |
reverse | Whether to reverse image channels or not. E.g. converting BGR to RGB. |
Returns | instance |