Skip to content

Split On Grid #2879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Sep 3, 2021
Merged

Split On Grid #2879

merged 14 commits into from
Sep 3, 2021

Conversation

bhashemian
Copy link
Member

@bhashemian bhashemian commented Sep 1, 2021

Description

One part of digital pathology pipeline is to split the extracted region/patch into sub-patches on a grid (for instance 3x3). This PR implement SplitOnGrid to enable that for 2D histopathology images.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@bhashemian bhashemian requested a review from Nic-Ma September 1, 2021 22:25
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
@bhashemian bhashemian requested a review from Nic-Ma September 2, 2021 23:29
@bhashemian bhashemian enabled auto-merge (squash) September 2, 2021 23:29
@bhashemian
Copy link
Member Author

@Nic-Ma, this PR is ready with all the changes that you suggested. Thanks

@bhashemian bhashemian disabled auto-merge September 3, 2021 13:22
@bhashemian
Copy link
Member Author

@Nic-Ma I made some changes. Can you check if it's what you had in mind for thread safety. Thanks

Copy link
Contributor

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now.
@wyli do you have any more comments?

Thanks.

@bhashemian bhashemian merged commit 245ab94 into Project-MONAI:dev Sep 3, 2021
@bhashemian bhashemian deleted the grid-split branch September 3, 2021 15:48
wyli pushed a commit to Borda/MONAI that referenced this pull request Sep 6, 2021
* Implement SplitOnGrid

Signed-off-by: Behrooz <[email protected]>

* Implement dictionary-based SplitOnGrid

Signed-off-by: Behrooz <[email protected]>

* Update inits

Signed-off-by: Behrooz <[email protected]>

* Update docs

Signed-off-by: Behrooz <[email protected]>

* Change imports

Signed-off-by: Behrooz <[email protected]>

* Update input logic in SplitOnGrid)

Signed-off-by: Behrooz <[email protected]>

* Add unittests for SplitOnGrid and SplitOnGridDict

Signed-off-by: Behrooz <[email protected]>

* Sort import

Signed-off-by: Behrooz <[email protected]>

* Remove imports

Signed-off-by: Behrooz <[email protected]>

* Address comments

Signed-off-by: Behrooz <[email protected]>

* Remove optional

Signed-off-by: Behrooz <[email protected]>

* Address thread safety issues

Signed-off-by: Behrooz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants