IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 4, 2008, 10:08:33 PM (18 years ago)
Author:
Paul Price
Message:

Adding functions psFitsWriteImageCubeWithMask and psFitsUpdateImageCubeWithMask. psModules generally writes images as cubes, so need these to get the mask down into psFitsWriteImage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsImage.h

    r19383 r19384  
    44 * @author Robert DeSonia, MHPCC
    55 *
    6  * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2008-09-05 07:51:09 $
     6 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2008-09-05 08:08:33 $
    88 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    99 */
     
    134134);
    135135
    136 psArray *psFitsReadImageCube(const psFits *fits, psRegion region);
     136/// Read an image cube (3D image with each plane a separate image)
     137///
     138/// Images are returned in an array of psImage
     139psArray *psFitsReadImageCube(
     140    const psFits *fits,                 ///< FITS file to read
     141    psRegion region                     ///< Region to read
     142    );
    137143
    138 bool psFitsWriteImageCube(psFits *fits, psMetadata *header, const psArray *input, const char *extname);
     144/// Write an image cube (3D image from an array of images)
     145bool psFitsWriteImageCube(
     146    psFits *fits,                       ///< FITS file to write
     147    psMetadata *header,                 ///< Header to write
     148    const psArray *input,               ///< Array of images
     149    const char *extname                 ///< Name of extension
     150    );
    139151
    140 bool psFitsUpdateImageCube(psFits *fits, const psArray *input, int x0, int y0);
     152/// Write an image cube (3D image from an array of images), optionally using the supplied mask images to do
     153/// statistics when compressing
     154bool psFitsWriteImageCubeWithMask(
     155    psFits *fits,                       ///< FITS file to write
     156    psMetadata *header,                 ///< Header to write
     157    const psArray *input,               ///< Array of images
     158    const psArray *masks,               ///< Array of masks
     159    psMaskType maskVal,                 ///< Value to mask
     160    const char *extname                 ///< Name of extension
     161    );
     162
     163/// Update an image cube (3D image from an array of images)
     164bool psFitsUpdateImageCube(
     165    psFits *fits,                       ///< FITS file to update
     166    const psArray *input,               ///< Array of images
     167    int x0,                             ///< x origin of images in FITS image coordinates
     168    int y0                              ///< y origin of images in FITS image coordinates
     169    );
     170
     171/// Update an image cube (3D image from an array of images), optionally using the supplied mask images to do
     172/// statistics when compressing
     173bool psFitsUpdateImageCubeWithMask(
     174    psFits *fits,                       ///< FITS file to update
     175    const psArray *input,               ///< Array of images
     176    const psArray *masks,               ///< Array of masks
     177    psMaskType maskVal,                 ///< Value to mask
     178    int x0,                             ///< x origin of images in FITS image coordinates
     179    int y0                              ///< y origin of images in FITS image coordinates
     180    );
    141181
    142182/// @}
Note: See TracChangeset for help on using the changeset viewer.