Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7b24a676 authored by NADAL Morgane's avatar NADAL Morgane
Browse files

improved features_analysis.py and add new parameter to nutrimorph.py

parent 44e96ffb
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -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!")
......@@ -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
......
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment