File size: 345 Bytes
d4035c1
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function j = LMginput(annotation, x, y)
%
% given an annotation and pixel coordinates (x,y), it returns the indices
% to the polygons that contain that pixel

if isfield(annotation, 'object')
    Nobjects = length(annotation.object);
    
    for n = 1:Nobjects
        [X,Y,t] = getLMpolygon(annotation.object(n).polygon);
        
    end
end