PlanktoScope / device-backend

All backend software underneath the PlanktoScope device's standard API
GNU General Public License v3.0
2 stars 6 forks source link

Remove unnecessary segmenter dependency on MorphoCut #10

Closed ethanjli closed 11 months ago

ethanjli commented 1 year ago

From a code search, it appears that the segmenter no longer uses MorphoCut except for a morphocut.contrib.ecotaxa.dtype_to_ecotaxa function call to convert the field names of a dataset metadata pandas.DataFrame instance into a format suitable for EcoTaxa-flavored TSV; MorphoCut is no longer used for actual image processing. Thus, we should be able to remove the MorphoCut dependency by vendoring the dtype_to_ecotaxa function (i.e. copying the function definition into the processing/segmenter/planktoscope/segmenter/ecotaxa.py module and using it to replace the morphocut.contrib.ecotaxa.dtype_to_ecotaxa function call). Removing MorphoCut will help to simplify our dependency situation.