GTRefiner.IO package¶
Submodules¶
GTRefiner.IO.Reader module¶
- class GTRefiner.IO.Reader.AbstractReader¶
Bases:
object
Interface or all reader like classes.
- abstract classmethod read(path: Path) Any ¶
Read the file at given location (path).
- class GTRefiner.IO.Reader.ColorTableReader¶
Bases:
TableReader
- classmethod read(path: Path) ColorTable ¶
Read a given json-based color table. :param path: path to json-based color table :type path: Path :return: color table :rtype: ColorTable
- class GTRefiner.IO.Reader.GTReader¶
Bases:
AbstractReader
- abstract classmethod read(path: Path) GroundTruth ¶
Read the ground truth.
- class GTRefiner.IO.Reader.PxGTReader¶
Bases:
GTReader
- classmethod read(path: Path) PixelLevelGT ¶
Read the ground truth.
- class GTRefiner.IO.Reader.TableReader¶
Bases:
AbstractReader
- abstract classmethod read(path: Path) Any ¶
Read the file at given location (path).
- class GTRefiner.IO.Reader.VisibilityTableReader¶
Bases:
TableReader
- classmethod read(path: Path) VisibilityTable ¶
Read a given json-based visibility table. :param path: path to json-based visibility table :type path: Path :return: visibility table :rtype: VisibilityTable
GTRefiner.IO.Writer module¶
- class GTRefiner.IO.Writer.AbstractWriter¶
Bases:
object
- abstract classmethod write(ground_truth: <module 'GTRefiner.GTRepresentation.GroundTruth' from '/Users/loverboy99/PycharmProjects/BachelorThesis/HisDB_GT_Refinement/GTRefiner/GTRepresentation/GroundTruth.py'>, path: ~pathlib.Path)¶
- class GTRefiner.IO.Writer.GIFWriter¶
Bases:
ImageWriter
- classmethod write(ground_truth: Image, path: Path)¶
Store an image as GIF. :param ground_truth: raw image to be stored :type ground_truth: Image :param path: Output path :type path: Path
- class GTRefiner.IO.Writer.ImageWriter¶
Bases:
AbstractWriter
- class GTRefiner.IO.Writer.JSONWriter¶
Bases:
VectorGTWriter
- class GTRefiner.IO.Writer.PNGWriter¶
Bases:
ImageWriter
- classmethod write(ground_truth: Image, path: Path)¶
Store an image as GIF. :param ground_truth: raw image to be stored :type ground_truth: Image :param path: Output path :type path: Path
- class GTRefiner.IO.Writer.PXGTWriter¶
Bases:
ImageWriter
- classmethod write(ground_truth: Image, path: Path)¶
Write px-based ground truth image. :param ground_truth: pixel based ground truth image to be stored :type ground_truth: Image :param path: Output path :type path: Path
- class GTRefiner.IO.Writer.RawImageWriter¶
Bases:
ImageWriter
- class GTRefiner.IO.Writer.VectorGTWriter¶
Bases:
AbstractWriter
- class GTRefiner.IO.Writer.XMLWriter¶
Bases:
VectorGTWriter