Path: csiph.com!xmission!news.alt.net From: dale Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Overlapping/Merge two density plot red and green scale using gnuplot Date: Wed, 16 Nov 2016 07:41:49 -0500 Lines: 16 Message-ID: <9se9n1.vm2.19.1@news.alt.net> References: <093d02c9-93e0-4d98-b0ab-3144692fdd0a@googlegroups.com> <9sd4sr.9c6.19.1@news.alt.net> <9sd6po.kd5.19.1@news.alt.net> <9sdhl6.l0p.19.1@news.alt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0a2 In-Reply-To: <9sdhl6.l0p.19.1@news.alt.net> Content-Language: en-US Xref: csiph.com comp.graphics.apps.gnuplot:3464 On 11/16/2016 12:51 AM, dale wrote: > On 11/15/2016 9:45 PM, dale wrote: >> you do need to add the secondary terms > > are you doing your math in integers? rounding, clipping, etc. too? > > in your blue calculation you might be diving by infinity if you don't > clip to 255, in eight bit calculations > okay, its been almost 20 years (R + G + B) needs clipped then rounded -- dale | http://www.dalekelly.org