<%@ Language=VBScript %><% option explicit %> <% Response.Buffer = FALSE %> <% Response.ContentType = "image/svg+xml" %> <% '--- imitate.asp --- DIM ScreenWidth, ScreenHeight DIM ScreenWidth1, ScreenHeight1 DIM ImageWidth, ImageHeight, ImageWidthHeight DIM timeout, SID DIM msg '-- for errors '' extend the timeout to allow for long files ' timeout = Server.ScriptTimeout '' Response.Write "Initial timeout=" & timeout & "
" ' Server.ScriptTimeout = 1200 ' SID = Request.Cookies("Humble")("SID") ScreenWidth = Request.Cookies("Humble")("ScreenWidth") ScreenHeight = Request.Cookies("Humble")("ScreenHeight") ImageWidth = 600 ImageHeight = 730 ImageWidthHeight = " 0 0 " & ImageWidth & " " & ImageHeight ScreenWidth1 = ScreenWidth ScreenHeight1 = ScreenHeight IF ScreenWidth1 > ((ImageWidth * ScreenHeight) / ImageHeight) * 1.5 THEN ScreenWidth1 = ((ImageWidth * ScreenHeight) / ImageHeight) * 1.5 ELSEIF ScreenHeight1 > ((ImageHeight * ScreenWidth) / ImageWidth) * 1.5 THEN ScreenHeight1 = ((ImageHeight * ScreenWidth) / ImageWidth) * 1.5 END IF ' set it up for a graph bounding box of ImageWidth horizontal by ImageHeight vertical ' the viewBox may have to be larger, to allow for left and right stuff ' baseProfile="basic" ' xmlns="&ns_svg;" ' xmlns:xlink="&ns_xlink;" %> 1.5.0.D1: Imitation at a fitness class, with the instructor on the left <%'-- 5. imitation: horizontal line connecting description with commands -- %> 5. imitation, converting the description to commands: <%' ---- 4. left: inner language description ---- %> 4. description: "The body is straight, the upper right leg is up, the lower right leg points down, both arms are straight back" <%' ---- 6. right: inner language command ---- %> 6. commands: "stand facing the instructor with the body straight, put the weight on the right leg, lift the upper left leg up, let the lower left leg point at the floor, keep both arms straight and angled to the back" <%' ---- 3. left: identifying target components and direction ---- %> 3. identification of instructor's body and limbs, with labels for body, arms, and legs <%' ---- 7. right: identify limb changes required ---- %> 7. identify changes in limb positions <%' ---- 2. left: feature extraction ---- %> 2. vector graphics image <%' ---- 8. right: calculate joint rotations ---- %> 8. calculate changes in joint rotation <%' ---- 1. left: image retrieval ---- %> 1. 2D pixellated image from the eye <%' ---- 7. right: control muscle tension ---- %> 9. calculate changes in muscle tension <%' ---- 1. left: from eye ---- see below ---- %> <%' ---- 7. right: to brain ---- see below ---- %> <%' ---- left: from eye ---- %> <%' ---- right: to brain ---- %>