Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NutriMorph
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
DEBREUVE Eric
NutriMorph
Commits
7b24a676
Commit
7b24a676
authored
4 years ago
by
NADAL Morgane
Browse files
Options
Downloads
Patches
Plain Diff
improved features_analysis.py and add new parameter to nutrimorph.py
parent
44e96ffb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
features_analysis.py
+355
-227
355 additions, 227 deletions
features_analysis.py
nutrimorph.py
+2
-1
2 additions, 1 deletion
nutrimorph.py
parameters.ini
+1
-0
1 addition, 0 deletions
parameters.ini
search_parameters.py
+1
-0
1 addition, 0 deletions
search_parameters.py
with
359 additions
and
228 deletions
features_analysis.py
+
355
−
227
View file @
7b24a676
This diff is collapsed.
Click to expand it.
nutrimorph.py
+
2
−
1
View file @
7b24a676
...
...
@@ -79,6 +79,7 @@ data_path = None
channel
=
None
save_images
=
None
save_csv
=
None
save_features_analysis
=
None
dilatation_erosion
=
None
size_voxel_in_micron
=
None
statistical_analysis
=
None
...
...
@@ -662,7 +663,7 @@ if __name__ == '__main__':
# Clustering with this df and module features_analysis.py
if
statistical_analysis
:
os_
.
system
(
f
"
feature_analysis.py
{
save_csv
}
\\
features.csv
"
)
os_
.
system
(
f
"
feature_analysis.py
{
save_csv
}
\\
features.csv
{
save_features_analysis
}
"
)
else
:
raise
ImportError
(
"
Not a valid data path!
"
)
This diff is collapsed.
Click to expand it.
parameters.ini
+
1
−
0
View file @
7b24a676
...
...
@@ -62,6 +62,7 @@ save_images : \\path_where_to_save_MIP_and_graphs
; if None, no saving. Otherwise, path where to save images (MIP & graphs)
save_csv
:
\\path_where_to_save_features_csv
; where to save the csv. if None, by default it is in the .tif directory
save_features_analysis
:
\\path_where_to_save_features_analysis_graphs_and_csv
dilatation_erosion
:
True
; Choose whether to perform erosion/dilation on the extensions during the connexion process.
; Better results are achieved with it, and doing dilatation_erosion is theoretically more rigorous
...
...
This diff is collapsed.
Click to expand it.
search_parameters.py
+
1
−
0
View file @
7b24a676
...
...
@@ -55,6 +55,7 @@ size_voxel_in_micron = IfNotFloat('Input', 'size_voxel_in_micron')
dilatation_erosion
=
parameters
.
getboolean
(
'
Input
'
,
'
dilatation_erosion
'
)
save_images
=
parameters
[
'
Input
'
][
'
save_images
'
]
save_csv
=
parameters
[
'
Input
'
][
'
save_csv
'
]
save_features_analysis
=
parameters
[
'
Input
'
][
'
save_features_analysis
'
]
statistical_analysis
=
parameters
.
getboolean
(
'
Input
'
,
'
statistical_analysis
'
)
# [Somas]
...
...
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