GTRefiner.TestingAndClientExamples.ClientExamples package

Subpackages

Submodules

GTRefiner.TestingAndClientExamples.ClientExamples.MinorityAndMajorityWins module

class GTRefiner.TestingAndClientExamples.ClientExamples.MinorityAndMajorityWins.CustomResizer(img: <module 'PIL.Image' from '/opt/miniconda3/envs/BachelorThesis/lib/python3.8/site-packages/PIL/Image.py'>, strategy: ~GTRefiner.TestingAndClientExamples.ClientExamples.MinorityAndMajorityWins.ResizingStrategy)

Bases: Resizer

class GTRefiner.TestingAndClientExamples.ClientExamples.MinorityAndMajorityWins.FlexibleResizer

Bases: ResizingStrategy

flexibel_resize(im: <module 'PIL.Image' from '/opt/miniconda3/envs/BachelorThesis/lib/python3.8/site-packages/PIL/Image.py'>, number_rows: int, number_col: int)
resize(img_as_array, resize_factor)
class GTRefiner.TestingAndClientExamples.ClientExamples.MinorityAndMajorityWins.MajorityWins

Bases: ResizingStrategy

resize(img_as_array, resize_factor)
class GTRefiner.TestingAndClientExamples.ClientExamples.MinorityAndMajorityWins.MeanWins

Bases: ResizingStrategy

resize(img_as_array, resize_factor)
class GTRefiner.TestingAndClientExamples.ClientExamples.MinorityAndMajorityWins.MinorityWins

Bases: ResizingStrategy

resize(img_as_array, resize_factor)
class GTRefiner.TestingAndClientExamples.ClientExamples.MinorityAndMajorityWins.NaiveResizer(img: <module 'PIL.Image' from '/opt/miniconda3/envs/BachelorThesis/lib/python3.8/site-packages/PIL/Image.py'>, strategy)

Bases: Resizer

resize(scaling_factor) array
class GTRefiner.TestingAndClientExamples.ClientExamples.MinorityAndMajorityWins.Resizer(img: <module 'PIL.Image' from '/opt/miniconda3/envs/BachelorThesis/lib/python3.8/site-packages/PIL/Image.py'>, strategy: ~GTRefiner.TestingAndClientExamples.ClientExamples.MinorityAndMajorityWins.ResizingStrategy)

Bases: object

abstract resize(scaling_factor) array
class GTRefiner.TestingAndClientExamples.ClientExamples.MinorityAndMajorityWins.ResizingStrategy

Bases: object

abstract resize(img_as_array, resize_factor)
class GTRefiner.TestingAndClientExamples.ClientExamples.MinorityAndMajorityWins.Strategy(value)

Bases: Enum

An enumeration.

MAJORITY_WINS = 0
MINORITY_WINS = 1
RANDOM_WINS = 2

Module contents