Usage: formatting `tif/tiff` files to `jpg/png` files :param _src_path: :param _dst_path: :return:
(_src_path, _dst_path)
| 6 | |
| 7 | |
| 8 | def tif2png(_src_path, _dst_path): |
| 9 | """ |
| 10 | Usage: |
| 11 | formatting `tif/tiff` files to `jpg/png` files |
| 12 | :param _src_path: |
| 13 | :param _dst_path: |
| 14 | :return: |
| 15 | """ |
| 16 | tif = TIFF.open(_src_path, mode='r') |
| 17 | image = tif.read_image() |
| 18 | misc.imsave(_dst_path, image) |
| 19 | |
| 20 | |
| 21 | def data_split(src_list): |