IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 12, 2018, 10:12:18 AM (8 years ago)
Author:
eugene
Message:

build the ppImageErrorCodes.c,h files; add NO_PIXELS error as 5007 (was hard-wired)

Location:
trunk/ppImage/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src

    • Property svn:ignore
      •  

        old new  
        1111ppImageVersionDefinitions.h
        1212ppImageVersionDefinitions.h.tmp
         13ppImageErrorCodes.c
         14ppImageErrorCodes.h
  • trunk/ppImage/src/ppImageMaskStats.c

    r28132 r40453  
    8989            (float) Npix_dynamic / Npix_valid, (float) Npix_magic / Npix_valid,
    9090            (float) Npix_advisory / Npix_valid);
     91
     92  if ((Npix_valid == 0)||(Npix_static + Npix_dynamic >= Npix_valid)) {
     93    if (psMetadataLookupS32(NULL, stats, "QUALITY") == 0) {
     94      psMetadataAddS32(stats, PS_LIST_TAIL, "QUALITY", PS_META_REPLACE, "No good pixels in image.", PPIMAGE_ERR_NO_PIXELS);
     95    }
     96  }
     97 
    9198  return(true);
    9299}
Note: See TracChangeset for help on using the changeset viewer.