
Access Image Name within ImageLabeler's Automation Algorithm
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
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 comentarios
Respuestas (1)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

