Commit 2b19d109 authored by Andrew Cohen's avatar Andrew Cohen

null in db cost is infinite in tracker, cell distance goes ^tdiff not *tdiff

parent 9d137b38
// runs in node.js only - no browser
// manages child processes of leverjs that bind to database and do resegandtrack and edit stuff
var NPROCESS=8;
var NPROCESS=16;
// currently running
var inProcessQ;
// waiting to be run
......@@ -190,7 +190,7 @@ function addFileToProcess(leverCommand,nSlot)
});
inProcessQ[nSlot].childProc.stderr.on('data', (data) => {
console.log('error in: '+inProcessQ[nSlot].leverFile+': '+' '+data);
console.error('error in: '+inProcessQ[nSlot].leverFile+': '+' '+data);
});
inProcessQ[nSlot].childProc.on('close', (code) => {
......
......@@ -152,6 +152,9 @@ static int costQueryCallback(void *qr, int argc, char **argv, char **azColName)
costElement *pqueryResult;
pqueryResult = (costElement *)qr;
if (NULL==argv[0])
pqueryResult->cost = dbltype::infinity();
else
pqueryResult->cost = atof(argv[0]);
return 0;
......
......@@ -85,7 +85,7 @@ for nChannel=1:CONSTANTS.imageData.NumberOfChannels
dCC = max(d12,d21);
% penalize occlusion distances
tDiff=abs(t1-t0);
dCC=dCC * 10^(tDiff-1);
dCC=dCC^(tDiff-1);
end
if t0<t1
updateDistance.setInt(1,id0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment