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
22458440
Commit
22458440
authored
Jun 18, 2020
by
ac 20
Browse files
Options
Downloads
Patches
Plain Diff
fill holes after segReduce
parent
66e41519
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
matlab/+Segment/frameSegment.m
+9
-9
9 additions, 9 deletions
matlab/+Segment/frameSegment.m
prebuilt/matlabPollDB.exe
+2
-2
2 additions, 2 deletions
prebuilt/matlabPollDB.exe
with
11 additions
and
11 deletions
matlab/+Segment/frameSegment.m
+
9
−
9
View file @
22458440
...
@@ -89,6 +89,9 @@ end
...
@@ -89,6 +89,9 @@ end
% allocateShake (below) assigns each discarded pixel to it's closest
% allocateShake (below) assigns each discarded pixel to it's closest
% touching segmentation using a morphological region fill
% touching segmentation using a morphological region fill
bw
=
Segment
.
aiAreaOpen
(
bw
,
min_radius_pixels
);
bw
=
Segment
.
aiAreaOpen
(
bw
,
min_radius_pixels
);
if
~
segParams
.
isPhase
bw
=
bw
|
imfill
(
bw
,
'holes'
);
end
bw2
=
bw
;
bw2
=
bw
;
bPhaseReduce
=
segParams
.
isPhase
||
segParams
.
bCytoplasmic
;
bPhaseReduce
=
segParams
.
isPhase
||
segParams
.
bCytoplasmic
;
% if prod(size(im))>1e9
% if prod(size(im))>1e9
...
@@ -96,18 +99,12 @@ bPhaseReduce=segParams.isPhase || segParams.bCytoplasmic;
...
@@ -96,18 +99,12 @@ bPhaseReduce=segParams.isPhase || segParams.bCytoplasmic;
% bPhaseReduce=true;
% bPhaseReduce=true;
% end
% end
bw
=
Segment
.
segReduce
(
bw
,
bwLog
,
bPhaseReduce
,
min_area_pixels
,
min_radius_pixels
);
bw
=
Segment
.
segReduce
(
bw
,
bwLog
,
bPhaseReduce
,
min_area_pixels
,
min_radius_pixels
);
if
~
segParams
.
isPhase
if
~
segParams
.
isPhase
bw
=
bw
|
imfill
(
bw
,
'holes'
);
bw
=
bw
|
imfill
(
bw
,
'holes'
);
end
end
% if prod(size(im))<1e9
[
L
,
num
,
bwBoundary
]
=
Segment
.
allocateShake
(
bw
,
bw2
,
min_radius_pixels
,
segParams
);
[
L
,
num
,
bwBoundary
]
=
Segment
.
allocateShake
(
bw
,
bw2
,
min_radius_pixels
,
segParams
);
[
L2
]
=
bwlabeln
(
bw2
);
% used to mark original cc for segCC field
[
L2
]
=
bwlabeln
(
bw2
);
% used to mark original cc for segCC field
% else
% [L,num]=bwlabeln(bw);
% L2=L;
% end
if
bEnsemble
if
bEnsemble
if
size
(
bw
,
3
)
>
1
if
size
(
bw
,
3
)
>
1
...
@@ -129,6 +126,9 @@ end
...
@@ -129,6 +126,9 @@ end
CC
=
bwconncomp
(
L
);
CC
=
bwconncomp
(
L
);
for
n
=
1
:
num
for
n
=
1
:
num
idx
=
CC
.
PixelIdxList
{
n
};
idx
=
CC
.
PixelIdxList
{
n
};
if
length
(
idx
)
<
3
continue
end
if
is3D
(
im
)
if
is3D
(
im
)
newCell
=
Segment
.
frameSegment_create_3D
(
idx
,
size
(
bw
),
chan
,
t
);
newCell
=
Segment
.
frameSegment_create_3D
(
idx
,
size
(
bw
),
chan
,
t
);
else
else
...
...
This diff is collapsed.
Click to expand it.
prebuilt/matlabPollDB.exe
LFS
+
2
−
2
View file @
22458440
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