Skip to content
Merged
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions monai/transforms/utility/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor:
return img


@deprecated(since="0.8", msg_suffix="please use MetaTensor data type and monai.transforms.EnsureChannelFirst instead.")
class AsChannelFirst(Transform):
"""
Change the channel dimension of the image to the first dimension.
Expand Down Expand Up @@ -173,6 +174,7 @@ def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor:
return out


@deprecated(since="0.8", msg_suffix="please use MetaTensor data type and monai.transforms.EnsureChannelFirst instead.")
class AddChannel(Transform):
"""
Adds a 1-length channel dimension to the input image.
Expand Down