Can I speed up the Image Labeler by skipping the thumbnails?

4 Ansichten (letzte 30 Tage)
The imageLabeler app goes through the whole imageDatastore once at startup in order to create thumbnails of the images. This causes the startup to take a long time, especially if the imageDatastore has many files and/or each read operation takes a long time.
Is it possible to skip the thumbnail creation, or have it run some sort of faster preview function for the thumbnail creation?

Akzeptierte Antwort

Matthew Fall
Matthew Fall am 6 Jul. 2022
I was able to do this by using dbstack in my imageDatastore readFcn to check
ismember('HorizontalImageStrip.createThumbnail', {dbstack().name})
This allowed me to check when the Image Labeler was calling my imageDatastore in order to create thumbnails. I then had my readFcn do something different (specifically, I made it return an image of the file name)

Weitere Antworten (0)

Kategorien

Mehr zu Computer Vision Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by