IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30959


Ignore:
Timestamp:
Mar 18, 2011, 8:29:25 AM (15 years ago)
Author:
mwv
Message:

Added comment clarifying what will generlaly trigger termination
of random subsampling loop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psLib/src/imageops/psImageBackground.c

    r30957 r30959  
    113113        // Now sort the array so that we end up with a list of the pixels in random order
    114114        psVector *frndSortedPixelOrder = psVectorSortIndex(NULL, frndPixelOrder);
    115         // Now loop in our new sorted order
    116         //  Paul Price suggests fixing this up so that it gets all Nsubset pixels, skipping over the masked ones.
     115        // Now loop in our new sorted order;
     116        // Note that it's the number of good samples found, "n", that will generally terminate the loop
    117117        for (long i = 0; n < Nsubset && i < Npixels; i++) {
    118118            int pixel = frndSortedPixelOrder->data.S32[i];
Note: See TracChangeset for help on using the changeset viewer.