IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 6, 2006, 11:07:42 PM (20 years ago)
Author:
magnier
Message:

adding prep code to apply psImageBicubeFit to peaks in pmPeaks (ie, to smoothed image); not functioning yet

Location:
trunk/psModules/src/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmPeaks.c

    r9730 r9881  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-10-24 22:55:05 $
     8 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-11-07 09:07:42 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    286286XXX: Merge with CVS 1.20.  This had the proper code for images with a single
    287287row or column.
     288 
     289XXX this does not use the weight or mask information
    288290 
    289291*****************************************************************************/
     
    420422
    421423                        list = myListAddPeak(list, row + row0, col + col0, image->data.F32[row][col], myType);
     424
     425                        # if (0)
     426
     427                            psPolynomial2D *bicube = psImageBicubeFit (inSource->pixels, ix, iy);
     428                        psPlane min = psImageBicubeMin (bicube);
     429                        peak->xf = min.x;
     430                        peak->yf = min.y;
     431                        # endif
     432
    422433                    }
    423434                }
  • trunk/psModules/src/objects/pmPeaks.h

    r7311 r9881  
    1010 *  @author GLG, MHPCC
    1111 *
    12  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-06-03 01:02:08 $
     12 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-11-07 09:07:42 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5050    int x;                              ///< X-coordinate of peak pixel.
    5151    int y;                              ///< Y-coordinate of peak pixel.
     52    float xf;                           ///< bicube fit to peak coord (x)
     53    float yf;                           ///< bicube fit to peak coord (y)
    5254    float counts;                       ///< Value of peak pixel (above sky?).
    5355    pmPeakType type;                   ///< Description of peak.
Note: See TracChangeset for help on using the changeset viewer.