elektronn3.data.transforms.region_generator module

class elektronn3.data.transforms.region_generator.Region(coords_lo, coords_hi, size=None)[source]

Bases: object

Is a container that holds spatial coordinates of the region

class elektronn3.data.transforms.region_generator.RegionGenerator(coord_bounds, lower_lim_region_size, upper_lim_region_size)[source]

Bases: object

A class instance generates regions with arbitrary spatial size and location within the specified coordinate bounds. The coordinate bounds are usually the spatial size of the input sample.


Generates a region with arbitrary spatial size and location according to the parameters passed by the user to the constructor :returns: :rtype: instance of the Region class