Changeset 4608 for trunk/psLib/src/imageops
- Timestamp:
- Jul 25, 2005, 10:49:04 AM (21 years ago)
- Location:
- trunk/psLib/src/imageops
- Files:
-
- 2 edited
-
psImageGeomManip.c (modified) (5 diffs)
-
psImageGeomManip.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageGeomManip.c
r4544 r4608 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-07- 12 19:33:49$12 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-07-25 20:49:04 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 689 689 690 690 psImage* psImageTransform(psImage *output, 691 ps Pixels* blankPixels,691 psArray* blankPixels, 692 692 const psImage *input, 693 693 const psImage *inputMask, … … 706 706 } 707 707 psElemType type = input->type.type; 708 psPixels* tempPixels = NULL; 709 710 if(blankPixels != NULL) { 711 tempPixels = psPixelsAlloc(blankPixels->nalloc); 712 tempPixels->n = blankPixels->n; 713 tempPixels->data = (psPixelCoord*)blankPixels->data; 714 } 708 715 709 716 if (inputMask != NULL) { … … 801 808 if (isnan(value)) { \ 802 809 if (blankPixels != NULL) { \ 803 p_psPixelsAppend( blankPixels, blankPixels->nalloc, outPosition.x, outPosition.y); \810 p_psPixelsAppend(tempPixels, tempPixels->nalloc, outPosition.x, outPosition.y); \ 804 811 } \ 805 812 value = exposedValue; \ … … 866 873 867 874 psFree(inPosition); 875 psFree(tempPixels); 868 876 869 877 return output; -
trunk/psLib/src/imageops/psImageGeomManip.h
r4385 r4608 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 6-25 00:51:28$10 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-07-25 20:49:04 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 144 144 psImage* psImageTransform( 145 145 psImage *output, ///< psImage to recycle, or NULL 146 ps Pixels* blankPixels,///< list of pixels in output image not set, or NULL if no list is desired.146 psArray* blankPixels, ///< list of pixels in output image not set, or NULL if no list is desired. 147 147 const psImage *input, ///< psImage to apply transform to 148 148 const psImage *inputMask, ///< if not NULL, mask of input psImage … … 151 151 psRegion region, ///< the size of the transformed image 152 152 const psPixels* pixels, /**< if not NULL, consists of psPixelCoords and specifies which pixels in 153 * output image shall be transformed; otherwise, entire image generated*/153 * output image shall be transformed; otherwise, entire image generated*/ 154 154 psImageInterpolateMode mode, ///< the interpolation scheme to be used 155 155 double exposedValue ///< Exposed value to which non-corresponding pixels are set
Note:
See TracChangeset
for help on using the changeset viewer.
