- Timestamp:
- Mar 6, 2013, 3:56:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130306/Ohana/src/libdvo/src/ImageSelection.c
r31635 r35248 66 66 } 67 67 68 Image *MatchImageDVO_old (unsigned int time, short int source, unsigned int imageID) { 69 70 int m = -1; 71 72 if ((imageID != 0) && (imageID < Nimage)) { 73 // imageID is in range for the array of images. If the table is still in order and 74 // no images have been deleted the index of the image we are looking for will be imageID - 1 75 // If this is the case, we have it. Otherwise we'll have to go search for it below 76 int guess = (int) imageID - 1; 77 if (image[guess].imageID == imageID) { 78 m = guess; 79 } 80 } 81 if (m == -1) { 82 m = match_image_subset (image, subset, Nsubset, time, source); 83 } 84 if (m == -1) return (NULL); 85 if (!FindMosaicForImage (image, Nimage, m)) return (NULL); 86 return (&image[m]); 87 } 88 68 89 Coords *MatchMosaic (unsigned int time, short int source) { 69 90
Note:
See TracChangeset
for help on using the changeset viewer.
