Skip to content

Add ensure_channel_first option to LoadImaged #3795

@Nic-Ma

Description

@Nic-Ma

Is your feature request related to a problem? Please describe.
After offline discussion with @wyli and @holgerroth , seems for most user cases, need to call LoadImaged + EnsureChannelFirstd together and we came across the channel dim issue multiple times.
Would be nice to add an option in LoadImaged to ensure channel first.
I suggest to make default to False , as we suppose every transform to do single function, same as the resample in ImageWriters.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions