IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7543


Ignore:
Timestamp:
Jun 13, 2006, 12:56:52 PM (20 years ago)
Author:
Paul Price
Message:

Adding check on the gradient.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacRejection.c

    r6887 r7543  
    144144                                    // Calculate the gradient
    145145                                    grads->data.F32[j] = stacGradient(inputs->data[j], xPix, yPix);
    146                                     gradsMask->data.U8[j] = 0;
    147                                     numGrads++;
     146                                    if (finite(grads->data.F32[j])) {
     147                                        gradsMask->data.U8[j] = 0;
     148                                        numGrads++;
     149                                    } else {
     150                                        gradsMask->data.U8[j] = 1;
     151                                    }
    148152                                } else {
    149153                                    gradsMask->data.U8[j] = 1; // Mask this one
Note: See TracChangeset for help on using the changeset viewer.