Load an image from its absolute path in Matlab also if is not included in working directory -
i have absolute path of image myabspath
d:\myimages\venus\surface\im0012.jpg
i have tried
im=imread(myabspath);
but doesn't work because seems imread
accept name of file in current working directory.
i have tried
f=load(myabspath);
but error "argument must contain string".
seems pretty basilar operation unfortunately haven't found solution.
edit seems problem caused fact myabspath
is not regular string cell
, have tried use myabspath=cellstr(myabspath)
continue receive error tell me myabspath
not string, if call
display(myabspath)
i see right path. solution?
if have cell
contains string path, don't need conversion, enough access content of cell using {index}
.
eg if have first element use myabspath{1}
imread
able read images absolute paths
Comments
Post a Comment