Skip to content
Advertisement

Tag: zooming

Expanding/Zooming in a numpy array

I have the following array: I want to expand it to this array: So I’m using the following command: based on this question and answer here Resampling a numpy array representing an image. However, what I’m getting is this: I want the expansion to be exactly by 3, or whatever the zoom factor is, but currently it’s different for each

Advertisement