-
-
Notifications
You must be signed in to change notification settings - Fork 854
Cleanup mesh usage for sfm #2026
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
Conversation
8fbcd1e to
bb511e8
Compare
bb511e8 to
da5a3c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 19 out of 19 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| value="", | ||
| desc.FloatParam( | ||
| name="framerate", | ||
| label="Framerate", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| label="Framerate", | |
| label="Frame Rate", |
| description="Alembic doesn't export the camera resolutions. \n" | ||
| "Setup the images width for all images, the height will depends on the sensor size ratio.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| description="Alembic doesn't export the camera resolutions. \n" | |
| "Setup the images width for all images, the height will depends on the sensor size ratio.", | |
| description="Alembic does not export camera resolutions. \n" | |
| "Setup the image width for all images, the height will depend on the sensor size ratio.", |
| ), | ||
| desc.FloatParam( | ||
| name="framerate", | ||
| label="Framerate", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| label="Framerate", | |
| label="Frame Rate", |
| description="Alembic frame rate to compute frame id from time", | ||
| value=24.0, | ||
| range=(10.0, 50.0, 1.0), | ||
| enabled=lambda node: pathlib.Path(node.posesFilename.value).suffix == ".abc" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| enabled=lambda node: pathlib.Path(node.posesFilename.value).suffix == ".abc" | |
| enabled=lambda node: pathlib.Path(node.posesFilename.value).suffix.lower() == ".abc" |
| " - EulerZXY: Euler rotation in degrees (Y*X*Z)", | ||
| values=["EulerZXY"], | ||
| value="EulerZXY", | ||
| enabled=lambda node: pathlib.Path(node.posesFilename.value).suffix == ".json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| enabled=lambda node: pathlib.Path(node.posesFilename.value).suffix == ".json" | |
| enabled=lambda node: pathlib.Path(node.posesFilename.value).suffix.lower() == ".json" |
| for (int idRef = 0; idRef < possibleParameters.size(); idRef++) | ||
| { | ||
| const Vec3 & refpt = possibleParameters[idRef].first; | ||
| const Vec3 & refnormal = possibleParameters[idRef].second; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this normal is not used ?
| if (count > bestInliersCount) | ||
| { | ||
| bestInliersCount = count; | ||
| result = landmark; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The score is just the number of times the landmark would be seen as inlier.
In some cases, this score could be the same for different landmark candidates.
For the score, we could sum up the reprojections error (and potentially add an extra value (e.g. _maxError) in case the reprojection error is bigger than the inlier threshold)
|
|
||
|
|
||
| cam->setSensorWidth(happ / (dw / sensorWidthPix)); | ||
| cam->setSensorHeight(vapp / (dh / sensorWidthPix)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since dh = dw * vapp / happ
SensorHeight = vapp / (dh / sensorWidthPix)
SensorHeight = vapp / ( (dw * vapp / happ) / sensorWidthPix)
SensorHeight = happ / (dw / sensorWidthPix)
SensorHeight = SensorWidth
| po::options_description optionalParams("Optional parameters"); | ||
| optionalParams.add_options() | ||
| ("imageWidth", po::value<int>(&imageWidth)->default_value(imageWidth), | ||
| "Alembic doesn't export the camera resolutions. Setup the images width for all images, the height will depends on the sensor size ratio.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "Alembic doesn't export the camera resolutions. Setup the images width for all images, the height will depends on the sensor size ratio.") | |
| "Alembic does not export camera resolutions. Setup the image width for all images, the height will depend on the sensor size ratio.") |
| } | ||
|
|
||
| /** | ||
| * @brief Get a set of poses from a alembic file (assumes the file format is ok). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @brief Get a set of poses from a alembic file (assumes the file format is ok). | |
| * @brief Get a set of poses from an alembic file (assumes the file format is ok). |
eccce63 to
71ccf03
Compare
71ccf03 to
1ffa948
Compare
Uh oh!
There was an error while loading. Please reload this page.