IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 745


Ignore:
Timestamp:
May 19, 2004, 3:27:01 PM (22 years ago)
Author:
desonia
Message:

added Image I/O function prototypes.

Location:
trunk/psLib/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImage.c

    r727 r745  
    55 *  This file defines the basic type for an image struct and functions useful in manupulating images.
    66 *
     7 *  @author Robert DeSonia, MHPCC
    78 *  @author Ross Harman, MHPCC
    8  *   
    9  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-05-19 01:20:02 $
     9 *
     10 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-05-20 01:27:01 $
    1112 *
    1213 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    342343    return output;
    343344}
     345
     346psImage* psImageReadSection(psImage* output, int col, int row, int numCols,
     347                            int numRows, int z, char* extname, int extnum, char* filename)
     348{
     349
     350    return NULL;
     351}
  • trunk/psLib/src/image/psImage.h

    r727 r745  
    55 *  This file defines the basic type for an image struct and functions useful in manupulating images.
    66 *
     7 *  @author Robert DeSonia, MHPCC
    78 *  @author Ross Harman, MHPCC
    8  *   
    9  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-05-19 01:20:02 $
     9 *
     10 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-05-20 01:27:01 $
    1112 *
    1213 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8283);
    8384
     85/** Resize a given image to the given size/type.
     86 *
     87 *  return psImage* Resized psImage.
     88 *
     89 */
     90psImage* psImageRealloc(
     91    psImage* old,                   ///< the psImage to recycle by resizing image buffer
     92    unsigned int numCols,           ///< the desired number of columns in image
     93    unsigned int numRows,           ///< the desired number of rows in image
     94    const psElemType type           ///< the desired datatype of the image
     95);
     96
    8497/** Create a subimage of the specified area.
    8598 *
     
    129142);
    130143
    131 /** Resize a given image to the given size/type.
    132  *
    133  *  return psImage* Resized psImage.
    134  *
    135  */
    136 psImage* psImageRealloc(
    137     psImage* old,                   ///< the psImage to recycle by resizing image buffer
    138     unsigned int numCols,           ///< the desired number of columns in image
    139     unsigned int numRows,           ///< the desired number of rows in image
    140     const psElemType type           ///< the desired datatype of the image
     144/** Read an image or subimage from a FITS file specified by a filename.
     145 *
     146 *  return psImage*         The image read from the specified file.  NULL signifies that a problem had
     147 *                          occured.
     148 */
     149psImage* psImageReadSection(
     150    psImage* output,                ///< the output psImage to recycle, or NULL if new psImage desired
     151    int col0,                       ///< the column index of the origin to start reading
     152    int row0,                       ///< the row index of the origin to start reading
     153    int numCols,                    ///< the number of desired columns to read
     154    int numRows,                    ///< the number of desired rows to read
     155    int z,                          ///< the z index to read if file is organized as a 3D image cube.
     156    char* extname,
     157    ///< the image extension to read (this should match the EXTNAME keyword in the extension If NULL,
     158    ///< the extnum parameter is to be used instead
     159    int extnum,
     160    ///< the image extension to read (0=PHU, 1=first extension, etc.)  This is only used if extname is
     161    ///< NULL
     162    char* filename                  ///< the filename of the FITS image file to read
     163);
     164
     165/** Read an image or subimage from a FITS file from a file descriptor
     166 *
     167 *  return psImage*         The image read from the specified file descriptor.  NULL signifies that a problem
     168 *                          had occured.
     169 */
     170psImage* psImageFReadSection(
     171    psImage* output,                ///< the output psImage to recycle, or NULL if new psImage desired
     172    int col0,                       ///< the column index of the origin to start reading
     173    int row0,                       ///< the row index of the origin to start reading
     174    int numCols,                    ///< the number of desired columns to read
     175    int numRows,                    ///< the number of desired rows to read
     176    int z,                          ///< the z index to read if file is organized as a 3D image cube.
     177    char* extname,
     178    ///< the image extension to read (this should match the EXTNAME keyword in the extension If NULL,
     179    ///< the extnum parameter is to be used instead
     180    int extnum,
     181    ///< the image extension to read (0=PHU, 1=first extension, etc.)  This is only used if extname is
     182    ///< NULL
     183    FILE* f                         ///< the file descriptor of the FITS file
     184);
     185
     186/** Read an image or subimage from a FITS file specified by a filename.
     187 *
     188 *  return psImage*         NULL if an error, otherwise same as input psImage
     189 */
     190psImage* psImageWriteSection(
     191    psImage* input,                 ///< the psImage to write
     192    int col0,                       ///< the column index of the origin to start writing
     193    int row0,                       ///< the row index of the origin to start writing
     194    int z,                          ///< the z index to start writing
     195    char* extname,
     196    ///< the image extension to write (this should match the EXTNAME keyword in the extension If NULL,
     197    ///< the extnum parameter is to be used instead
     198    int extnum,
     199    ///< the image extension to write (0=PHU, 1=first extension, etc.)  This is only used if extname is
     200    ///< NULL
     201    char* filename                  ///< the filename of the FITS image file to write
     202);
     203
     204/** Read an image or subimage from a FITS file from a file descriptor.
     205 *
     206 *  return psImage*         NULL if an error, otherwise same as input psImage
     207 */
     208psImage* psImageFWriteSection(
     209    psImage* input,                 ///< the psImage to write
     210    int col0,                       ///< the column index of the origin to start writing
     211    int row0,                       ///< the row index of the origin to start writing
     212    int z,                          ///< the z index to start writing
     213    char* extname,
     214    ///< the image extension to write (this should match the EXTNAME keyword in the extension If NULL,
     215    ///< the extnum parameter is to be used instead
     216    int extnum,
     217    ///< the image extension to write (0=PHU, 1=first extension, etc.)  This is only used if extname is
     218    ///< NULL
     219    FILE* f                         ///< the file descriptor of the FITS file
    141220);
    142221
  • trunk/psLib/src/mathtypes/psImage.c

    r727 r745  
    55 *  This file defines the basic type for an image struct and functions useful in manupulating images.
    66 *
     7 *  @author Robert DeSonia, MHPCC
    78 *  @author Ross Harman, MHPCC
    8  *   
    9  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-05-19 01:20:02 $
     9 *
     10 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-05-20 01:27:01 $
    1112 *
    1213 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    342343    return output;
    343344}
     345
     346psImage* psImageReadSection(psImage* output, int col, int row, int numCols,
     347                            int numRows, int z, char* extname, int extnum, char* filename)
     348{
     349
     350    return NULL;
     351}
  • trunk/psLib/src/mathtypes/psImage.h

    r727 r745  
    55 *  This file defines the basic type for an image struct and functions useful in manupulating images.
    66 *
     7 *  @author Robert DeSonia, MHPCC
    78 *  @author Ross Harman, MHPCC
    8  *   
    9  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-05-19 01:20:02 $
     9 *
     10 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-05-20 01:27:01 $
    1112 *
    1213 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8283);
    8384
     85/** Resize a given image to the given size/type.
     86 *
     87 *  return psImage* Resized psImage.
     88 *
     89 */
     90psImage* psImageRealloc(
     91    psImage* old,                   ///< the psImage to recycle by resizing image buffer
     92    unsigned int numCols,           ///< the desired number of columns in image
     93    unsigned int numRows,           ///< the desired number of rows in image
     94    const psElemType type           ///< the desired datatype of the image
     95);
     96
    8497/** Create a subimage of the specified area.
    8598 *
     
    129142);
    130143
    131 /** Resize a given image to the given size/type.
    132  *
    133  *  return psImage* Resized psImage.
    134  *
    135  */
    136 psImage* psImageRealloc(
    137     psImage* old,                   ///< the psImage to recycle by resizing image buffer
    138     unsigned int numCols,           ///< the desired number of columns in image
    139     unsigned int numRows,           ///< the desired number of rows in image
    140     const psElemType type           ///< the desired datatype of the image
     144/** Read an image or subimage from a FITS file specified by a filename.
     145 *
     146 *  return psImage*         The image read from the specified file.  NULL signifies that a problem had
     147 *                          occured.
     148 */
     149psImage* psImageReadSection(
     150    psImage* output,                ///< the output psImage to recycle, or NULL if new psImage desired
     151    int col0,                       ///< the column index of the origin to start reading
     152    int row0,                       ///< the row index of the origin to start reading
     153    int numCols,                    ///< the number of desired columns to read
     154    int numRows,                    ///< the number of desired rows to read
     155    int z,                          ///< the z index to read if file is organized as a 3D image cube.
     156    char* extname,
     157    ///< the image extension to read (this should match the EXTNAME keyword in the extension If NULL,
     158    ///< the extnum parameter is to be used instead
     159    int extnum,
     160    ///< the image extension to read (0=PHU, 1=first extension, etc.)  This is only used if extname is
     161    ///< NULL
     162    char* filename                  ///< the filename of the FITS image file to read
     163);
     164
     165/** Read an image or subimage from a FITS file from a file descriptor
     166 *
     167 *  return psImage*         The image read from the specified file descriptor.  NULL signifies that a problem
     168 *                          had occured.
     169 */
     170psImage* psImageFReadSection(
     171    psImage* output,                ///< the output psImage to recycle, or NULL if new psImage desired
     172    int col0,                       ///< the column index of the origin to start reading
     173    int row0,                       ///< the row index of the origin to start reading
     174    int numCols,                    ///< the number of desired columns to read
     175    int numRows,                    ///< the number of desired rows to read
     176    int z,                          ///< the z index to read if file is organized as a 3D image cube.
     177    char* extname,
     178    ///< the image extension to read (this should match the EXTNAME keyword in the extension If NULL,
     179    ///< the extnum parameter is to be used instead
     180    int extnum,
     181    ///< the image extension to read (0=PHU, 1=first extension, etc.)  This is only used if extname is
     182    ///< NULL
     183    FILE* f                         ///< the file descriptor of the FITS file
     184);
     185
     186/** Read an image or subimage from a FITS file specified by a filename.
     187 *
     188 *  return psImage*         NULL if an error, otherwise same as input psImage
     189 */
     190psImage* psImageWriteSection(
     191    psImage* input,                 ///< the psImage to write
     192    int col0,                       ///< the column index of the origin to start writing
     193    int row0,                       ///< the row index of the origin to start writing
     194    int z,                          ///< the z index to start writing
     195    char* extname,
     196    ///< the image extension to write (this should match the EXTNAME keyword in the extension If NULL,
     197    ///< the extnum parameter is to be used instead
     198    int extnum,
     199    ///< the image extension to write (0=PHU, 1=first extension, etc.)  This is only used if extname is
     200    ///< NULL
     201    char* filename                  ///< the filename of the FITS image file to write
     202);
     203
     204/** Read an image or subimage from a FITS file from a file descriptor.
     205 *
     206 *  return psImage*         NULL if an error, otherwise same as input psImage
     207 */
     208psImage* psImageFWriteSection(
     209    psImage* input,                 ///< the psImage to write
     210    int col0,                       ///< the column index of the origin to start writing
     211    int row0,                       ///< the row index of the origin to start writing
     212    int z,                          ///< the z index to start writing
     213    char* extname,
     214    ///< the image extension to write (this should match the EXTNAME keyword in the extension If NULL,
     215    ///< the extnum parameter is to be used instead
     216    int extnum,
     217    ///< the image extension to write (0=PHU, 1=first extension, etc.)  This is only used if extname is
     218    ///< NULL
     219    FILE* f                         ///< the file descriptor of the FITS file
    141220);
    142221
Note: See TracChangeset for help on using the changeset viewer.