www.gusucode.com > datastoreio工具箱 matlab源码程序 > datastoreio/readDatastoreImage.m
function data = readDatastoreImage(filename) %READDATASTOREIMAGE Read file formats supported by IMREAD. % % See also matlab.io.datastore.ImageDatastore, datastore, % mapreduce. % Copyright 2015 The MathWorks, Inc. % Turn off warning backtrace before calling imread onState = warning('off', 'backtrace'); c = onCleanup(@() warning(onState)); data = imread(filename);