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

Opencv format Camera Intrinsic #72

Closed
lqql2012 opened this issue Jul 4, 2024 · 4 comments
Closed

Opencv format Camera Intrinsic #72

lqql2012 opened this issue Jul 4, 2024 · 4 comments

Comments

@lqql2012
Copy link

lqql2012 commented Jul 4, 2024

Thanks for your great job , As answered in question #44 , the intrinsic parameter fx of the dataset is 886.8,The format written in opencv may be [[ 886.8,0,512],[0, 886.8, 384],[0, 0, 1]] ,How is 886.81 calculated?

@mikeroberts3000
Copy link
Collaborator

I don't understand the question. Can you re-phrase it in a more technically precise way? Where does 886.81 come from? Where do you see that number?

@lqql2012
Copy link
Author

lqql2012 commented Jul 5, 2024

I don't understand the question. Can you re-phrase it in a more technically precise way? Where does 886.81 come from? Where do you see that number?

I saw this data here: #44 (comment) .I need to train a model across multiple datasets ,the camera intrinsic parameters of other datasets are in pixels , such as NYUv2 、DIODE and so on.
Their focal length is calculated as : focal length [pixels] = focal length [mm] / sensor pixel size [µm/pixels]

@lqql2012
Copy link
Author

lqql2012 commented Jul 5, 2024

@mikeroberts3000
Copy link
Collaborator

mikeroberts3000 commented Jul 5, 2024

You still haven't stated your question in enough technical detail for anyone to help you.

The only concrete question you have asked so far is in your first post, where you asked about a specific scalar value that doesn't appear anywhere in our code. Your second post doesn't ask a question, and doesn't provide any meaningful clarifications. And your third post simply links to an already-answered Stack Overflow question with no other context.

This isn't helpful. You will get more effective help on GitHub and in other venues if you learn to ask questions more clearly. For example, if your question is actually the same as the one you linked to on Stack Overflow, then why doesn't the accepted answer on Stack Overflow work for you? My main suggestion would be to slow down, and write out your question in a clear methodical way. Your goal is to make your question make sense to a reader that isn't familiar with exactly the same mathematical notation and mathematical conventions as you.

With all of that being said, we provide the field-of-view for every Hypersim scene, so you can use basic trigonometry to calculate focal length in whatever units you want. Think of the image plane as the base of a pyramid, think of the field-of-view as the angle at the top of the pyramid, and think of the focal length as the height of the pyramid. Once you have chosen the size of the pyramid's base, there is only one possible height for the pyramid that matches the angle at the top.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants