MannLabs / SPARCSpy

9 stars 6 forks source link

Improve Log Output when Segmenting Images #4

Closed sophiamaedler closed 2 months ago

sophiamaedler commented 2 years ago

The Log Output can be improved with the following information:

  1. Include the Project Directory path and the path of the loaded config file in the log output for segmentation, extraction and classification
  2. Print a "Success" message at the end of project.process(). It is important that this log message is captured by job management systems like slurm and written to their log files.

This will ensure that users can more easily determine which processing jobs completed and final the source of potential issues.

sophiamaedler commented 2 years ago

In addition when performing a classification the network that was used in the classification should be written as in some cases you might want to process the same project with several different classifiers.

sophiamaedler commented 2 years ago

Log which crop parameters were applied when reading an input image from file. Also document the image shape in log file so its easy to find the dimensions without needing to open the loaded image.

This is very important since calibration cross points were originally determined in uncropped images but the coordinates of shapes for excision are determined on the basis of cropped images. The position of calibration crosses when written out thus need to be adjusted for the cropping done during segmentation.