-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
3,412 additions
and
511 deletions.
There are no files selected for viewing
Binary file added
BIN
+931 KB
...asurments between fiber and annotation(tumor, cell and user specified ROI) .jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+28.7 KB
(140%)
src/CurveAlign_CT-FIRE/Cellanalysis/CellAnalysisForCurveAlign.mlapp
Binary file not shown.
1,138 changes: 911 additions & 227 deletions
1,138
src/CurveAlign_CT-FIRE/Cellanalysis/CellAnalysisForCurveAlign_exported.m
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+5.46 KB
(110%)
src/CurveAlign_CT-FIRE/Cellanalysis/TumorRegionAnnotationGUI.mlapp
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
23 changes: 15 additions & 8 deletions
23
src/CurveAlign_CT-FIRE/Cellanalysis/WholeCell/wholeCellLink.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
function wholeCellLink(image,model) | ||
function mask4cells = wholeCellLink(image,model) | ||
% This function links deep learning models written in Python to MATLAB. | ||
% image - the image that needs to be segmented | ||
% model - two models available: 'Cellpose' and 'DeepCell' | ||
|
||
%pe = pyenv; | ||
pathToStardist = fileparts(which('cellpose_seg.py')); | ||
if count(py.sys.path,pathToStardist) == 0 | ||
insert(py.sys.path,int32(0),pathToStardist); | ||
end | ||
% pathToStardist = fileparts(which('cellpose_seg.py')); | ||
% if count(py.sys.path,pathToStardist) == 0 | ||
% insert(py.sys.path,int32(0),pathToStardist); | ||
% end | ||
|
||
if strcmp(model,'Cellpose') | ||
% terminate(pyenv) | ||
% pyenv('Version','C:\Users\liu372\.conda\envs\CApy311\python.exe', 'ExecutionMode', 'OutOfProcess') | ||
py.cellpose_seg.cyto_seg(image); | ||
py.importlib.import_module('cellpose_seg'); | ||
mask4cells= uint32(py.cellpose_seg.cyto_seg(image)); | ||
|
||
elseif strcmp(model,'DeepCell') | ||
% terminate(pyenv) | ||
% pyenv('Version','/Users/ympro/opt/anaconda3/envs/deepcell/bin/python') | ||
py.deepcell_seg.cyto_seg(image); | ||
end | ||
py.importlib.import_module('deepcell_seg') | ||
mask4cells = uint32(py.deepcell_seg.cyto_seg(image)); | ||
elseif strcmp(model,'FromMask') | ||
cellobj = imgCardWholeCell(model,imageName,imagePath); | ||
mask4cells = cellobj.cellArray.mask; | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.72 KB
(110%)
src/CurveAlign_CT-FIRE/Cellanalysis/cellanalysisAnnotationMeasurement.mlapp
Binary file not shown.
Oops, something went wrong.