To use, make sure the files are in your path.
collect_data('/Users/astorer/Dev/matrect/img','alex')
The first argument is the path to the image files.
The second argument is the name of the person drawing rectangles. Their data will be stored in, e.g., alex.mat
.
c
-- Press to change box from transparent to coloredr
-- Press and hold to use mouse to rotate boxx
-- Press and hold to scale x direction of boxy
-- Press and hold to scale y direction of box0
-- Press to reset to initial position1
-- Press and hold to move one side of the box in the x direction2
-- Press and hold to move one side of the box in the x direction3
-- Press and hold to move one side of the box in the y direction4
-- Press and hold to move one side of the box in the y directionn
-- Press to toggle between quit and continue when figure is closed- Use the mouse to drag the box
Data is saved in the same location as the images, as alex.dat
, or
whichever name was provided to the collect_data
function. This
contains a structure called s
, which looks like this:
id: 'alex'
lastimg: 'SURFBOARDS-COVER.jpg'
data: {[1x1 struct] [1x1 struct]}
The data within s
is a single rectangle:
>> s.data{1}
ans =
img: '1965lookingintoscience1.jpg'
XData: [4x1 double]
YData: [4x1 double]
time: '28-Mar-2014 16:02:58'