TiledColorBasedDistance

Qualified name: CDC.tiled_color_based_distance.TiledColorBasedDistance

class TiledColorBasedDistance(*, ortho_tiler, color_model, scale, output_location)[source]

Bases: object

Calculate color based distance on tiled orthomosaic.

Parameters:

Methods

convertScaleAbs

Scale image by alpha and take the absolute value.

process_tiles

Calculate color based distance on all tiles and save output.

save_statistics

Calculate a histogram of the color based distance from all tiles.

static convertScaleAbs(image, alpha)[source]

Scale image by alpha and take the absolute value.

Parameters:
Return type:

ndarray

process_tiles(save_tiles=False, max_workers=4)[source]

Calculate color based distance on all tiles and save output.

Parameters:
  • save_tiles (bool) – Save all tiles to output_location.

  • max_workers (int | None) – Maximum number of threads to use for processing.

Return type:

None

save_statistics(args)[source]

Calculate a histogram of the color based distance from all tiles. Save histogram in output_location/statistics with a txt file of metadata.

Parameters:

args (Any)

Return type:

None