class documentation

Slide abstract base class to allow consistent access to real and synthetic data.

Method __init__ Instantiate the Slide object (load from a file).
Method get_slide_with_pixel_resolution_in_microns Return the slice at the given resolution.
Instance Variable calibration_profile Undocumented
Instance Variable window_size Undocumented
Method _calc_size Calculate final image size based on the size of the pixels
Instance Variable _px_um Undocumented
def __init__(self):

Instantiate the Slide object (load from a file).

@abstractmethod
def get_slide_with_pixel_resolution_in_microns(self, microns=0.504):

Return the slice at the given resolution.

Parameters
micronsResolution (float)
Returns
The resampled block from the slice (np.array)
calibration_profile =

Undocumented

window_size: int =

Undocumented

def _calc_size(self, x, y, microns):

Calculate final image size based on the size of the pixels

Parameters
x:intOriginal size x (int)
y:intOriginal size y (int)
microns:floatSize of pixels
Returns
Scaled dimensions (int, int)