IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12998


Ignore:
Timestamp:
Apr 24, 2007, 12:27:17 PM (19 years ago)
Author:
magnier
Message:

added psImageCopyView function

Location:
trunk/psLib/src/imageops
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageStructManip.c

    r12814 r12998  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2007-04-12 18:54:51 $
     10 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2007-04-24 22:27:17 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    143143    return imageSubset(NULL,image,region.x0, region.y0,
    144144                       region.x1, region.y1);
     145}
     146
     147psImage* psImageCopyView(psImage *output, psImage *input)
     148{
     149    psRegion region = {0, 0, 0, 0};
     150    region = psRegionForImage (input, region);
     151    psImage *result = imageSubset (output, input,
     152                                   region.x0, region.y0,
     153                                   region.x1, region.y1);
     154    return result;
    145155}
    146156
  • trunk/psLib/src/imageops/psImageStructManip.h

    r12431 r12998  
    55*  @author Robert DeSonia, MHPCC
    66*
    7 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2007-03-14 00:39:50 $
     7*  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2007-04-24 22:27:17 $
    99*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1010*/
     
    1818#include "psImage.h"
    1919#include "psRegion.h"
     20#include "psRegionForImage.h"
    2021
    2122/** Create a subimage of the specified area.
     
    3839    psRegion region                    ///< region of subimage
    3940);
     41
     42/** Makes a copy of the image view on the parent:
     43 *  if this is a child, returns a child pointing at the same pixels
     44 *  if this is a parent, returns a child pointing at the full array
     45 */
     46psImage* psImageCopyView(psImage *output, psImage *input);
    4047
    4148/** Makes a copy of a psImage
Note: See TracChangeset for help on using the changeset viewer.