IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 25, 2007, 1:05:25 PM (19 years ago)
Author:
Paul Price
Message:

Average concepts from cells.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeCombine.c

    r15308 r15380  
    223223
    224224            } while (numRead > 0);
     225
     226            // Get list of cells for concepts averaging
     227            psList *inCells = psListAlloc(NULL); // List of cells
     228            for (int i = 0; i < filenames->n; i++) {
     229                if (! filenames->data[i] || strlen(filenames->data[i]) == 0) {
     230                    continue;
     231                }
     232                pmCell *cellIn = pmFPAviewThisCell(view, data->in->data[i]); // Input cell
     233                psListAdd(inCells, PS_LIST_TAIL, cellIn);
     234            }
     235            if (!pmConceptsAverageCells(cell, inCells, NULL, NULL, true)) {
     236                psError(PS_ERR_UNKNOWN, false, "Unable to average cell concepts.");
     237                psFree(inCells);
     238                return false;
     239            }
     240            psFree(inCells);
    225241
    226242            psFree(stack);
Note: See TracChangeset for help on using the changeset viewer.