- Timestamp:
- Dec 24, 2007, 5:47:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20071222/Ohana/src/kapa2/src/JPEGit24.c
r14590 r15925 84 84 // define the color transform parameters 85 85 MaxValue = graphic[0].Npixels - 1; 86 if (image[0]. range != 0.0) {87 slope = graphic[0].Npixels / image[0]. range;88 start = graphic[0].Npixels * image[0]. zero /image[0].range;86 if (image[0].image[0].range != 0.0) { 87 slope = graphic[0].Npixels / image[0].image[0].range; 88 start = graphic[0].Npixels * image[0].image[0].zero / image[0].image[0].range; 89 89 } else { 90 90 slope = 1.0; 91 start = image[0]. zero;91 start = image[0].image[0].zero; 92 92 } 93 93 … … 108 108 dx = image[0].picture.dx; 109 109 dy = image[0].picture.dy; 110 DX = image[0]. matrix.Naxis[0];111 DY = image[0]. matrix.Naxis[1];110 DX = image[0].image[0].matrix.Naxis[0]; 111 DY = image[0].image[0].matrix.Naxis[1]; 112 112 113 113 /* X,Y are the image coordinates of the first image pixel */ … … 145 145 ALLOCATE (line_buffer, JSAMPLE, 3*dx); 146 146 147 imdata = (float *) image[0]. matrix.buffer;147 imdata = (float *) image[0].image[0].matrix.buffer; 148 148 in_pix_ref = &imdata[DX*(int)MAX(Y,0) + (int)MAX(X,0)]; 149 149
Note:
See TracChangeset
for help on using the changeset viewer.
