IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2009, 11:13:29 AM (17 years ago)
Author:
beaumont
Message:

Finished ppStack visualization. Unified the way in which visualizations are invoked, plotting windows are closed, etc

Location:
branches/cnb_branches/cnb_branch_20090215
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branches/cnb_branch_20090215

  • branches/cnb_branches/cnb_branch_20090215/psModules/src/objects/pmPeaks.c

    r21536 r23197  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.25.14.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-19 17:59:50 $
     8 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-16 22:30:14 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2828AddPeak(): A private function which allocates a psArray, if the peaks
    2929argument is NULL, otherwise it adds the peak to that array.
    30 XXX EAM : row,col now refer to image coords, NOT parent (since this is private)
     30XXX EAM : row,col now refer to image coords, NOT parent (since this is private) 
    3131XXX EAM : now also calculates fractional peak positions from 3x3 bicube region
    3232*****************************************************************************/
     
    6464        peak->yf = min.y + iy + image->row0;
    6565
    66         // These errors are fractional errors, and should be scaled by the
    67         // error on the peak pixel (see, eg, psphotFindPeaks)
    68         peak->dx = min.xErr;
    69         peak->dy = min.yErr;
    70 
    71         // xf,yf must land on image with 0 pixel border
    72         peak->xf = PS_MAX (PS_MIN (peak->xf, image->numCols - 1), image->col0);
    73         peak->yf = PS_MAX (PS_MIN (peak->yf, image->numRows - 1), image->row0);
     66        // These errors are fractional errors, and should be scaled by the
     67        // error on the peak pixel (see, eg, psphotFindPeaks)
     68        peak->dx = min.xErr;
     69        peak->dy = min.yErr;
     70       
     71        // xf,yf must land on image with 0 pixel border
     72        peak->xf = PS_MAX (PS_MIN (peak->xf, image->numCols - 1), image->col0);
     73        peak->yf = PS_MAX (PS_MIN (peak->yf, image->numRows - 1), image->row0);
    7474    } else {
    7575        peak->xf = ix;
    7676        peak->yf = iy;
    77         peak->dx = NAN;
    78         peak->dy = NAN;
     77        peak->dx = NAN;
     78        peak->dy = NAN;
    7979    }
    8080
     
    8989getRowVectorFromImage(): a private function which simply returns a
    9090psVector containing the specified row of data from the psImage.
    91 
     91 
    9292XXX: Is there a better way to do this?
    9393XXX EAM: does this really need to alloc a new vector???
     
    248248above the given threshold.  Returns a vector of type PS_TYPE_U32 containing
    249249the location (x value) of all peaks.
    250 
     250 
    251251XXX: What types should be supported?  Only F32 is implemented.
    252 
     252 
    253253XXX: We currently step through the input vector twice; once to determine the
    254254size of the output vector, then to set the values of the output vector.
     
    256256*****************************************************************************/
    257257psVector *pmPeaksInVector(const psVector *vector,
    258                         psF32 threshold)
     258                        psF32 threshold)
    259259{
    260260    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
     
    350350above the given threshold.  Returns a psArray containing location (x/y value)
    351351of all peaks.
    352 
     352 
    353353XXX: I'm not convinced the peak type definition in the SDRS is mutually
    354354exclusive.  Some peaks can have multiple types.  Edges for sure.  Also, a
    355355digonal line with the same value at each point will have a peak for every
    356356point on that line.
    357 
     357 
    358358XXX: This does not work if image has either a single row, or a single column.
    359 
     359 
    360360The peak is returned in the image parent coordinates
    361361
Note: See TracChangeset for help on using the changeset viewer.