Skip to content

ToPIL tranformer #1638

@bhashemian

Description

@bhashemian

Is your feature request related to a problem? Please describe.
Although MONAI transformations work with numpy, there are some torchvision transformations that works only with PIL images. However, there is not any transformer in MONAI to convert torch.tensor or numpy.ndarray to PIL.

Also since we have MONAI TorchVisionD which enable using torchvision transformation in MONAI workflow, this ToPIL is an obvious missing component.

Describe the solution you'd like
We need a ToPIL transformer that can simply transform torch.tensor or numpy.ndarray to PIL.

Metadata

Metadata

Assignees

Labels

Module: transformdata transforms for preprocessing and postprocessing.enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions