Changeset 7524
- Timestamp:
- Jun 12, 2006, 10:44:04 AM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 3 edited
-
imageops/psImageGeomManip.c (modified) (2 diffs)
-
imageops/psImageStructManip.c (modified) (3 diffs)
-
mathtypes/psImage.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageGeomManip.c
r7380 r7524 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-06- 07 03:22:06$12 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-06-12 20:44:04 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 776 776 // create the output image. 777 777 output = psImageRecycle(output, numCols, numRows, input->type.type); 778 *(psS32*)&output->col0 = region.x0;779 *(psS32*)&output->row0 = region.y0;778 output->col0 = region.x0; 779 output->row0 = region.y0; 780 780 } else { // size of output is determined by output parameter 781 781 numRows = output->numRows; -
trunk/psLib/src/imageops/psImageStructManip.c
r7057 r7524 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-0 5-04 00:37:44 $10 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-06-12 20:44:04 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 109 109 110 110 out->data.V = psRealloc(out->data.V,sizeof(psPtr)*numRows); // resize row pointer array 111 *(psMathType*)&out->type = image->type; 112 // *(psU32*)&out->numCols = numCols; 113 // *(psU32*)&out->numRows = numRows; 114 *(psS32*)&out->numCols = numCols; 115 *(psS32*)&out->numRows = numRows; 116 *(psS32*)&out->row0 = row0; 117 *(psS32*)&out->col0 = col0; 111 P_PSIMAGE_SET_TYPE(out, image->type); 112 P_PSIMAGE_SET_NUMCOLS(out, numCols); 113 P_PSIMAGE_SET_NUMROWS(out, numRows); 114 115 out->row0 = row0; 116 out->col0 = col0; 118 117 out->parent = image; 119 118 out->children = NULL; … … 356 355 } 357 356 358 *(psU32*)&image->numRows = numRows;359 *(psU32*)&image->numCols = numCols;357 P_PSIMAGE_SET_NUMCOLS(image, numCols); 358 P_PSIMAGE_SET_NUMROWS(image, numRows); 360 359 361 360 // XXX: should I really resize the buffers? -
trunk/psLib/src/mathtypes/psImage.c
r7071 r7524 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.10 4$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-0 5-05 02:48:34$11 * @version $Revision: 1.105 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-06-12 20:43:16 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 85 85 } 86 86 87 *(psS32 *)&image->col0 = 0; 88 *(psS32 *)&image->row0 = 0; 89 *(psU32 *)&image->numCols = numCols; 90 *(psU32 *)&image->numRows = numRows; 91 *(psDimen* ) & image->type.dimen = PS_DIMEN_IMAGE; 92 *(psElemType* ) & image->type.type = type; 87 image->col0 = 0; 88 image->row0 = 0; 89 P_PSIMAGE_SET_NUMCOLS (image, numCols); 90 P_PSIMAGE_SET_NUMROWS (image, numRows); 91 92 psMathType imageType; 93 imageType.dimen = PS_DIMEN_IMAGE; 94 imageType.type = type; 95 P_PSIMAGE_SET_TYPE (image, imageType); 96 93 97 image->parent = NULL; 94 98 image->children = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
