Changeset 17852 for trunk/FACT++


Ignore:
Timestamp:
05/14/14 13:01:16 (11 years ago)
Author:
tbretz
Message:
Take pixels above maximum out of image parameter calculation; changed color from brown to dark gray for pixels above maximum.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/viewer/index.js

    r17848 r17852  
    12801280
    12811281    if (hue>1)
    1282         return "700"; // 666
     1282        return "dde";//"700"; // 666
    12831283
    12841284    hue *= 14;
     
    13971397    if (document.getElementById('image').checked)
    13981398    {
    1399         var h = Hillas(canv.dataAbs, canv.zmin);
     1399        var h = Hillas(canv.dataAbs, canv.zmin, canv.zmax);
    14001400        if (h)
    14011401        {
     
    14941494// ===================================================================
    14951495
    1496 function Hillas(data, min)
     1496function Hillas(data, min, max)
    14971497{
    14981498    var mx = 0;
     
    15071507    for (var i=0; i<1440; i++)
    15081508    {
    1509         if (data[i]===undefined || data[i]<min)
     1509        if (data[i]===undefined || data[i]<min || data[i]>max)
    15101510            continue;
    15111511
Note: See TracChangeset for help on using the changeset viewer.