Inconsistent conversion of VectorImage to numpy #4646
Labels
type:Bug
Inconsistencies or issues which will cause an incorrect result under some or all circumstances
Milestone
In itk Python, if I have a VectorImage of size (10,10) with 2 channels, then converting it to numpy gives me an array of shape (10,10,2). But if I have a VectorImage with 1 channel, it squeezes that channel and gives me a numpy array of (10,10). Shouldn't the expected behavior be (10,10,1). Or is there a way to ensure this?
The text was updated successfully, but these errors were encountered: