Skip to content

Enhance Documentation of LoadImage to Clarify Image Transposition #4862

Closed
@ericspod

Description

@ericspod

Is your feature request related to a problem? Please describe.
Image data loaded from non-medical 2D formats like jpeg are transposed by the ImageReader class loading them, this is because these images are WH order and typical Pytorch ordering is HW. It's not clear to users that this is happening and can be really confused when using the loaders with natural images or photographs, or even MedNIST data as compared to loading with PIL directly.

Describe the solution you'd like
Documentation for LoadImage should be updated to state that this occurs for a number of non-medical specific file formats.

Describe alternatives you've considered
Tilting my head to the side any time I visualise an image.

Additional context
I had forgotten this was intended behaviour and wasn't helped by documentation.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions