Skip to content
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

Move metatensor support into dev branch (crop/pad) #4548

Merged
merged 60 commits into from
Jun 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
42a45e0
Merge pull request #19 from Project-MONAI/master
Nic-Ma Feb 1, 2021
cd16a13
Merge pull request #32 from Project-MONAI/master
Nic-Ma Feb 24, 2021
6f87afd
Merge pull request #180 from Project-MONAI/dev
Nic-Ma Jul 22, 2021
f398298
Merge pull request #214 from Project-MONAI/dev
Nic-Ma Sep 8, 2021
ec463d6
Merge pull request #397 from Project-MONAI/dev
Nic-Ma Apr 4, 2022
9c13c88
Merge pull request #424 from Project-MONAI/dev
Nic-Ma Jun 21, 2022
577bb65
[DLMED] adapt Pad transform for MetaTensor
Nic-Ma Jun 21, 2022
0c0c32d
[DLMED] format code
Nic-Ma Jun 21, 2022
000f035
Merge branch 'dev' into metatensor-croppad
Nic-Ma Jun 22, 2022
63e36b6
[DLMED] update inverse and spatial_pad
Nic-Ma Jun 22, 2022
8f9814b
[DLMED] update border pad
Nic-Ma Jun 22, 2022
549fe2a
[DLMED] update divisible pad
Nic-Ma Jun 22, 2022
382b3e2
[DLMED] update spatial crop
Nic-Ma Jun 22, 2022
55b9101
Merge branch 'dev' into metatensor-croppad
Nic-Ma Jun 22, 2022
6fe4132
Merge branch 'dev' into metatensor-croppad
Nic-Ma Jun 22, 2022
d3962e4
[DLMED] make thread safe
Nic-Ma Jun 22, 2022
57f635a
[DLMED] update CenterSpatialCrop
Nic-Ma Jun 22, 2022
41c38b0
[DLMED] update scale crop
Nic-Ma Jun 22, 2022
ad85387
[DLMED] fix flake8
Nic-Ma Jun 22, 2022
647b239
[DLMED] update random spatial crop
Nic-Ma Jun 23, 2022
3c84236
[DLMED] update random scale crop
Nic-Ma Jun 23, 2022
0e1a322
[DLMED] update random spatial crop samples
Nic-Ma Jun 23, 2022
b6c4811
[DLMED] adjust Pad design
Nic-Ma Jun 23, 2022
e432e03
[DLMED] update CropForeground
Nic-Ma Jun 23, 2022
0807a10
[DLMED] update random weighted crop
Nic-Ma Jun 23, 2022
2ca683a
Merge branch 'dev' into metatensor-croppad
Nic-Ma Jun 23, 2022
6706d07
[DLMED] update RandCropPosNeg
Nic-Ma Jun 23, 2022
d7fa644
[DLMED] update rand crop by label classes
Nic-Ma Jun 23, 2022
0278d7c
[DLMED] update ResizeCropOrPad
Nic-Ma Jun 23, 2022
1a50f68
[DLMED] restore numpy pad
Nic-Ma Jun 23, 2022
d97d6af
[DLMED] update dict spatial pad
Nic-Ma Jun 24, 2022
ab1c7ca
[DLMED] update border pad and divisible pad
Nic-Ma Jun 24, 2022
e9f995e
[DLMED] update spatial crop dict
Nic-Ma Jun 24, 2022
08d926c
[DLMED] update center spatial crop
Nic-Ma Jun 24, 2022
d006038
[DLMED] update rand scale crop dict
Nic-Ma Jun 24, 2022
aadc19d
[DLMED] update rand spatial crop samples dict
Nic-Ma Jun 24, 2022
4b4548b
[DLMED] update crop foreground dict
Nic-Ma Jun 24, 2022
2027dfb
[DLMED] update rand weighted crop dict
Nic-Ma Jun 24, 2022
30edb96
[DLMED] update pos neg crop dict
Nic-Ma Jun 24, 2022
c261745
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 24, 2022
ffe858c
[DLMED] update crop by labels dict
Nic-Ma Jun 24, 2022
4377f17
Merge branch 'metatensor-croppad' of https://github.com/Nic-Ma/MONAI …
Nic-Ma Jun 24, 2022
94464dc
[DLMED] update resize with pad or crop dict
Nic-Ma Jun 24, 2022
1a7cdd9
Merge branch 'integration-metatensor' into metatensor-croppad
Nic-Ma Jun 27, 2022
33e5093
[DLMED] update format
Nic-Ma Jun 27, 2022
52d1818
[DLMED] fix all the mypy errors
Nic-Ma Jun 27, 2022
e3a718d
Merge branch 'integration-metatensor' into metatensor-croppad
Nic-Ma Jun 28, 2022
da5195b
[DLMED] add crop / pad base tests
Nic-Ma Jun 28, 2022
7a573fa
[DLMED] update border pad test
Nic-Ma Jun 28, 2022
e8de8e3
[DLMED] update spatial crop
Nic-Ma Jun 28, 2022
a91cfa3
[DLMED] update pad transforms
Nic-Ma Jun 28, 2022
bf10855
[DLMED] update samples crop
Nic-Ma Jun 28, 2022
c43a87d
[DLMED] update crop tests
Nic-Ma Jun 28, 2022
e65c609
[DLMED] update according to comments
Nic-Ma Jun 28, 2022
65bda07
[DLMED] update according to comments
Nic-Ma Jun 28, 2022
5514c69
[DLMED] update according to comments
Nic-Ma Jun 28, 2022
f8e2379
[DLMED] update according to comments
Nic-Ma Jun 29, 2022
ca7e11d
[DLMED] add test for deepcopy
Nic-Ma Jun 29, 2022
b0ff943
[DLMED] fix typo
Nic-Ma Jun 29, 2022
bb37a2b
[DLMED] update docs
Nic-Ma Jun 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/source/transforms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ Crop and Pad
:members:
:special-members: __call__

`Crop`
""""""
.. autoclass:: Crop
:members:
:special-members: __call__

`SpatialCrop`
"""""""""""""
.. image:: https://github.com/Project-MONAI/DocImages/raw/main/transforms/SpatialCrop.png
Expand Down Expand Up @@ -995,6 +1001,12 @@ Dictionary Transforms
Crop and Pad (Dict)
^^^^^^^^^^^^^^^^^^^

`Padd`
""""""
.. autoclass:: Padd
:members:
:special-members: __call__

`SpatialPadd`
"""""""""""""
.. image:: https://github.com/Project-MONAI/DocImages/raw/main/transforms/SpatialPadd.png
Expand All @@ -1019,6 +1031,18 @@ Crop and Pad (Dict)
:members:
:special-members: __call__

`Cropd`
"""""""
.. autoclass:: Cropd
:members:
:special-members: __call__

`RandCropd`
"""""""""""
.. autoclass:: RandCropd
:members:
:special-members: __call__

`SpatialCropd`
""""""""""""""
.. image:: https://github.com/Project-MONAI/DocImages/raw/main/transforms/SpatialCropd.png
Expand Down
14 changes: 13 additions & 1 deletion monai/transforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
BoundingRect,
CenterScaleCrop,
CenterSpatialCrop,
Crop,
CropForeground,
DivisiblePad,
Pad,
Expand Down Expand Up @@ -43,19 +44,30 @@
CenterSpatialCropd,
CenterSpatialCropD,
CenterSpatialCropDict,
Cropd,
CropD,
CropDict,
CropForegroundd,
CropForegroundD,
CropForegroundDict,
DivisiblePadd,
DivisiblePadD,
DivisiblePadDict,
PadModeSequence,
Padd,
PadD,
PadDict,
RandCropd,
RandCropD,
RandCropDict,
RandCropByLabelClassesd,
RandCropByLabelClassesD,
RandCropByLabelClassesDict,
RandCropByPosNegLabeld,
RandCropByPosNegLabelD,
RandCropByPosNegLabelDict,
RandCropd,
RandCropD,
RandCropDict,
RandScaleCropd,
RandScaleCropD,
RandScaleCropDict,
Expand Down
Loading