Skip to content

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.

Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
@bhashemian bhashemian requested a review from Nic-Ma September 1, 2021 22:25
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
@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 <3968947+drbeh@users.noreply.github.com>

* Implement dictionary-based SplitOnGrid

Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>

* Update inits

Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>

* Update docs

Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>

* Change imports

Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>

* Update input logic in SplitOnGrid)

Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>

* Add unittests for SplitOnGrid and SplitOnGridDict

Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>

* Sort import

Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>

* Remove imports

Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>

* Address comments

Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>

* Remove optional

Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>

* Address thread safety issues

Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
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