Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DeProj
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IAH public
DeProj
Commits
87573e8f
Commit
87573e8f
authored
4 years ago
by
Jean-Yves TINEVEZ
Browse files
Options
Downloads
Patches
Plain Diff
Example import of the bellaiche file format + mesh.
parent
46e25fde
No related branches found
No related tags found
1 merge request
!9
Rework the whole code for the upcoming publication.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
RunExample2.m
+55
-0
55 additions, 0 deletions
RunExample2.m
with
55 additions
and
0 deletions
RunExample2.m
0 → 100755
+
55
−
0
View file @
87573e8f
%% Example de-projection script, using a cell result structure and a mesh.
%% Clear all.
close
all
clear
clc
%% Parameters, scripts and files location.
% Add DeProj functions to the path.
addpath
(
'./src'
)
% Where are the images.
root_folder
=
'samples'
;
% The segmentation results. Here we use the results from Y. Bellaiche lab
% analysis software. The results must contain a CELL, FRAME, VERTICES and
% SIDES structures.
segmentation_filename
=
'SIA_161210_gfapnlsg_Backup_001.mat'
;
% The tissue surface mesh. It must be a mesh mapping the tissue surface,
% openedd at the tissue borders.
mesh_filename
=
'SimplifiedMesh.ply'
;
% The physical unit of length must be specified (not stored elsewhere).
units
=
'µm'
;
%% Read files.
% Segmentation results.
fprintf
(
'Opening segmentation file: %s\n'
,
segmentation_filename
)
seg
=
load
(
fullfile
(
root_folder
,
segmentation_filename
)
);
% Path to mesh file.
mesh_file_path
=
fullfile
(
root_folder
,
mesh_filename
);
%% Create deproj instance.
dpr
=
deproj
.
from_bellaiche
(
...
seg
.
CELLS
,
...
seg
.
FRAME
,
...
seg
.
SIDES
,
...
seg
.
VERTICES
,
...
mesh_file_path
,
...
units
);
%% Plot morphological parameters.
close
all
plot_sizes
(
dpr
);
plot_fit_plane
(
dpr
);
plot_fit_ellipse
(
dpr
);
plot_curvatures
(
dpr
);
plot_distorsions
(
dpr
);
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