imageDatastore function error reading image files

1 次查看(过去 30 天)
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?

回答(1 个)

Walter Roberson
Walter Roberson 2020-8-31
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.

类别

Help CenterFile Exchange 中查找有关 Biomedical Imaging 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by