IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2007, 12:12:56 PM (19 years ago)
Author:
Paul Price
Message:

Making psPixels APIs to look more like the psArray, psVector APIs (psPixelsAdd, psPixelsAllocEmpty, etc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psCoord.c

    r11686 r12330  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.134 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2007-02-07 23:52:53 $
     12*  @version $Revision: 1.135 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2007-03-08 22:12:56 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6767simply inverts the supplied psPlaneTransform transform.  It assumes that
    6868"transform" is linear.
    69  
     69
    7070XXX: This code no longer makes sense.  The merge must be reviewed.
    71  
     71
    7272XXX: below is the code using the standard matrix representation.  note that
    7373this inversion requires x->nX == 1, y->nY == 1 and x->nY <= 1, y->nX <= 1
     
    144144if the supplied psPlaneTransform transform is linear: if any of the
    145145cooefficients of order 2 are higher are non-zero, then it is not linear.
    146  
     146
    147147Returns:
    148148    true: if linear
    149149    false: otherwise
    150  
     150
    151151Why isn't this called p_psIsPlaneTransformLinear()?
    152152 *****************************************************************************/
     
    882882/*****************************************************************************
    883883psPlaneTransformFit(trans, source, dest, nRejIter, sigmaClip)
    884  
     884
    885885XXX: This code ignores nRejIter and sigmaClip.  We must call the ClipFit
    886886routines instead.
     
    931931/*****************************************************************************
    932932psPlaneTransformInvert(out, in, region, nSamples)
    933  
     933
    934934 *****************************************************************************/
    935935psPlaneTransform *psPlaneTransformInvert(
     
    11291129                    //                    out->data[m].y = fxnVal->y + y;
    11301130                    //                    m++;
    1131                     out = p_psPixelsAppend(out, 1, (float)(fxnVal->x+j),
    1132                                            (float)(fxnVal->y+k) );
     1131                    out = psPixelsAdd(out, 1, (float)(fxnVal->x+j),
     1132                                      (float)(fxnVal->y+k) );
    11331133                }
    11341134            }
Note: See TracChangeset for help on using the changeset viewer.