panel_segmentation.utils.splitTifToPngs#

panel_segmentation.utils.splitTifToPngs(geotiff_file, meters_per_pixel, meters_png_image, file_save_folder)[source]#

Take a master GEOTIFF file, grid it, and convert it to a series of PNG files.

Parameters:
  • geotiff_file (str) – File name of the TIF file we want to grid images from.

  • meters_per_pixel (float) – TIF file resolution in meters/pixel. This needs to be previously known for the TIF file, so we can grid images based on the number of meters each image represents (ie zoom level)

  • meters_png_image (float) – Number of meters we want an individual image output to represent, in both the x- and y-direction

  • file_save_folder (str) – Folder path where we write all of the gridded images from the master TIF file.

Return type:

None.