Changeset 25964 for branches/pap/ppStack/src/ppStackCombineInitial.c
- Timestamp:
- Oct 28, 2009, 5:35:05 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ppStack/src/ppStackCombineInitial.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ppStack/src/ppStackCombineInitial.c
r25950 r25964 62 62 // Harvest the jobs, gathering the inspection lists 63 63 options->inspect = psArrayAlloc(options->num); 64 options->rejected = psArrayAlloc(options->num); 64 65 for (int i = 0; i < options->num; i++) { 65 66 if (options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i]) { … … 67 68 } 68 69 options->inspect->data[i] = psArrayAllocEmpty(numChunk); 70 options->rejected->data[i] = psArrayAllocEmpty(numChunk); 69 71 } 70 72 psThreadJob *job; // Completed job … … 73 75 "Job has incorrect type: %s", job->type); 74 76 psArray *results = job->results; // Results of job 77 psAssert(results->n == 2, "Results array has wrong size!"); 78 psArray *inspect = results->data[0]; // Pixels to inspect 79 psArray *reject = results->data[1]; // Pixels to reject 75 80 for (int i = 0; i < options->num; i++) { 76 81 if (options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i]) { 77 82 continue; 78 83 } 79 options->inspect->data[i] = psArrayAdd(options->inspect->data[i], 1, results->data[i]); 84 options->inspect->data[i] = psArrayAdd(options->inspect->data[i], 1, inspect->data[i]); 85 options->rejected->data[i] = psArrayAdd(options->rejected->data[i], 1, reject->data[i]); 80 86 } 81 87 psFree(job);
Note:
See TracChangeset
for help on using the changeset viewer.
