IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26341


Ignore:
Timestamp:
Dec 5, 2009, 5:03:10 AM (16 years ago)
Author:
eugene
Message:

show fractional residual image (chisq contribution)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/imcombine/pmSubtractionVisual.c

    r26332 r26341  
    352352    for (int y = -footprint; y <= footprint; y++) {
    353353        for (int x = -footprint; x <= footprint; x++) {
    354             fresidualImage->data.F32[y + NYpix][x + NXpix] = residualImage->data.F32[y + NYpix][x + NXpix] / target->kernel[y][x];
     354            fresidualImage->data.F32[y + NYpix][x + NXpix] = PS_SQR(residualImage->data.F32[y + NYpix][x + NXpix]) / (target->kernel[y][x] + 25.0);
    355355        }
    356356    }
     
    364364    if (!pmVisualInitWindow(&kapa2, "ppSub:Misc")) return false;
    365365
     366    KiiEraseOverlay (kapa1, "red");
     367    KiiEraseOverlay (kapa2, "red");
     368
    366369    pmVisualScaleImage(kapa1, targetImage, "Target Stamps", 0, true);
    367370    pmVisualScaleImage(kapa1, sourceImage, "Source Stamps", 1, true);
    368371    pmVisualScaleImage(kapa1, convolutionImage, "Convolution Stamps", 2, true);
    369372
    370     // pmVisualScaleImage(kapa2, fresidualImage, "Frac Residual Stamps", 2, true);
     373    pmVisualScaleImage(kapa2, fresidualImage, "Frac Residual Stamps", 2, true);
    371374    pmVisualScaleImage(kapa2, residualImage, "Residual Stamps", 1, true);
    372375    pmVisualScaleImage(kapa2, differenceImage, "Difference Stamps", 0, true);
Note: See TracChangeset for help on using the changeset viewer.