Diff of /LoweDetector.c [6a33e0] .. [262685] Maximize Restore

  Switch to unified view

a/LoweDetector.c b/LoweDetector.c
...
...
91
    return (self->globalKeypoints);
91
    return (self->globalKeypoints);
92
}
92
}
93
93
94
// The Integer-normalized version of the globalKeypoints.
94
// The Integer-normalized version of the globalKeypoints.
95
ArrayList* LoweFeatureDetector_GlobalNaturalKeypoints(LoweFeatureDetector* self) {
95
ArrayList* LoweFeatureDetector_GlobalNaturalKeypoints(LoweFeatureDetector* self) {
96
      int i;
97
96
    if (self->globalNaturalKeypoints != NULL)
98
    if (self->globalNaturalKeypoints != NULL)
97
        return (self->globalNaturalKeypoints);
99
        return (self->globalNaturalKeypoints);
98
    
100
    
99
    if (self->globalKeypoints == NULL)
101
    if (self->globalKeypoints == NULL)
100
        WriteError ("No keypoints generated yet.");
102
        WriteError ("No keypoints generated yet.");
101
    
103
    
102
    self->globalNaturalKeypoints = ArrayList_new0 (KeypointN_delete);
104
    self->globalNaturalKeypoints = ArrayList_new0 (KeypointN_delete);
103
105
104
  int i;
105
    for(i=0; i<ArrayList_Count(self->globalKeypoints); i++) {
106
    for(i=0; i<ArrayList_Count(self->globalKeypoints); i++) {
106
        Keypoint* kp = ArrayList_GetItem(self->globalKeypoints, i);
107
        Keypoint* kp = (Keypoint *) ArrayList_GetItem(self->globalKeypoints, i);
107
        ArrayList_AddItem (self->globalNaturalKeypoints, KeypointN_new(kp));
108
        ArrayList_AddItem (self->globalNaturalKeypoints, KeypointN_new(kp));
108
    }
109
    }
109
    
110
    
110
    return (self->globalNaturalKeypoints);
111
    return (self->globalNaturalKeypoints);
111
}
112
}