Skip to content
Discussion options

You must be logged in to vote

You could specify channel_dim in EnsureChannelFirst .

channel_dim: This argument can be used to specify the original channel dimension (integer) of the input array.
It overrides the `original_channel_dim` from provided MetaTensor input.
If the input array doesn't have a channel dim, this value should be ``'no_channel'``.
If this is set to `None`, this class relies on `img` or `meta_dict` to provide the channel dimension.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JuAnYoO
Comment options

@KumoLiu
Comment options

Answer selected by wyli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants