IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

added psImageCopyView function

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.