Access Image Name within ImageLabeler's Automation Algorithm
1 次查看(过去 30 天)
显示 更早的评论
I am currently trying to write an automation algorithm for a object segmentation project that I am working on.
I am using the imageLabeler app to annotate my desired objects and I'm planning to use the automation algorithm feaure to speed up this process.
Currently, I am trying to access the image's name that I am annotating in imageLabeler from the automation algorithm and I don't know how.
Here's what I am refering to:
I am trying to access within vision.labeler.AutomationAlgorithm. Which is defined in the following way:
classdef MyCustomAlgorithm < vision.labeler.AutomationAlgorithm
properties(Constant)
Name = '';
Description = '';
UserDirections = {};
end
properties
%------------------------------------------------------------------
% Place your code here
%------------------------------------------------------------------
end
methods
function isValid = checkLabelDefinition(algObj, labelDef)
disp(['Executing checkLabelDefinition on label definition "' labelDef.Name '"'])
%--------------------------------------------------------------
% Place your code here
%--------------------------------------------------------------
end
function isReady = checkSetup(algObj)
disp('Executing checkSetup')
%--------------------------------------------------------------
% Place your code here
%--------------------------------------------------------------
end
function settingsDialog(algObj)
disp('Executing settingsDialog')
%--------------------------------------------------------------
% Place your code here
%--------------------------------------------------------------
end
end
methods
function initialize(algObj, I)
disp('Executing initialize on the first image frame')
%--------------------------------------------------------------
% Place your code here
%--------------------------------------------------------------
end
function autoLabels = run(algObj, I)
disp('Executing run on image frame')
%--------------------------------------------------------------
% Place your code here
%--------------------------------------------------------------
end
function terminate(algObj)
disp('Executing terminate')
%--------------------------------------------------------------
% Place your code here
%--------------------------------------------------------------
end
end
end
I know how to access the imageLabeler's GroundTruth and then access all the image names and labels. However, I'm not sure how to access the current image's name.
I would really appreciate it if anyone could let me know how I can access the current image name within this algorithm.
Thank You
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!