Clear Filters
Clear Filters

imageDatastore function error reading image files

1 view (last 30 days)
I have dataset with *.mhd data file format and want to read the dataset with imageDatastore the I face the next error
Error using imageDatastore (line 116)
Input folders or files contain non-standard file extensions.
Use FileExtensions Name-Value pair to include the non-standard file extensions.
Are there any help?

Answers (1)

Walter Roberson
Walter Roberson on 31 Aug 2020
Add the option 'FileExtensions', '.mhd'
You will also need to add a ReadFcn property and supply a function handle to a function that reads the mhd file. imageDatastore normally uses imread() to read files, and imread() does not support .mhd files.

Categories

Find more on Biomedical Imaging in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!