[GEM-dev] [ pd-gem-Bugs-2779564 ] pix_chroma_key uses RGB values from 0-255, not 0-1

SourceForge.net noreply at sourceforge.net
Wed Jun 17 04:20:25 CEST 2009


Bugs item #2779564, was opened at 2009-04-23 14:39
Message generated for change (Comment added) made by sf-robot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=507079&aid=2779564&group_id=64325

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Pixes (pix_ objects)
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Hans-Christoph Steiner (eighthave)
Assigned to: Nobody/Anonymous (nobody)
Summary: pix_chroma_key uses RGB values from 0-255, not 0-1

Initial Comment:
For whatever reason, [pix_chroma_key] uses RGB values between 0 and 255 rather than 0 and 1 like the rest of Gem.  

http://lists.puredata.info/pipermail/gem-dev/2009-04/003952.html

----------------------------------------------------------------------

>Comment By: SourceForge Robot (sf-robot)
Date: 2009-06-17 02:20

Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

----------------------------------------------------------------------

Comment By: IOhannes m zmlnig (zmoelnig)
Date: 2009-06-02 14:07

Message:
then it will be interpreted as a normalized value. this shouldn't be a big
problem, as in practice a range of 1/256 is rather small and a value of
1/256 is rather dark.

note that _all_ 3 values have to be <= 1 in order to interpreted as
normalized values.

anyhow: Gem now spits out a warning when using non-normalized values

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2009-06-02 13:55

Message:
And what happen if the value == 1 (between 0 - 1 and between 0 - 255) ?

----------------------------------------------------------------------

Comment By: Cyrille Henry (nusmuk)
Date: 2009-06-02 13:47

Message:
using 2 diferents ranges depending on the input value is very confusing.
i agree with HCS : a warning should be send if a value > 1 is send so the
user should know that it must divide by 255 the input.


----------------------------------------------------------------------

Comment By: Hans-Christoph Steiner (eighthave)
Date: 2009-06-02 13:36

Message:
>From what I understand, this will now respond to both 0-1 and 0-255.  I
think this could lead to some very confusing bugs/behavior.  How about just
issuing a warning that the data range changed from 0-255 to 0-1?

----------------------------------------------------------------------

Comment By: IOhannes m zmlnig (zmoelnig)
Date: 2009-06-02 08:41

Message:
should be fixed with revision 2828.
the behaviour is now: if all of the |values| are <=1.0, then we assume
they are normalized, else we switch to legacy mode.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=507079&aid=2779564&group_id=64325




More information about the GEM-dev mailing list