Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
ljsctc
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
ljsctc
Commits
61ed9f19
Commit
61ed9f19
authored
Jun 14, 2021
by
ac (tb)
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://git-bioimage.coe.drexel.edu/opensource/ljsctc
parents
60323d1b
ca3d73af
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/evalRC.m
+2
-2
2 additions, 2 deletions
src/evalRC.m
src/huh7Helper.m
+3
-3
3 additions, 3 deletions
src/huh7Helper.m
src/huh7Refine.m
+24
-6
24 additions, 6 deletions
src/huh7Refine.m
with
29 additions
and
11 deletions
src/evalRC.m
+
2
−
2
View file @
61ed9f19
% eval all the datasets in the release folder
ROOT
=
'/
f
/leverjs/ctc202
0rc
'
ROOT
=
'/
g
/leverjs/ctc202
1a/3d
'
flist
=
dir
(
fullfile
(
ROOT
,
'**/*training*.LEVER'
));
results
=
[];
for
ff
=
1
:
length
(
flist
)
...
...
@@ -18,4 +18,4 @@ for ff=1:length(flist)
res
.
Properties
.
VariableNames
{
2
}
=
'strDB'
;
results
=
[
results
;
res
]
end
writetable
(
results
,
'/f/leverjs/ctc2020rc/results.txt'
)
\ No newline at end of file
writetable
(
results
,
'/g/leverjs/ctc2021a/3d/results.txt'
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/huh7Helper.m
+
3
−
3
View file @
61ed9f19
root = '
F:\
leverjs
\
ctc
\
huh7
\
refined';
gtPath = '
\\BIOIMAGE20\G\
gRaw
\
ctc2020';
root = '
/g/
leverjs
/
ctc
2021a/
huh7
/
refined
/diModified
';
gtPath = '
/g/
gRaw
/
ctc2020';
flist = dir(fullfile(root,'*.LEVER'));
results = [];
for ff = 1:length(flist)
strDB = fullfile(flist(ff).folder,flist(ff).name);
Dilation.
huh7Refine(strDB);
huh7Refine(strDB);
end
flist = dir(fullfile(root,'*training*.LEVER'));
...
...
This diff is collapsed.
Click to expand it.
src/huh7Refine.m
+
24
−
6
View file @
61ed9f19
...
...
@@ -12,7 +12,6 @@ for i = 1:CONSTANTS.imageData.NumberOfFrames
im
=
DenoiseCache
.
readImages
(
i
,
CONSTANTS
,
segParams
,[]);
di
=
dilationThreshold
(
im
);
imx
=
mat2gray
(
0
*
im
);
for
j
=
1
:
length
(
cx
)
...
...
@@ -20,6 +19,8 @@ for i = 1:CONSTANTS.imageData.NumberOfFrames
imx
(
dx
(
2
),
dx
(
1
))
=
j
;
end
di
=
logical
(
imreconstruct
(
imx
,
mat2gray
(
di
)));
[
~
,
idxd
]
=
bwdist
(
imx
);
rp
=
regionprops
((
imx
(
idxd
)
.*
di
),
im
,
'PixelList'
);
...
...
@@ -28,15 +29,32 @@ for i = 1:CONSTANTS.imageData.NumberOfFrames
if
isempty
(
rp
(
j
)
.
PixelList
)
continue
end
cx
(
j
)
.
pts
=
rp
(
j
)
.
PixelList
;
idxPixels
=
sub2ind
(
imSize
,
cx
(
j
)
.
pts
(:,
2
),
cx
(
j
)
.
pts
(:,
1
));
[
r
,
c
]
=
ind2sub
(
imSize
,
idxPixels
);
idxPixels
=
sub2ind
(
imSize
,
rp
(
j
)
.
PixelList
(:,
2
),
rp
(
j
)
.
PixelList
(:,
1
));
bw
=
logical
(
zeros
(
imSize
));
bw
(
idxPixels
)
=
1
;
bounds
=
bwboundaries
(
bw
);
% keep only the connected components with the centroid
bw2
=
logical
(
0
*
bw
);
centroid
=
round
(
cx
(
j
)
.
centroid
);
% todo - make sure 1 <= centroid<imSize
bw2
(
centroid
(
2
),
centroid
(
1
))
=
1
;
bw2
=
imreconstruct
(
bw2
,
bw
);
idxPixels
=
find
(
bw2
);
[
r
,
c
]
=
find
(
bw2
);
bounds
=
bwboundaries
(
bw2
);
% use r,c idxPixels to build new cell struct
if
isempty
(
bounds
)
continue
end
cx
(
j
)
.
pts
=
[
c
,
r
];
cx
(
j
)
.
idxPixels
=
idxPixels
;
cx
(
j
)
.
surface
=
[
bounds
{
1
}(:,
2
),
bounds
{
1
}(:,
1
)];
cx
(
j
)
.
centroid
=
[
mean
([
c
,
r
])
0
];
...
...
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