Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
leverjs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
leverjs
Commits
42ab7e80
Commit
42ab7e80
authored
Mar 9, 2019
by
Andrew Cohen
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git-bioimage.coe.drexel.edu:bioimage/leverjs
parents
44f2b0d3
d19b02da
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/+Reseg/reSegmentComplete.m
+17
-0
17 additions, 0 deletions
matlab/+Reseg/reSegmentComplete.m
prebuilt/matlabPollDB.exe
+2
-2
2 additions, 2 deletions
prebuilt/matlabPollDB.exe
with
19 additions
and
2 deletions
matlab/+Reseg/reSegmentComplete.m
+
17
−
0
View file @
42ab7e80
...
@@ -29,10 +29,27 @@ if ~isempty(editQ)
...
@@ -29,10 +29,27 @@ if ~isempty(editQ)
continue
;
continue
;
end
end
% any cells that were the result of a split where cellID=trackID
% mean those cells weren't tracked.
% BUT there is an exception. If we split the cell, and it worked,
% and then later that cell turns out to be a sibling in a mitosis,
% then we can't undo the split
cmd
=
[
'SELECT cellID,trackID FROM tblCells where cellID IN ('
...
cmd
=
[
'SELECT cellID,trackID FROM tblCells where cellID IN ('
...
cellIDs
(
2
:
end
-
1
)
') AND cellID=trackID'
];
cellIDs
(
2
:
end
-
1
)
') AND cellID=trackID'
];
mergeQ
=
fetch
(
conn
,
cmd
);
mergeQ
=
fetch
(
conn
,
cmd
);
if
~
isempty
(
mergeQ
)
if
~
isempty
(
mergeQ
)
% we have untracked cells in the split (cellID==trackID)
% before undoing, check for any of the split cells are in a mitosis
idSplitStr
=
[
'('
cellIDs
(
2
:
end
-
1
)
')'
];
cmd
=
[
'select * from tblFamilies where cellID_parent in '
idSplitStr
...
' or cellID_child1 in '
idSplitStr
' or cellID_child2 in '
idSplitStr
];
q
=
fetch
(
conn
,
cmd
);
if
~
isempty
(
q
)
% can't undo this split -- one of the splittees is a child
continue
end
% ok -- we have untracked cells in the split, and none of the
% splittees are involved in a mitosis. undo it.
fprintf
(
1
,
'found untracked cells from reseg split -- merging\n'
);
fprintf
(
1
,
'found untracked cells from reseg split -- merging\n'
);
Write
.
undoEdit
(
conn
,
editQ
{
i
,
1
},
0
);
Write
.
undoEdit
(
conn
,
editQ
{
i
,
1
},
0
);
end
end
...
...
This diff is collapsed.
Click to expand it.
prebuilt/matlabPollDB.exe
LFS
+
2
−
2
View file @
42ab7e80
No preview for this file type
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