Skip to content

PatchGenerator - Whole Slide image - Get position of the patch (x,y) #209

@LouisStefanuto

Description

@LouisStefanuto

Is your feature request related to a problem? Please describe.
No pb. Just looking for a feature.
I am generating patches from a TIFF image.

Describe the solution you'd like
I would like to be able to get the pixel position of the patch, let's say the (x,y) of the top left pixel
Ideally it would be something like:

for patch in fast.DataStream(patchGenerator):
  x, y = patch.x, patch.y

Do you have an idea of how it can/should be implemented?
Currently I have access to the path number

for i, patch in enumerate(fast.DataStream(patchGenerator)):

I could compute the position using the stride, tile size and padding, but I am hoping it is already implemented somewhere.

Are you willing to contribute to the implementation of this feature
N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions