IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21467


Ignore:
Timestamp:
Feb 13, 2009, 11:52:19 AM (17 years ago)
Author:
Paul Price
Message:

Adding trivial case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageCovariance.c

    r21466 r21467  
    229229
    230230    float factor = psImageCovarianceFactor(covar); // Factor to transfer
     231    if (factor == 1.0) {
     232        // No work required
     233        return true;
     234    }
     235
    231236    psBinaryOp(variance, variance, "*", psScalarAlloc(factor, PS_TYPE_F32));
    232237    psBinaryOp(covar->image, covar->image, "/", psScalarAlloc(factor, PS_TYPE_F32));
Note: See TracChangeset for help on using the changeset viewer.