...
 
Commits (8)
......@@ -273,7 +273,7 @@ var gbPan = false;
// Handler for mouse click event
window.onmousedown = function (e)
{
if(e.ctrlKey){
if(e.ctrlKey && "imageCanvas"===e.target.id){
SelectCell(e);
}
else {
......
......@@ -765,10 +765,15 @@ function getCellFeatureRange(lDB,CONSTANTS,fnCallback,callbackArgs)
}
cmd+=' from tblCellFeatures'
lDB.all(cmd,function(err,row){
if (err)
; // // console.error('getCellFeatureRange: '+err );
else
if (err) {
;
// error can be ok here, e.g. cellfeatures has been erased and not repopulated yet
// console.warn("no cell features -- leverDB: " + lDB.filename );
}
else {
CONSTANTS.cellFeatureRange=row[0];
}
fnCallback(null, CONSTANTS, callbackArgs);
})
} // getCellFeatureRange
......
......@@ -873,9 +873,10 @@ function drawHulls(tHulls)
break;
}
}
if (bNoSurface)
if (bNoSurface) {
drawText(tHulls);
return;
}
var nameSpacing = [0, 11, 7, 4, 0, -5 ,-7 ,0];
var canvas = document.getElementById("imageCanvas");
var context = canvas.getContext("2d");
......
......@@ -58,7 +58,7 @@ for idp=0:ceil(size(commandList,1)/p.NumWorkers)-1
cmd=['select time from tblCells where time=' num2str(tTarget) ' group by time'];
elseif length(tTarget>1)
cmd=['select time from tblCells where time>=' num2str(tTarget(1))...
' and time<=' num2str(tTarget(end)) ' group by time'];
' and time<=' num2str(tTarget(end)) ' and channel=' num2str(segParams.channels) ' group by time'];
end
q=ljsFetch(conn,cmd);
tSeg=cell2mat(q);
......
......@@ -86,7 +86,7 @@ end
% export mr
% chunkSize = [ 128,128,128 ; 64,64,64];
chunkSize = [ 128,128,128 ; 64,64,64];
chunkSize = [ 128,128,128 ];
leverPath=fullfile(leverFolder,[datasetName '.LEVER']);
flist=dir(leverPath);
......
function CONSTANTS=addSegmentationChannel(conn,CONSTANTS,channelNumber,channelName)
CONSTANTS.imageData.ChannelNames{channelNumber}=channelName;
CONSTANTS.segmentationData.NumberOfChannels=length(CONSTANTS.imageData.ChannelNames);
Write.updateConstants(conn,CONSTANTS);
No preview for this file type
node C:\Users\ac\Documents\git\leverjs\server.js f:\leverjs\ --port=3000
\ No newline at end of file
node C:\Users\ac\Documents\git\leverjs\server.js f:\leverjs\ --port=3000 --log=f:\leverjs\auto22log.txt
\ No newline at end of file