- Timestamp:
- Sep 12, 2014, 9:24:36 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/AstromOffsetMapIO.c
r37387 r37389 107 107 ALLOCATE (table->map, AstromOffsetMap, Nmap); 108 108 109 // find the max value of ID109 // find the max value of imageID 110 110 int MaxID = 0; 111 111 for (i = 0; i < Nmap; i++) { 112 MaxID = MAX(map_disk[i]. ID, MaxID);112 MaxID = MAX(map_disk[i].imageID, MaxID); 113 113 } 114 114 MaxID ++; // we want the outer bound, not the last value … … 119 119 table->IDtoSeq[i] = -1; 120 120 } 121 table->MaxID = MaxID ;121 table->MaxID = MaxID - 1; 122 122 123 123 // assign the ID values 124 124 for (i = 0; i < Nmap; i++) { 125 int ID = map_disk[i]. ID;126 myAssert (table->IDtoSeq[ID] == -1, "oops, duplicate mapIDs");125 int ID = map_disk[i].imageID; 126 myAssert (table->IDtoSeq[ID] == -1, "oops, duplicate image IDs"); 127 127 table->IDtoSeq[ID] = i; 128 128 } … … 162 162 163 163 AstromOffsetMap_Disk_6x6 *map_disk = NULL; 164 ALLOCATE (map_disk, AstromOffsetMap_Disk_6x6, Nmap);164 ALLOCATE (map_disk, AstromOffsetMap_Disk_6x6, table->Nmap); 165 165 166 166 // assign the map values (this allocates just the area needed for each image, not the
Note:
See TracChangeset
for help on using the changeset viewer.
