IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 11, 2008, 8:35:04 AM (18 years ago)
Author:
eugene
Message:

total overhaul of mask handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080706/psModules/src/camera/pmFPAfileIO.c

    r18430 r18472  
    99
    1010#include "pmConfig.h"
     11#include "pmConfigMask.h"
    1112#include "pmDetrendDB.h"
    1213
     
    428429            }
    429430            pmConfigConformHeader(hdu->header, file->format);
     431
     432            // whenever we write out a mask image, we should define the bits which represent mask concepts
     433            if (file->type == PM_FPA_FILE_MASK) {
     434                assert (hdu->header);
     435                if (!pmConfigMaskWriteHeader (config, hdu->header)) {
     436                    psError(PS_ERR_UNKNOWN, false, "failed to set the bitmask names in the PHU header for Image %s (%s)\n", file->filename, file->name);
     437                    return false;
     438                }
     439            }
    430440        }
    431441
Note: See TracChangeset for help on using the changeset viewer.