[][src]Module cvr::rgb

Structs

Image

Image represents any RGB image. Internally, it stores each channel as an independent allocation which enables such things as constant-time channel swapping along with making the data cheaper to copy to a GPU which expects CHW ordering vs the packed format HWC.

Iter

Iter enables the simultaneous traversal of 3 separate channels of image data. It works with any type that can be converted to a &[Numeric]. Image data is returned pixel-by-pixel in a [N; 3] format with (R, G, B) ordering.