Skip to content

Conversation

@Nic-Ma
Copy link
Contributor

@Nic-Ma Nic-Ma commented Apr 4, 2022

Fixes #4060 .

Description

This PR added PatchIter and PatchIterd transform according to user's feedback.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • 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 --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@Nic-Ma Nic-Ma marked this pull request as ready for review April 5, 2022 06:44
@Nic-Ma Nic-Ma changed the title [WIP] 4060 Add PatchIter and PatchIterd transform 4060 Add PatchIter and PatchIterd transform Apr 5, 2022
@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Apr 5, 2022

/black

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Apr 5, 2022

/build

@Nic-Ma Nic-Ma requested review from ericspod, rijobro and wyli April 5, 2022 06:45
Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

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

thanks this looks ok although I think 1. PatchIter's docstring change and docs/source/data.rst changes are unnecessary, and 2. it might be useful to include the original image size and start_pos in each returned patch dictionary, so that it's possible to (partially) reconstruct the original image from the patches.

@Nic-Ma Nic-Ma force-pushed the 4060-add-patchiterd branch from aa24eb7 to 769a4c3 Compare April 5, 2022 12:14
@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Apr 5, 2022

/build

@Nic-Ma Nic-Ma merged commit c51d85e into Project-MONAI:dev Apr 5, 2022
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.

Add a dict version PatchIterd

4 participants