Replies: 3 comments 6 replies
-
Hi @vikashg , You can use the Thanks. |
Beta Was this translation helpful? Give feedback.
-
The first parameter to monai.transforms.Resize((500, 500))(torch.zeros((1, 1890, 2050))).shape https://docs.monai.io/en/stable/transforms.html#monai.transforms.Resize |
Beta Was this translation helpful? Give feedback.
-
In addition,
I get an output of the size(1, 1, 500, 500), where the original image was of size (1890, 2050, 1). So I had to do this
to get an image of size (1, 500, 500). I just find the way Thanks once again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I have dicom images which when read using the LoadImage() transform gives me an image of format (1, 1890, 2050). It is a 2D image. The first axis is the channel. However, I would like it to reshape it as an image of size (500, 500).
I was wondering if there was a transform to remove the first channel ?
In addition, when I use the
Resize
filter asResize((1, 500, 500))
, it will throw an image of size (1, 1890, 500, 500).I do not understand this Resize function.
Any help would be really appreciated.
Beta Was this translation helpful? Give feedback.
All reactions