Get the pixel value at (x, y, channelIdx).
Get the pixel value at (x, y, channelIdx). Channels are indexed as follows:
Put a pixel value at (x, y, channelIdx).
An inefficient implementation of equals().
An inefficient implementation of equals(). Subclasses should override this if they can implement it more cheaply and anyone cares about such things.
Returns a flat version of the image, represented as a single array.
Returns a flat version of the image, represented as a single array. It is indexed as follows: The pixel value for (x, y, channelIdx) is at channelIdx + x*numChannels + y*numChannels*xDim.
This implementation works for arbitrary image formats but it is inefficient.
A wrapper trait for images that might be stored in various ways. Be warned that using this wrapper probably introduces some inefficiency. Also, images are currently treated as immutable, which may introduce a serious performance problem; in the future we may need to add a set() method.
If you have a choice and performance matters to you, use ChannelMajorArrayVectorizedImage, as it is likely to be the most efficient implementation.