IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 17, 2004, 11:39:39 AM (22 years ago)
Author:
Paul Price
Message:

Working well, and timing OK, but can yet be optimised.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacTransform.c

    r2711 r2751  
    176176        psImage *outError = psImageAlloc(nx, ny, PS_TYPE_F32);
    177177        psTrace("stac.transform", 5, "Allocating space for transformed image, %dx%d\n", nx, ny);
     178
     179#if 0
     180        // No need for initialisation, since we iterate over the entire output image.
    178181        for (int y = 0; y < ny; y++) {
    179182            for (int x = 0; x < nx; x++) {
     
    182185            }
    183186        }
     187#endif
    184188
    185189        // Mask
     
    201205            for (int x = 0; x < nx; x++) {
    202206                // Transform!
    203                 // Could no doubt make this quicker by calculating derivatives and incrementing by those.
    204207                sky->x = (double)x + 0.5;
    205208                sky->y = (double)y + 0.5;
Note: See TracChangeset for help on using the changeset viewer.