Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LEVER
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
LEVER
Commits
82317ca5
Commit
82317ca5
authored
Aug 10, 2012
by
Nathan Spaeth
Browse files
Options
Downloads
Patches
Plain Diff
Fix errors in previous commit
parent
f4bd3b7a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/MATLAB/+Helper/ImageFileDialog.m
+0
-20
0 additions, 20 deletions
src/MATLAB/+Helper/ImageFileDialog.m
src/MATLAB/+Tracker/GraphEditSetEdge.m.orig
+0
-73
0 additions, 73 deletions
src/MATLAB/+Tracker/GraphEditSetEdge.m.orig
with
0 additions
and
93 deletions
src/MATLAB/+Helper/ImageFileDialog.m
+
0
−
20
View file @
82317ca5
...
@@ -19,25 +19,6 @@ while ( ~bOpened )
...
@@ -19,25 +19,6 @@ while ( ~bOpened )
[
sigDigits
imageDataset
]
=
Helper
.
ParseImageName
(
settings
.
imageFile
);
[
sigDigits
imageDataset
]
=
Helper
.
ParseImageName
(
settings
.
imageFile
);
<<<<<<<
Updated
upstream
if
(
~
isfield
(
CONSTANTS
,
'datasetName'
))
CONSTANTS
.
datasetName
=
imageDataset
;
elseif
(
~
strcmp
(
imageDataset
,
CONSTANTS
.
datasetName
))
if
(
strcmp
(
imageDataset
,[
CONSTANTS
.
datasetName
'_'
]))
CONSTANTS
.
datasetName
=
[
CONSTANTS
.
datasetName
'_'
];
else
answer
=
questdlg
(
'Image does not match dataset would you like to choose another?'
,
'Image Selection'
,
'Yes'
,
'No'
,
'Close LEVer'
,
'Yes'
);
switch
answer
case
'Yes'
continue
;
case
'No'
CONSTANTS
.
imageNamePattern
=
''
;
case
'Close LEVer'
return
otherwise
continue
;
end
=======
if
(
strcmp
(
imageDataset
,[
CONSTANTS
.
datasetName
'_'
]))
if
(
strcmp
(
imageDataset
,[
CONSTANTS
.
datasetName
'_'
]))
CONSTANTS
.
datasetName
=
[
CONSTANTS
.
datasetName
'_'
];
CONSTANTS
.
datasetName
=
[
CONSTANTS
.
datasetName
'_'
];
bOpened
=
1
;
bOpened
=
1
;
...
@@ -53,7 +34,6 @@ while ( ~bOpened )
...
@@ -53,7 +34,6 @@ while ( ~bOpened )
return
return
otherwise
otherwise
continue
;
continue
;
>>>>>>>
Stashed
changes
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
src/MATLAB/+Tracker/GraphEditSetEdge.m.orig
deleted
100644 → 0
+
0
−
73
View file @
f4bd3b7a
% GraphEditSetEdge(trackID, nextTrackID, time)
% Set an edge edit in GraphEdits structure.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Copyright 2011 Andrew Cohen, Eric Wait and Mark Winter
%
% This file is part of LEVer - the tool for stem cell lineaging. See
% https://pantherfile.uwm.edu/cohena/www/LEVer.html for details
%
% LEVer is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% LEVer is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with LEVer in file "gnu gpl v3.txt". If not, see
% <http://www.gnu.org/licenses/>.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function GraphEditSetEdge(trackID, nextTrackID, time, bLongDistance)
global GraphEdits CachedCostMatrix CellTracks
<<<<<<< HEAD
if(exist('bLongDistance', 'var') && bLongDistance)
=======
if (~exist('bLongDistance','var'))
bLongDistance = 0;
end
if(bLongDistance)
>>>>>>> 7948920483a8db2fd45c372532e731888ea05a8b
track = CellTracks(trackID);
if(isempty(track.hulls)) %check for valid track
trackHull = 0;
else
for i=length(track.hulls):-1:1 %search backward through hulls for last edit or first hull
trackHull = track.hulls(i);
if(trackHull)
if(any(GraphEdits(trackHull,:)) || any(GraphEdits(:,trackHull)))
break
end
end
end
end
else
trackHull = Helper.GetNearestTrackHull(trackID, time-1, -1);
end
nextHull = Helper.GetNearestTrackHull(nextTrackID, time, 1);
if ( trackHull == 0 || nextHull == 0 )
return;
end
GraphEdits(trackHull,:) = 0;
GraphEdits(:,nextHull) = 0;
GraphEdits(trackHull,nextHull) = 1;
% Update cached cost matrix
CachedCostMatrix(trackHull,:) = 0;
CachedCostMatrix(:,nextHull) = 0;
CachedCostMatrix(trackHull,nextHull) = eps;
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment