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.

Categories

Find more on Mathematics and Optimization in Help Center and File Exchange

Products

Release

R2021b

Asked:

on 18 Nov 2022

Answered:

on 18 Jan 2023

Community Treasure Hunt

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

Start Hunting!