1. "If you have an ImageBuf::Iterator<BUFTYPE,float>, then *iterator will
always be float that you can just use."
Will it always be in range 0-1?
2. Since m_spec_valid and m_pixels_valid are protected I need to add a
method in imagebuf.h.
bool uninitialized () const { return ! m_spec_valid && ! m_pixels_valid; }
Is "initialized" negation of "uninitialized"? In this case initialized
would mean:
m_spec_valid || m_pixels_valid
Or maybe I should have another method for initialized?
3. "A channel with a labeled alpha channel should be assumed to be correct,
use it (any number of non-alpha channels are ok, as long as they match
between the two input images)."
Hmm, ok I think I got it this time. So we handle the case of alpha channel
not specified, only for the two cases where number of channels is 3 or 4?
In other words, for number of channels 1,2,5,... fail if alpha channel is
not specified for both images? Don't assume any channel is alpha, don't
assume alpha is 1 everywhere.
Stefan
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org