Browse Source

renamed jpg post processing

master
Holger Frey 6 years ago
parent
commit
688a5db956
  1. 2
      ideas.md
  2. 2
      mtor/postproc.py
  3. 4
      mtor/workflows.py

2
ideas.md

@ -1,5 +1,3 @@
Further Ideas: Further Ideas:
- color the roi
- create a movie
- automatic use of cached values - automatic use of cached values

2
mtor/postproc.py

@ -10,7 +10,7 @@ def stem_file_list(selected_files):
return {pathlib.Path(filename).stem for filename in selected_files} return {pathlib.Path(filename).stem for filename in selected_files}
def rename_color_coded_images(file_stems, parameters): def annotate_color_coded_images(file_stems, parameters):
colors = {LABEL_DISCARDED: (198, 78, 82), LABEL_SELECTED: (74, 114, 174)} colors = {LABEL_DISCARDED: (198, 78, 82), LABEL_SELECTED: (74, 114, 174)}
top = parameters.roi_top top = parameters.roi_top
bottom = parameters.roi_bottom bottom = parameters.roi_bottom

4
mtor/workflows.py

@ -21,7 +21,7 @@ from .dataproc import (
) )
from .postproc import ( from .postproc import (
stem_file_list, stem_file_list,
rename_color_coded_images, annotate_color_coded_images,
sort_cut_images, sort_cut_images,
remove_cuts_dir, remove_cuts_dir,
) )
@ -79,7 +79,7 @@ def data_workflow(stats_results, parameters):
def postprocessing_workflow(selected_files, parameters): def postprocessing_workflow(selected_files, parameters):
print("4/4: Post processing") print("4/4: Post processing")
file_stems = stem_file_list(selected_files) file_stems = stem_file_list(selected_files)
rename_color_coded_images(file_stems, parameters) annotate_color_coded_images(file_stems, parameters)
sort_cut_images(file_stems, parameters) sort_cut_images(file_stems, parameters)
remove_cuts_dir(parameters) remove_cuts_dir(parameters)

Loading…
Cancel
Save