フィルターのクリア

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

6 ビュー (過去 30 日間)
Matthew Fall
Matthew Fall 2022 年 5 月 20 日
回答済み: Matthew Fall 2022 年 7 月 6 日
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?

採用された回答

Matthew Fall
Matthew Fall 2022 年 7 月 6 日
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)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by