IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13756


Ignore:
Timestamp:
Jun 11, 2007, 1:13:31 PM (19 years ago)
Author:
magnier
Message:

fixed inconsistency in output sizes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmReadoutCombine.c

    r13591 r13756  
    107107    for (long i = 0; i < inputs->n; i++) {
    108108        pmReadout *readout = inputs->data[i]; // Readout of interest
    109         pmCell *cell = readout->parent; // The parent cell
    110109
    111110        if (!readout || !readout->image) {
     
    114113        }
    115114
     115// XXX the use of trimsec here to judge the output size is inconsistent with the values of
     116// minInputRows,etc below
     117# if (0)
     118        pmCell *cell = readout->parent; // The parent cell
    116119        bool mdok = true;       // Status of MD lookup
    117120        psRegion *trimsec = psMetadataLookupPtr(&mdok, cell->concepts, "CELL.TRIMSEC"); // Trim section
     
    122125            ySize = PS_MAX(ySize, trimsec->y1 - trimsec->y0);
    123126        }
     127# endif
    124128
    125129        if (params->weights && !readout->weight) {
     
    139143                readout->col0, readout->row0, readout->image->numCols, readout->image->numRows);
    140144    }
     145
     146    // full size of the output image
     147    xSize = maxInputCols - minInputCols;
     148    ySize = maxInputRows - minInputRows;
     149
    141150    if (!valid) {
    142151        psError(PS_ERR_IO, true, "No valid inputs.\n");
     
    145154
    146155    // Update the origin
     156    // XXX EAM : use a macro (see psImage.h for PS_IMAGE_SET_ROW0, etc)
    147157    if (output->image) {
    148158        *(psS32 *) &(output->col0) = PS_MIN(minInputCols, output->col0);
Note: See TracChangeset for help on using the changeset viewer.