Another idea to explore is, could we somehow include channels masks into iterators?
int i[3] = {0, 1, 0}; // channels mask
ImageBuf::Iterator<float> r (R, i);
Then r++ would still move from pixel to pixel, but
maybe we could have r.next() for moving through
valid channels (specified in the channels mask) in
the image?
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
