3D volumes
Olivier222 opened this issue · 4 comments
Olivier222 commented
Can this be used for 3D volumes? Or is it limited to 2D images?
dovahcrow commented
No, volumes are not support while I believe the source code can be adapt to any higher dimension.
vdivakar commented
For 3D input volume, you can create patches as follows:
patches = patchify(image, (2,2,3), step=1) # patch shape [2,2,3]For merging 3D patches, I've extended the source code & created a pull request.
dovahcrow commented
@Oliver222 Hi I merged the great patch from @vdivakar. Could you please have a try on that?
dovahcrow commented
I think it is fixed. Issue closed.