imageDatastore initialization with null

조회 수: 13 (최근 30일)
Deepak Sivadas
Deepak Sivadas 2019년 1월 3일
답변: Kaniska Samanta 2020년 4월 28일
How is imageDatastore initialised?
Say an array can be initialised as A = zeros(1,3);
How a datastore is initialised?

답변 (3개)

Sachin Meena
Sachin Meena 2019년 1월 7일
ImageDatastore variables are usually initialized as mentioned in the documentation here https://www.mathworks.com/help/matlab/ref/matlab.io.datastore.imagedatastore.html
Could you please tell you use case and why you wish to initialize it as null?

Deepak Sivadas
Deepak Sivadas 2019년 1월 8일
Could you please tell you use case and why you wish to initialize it as null?
Ans:- To create a new imagedatastore (just like a new folder) to which I can selectively add on specific images after some operations performed(in matlab).
  댓글 수: 1
Sachin Meena
Sachin Meena 2019년 1월 10일
That use case is not supported as it would require recreating the datastore on every image addition.
If you wish to do so, you can create the datastore with one image. Programatically add an image to the location od your datastore, and then recreate the datastore from that location.

댓글을 달려면 로그인하십시오.


Kaniska Samanta
Kaniska Samanta 2020년 4월 28일
Try the following syntax...
imgs=imageDatastore({});
I have used it in MatlabR2019a. Hope it will work for you.

카테고리

Help CenterFile Exchange에서 Datastore에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by