The ultimate generalization follows from the fact that
we are dealing with point operations.

If you look at the contrast pull request, contrast_impl could take a
function pointer as argument and then you would call that in lines 1617 and
1628,
in imagebufalgo.cpp, with the appropriate arguments.

I wanted to do some more of these before thinking about generalization.

I think we should not bother with this now, and complete all the
point operations from my proposal. I think even more opportunities
for generalization will show up as we go, like for input validation.
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to