Image Browser Error Receive for Image Data Store

5 views (last 30 days)
I have an image datastore. I receive the following meesage when I want to use the ImageBrowser.
Thanks in advance for your help.
++
Error in executing callback registered with ViewModel:
Error using images.internal.app.imageBrowser.web.ImageBrowserCore/warnIfLabelsPresent
Unable to resolve the name 'tool.App'.
++

Answers (1)

TED MOSBY
TED MOSBY on 4 Jun 2025
Hi @Fatih,
From the limited information provided, you may try the following hacks to resolve the error, it these doesn't resolve the error, then please share the code files and commands along with the datastore so that I can reproduce the issue at my end.
If you have a folder called +tool somewhere ahead of the MathWorks root folders on the MATLAB path, MATLAB looks there first and therefore never sees the internal tool.App class. This is the most common reason for the message. A quick check:
>> which -all tool.App
If the command lists a file inside your own project (or simply returns “tool.App not found”) you may have a path-ordering problem.
You can then try:
restoredefaultpath
rehash toolboxcache
Now try opening the "ImageBrowser" again:
imageBrowser(fullfile(matlabroot,'toolbox','images','imdata'));
If it still does not open, please do a clean installation of the latest version of MATLAB as the there might be damaged or incomplete installation. Refer to this MATLAB answer:
Hope this helps! Feel free to reply here if you still face issues.
  1 Comment
Fatih
Fatih on 4 Jun 2025
Thanks a lot for your help. Actually the image browser is working. When I want to view an image datastore (e.g. SnowDataStore, imageDatastorefy etc.), it returns this error.
Here is the code for my project. The last part works and shoes photos one-by-one. Thanks for your help in advance.
++
clc; clear all; close all;
folderLocation = uigetdir("C:\Users\fatih.yigit\Drive'ım\Matlab\Coursera\Image Processing for Engineering and Science\Computer Vision for Engineering and Science\Data (1)\Data\MathWorks Images\Roadside Ground Cover");
%%First Part
imgDataStorefy = imageDatastore(folderLocation,"IncludeSubfolders",true,"LabelSource","foldernames");
[groundCoverTrain groundCoverTest] = splitEachLabel(imgDataStorefy, 0.85, "randomized");
[a b] = size(groundCoverTrain.Labels(groundCoverTrain.Labels == "Snow"));
a
%%Second Part
photo1 = imread("Data/MathWorks Images/Roadside Ground Cover/No Snow/RoadsideA_1.jpg");
img2hsv = rgb2hsv(photo1);
averageSaturationimg2hsv = mean(img2hsv(:, :, 2),"all");
stDSaturationimg2hsv = std(img2hsv(:, :, 2),1, "all");
%%Third Part
groundCoverTableTrain = extractSnowFeatures(groundCoverTrain);
snowVisible = groundCoverTableTrain((groundCoverTableTrain.label == "Snow"), :);
noSnowVisible = groundCoverTableTrain((groundCoverTableTrain.label == "No Snow"), :);
gscatter(snowVisible.intensityAvg, snowVisible.intensitySTD, [] ,"b",".");
hold on
gscatter(noSnowVisible.intensityAvg, noSnowVisible.intensitySTD,[], "r",".");
hold off
xlabel("Mean Saturation")
ylabel("St. Dev. Saturation")
legend("Snow","No Snow")
%For Graded Exam 2
groundCoverTableTest = extractSnowFeatures(groundCoverTest);
%%Creating an ImageDataStore for only Snows
allFiles = imgDataStorefy.Files
allLabels = imgDataStorefy.Labels
snowFiles = allFiles(allLabels=="Snow");
x2 = imageDatastore(snowFiles, Labels=allLabels(allLabels=="Snow"))
%%
snowFileNames = snowVisible.imgName;
[a1, name1, ext1] = fileparts(snowFileNames);
[a1, name2, ext2] = fileparts(imgDataStorefy.Files);
[~, idx] = ismember(name1, name2);
snowDataStore = subset(imgDataStorefy, idx(idx ~= 0));
datastoreName = input("Please Select the DataStore- ") %%snowDataStore
while hasdata(datastoreName)
img = read(datastoreName) ;
pause(2)% read image from datastore
figure, imshow(img); % creates a new window for each image
end
++

Sign in to comment.

Categories

Find more on Image Processing and Computer Vision in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!