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
aa4f6cfc
Commit
aa4f6cfc
authored
Jul 31, 2013
by
Walt Mankowski
Browse files
Options
Downloads
Patches
Plain Diff
if there's fluor on this frame, look there for possible segmentations
parent
bee98609
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/+Segmentation/FluorHulls.m
+38
-0
38 additions, 0 deletions
src/MATLAB/+Segmentation/FluorHulls.m
src/MATLAB/+Segmentation/PartialImageSegment.m
+11
-1
11 additions, 1 deletion
src/MATLAB/+Segmentation/PartialImageSegment.m
with
49 additions
and
1 deletion
src/MATLAB/+Segmentation/FluorHulls.m
0 → 100644
+
38
−
0
View file @
aa4f6cfc
% We've already segmented the fluor images, so all we need to do here is
% find the convex hulls in the image that's passed in.
function
[
objs
features
]
=
FluorHulls
(
im
,
t
)
objs
=
[];
features
=
[];
[
L
num
]
=
bwlabel
(
im
);
for
n
=
1
:
num
[
r
c
]
=
find
(
L
==
n
);
pix
=
find
(
L
==
n
);
ch
=
convhull
(
c
,
r
);
no
=
[];
no
.
t
=
t
;
no
.
points
=
[
c
(
ch
),
r
(
ch
)];
no
.
ID
=
-
1
;
no
.
indPixels
=
pix
;
no
.
indTailPixels
=
[];
no
.
BrightInterior
=
1
;
no
.
Eccentricity
=
0
;
no
.
imPixels
=
im
(
pix
);
nf
=
[];
nf
.
darkRatio
=
0
;
nf
.
haloRatio
=
0
;
nf
.
igRatio
=
0
;
nf
.
darkIntRatio
=
0
;
nf
.
brightInterior
=
1
;
nf
.
polyPix
=
[];
nf
.
perimPix
=
[];
nf
.
igPix
=
[];
nf
.
haloPix
=
[];
objs
=
[
objs
no
];
features
=
[
features
nf
];
end
end
This diff is collapsed.
Click to expand it.
src/MATLAB/+Segmentation/PartialImageSegment.m
+
11
−
1
View file @
aa4f6cfc
...
...
@@ -26,7 +26,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function
[
hulls
features
]
=
PartialImageSegment
(
img
,
centerPt
,
subSize
,
alpha
,
time
)
global
CONSTANTS
global
CONSTANTS
HaveFluor
FluorData
if
(
length
(
subSize
)
<
2
)
subSize
=
[
subSize
(
1
)
subSize
(
1
)];
...
...
@@ -56,6 +56,16 @@ function [hulls features] = PartialImageSegment(img, centerPt, subSize, alpha, t
objFeat
=
[
objFeat
hemObjFeat
];
end
if
Helper
.
HaveFluor
()
&&
HaveFluor
(
time
)
greenInd
=
FluorData
(
time
)
.
greenInd
;
flImg
=
zeros
(
size
(
img
));
flImg
(
greenInd
)
=
1
;
subImg
=
flImg
(
coordMin
(
2
):
coordMax
(
2
),
coordMin
(
1
):
coordMax
(
1
));
[
flObjs
,
flObjFeat
]
=
Segmentation
.
FluorHulls
(
subImg
,
1
);
objs
=
[
objs
flObjs
];
objFeat
=
[
objFeat
flObjFeat
];
end
[
hulls
features
]
=
fixupFromSubimage
(
coordMin
,
img
,
subImg
,
objs
,
objFeat
);
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
sign in
to comment