Skip to content

RandomTiler issue with tissue_percent parameter  #611

@Neuro-nerd-scientist

Description

@Neuro-nerd-scientist

Hello,

I'm working with histolab's RandomTiler to extract some sample tiles from an image of a larger sample of tissue. I have successfully loaded my image (jpg format) into python using PIL and then initialise the image as a Slide object using Histolab's Slide class

I notice that when I use the default tissue_percent value (80%), all the tiles are aggregated on the top of the sample - this behaviour continues for high tissue_percent values as well (tissue_percent>50). To get random sampling throughout the entirety of my tissue sample, I need to supply very low tissue_percent values (tissue_percent<5%) to get uniform sampling throughout the tissue. I have included three screenshots - showing different tissue_percent values with check_tissue set to True to show the odd tiling patterns this is producing:

Example 1 - tissue_percent set to 80% with check_tissue set to True

image

Example 2 - tissue_percent set to 20% with check_tissue set to True

This result was unexpected but also anomalous. Because again the tiles are not being extracted throughout the entirety of the tissue ( which I get at extremely low tissue_percent values)
image

Example 3 - tissue_percent set to 1% with check_tissue set to True

image

I'm not sure why this is occurring, and why I need such low tissue_percent values to be supplied to the RandomTiler extractor to get tiles sampled throughout my whole image. If anyone has experienced this, or has a solution to this issue, please let me know. Any assistance is greatly appreciated.

Thank you for your time, efforts and consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions