Software Archive
Read-only legacy content
17061 Discussions

RealSense F200 How to get the width and height data , help !!!

edison_m_
Beginner
608 Views

RealSense F200 How to get the width and height data , help !!!

0 Kudos
7 Replies
edison_m_
Beginner
608 Views

anybody can help me , thanks a lot!!!

0 Kudos
samontab
Valued Contributor II
608 Views
0 Kudos
edison_m_
Beginner
608 Views

samontab wrote:

When you receive an image, get its information:

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/d...

 

Thanks a lot ,  samontab !

I want to know  the width and height data of a box

first , Save the picture by RealSense F200  

and then get the data with PXCMImage , correct or not?

Whether , you can give me brief sample code (C#) , thank you very much!

0 Kudos
samontab
Valued Contributor II
608 Views

When you receive the depth data, you can ask for the corresponding set of X, Y, Z points using the QueryVertices method:

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?queryvertices_pxcprojection.html

If you know which 3D points correspond to each vertex of the box, then you can calculate its width and height by simply calculating the distance between them.

I recommend you to read the user manual, and have a look at the included examples.

0 Kudos
edison_m_
Beginner
608 Views

samontab wrote:

When you receive the depth data, you can ask for the corresponding set of X, Y, Z points using the QueryVertices method:

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/d...

If you know which 3D points correspond to each vertex of the box, then you can calculate its width and height by simply calculating the distance between them.

I recommend you to read the user manual, and have a look at the included examples.

 

hi,samontab:

  

     About the  examples,  whicth  one ?

      thanks !

 

0 Kudos
edison_m_
Beginner
608 Views

samontab wrote:

When you receive the depth data, you can ask for the corresponding set of X, Y, Z points using the QueryVertices method:

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/d...

If you know which 3D points correspond to each vertex of the box, then you can calculate its width and height by simply calculating the distance between them.

I recommend you to read the user manual, and have a look at the included examples.

 

hi,samontab:

 

      I got the 3D points(X, Y, Z point Lists)  By  QueryVertices method

How to calculate its width and height 

very thanks!

0 Kudos
samontab
Valued Contributor II
608 Views

edison m. wrote:

Quote:

samontab wrote:

 

When you receive the depth data, you can ask for the corresponding set of X, Y, Z points using the QueryVertices method:

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/d...

If you know which 3D points correspond to each vertex of the box, then you can calculate its width and height by simply calculating the distance between them.

I recommend you to read the user manual, and have a look at the included examples.

 

 

 

hi,samontab:

 

      I got the 3D points(X, Y, Z point Lists)  By  QueryVertices method

How to calculate its width and height 

very thanks!

Come on man, It's the euclidean distance of two points in 3D.

If you have point A, and B, the distance between them is:

sqrt( sum_i( (B_i - A_i)^2 ) ), for i=1..3

 

0 Kudos
Reply