IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 8, 2025, 4:50:50 PM (12 months ago)
Author:
eugene
Message:

add some clarifying comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAMaskWeight.c

    r35561 r42829  
    364364
    365365
     366// NOTE: this function attempts to modify the variance to ensure the sky pixels
     367// have a signal-to-noise distribution consistent with 1.0
    366368bool pmReadoutVarianceRenormalise(const pmReadout *readout, psImageMaskType maskVal,
    367369                                  int sample, float minValid, float maxValid)
     
    415417
    416418                signoise->data.F32[index] = image->data.F32[y][x] / sqrtf(variance->data.F32[y][x]);
     419
     420                // a high S/N pixel is not likely to be part of the sky
     421                // consider skipping them
     422                // if (signoise->data.F32[index] > 10) continue;
     423
    417424                index++;
    418425            }
     
    434441
    435442            signoise->data.F32[index] = image->data.F32[y][x] / sqrtf(variance->data.F32[y][x]);
     443
     444            // a high S/N pixel is not likely to be part of the sky
     445            // consider skipping them
     446            // if (signoise->data.F32[index] > 10) continue;
    436447            index++;
    437448        }
Note: See TracChangeset for help on using the changeset viewer.