how to find distance between shoulder coordinates and convert to pixels? RRS feed

  • Question

  • hi,

    I am trying to place a shirt image based on the dimensions of the user. Using general distance formula (sqrt(pow(x2-x1,2) + pow(y2-y1,2) + pow(z2-z1,2))) in 3D space, calculated width between (left - right shoulder) and height between (shoulder - hip center) and the distance obtained is in meters, according to skeleton tracking docs.

    Now how to scale this to image height & width in pixels(generally images height&width will be in format of 250x300)?

    I read about real world coordinates map but not much clear in this regard.

    Please explain breifly if I am going wrong and help how to achieve this?

    Wednesday, January 18, 2012 11:42 AM