module documentation
Functions that produce fake slide data.
| Function | generate |
Produces an image file with the specified features. |
| Function | _clip |
Undocumented |
| Function | _generate |
Undocumented |
| Function | _random |
Undocumented |
| Variable | _default |
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 | |
| seed | Psudorandom seed |
| xpix | Size of each patch to generate (window_size) |
| sx | Total slide size (slide_size) |
| b | Background slide colour (non stained cellular matter) |
| c | Non-stained nuclei (cell_nucleus_rgb) |
| m | Non-stained bodies similar to stained asyn (melanin_rgb) |
| a | Stained asyn (a-syn_rgb) |
| a | Probability of Asyn being present in each window |
| Y | Slide Luminance |
| Returns | |
| Image (np.array) | |