IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2008, 3:31:01 PM (18 years ago)
Author:
eugene
Message:

big update from eam_branch_20081124 with updates to Opihi math

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/imrough.c

    r14590 r20936  
    1313  char DataBase[256], *Filter;
    1414  double trange;
    15   float *Vec;
     15  opihi_flt *Vec;
    1616  time_t tzero, tend, TimeReference;
    1717  RegImage *image;
    1818  Vector *vec;
    1919
     20  // XXX this function is only valid for the Elixir db system, not the IPP db system
     21  // this function should exit gracefully if the REGISTRATION_DATABASE is missing
    2022  VarConfig ("REGISTRATION_DATABASE", "%s", DataBase);
    2123
     
    132134  N = 0;
    133135  NVEC = 1000;
    134   REALLOCATE (vec[0].elements, float, NVEC);
    135   Vec = vec[0].elements;
     136  ResetVector (vec, OPIHI_FLT, NVEC);
     137  Vec = vec[0].elements.Flt;
    136138
    137139  GetTimeFormat (&TimeReference, &TimeFormat);
     
    216218    if (N >= NVEC - 1) {
    217219      NVEC += 1000;
    218       REALLOCATE (vec[0].elements, float, NVEC);
    219       Vec = vec[0].elements;
    220     }
    221   }
    222 
    223   REALLOCATE (vec[0].elements, float, MAX (1,N));
     220      REALLOCATE (vec[0].elements.Flt, opihi_flt, NVEC);
     221      Vec = vec[0].elements.Flt;
     222    }
     223  }
     224
     225  REALLOCATE (vec[0].elements.Flt, opihi_flt, MAX (1,N));
    224226  vec[0].Nelements = N;
    225227
Note: See TracChangeset for help on using the changeset viewer.