IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 24, 2004, 9:28:35 AM (22 years ago)
Author:
Paul Price
Message:

Added const for psImageRegion members, constructors and destructors for the structs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/modules/include/phase2.h

    r749 r757  
    4040/** Image regions */
    4141typedef struct {
    42     int x0, y0;                         ///< Offset to region
    43     int nRow, nCol;                     ///< Size of region
     42    const int x0, y0;                   ///< Offset to region
     43    const int nRow, nCol;               ///< Size of region
    4444} psImageRegion;
     45
     46/** Constructor */
     47psImageRegion *psImageRegionAlloc(int x0, ///< x offset to region
     48                                  int y0, ///< y offset to region
     49                                  int nRow, ///< Number of rows in region
     50                                  int nCol ///< Number of columns in region
     51                                  );
     52/** Destructor */
     53void psImageRegionFree(psImageRegion *reg ///< Region to destroy
     54                       );
    4555
    4656/** Array of image regions */
     
    4959    psImageRegion *arr;                 ///< Array of image regions
    5060} psImageRegionArray;
     61
     62/** Constructor */
     63psImageRegionArray *psImageRegionArrayAlloc(int n ///< Number of entries to allocate
     64                                            );
     65
     66/** Destructor */
     67void psImageRegionArrayFree(psImageRegionArray *reg ///< Array of regions to destroy
     68                            );
    5169
    5270/** Subtracts an overscan and bias from the input image. */
Note: See TracChangeset for help on using the changeset viewer.