1:12 Y.Yin et al. basis vectors w1,w2 represent the p-axis and yp-axis,respectively.With p-axis and yp-axis, we further calculate the zp-axis as w3=wi x w2,to establish the principal-plane coordinate system (principal-frame for short).Here,w1,w2,w3 are described in human-frame.While in the principal-frame,we can represent zp-axis,yp-axis,zp-axis as the unit vector(1,0,0)T, (0,1,0)T,(0,0,1)T,respectively.By comparing w1,w2,w3 in human-frame and xp-axis, Up-axis,Zp-axis in principal-frame,we can get the rotation matrix Rhp,which transforms coordinates from human-frame to principal-frame,as shown in Eq.(5)and Eq.(6). 1 00 1 (5) 01 w 7 (6) With the rotation matrix Rhp,we then calculate the projection of each axis of human- frame in principal plane.For convenience,we use ui,iE[1,3]to represent Th-axis,Uh-axis, Zh-axis,respectively.For ui,its coordinates in the principal-frame is qi,where gi=Rhpui. Then,we get the projection v;of qi in the principal plane with M,i.e.,setting the coordinate value in Zp-axis to zero,as shown in Eq.(7). ใ100] vi=Mqi= 010 qi (7) 000 As shown in Fig.10(b),Fig.11(b),Fig.12(b),Fig.13(b)and Fig.14(b),we represent the projected axis of h-axis,yh-axis,zh-axis (of human-frame)in the principal plane with black,green,fuchsia dashed line,respectively. 4.2.2 Reference Plane Detection.In Fig.15,we show how to utilize the length of the projected axis to detect the reference coordinate plane.Intuitively,if the projection of axis wi has shortest length in the principal plane,it indicates that the coordinate plane perpendicular to wi has the highest probability of being parallel to the principal plane,and should be selected as the reference coordinate plane for contour calibration.In the following,we will provide the proof for this intuition. As shown in Fig.15,the plane ABCD and the plane EFGH intersect on line CD(i.e., EF).For simplification,we use Op to represent one of the three axes (i.e.,Zh-axis,yh axis,Zh-axis),the plane ABCD represents the corresponding plane perpendicular to O1P (i.e.,yh-Zh plane,Th-zh plane,Th-yh plane),while EFGH represents the principal plane.To obtain the projection of OP,we first extend the line OP to intersect with EFGH at P,then O1P'LCD,because O1P L ABCD.Besides,we make the line O1IโฅCD,then we get OIโฅCD and O1P'โฅCD,thus CDโฅโณOIP'.From point O1,we make the line 010,where 01O1 IP'.Then,we obtain that 010LCD and O1OLIP/,thus 010L EFGH.Similarly,from point P,we make the line PO2,where PO2 LIP'and PO2//010.Therefore,002 is the projection of O1P in the principal plane,0102=01P].sin 01. n regard to01and0g,01+02=90°๏ผ2+0g=90°๏ผthus01=s,where 03 means the plane included angle between ABCD and EFGH.If 03(or 01)is equal to zero,then the plane ABCD is parallel to the plane EFGH,and ABCD will be selected as reference coordinate plane,in what the projected 2D contour is similar to that in principal plane in high degree. ACM Trans.Sensor Netw.,Vol.1,No.1,Article 1.Publication date:January 2019.1:12 Y. Yin et al. basis vectors ๐1, ๐2 represent the ๐ฅ๐-axis and ๐ฆ๐-axis, respectively. With ๐ฅ๐-axis and ๐ฆ๐-axis, we further calculate the ๐ง๐-axis as ๐3 = ๐1 × ๐2, to establish the principal-plane coordinate system (principal-frame for short). Here, ๐1, ๐2, ๐3 are described in human-frame. While in the principal-frame, we can represent ๐ฅ๐-axis, ๐ฆ๐-axis, ๐ง๐-axis as the unit vector (1, 0, 0)๐ , (0, 1, 0)๐ , (0, 0, 1)๐ , respectively. By comparing ๐1, ๐2, ๐3 in human-frame and ๐ฅ๐-axis, ๐ฆ๐-axis, ๐ง๐-axis in principal-frame, we can get the rotation matrix ๐
โ๐, which transforms coordinates from human-frame to principal-frame, as shown in Eq. (5) and Eq. (6). โก โฃ 1 0 0 0 1 0 0 0 1 โค โฆ = ๐
โ๐ โก โฃ ๐ ๐ 1 ๐ ๐ 2 ๐ ๐ 3 โค โฆ (5) ๐
โ๐ = โก โฃ ๐ ๐ 1 ๐ ๐ 2 ๐ ๐ 3 โค โฆ โ1 (6) With the rotation matrix ๐
โ๐, we then calculate the projection of each axis of human๏ฟพframe in principal plane. For convenience, we use ๐ข๐, ๐ โ [1, 3] to represent ๐ฅโ-axis, ๐ฆโ-axis, ๐งโ-axis, respectively. For ๐ข๐, its coordinates in the principal-frame is ๐๐, where ๐๐ = ๐
โ๐๐ข๐. Then, we get the projection ๐ฃ๐ of ๐๐ in the principal plane with ๐, i.e., setting the coordinate value in ๐ง๐-axis to zero, as shown in Eq. (7). ๐ฃ๐ = ๐ ๐๐ = โก โฃ 1 0 0 0 1 0 0 0 0 โค โฆ ๐๐ (7) As shown in Fig. 10(b), Fig. 11(b), Fig. 12(b), Fig. 13(b) and Fig. 14(b), we represent the projected axis of ๐ฅโ-axis, ๐ฆโ-axis, ๐งโ-axis (of human-frame) in the principal plane with black, green, fuchsia dashed line, respectively. 4.2.2 Reference Plane Detection. In Fig. 15, we show how to utilize the length of the projected axis to detect the reference coordinate plane. Intuitively, if the projection of axis ๐๐ has shortest length in the principal plane, it indicates that the coordinate plane perpendicular to ๐๐ has the highest probability of being parallel to the principal plane, and should be selected as the reference coordinate plane for contour calibration. In the following, we will provide the proof for this intuition. As shown in Fig. 15, the plane ๐ด๐ต๐ถ๐ท and the plane ๐ธ๐น ๐บ๐ป intersect on line ๐ถ๐ท (i.e., ๐ธ๐น). For simplification, we use โโโ๐1๐ to represent one of the three axes (i.e., ๐ฅโ-axis, ๐ฆโ- axis, ๐งโ-axis), the plane ๐ด๐ต๐ถ๐ท represents the corresponding plane perpendicular to โโโ๐1๐ (i.e., ๐ฆโ โ ๐งโ plane, ๐ฅโ โ ๐งโ plane, ๐ฅโ โ ๐ฆโ plane), while ๐ธ๐น ๐บ๐ป represents the principal plane. To obtain the projection of ๐1๐, we first extend the line ๐1๐ to intersect with ๐ธ๐น ๐บ๐ป at ๐ โฒ , then ๐1๐ โฒ โฅ ๐ถ๐ท, because ๐1๐ โฅ ๐ด๐ต๐ถ๐ท. Besides, we make the line ๐1๐ผ โฅ ๐ถ๐ท, then we get ๐1๐ผ โฅ ๐ถ๐ท and ๐1๐ โฒ โฅ ๐ถ๐ท, thus ๐ถ๐ท โฅ โณ๐1๐ผ๐โฒ . From point ๐1, we make the line ๐1๐โฒ 1 , where ๐1๐โฒ 1 โฅ ๐ผ๐โฒ . Then, we obtain that ๐1๐โฒ 1 โฅ ๐ถ๐ท and ๐1๐โฒ 1 โฅ ๐ผ๐โฒ , thus ๐1๐โฒ 1 โฅ ๐ธ๐น ๐บ๐ป. Similarly, from point ๐, we make the line ๐ ๐2, where ๐ ๐2 โฅ ๐ผ๐โฒ and ๐ ๐2//๐1๐โฒ 1 . Therefore, ๐โฒ 1๐2 is the projection of ๐1๐ in the principal plane, |๐โฒ 1๐2| = |๐1๐| · sin ๐1. In regard to ๐1 and ๐3, ๐1+๐2 = 90โ , ๐2+๐3 = 90โ , thus ๐1 = ๐3, where ๐3 means the plane included angle between ๐ด๐ต๐ถ๐ท and ๐ธ๐น ๐บ๐ป. If ๐3 (or ๐1) is equal to zero, then the plane ๐ด๐ต๐ถ๐ท is parallel to the plane ๐ธ๐น ๐บ๐ป, and ๐ด๐ต๐ถ๐ท will be selected as reference coordinate plane, in what the projected 2D contour is similar to that in principal plane in high degree. ACM Trans. Sensor Netw., Vol. 1, No. 1, Article 1. Publication date: January 2019