Access Image Name within ImageLabeler's Automation Algorithm

조회 수: 1 (최근 30일)
Farshad Bolouri
Farshad Bolouri 2022년 3월 5일
답변: yanqi liu 2022년 3월 7일
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

답변 (1개)

yanqi liu
yanqi liu 2022년 3월 7일
yes,sir,may be view
>> edit AutoLaneMarking
>>

카테고리

Help CenterFile Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by