imageDatastore initialization with null

How is imageDatastore initialised?
Say an array can be initialised as A = zeros(1,3);
How a datastore is initialised?

Respuestas (3)

Sachin Meena
Sachin Meena el 7 de En. de 2019

0 votos

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 el 8 de En. de 2019

0 votos

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 comentario

Sachin Meena
Sachin Meena el 10 de En. de 2019
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.

Iniciar sesión para comentar.

Kaniska Samanta
Kaniska Samanta el 28 de Abr. de 2020

0 votos

Try the following syntax...
imgs=imageDatastore({});
I have used it in MatlabR2019a. Hope it will work for you.

Etiquetas

Preguntada:

el 3 de En. de 2019

Respondida:

el 28 de Abr. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by