IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2008, 2:14:04 PM (18 years ago)
Author:
Paul Price
Message:

Attempting to support stacking of images when they are read piecemeal (scan by scan). Need to specify size of the (original) image, so that normalisation can be done (during convolution) when the image size is not the original image size. Doing some algebraic gymnastics in the pixel rejection to account for the image being smaller than the original.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_080207/ppStack/src/ppStackMatch.c

    r16418 r16424  
    141141        while ((item = psMetadataGetAndIncrement(iter))) {
    142142            assert(item->type == PS_DATA_UNKNOWN);
    143             *kernels = psArrayAdd(*kernels, ARRAY_BUFFER, item->data.V);
     143            // Set the normalisation dimensions, since these will be otherwise unavailable when reading the
     144            // images by scans.
     145            pmSubtractionKernels *kernel = item->data.V; // Kernel used in subtraction
     146            kernel->numCols = readout->image->numCols;
     147            kernel->numRows = readout->image->numRows;
     148
     149            *kernels = psArrayAdd(*kernels, ARRAY_BUFFER, kernel);
    144150        }
    145151        psFree(iter);
Note: See TracChangeset for help on using the changeset viewer.