module documentation

Functions that produce fake slide data.

Function generate_fake_slide_data Produces an image file with the specified features.
Function _clip_upper_and_lower Undocumented
Function _generate_cell_mask Undocumented
Function _random_angular_steps Undocumented
Variable _default_config Configuration structure that is used to generate pseudo-slides
def generate_fake_slide_data(seed=1, xpix_ypix=(256, 256), sx_sy=(256*12, 256*12), b_rgb=(200, 210, 219), c_rgb=(171, 176, 255), m_rgb=(74, 67, 53), a_rgb=(125, 94, 15), a_prob=0.15, Y=240):

Produces an image file with the specified features.

Parameters
seedPsudorandom seed
xpix_ypixSize of each patch to generate (window_size)
sx_syTotal slide size (slide_size)
b_rgbBackground slide colour (non stained cellular matter)
c_rgbNon-stained nuclei (cell_nucleus_rgb)
m_rgbNon-stained bodies similar to stained asyn (melanin_rgb)
a_rgbStained asyn (a-syn_rgb)
a_probProbability of Asyn being present in each window
YSlide Luminance
Returns
Image (np.array)
def _clip_upper_and_lower(value, lower, upper):

Undocumented

def _generate_cell_mask(size, centroid, avg_radius, vertex_noise, peaks, num_vertices):

Undocumented

def _random_angular_steps(steps, irregularity):

Undocumented

_default_config =

Configuration structure that is used to generate pseudo-slides