- Timestamp:
- Sep 17, 2007, 10:17:21 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070830/psLib/src/imageops/psImageMap.c
r14774 r14864 7 7 * @author Eugene Magnier, IfA 8 8 * 9 * @version $Revision: 1.1.2. 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-09- 07 20:19:35$9 * @version $Revision: 1.1.2.6 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-09-17 20:17:21 $ 11 11 * 12 12 * Copyright 2007 Institute for Astronomy, University of Hawaii … … 39 39 40 40 psFree (map->map); 41 // psFree (map->field); XXX ??? this should be freed here, but that causes an error... 41 psFree (map->error); 42 psFree (map->field); // XXX ??? this should be freed here, but that causes an error... 42 43 psFree (map->stats); 43 44 psFree (map->binning); … … 57 58 map->field = psMemIncrRefCounter (field); 58 59 map->stats = psMemIncrRefCounter (stats); 60 59 61 map->map = psImageAlloc (binning->nXruff, binning->nYruff, PS_TYPE_F32); 62 psImageInit (map->map, 0.0); 63 64 map->error = psImageAlloc (binning->nXruff, binning->nYruff, PS_TYPE_F32); 65 psImageInit (map->error, 0.0); 60 66 61 67 psImageBinningSetScale (map->binning, PS_IMAGE_BINNING_CENTER); … … 73 79 74 80 psImageRecycle (map->map, nXruff, nYruff, PS_TYPE_F32); 81 psImageRecycle (map->error, nXruff, nYruff, PS_TYPE_F32); 75 82 76 83 psImageBinningSetScale (map->binning, PS_IMAGE_BINNING_CENTER); … … 257 264 } 258 265 266 // x,y are in fractional pixel coords of the fine image (pixel center: 0.5) 259 267 double psImageMapEval (psImageMap *map, float x, float y) { 260 268 261 269 double result; 262 270 263 result = psImageUnbinPixel (x, y, map->map, map->binning);271 result = psImageUnbinPixel_V2(x, y, map->map, map->binning); 264 272 265 273 return result; … … 276 284 277 285 for (int i = 0; i < x->n; i++) { 278 result->data.F32[i] = psImageUnbinPixel (x->data.F32[i], y->data.F32[i], map->map, map->binning);286 result->data.F32[i] = psImageUnbinPixel_V2(x->data.F32[i], y->data.F32[i], map->map, map->binning); 279 287 } 280 288
Note:
See TracChangeset
for help on using the changeset viewer.
