Coverage for src/ensae_projects/cli/img_helper.py: 67%
3 statements
« prev ^ index » next coverage.py v7.1.0, created at 2023-07-20 04:37 +0200
« prev ^ index » next coverage.py v7.1.0, created at 2023-07-20 04:37 +0200
1"""
2@file
3@brief Starts an app locally to test it.
4"""
5from ..datainc import convert_dcm2png as _convert_dcm2png
8def dcm2png(folder, dest, fLOG=print):
9 """
10 Converts all medical images in a folder from format
11 :epkg:`dcm` to :epkg:`png`.
13 :param folder: source folder
14 :param dest: destination folder
15 :param fLOG: logging function
17 The function uses module :epkg:`pydicom`.
18 """
19 _convert_dcm2png(folder, dest, fLOG)