Code covered by the BSD License
-
myLabel(varargin)
myLabel - image sequencies labeling tool
-
Action
p = round(get(handles.Image_Axes,'CurrentPoint'));
-
Button_Released
stat('Button_Released')
-
Mouse_Moved
cursor.prev_x = cursor.x;
-
Update_Labels_Layer
-
change_label(old_label,new_la...
-
check_boundaries(x1, y1, x2, ...
check boundaries
-
cut_object(im,bbox,object_id,...
-
cut_slices(im, mask, object_i...
figure(2)
-
stat(s)
-
View all files
from
myLabel 0.04
by Nikolay Chumerin
Image labeling tool for Matlab.
|
| check_boundaries(x1, y1, x2, y2, im_width, im_height) |
function [x1 y1 x2 y2] = check_boundaries(x1, y1, x2, y2, im_width, im_height)
% check boundaries
x1 = ceil(x1); x2 = floor(x2);
y1 = ceil(y1); y2 = floor(y2);
if x1<1, x1 = 1; end
if y1<1, y1 = 1; end
if x2>im_width, x2 = im_width; end
if y2>im_height, y2 = im_height; end
|
|
Contact us at files@mathworks.com