IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 14, 2007, 10:56:57 AM (19 years ago)
Author:
Paul Price
Message:

Wasn't creating DARK.NORM calibration for all cameras.
Fixing problem when adding dummy entry (psPolynomial1DAlloc arguments round the wrong way again....).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r13810 r13833  
    44 *  @author EAM (IfA)
    55 *
    6  *  @version $Revision: 1.96 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-06-14 02:03:29 $
     6 *  @version $Revision: 1.97 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-06-14 20:56:57 $
    88 *
    99 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    324324    } else {
    325325        // Add a dummy entry
    326         psPolynomial1D *poly = psPolynomial1DAlloc(1, PS_POLYNOMIAL_ORD); // Dummy polynomial
     326        psPolynomial1D *poly = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, 1); // Dummy polynomial
    327327        poly->coeff[0] = 0.0;
    328328        poly->coeff[1] = 1.0;
     
    620620        }
    621621
    622         // Now fill in the formats
     622        // Now fill in the formats and calibrations
    623623        psMetadataIterator *iter = psMetadataIteratorAlloc(cameras, PS_LIST_HEAD, NULL); // Iterator
    624624        psMetadataItem *item;           // Item from iteration
     
    627627            if (!cameraReadFormats(item->data.md, item->name)) {
    628628                psWarning("Unable to read formats for camera %s: removed.\n", item->name);
     629                psMetadataRemoveKey(cameras, item->name);
     630            }
     631            if (!cameraReadCalibrations(item->data.md, item->name)) {
     632                psWarning("Unable to read calibrations for camera %s: removed.\n", item->name);
    629633                psMetadataRemoveKey(cameras, item->name);
    630634            }
Note: See TracChangeset for help on using the changeset viewer.