How to input 3D image into "randomPat​chExtracti​onDatastor​e"?

The 3D image is in (x,y,z) format with a name "image3d" in a "the3dimage.mat" file. The image file names are correct in the datastore. How to define the "ReadFcn" to input the 3d image into the "transform" as well as the "randomPatchExtractionDatastore"?
Thank you for your help.

产品

版本

R2021b

提问:

2022-11-18

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by