-
Notifications
You must be signed in to change notification settings - Fork 19.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImageDataGenerator for 3D images #2939
Comments
|
But it would be reasonably easy to reimplement for 3D data a subset of the operations done by |
@Hawk31 hey mate, I just customised the Keras' ImageDataGenerator for medical image analysis applications, i.e. 3D Dicom slices (10,32,32,32,1). It might help with your problem. https://github.com/dhuy228/augmented-volumetric-image-generator/blob/master/generator.py |
could you give an example how how your calling your custom ImageDataGenerator im trying to do a similar thing using .nii files generated from a number of dicom slices the shape of the array of patches in (1000,32,32,32) (num patches, x, y, z) and i re shaped it to be (1000, 32, 32, 32, 1) the script seems augmenting my image array properly but it dosn't augment the labels accordingly im nt sure what i need to do to fix this |
Hi,
Does the
ImageDataGenerator
work on 3d images (5 dimensional array (n_samples, channels, x, y, z)) as well? I looked at the source code and I'm not sure if this is the case.The text was updated successfully, but these errors were encountered: