Whoa, that was extremely fast !
Like most small/mid size studio we are running on windows (yup...) so it's
always a pain to build libraries/tools with more than a couple
dependencies. I did build OIIO once, using vcpkg a few months back, so I'll
give it a try (I need to checkout
https://github.com/lgritz/oiio/tree/lg-minmax right right ?) and get back
to you.
But from the changes included in the merge request, it definitely looks
like what I was expecting ! (I see you also included it in oiiotool)
This is actually the first time I look at OIIO source, I have to say this
is some pretty nice code and practices (doc, tests, comments...) !

Cheers,

Le jeu. 23 janv. 2020 à 05:42, Larry Gritz <l...@larrygritz.com> a écrit :

> Proposed patch is here:  https://github.com/OpenImageIO/oiio/pull/2470
>
> I will backport to a release branch in time for the Feb 1 release.
>
> If you're able to build from master and try this patch, let me know if
> it's what you were expecting.
>
> -- lg
>
>
> On Jan 22, 2020, at 9:01 AM, Alexis PRAYEZ <apra...@brunchstudio.tv>
> wrote:
>
> Yeah, this is a really weird case so I don't know if this is something
> that would be useful to others, but I just wanted to check I was not
> missing anything obvious !
> I can do this pixel-by-pixel operation in one go through numpy to be less
> extremely slow, but for sure it would be faster directly with OIIO :)
>
> Thx a lot Larry
>
> Le mer. 22 janv. 2020 à 17:50, Larry Gritz <l...@larrygritz.com> a écrit :
>
>> 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> 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>
>>> 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/
>>>>
>>>> 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
>>>>
>>>
>>>
>>> --
>>> -Daniel
>>> _______________________________________________
>>> Oiio-dev mailing list
>>> Oiio-dev@lists.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/
>>
>> 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
>>
>
>
> --
>
>
> 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/
>
> 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
>


-- 


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

Reply via email to