From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,583275b6950bf4e6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-30 07:46:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.telebyte.nl!fu-berlin.de!uni-berlin.de!213.200.246.247!not-for-mail From: Vinzent Hoefler Newsgroups: comp.lang.ada Subject: Re: Saturated Math Date: Fri, 30 May 2003 16:45:30 +0200 Organization: JeLlyFish software Message-ID: References: <3ECFF541.1010705@attbi.com> <3ED0B820.5050603@noplace.com> <3ED2096F.3020800@noplace.com> <3ED353BE.40605@noplace.com> <3ED4A323.3000909@noplace.com> NNTP-Posting-Host: 213.200.246.247 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: fu-berlin.de 1054306007 7296952 213.200.246.247 (16 [175126]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:38102 Date: 2003-05-30T16:45:30+02:00 List-Id: Robert A Duff wrote: >Vinzent Hoefler writes: > >> Because its more intuitive for their problem domain. It would be in >> mine. I have a lot of color value conversions that should stop at >> black or white but I still need the grey values inbetween even after >> some of these pixels have saturated. > >I still don't get it. By "sticky", I mean that arithmetic is sticky. Yes, I think I know what you mean. >You can still set the thing to any value you like. In your example of >0..255, if X =3D 200, and you say "X :=3D X + 100;", then X =3D 255. Yep, exactly. >If you then subtract 100 from X, you go "too far" in the other >direction, it seems to me. Well, no. But this might be specific to the problem domain. If I am going back that is because I compress the output color space, so subtracting -100 from a black pixel that saturated before is perfectly correct. > So if you want to, say, set it back to 200, >you should say "X :=3D 200;", not "X :=3D X - 100;". Yes, but this is what I don't want to do. I want to subtract 100 from each pixel, either it was saturated before or not. Vinzent. --=20 Parents strongly cautioned -- this posting is intended for mature audiences over 18. It may contain some material that many parents would not find suitable for children and may include intense violence, sexual situations, coarse language and suggestive dialogue.