iaa_od.visualisation.show_utils

Functions

get_image_path(filename, filepath)

Utility function that simply constructs the entire path for a given image filename.

upsert_handle(handles, new_handle)

Utility function that adds a new legend handle to the list of handles if it does not already exist.

iaa_od.visualisation.show_utils.get_image_path(filename, filepath)[source]

Utility function that simply constructs the entire path for a given image filename. If necessary, the function also adds the ending forwards slash to the filepath.

Parameters:
  • filename (str) – The image filename.

  • filepath (str) – The filepath where the image is located.

Returns:

The full path to the image.

Return type:

str

iaa_od.visualisation.show_utils.upsert_handle(handles, new_handle)[source]

Utility function that adds a new legend handle to the list of handles if it does not already exist.

Parameters:
  • handles (list[Patch]) – The list of existing legend handles.

  • new_handle (Patch) – The new legend handle to add.

Return type:

None