deepdisc.data_format.annotation_functions.annotate_hsc

Attributes

FILT_INX

Functions

annotate_hsc(images, mask, idx, filters)

Generates annotation metadata for hsc data

annotate_hsc_new(images, mask, idx, filters)

This can needs to be customized to your training data format

Module Contents

FILT_INX = 0[source]
annotate_hsc(images, mask, idx, filters)[source]

Generates annotation metadata for hsc data

Parameters:
  • images (list) – A list of paths to image files, expected to have one file per filter.

  • mask (str) – A path to a mask file for the images.

  • idx (int) – An integer to uniquely identify the resulting record.

  • filters (list) – A list of all filter labels, should map to the list of images.

Returns:

record – A dictionary of metadata and derived annotations.

Return type:

dictionary

annotate_hsc_new(images, mask, idx, filters)[source]

This can needs to be customized to your training data format