10. draw
Draws the device box and its local coordinate axes
draw()
draw(sel)
draw(sel,txt)
draw(sel,txt,I)
draw(sel,txt,I,x,y)
draw(sel,txt,I,x,y,s)
draw(sel,txt,I,x,y,s,c)
Inputs / outputs
- sel =
- [] (empty)
- 'cam'|'proj'; Device behavior.
- {'cam'|'proj', idx} (Array); Device behavior and pose.
- txt = [] or caption text.
- I = [] or Image to be transformed
- If sel = 'cam', I is transformed from (ref. plane) to (device surface).
- If sel = 'proj', I is transformed from (device surface) to (ref. plane).
- x and y = [] or axes of the input image.
- s = [] or scale of the device box.
- c = [] or color:
- 'c' green (Default for camera)
- 'p' red (Default for projector)
- 'd' blue (Default for device)
- 'y' yellow
- '#XXXXXX' Hexadecimal RGB