Project-MONAI / Project-MONAI/MONAI

WSIReader mirror flip inference map

Open
#6,173 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Pathology/Microscopy
Dominant language
Python
Stars
8.7k
Forks
1.6k
Avg merge
5d 1h
Merged PRs (30d)
20

Description

Describe the bug
I am using WSIReader as either transform or SlidingPatchWSIDataset, the resultant maps are mirror flipped always.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/Project-MONAI/tutorials/blob/main/pathology/hovernet/inference.py
  2. Either convert this line to WSIReader https://github.com/Project-MONAI/tutorials/blob/02911a9bf11934516d4f93f29a46b3acd3dcc58e/pathology/hovernet/inference.py#L69
    or remove it and use SlidingPatchWSIDataset.
  3. Run the script and check the resultant maps.

Expected behavior
It should have the same orientation as the inputed images. The current implementation of the script works well.

CC. @drbeh

Thank you

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with pathology/hovernet/inference.py at the referenced line and reproduce the orientation issue using WSIReader, then compare it with the current implementation and SlidingPatchWSIDataset. Done means the resultant maps have the same orientation as the input images in both paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision, data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.