intel / node-realsense

MIT License
24 stars 21 forks source link

[OR] Final Public Release API change - ObjectCenter data structure #104

Open haoyunfeix opened 7 years ago

haoyunfeix commented 7 years ago

Kenny:

The following data structure is added in Final Public Release version.

@var object_center_data::horiz_margin: the horizontal margin around the computed center coordinates  (in camera space and in mm).
@var object_center_data::vert_margin: the vertical margin around the computed center coordinates (in camera space and in mm).
struct object_center_data
{
  core::point3dF32 coordinates;
  float horiz_margin;
  float vert_margin;
};

In previous versions, the object_center member of localization_data or tracking_data is of the type core::point3dF32, and now they are of type object_center_data, i.e. with 2 more values

  • horiz_margin
  • vert_margin

We should investigate whether to adapt this change in our JavaScript API. Before that, I'll just make it able to build with no JavaScript API changes.

Ningxin:

Thanks for the investigation, @kenny-y . I am fine to support these 2 new properties in next release.