diff --git a/monai/transforms/utility/array.py b/monai/transforms/utility/array.py index a28f468cf4..999636d0b9 100644 --- a/monai/transforms/utility/array.py +++ b/monai/transforms/utility/array.py @@ -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. @@ -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.