I see, you want a pixel-by-pixel max/min or two images.

OIIO doesn't seem to have that, and that seems a little odd, doesn't it? Let me 
see what I can whip up (should be a cut/paste of add with like 3 lines changed).

In the mean time, you could do it pixel-by-pixel yourself (retrieve the two 
pixels, max them, write the result). This will be extremely slow in Python, but 
it might get you through the day until I can give you a real fix.

        -- lg


> On Jan 22, 2020, at 7:23 AM, Alexis PRAYEZ <apra...@brunchstudio.tv> wrote:
> 
> Hi Daniel,
> 
> Thx for getting back to me, I should have been more precise.
> What I need is more like "add", to get a new ImageBuf composed from inputs 
> buffer, but instead of having 
> OUT = A + B
> I would like
> OUT = max(A, B)
> 
> Cheers !
> 
> Le mer. 22 janv. 2020 à 16:12, Daniel Flehner Heen <flehnerhee...@gmail.com 
> <mailto:flehnerhee...@gmail.com>> a écrit :
> Hi!
> 
> I may have misunderstood your question, but have you looked at 
> ImageBufAlgo.computePixelStats() ?
> 
> On Wed, Jan 22, 2020 at 3:51 PM Alexis PRAYEZ <apra...@brunchstudio.tv 
> <mailto:apra...@brunchstudio.tv>> wrote:
> Hi all,
> 
> I am looking for a way of doing a "max" operation on 2 or more ImageBuf, in 
> python. There are add(), sub() and over() but no min/max functions. I can get 
> the pixels of each buf as numpy arrays then do my op then back into a buffer, 
> but I was wondering if anyone add a better way !
> 
> Have a great day !
> 
> -- 
> 
> 
> Alexis Prayez - Pipeline
> 
> 
> 41 rue de l'Echiquier - 75010 PARIS 
> <http://maps.google.com/maps?q=41+rue+%C3%A9chiqiuer+75010>
> http://www.brunchstudio.tv/ <http://www.brunchstudio.tv/>
> 
> STATEMENT OF CONFIDENTIALITY
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain confidential or privileged information. 
> If you are not the intended recipient, you are hereby notified that any 
> dissemination, distribution or copying of this e-mail and any attachment(s) 
> is strictly prohibited. Please reply to the sender and destroy all copies of 
> this message and any attachments from your system. 
> 
> Please consider the environment before printing this e-mail.
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org <mailto:Oiio-dev@lists.openimageio.org>
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org 
> <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
> 
> 
> -- 
> -Daniel
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org <mailto:Oiio-dev@lists.openimageio.org>
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org 
> <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
> 
> 
> -- 
> 
> 
> Alexis Prayez - Pipeline / R&D
> 
> 
> 41 rue de l'Echiquier - 75010 PARIS 
> <http://maps.google.com/maps?q=41+rue+%C3%A9chiqiuer+75010>
> http://www.brunchstudio.tv/ <http://www.brunchstudio.tv/>
> 
> STATEMENT OF CONFIDENTIALITY
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain confidential or privileged information. 
> If you are not the intended recipient, you are hereby notified that any 
> dissemination, distribution or copying of this e-mail and any attachment(s) 
> is strictly prohibited. Please reply to the sender and destroy all copies of 
> this message and any attachments from your system. 
> 
> Please consider the environment before printing this e-mail.
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

--
Larry Gritz
l...@larrygritz.com




_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to