Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transformCoordinates2d() Results from View to CPU image #906

Open
alexs7 opened this issue Oct 3, 2019 · 0 comments

Comments

@alexs7
Copy link

commented Oct 3, 2019

I can get 2D - 3D correspondences from the ARCore world points to the view.

I am using a Google Pixel 2 that has a 1440 by 2880 resolution. My 2D points are in that coordinate system.

I want the same points transformed in the CPU image.

There are 2 issues here:

  • The CPU image (640 by 480) is rotated 90 degrees counter-clock wise.
  • The function transformCoordinates2d() I am using is:

frame.transformCoordinates2d(Coordinates2d.VIEW, xyVIEW, Coordinates2d.IMAGE_PIXELS, xyCPU);

From the VIEW to the IMAGE_PIXELS (CPU).

Is the input to the transformCoordinates2d() function [x,y,xy ... ] ? And the output the same ?

When I then try to plot the points on the CPU image I get random values.

Also Coordinates2d VIEW says in the docs that it is "Android view, display-rotated, (x,y) in pixels.". So does that mean it takes into account the 90 degrees ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.