IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9740 for trunk/pois


Ignore:
Timestamp:
Oct 24, 2006, 2:27:29 PM (20 years ago)
Author:
Paul Price
Message:

Changed definition of psVectorAlloc and psArrayAlloc

Location:
trunk/pois/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/pois/src/poisCalculateDeviations.c

    r8781 r9740  
    5353    if (!deviations) {
    5454        deviations = psVectorAlloc(stamps->n, PS_TYPE_F32);
    55         deviations->n = stamps->n;
    5655    }
    5756
  • trunk/pois/src/poisCheckKernel.c

    r8781 r9740  
    3333    psVector *radKernel = psVectorAlloc((2*config->xKernel + 1) * (2*config->yKernel + 1), PS_TYPE_F32);
    3434    psVector *radii = psVectorAlloc((2*config->xKernel + 1) * (2*config->yKernel + 1), PS_TYPE_F32); // Radius
    35     radKernel->n = radii->n = (2*config->xKernel + 1) * (2*config->yKernel + 1);
    3635    for (int i = 0; i < solution->n - 1; i++) {
    3736        poisKernelBasis *kernel = kernels->data[i]; // The kernel basis function
  • trunk/pois/src/poisFindStamps.c

    r8781 r9740  
    5151    if (stamps == NULL) {
    5252        stamps = psArrayAlloc(nsx * nsy);
    53         stamps->n = nsx * nsy;
    5453        // Initialise
    5554        for (int i = 0; i < nsx * nsy; i++) {
  • trunk/pois/src/poisKernelBasisFunctions.c

    r8781 r9740  
    4040
    4141    psArray *array = psArrayAlloc(nBF); // Array to hold the basis functions
    42     array->n = nBF;
    4342
    4443    int num = 0;                        // Kernel parameter number
  • trunk/pois/src/poisReadStamps.c

    r8781 r9740  
    3737    if (stamps == NULL) {
    3838        stamps = psArrayAlloc(config->nsx);
    39         stamps->n = config->nsx;
    4039        // Initialise
    4140        for (int i = 0; i < config->nsx; i++) {
  • trunk/pois/src/poisSolveEquation.c

    r8781 r9740  
    4040    psImage *matrix = psImageAlloc(size, size, PS_TYPE_F64);
    4141    psVector *vector = psVectorAlloc(size, PS_TYPE_F64);
    42     vector->n = size;
    4342    for (int j = 0; j < size; j++) {
    4443        for (int i = 0; i < size; i++) {
Note: See TracChangeset for help on using the changeset viewer.