# \#sfm

**URL:** https://forum.opencv.org/tag/sfm/14.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [SfM + Wheeld Robot's Odometry: scene resonstruction issues](https://forum.opencv.org/t/sfm-wheeld-robots-odometry-scene-resonstruction-issues/24165)

<div class="topic-metadata">

**Author:** [@eyecaster](https://forum.opencv.org/u/eyecaster)\
**Replies:** 0\
**Last updated:** [October 28, 2025, 7:49pm UTC](https://forum.opencv.org/t/sfm-wheeld-robots-odometry-scene-resonstruction-issues/24165 "2025-10-28T19:49:47Z")

</div>

Hello. My goal is to have perform structure from motion via a wheeled robot equipped with a monocular camera. For now, the robot’s simulated in IsaacSim, the image, camera info, as well as odometry are sent through ROS…

---

## [Questions on sfm::triangulate points](https://forum.opencv.org/t/questions-on-sfm-triangulate-points/20273)

<div class="topic-metadata">

**Author:** [@mfehl365](https://forum.opencv.org/u/mfehl365)\
**Replies:** 0\
**Last updated:** [February 19, 2025, 6:57am UTC](https://forum.opencv.org/t/questions-on-sfm-triangulate-points/20273 "2025-02-19T06:57:18Z")

</div>

Hello all, I’m pretty new to the topic of computer vision but am diving in by trying to create my own VIO algorithm based on the Fast-MSCKF implementation published here (\[2210.08117\] An Improved Multi-State Constraint …

---

## [Help configuring CMake to build with contrib modules](https://forum.opencv.org/t/help-configuring-cmake-to-build-with-contrib-modules/18460)

<div class="topic-metadata">

**Author:** [@zabsy](https://forum.opencv.org/u/zabsy)\
**Replies:** 2\
**Last updated:** [August 9, 2024, 3:44pm UTC](https://forum.opencv.org/t/help-configuring-cmake-to-build-with-contrib-modules/18460 "2024-08-09T15:44:23Z")

</div>

Hello, I’m building OpenCV from source on Ubuntu 22.04.4 in order to use the SFM module, following the instructions here exactly, except replacing “4.x” with “4.10.0” After getting to the configuration step and running…

---

## [Opencv contrib SFM CERES ERROR!](https://forum.opencv.org/t/opencv-contrib-sfm-ceres-error/17134)

<div class="topic-metadata">

**Author:** [@fuc](https://forum.opencv.org/u/fuc)\
**Replies:** 1\
**Last updated:** [April 3, 2024, 8:53am UTC](https://forum.opencv.org/t/opencv-contrib-sfm-ceres-error/17134 "2024-04-03T08:53:36Z")

</div>

There is a problem occurring during the installation process of opencv-contrib. Ceres-solver is clearly installed. However, errors related to Ceres persistently occur. This is result of find ceres. root@b1201fc87717:…

---

## [Bundle Adjustment](https://forum.opencv.org/t/bundle-adjustment/15709)

<div class="topic-metadata">

**Author:** [@Stephano](https://forum.opencv.org/u/Stephano)\
**Replies:** 0\
**Last updated:** [December 2, 2023, 2:46pm UTC](https://forum.opencv.org/t/bundle-adjustment/15709 "2023-12-02T14:46:27Z")

</div>

Hi, I am not sure if this question relates to OpenCV or not but can someone point me in the right direction for implementing Bundle Adjustment. I am working on a SFM implementation and I have to recalculate camera projec…

---

## [I have multiple stereo image of an object i want to 3d reconstruct of that object](https://forum.opencv.org/t/i-have-multiple-stereo-image-of-an-object-i-want-to-3d-reconstruct-of-that-object/9080)

<div class="topic-metadata">

**Author:** [@Vikash\_Poddar](https://forum.opencv.org/u/Vikash_Poddar)\
**Replies:** 2\
**Last updated:** [November 16, 2023, 1:06pm UTC](https://forum.opencv.org/t/i-have-multiple-stereo-image-of-an-object-i-want-to-3d-reconstruct-of-that-object/9080 "2023-11-16T13:06:53Z")

</div>

I have multiple stereo image of an object i want to 3d reconstruct of that object using python.

---

## [Incremental structure from motion (adding N views to an existing two-view reconstruction)](https://forum.opencv.org/t/incremental-structure-from-motion-adding-n-views-to-an-existing-two-view-reconstruction/15535)

<div class="topic-metadata">

**Author:** [@Stephano](https://forum.opencv.org/u/Stephano)\
**Replies:** 0\
**Last updated:** [November 15, 2023, 10:55pm UTC](https://forum.opencv.org/t/incremental-structure-from-motion-adding-n-views-to-an-existing-two-view-reconstruction/15535 "2023-11-15T22:55:26Z")

</div>

I am currently developing a project based on the structure from motion pipeline. My approach is as follows. For each image within a sequential set of images, I extract their features using SIFT. I group the images in pai…

---

## [How can I retexture a cloud points from 3D reconstruction by sfm](https://forum.opencv.org/t/how-can-i-retexture-a-cloud-points-from-3d-reconstruction-by-sfm/14480)

<div class="topic-metadata">

**Author:** [@tsiorifinidy](https://forum.opencv.org/u/tsiorifinidy)\
**Replies:** 3\
**Last updated:** [September 12, 2023, 6:41am UTC](https://forum.opencv.org/t/how-can-i-retexture-a-cloud-points-from-3d-reconstruction-by-sfm/14480 "2023-09-12T06:41:06Z")

</div>

Hi, I recently took a look at the 3D reconstruction using SFM on sparses reconstructions tutorial. I can compile the example and get visualization of the cloud points with Viz as suggested by the tutorial.It works fine…

---

## [Ground truth 3D joints estimation using triangulate points](https://forum.opencv.org/t/ground-truth-3d-joints-estimation-using-triangulate-points/13575)

<div class="topic-metadata">

**Author:** [@pas](https://forum.opencv.org/u/pas)\
**Replies:** 1\
**Last updated:** [June 18, 2023, 3:10pm UTC](https://forum.opencv.org/t/ground-truth-3d-joints-estimation-using-triangulate-points/13575 "2023-06-18T15:10:31Z")

</div>

Hello. I have been trying to triangulate points (joints) from multiple cameras in order estimate, let’s say the ground truth 3D position of the joints in space. I have used both the triangulatePoints function from open…

---

## [Using fundamentalFromProjections](https://forum.opencv.org/t/using-fundamentalfromprojections/12748)

<div class="topic-metadata">

**Author:** [@omkarkabadagi](https://forum.opencv.org/u/omkarkabadagi)\
**Replies:** 0\
**Last updated:** [April 10, 2023, 12:22pm UTC](https://forum.opencv.org/t/using-fundamentalfromprojections/12748 "2023-04-10T12:22:55Z")

</div>

I am trying to use the function fundamentalFromProjections to get the fundamental matrix for my two-camera setup and use it to find the correspondence of objects between the images. I already have the projection matrix f…

---

## [Why I get a totally wrong result when using function "findFundamentalMat"?](https://forum.opencv.org/t/why-i-get-a-totally-wrong-result-when-using-function-findfundamentalmat/11312)

<div class="topic-metadata">

**Author:** [@A.I.E](https://forum.opencv.org/u/A.I.E)\
**Replies:** 0\
**Last updated:** [December 14, 2022, 8:54am UTC](https://forum.opencv.org/t/why-i-get-a-totally-wrong-result-when-using-function-findfundamentalmat/11312 "2022-12-14T08:54:20Z")

</div>

I am working on recover camera pose, and I find function “findFundamentalMat” is meeting my demand. I use two pictures to test the function and I find the result is totally different from the groundtruth. the groundtru…

---

## [SFM - Estimated 3D points from reconstruction are obscenely high](https://forum.opencv.org/t/sfm-estimated-3d-points-from-reconstruction-are-obscenely-high/10032)

<div class="topic-metadata">

**Author:** [@JDBones](https://forum.opencv.org/u/JDBones)\
**Replies:** 6\
**Last updated:** [August 31, 2022, 10:58pm UTC](https://forum.opencv.org/t/sfm-estimated-3d-points-from-reconstruction-are-obscenely-high/10032 "2022-08-31T22:58:53Z")

</div>

I’m getting obscenely high 3D point values that were estimated in SFM module. To start, I am attempting to estimate the 3D reconstruction of the 2D track points only in this tunnel video that is about 5 seconds long. Th…

---

## [How to compile contrib modules with build\_xcframework.py that require additional CMake arguments](https://forum.opencv.org/t/how-to-compile-contrib-modules-with-build-xcframework-py-that-require-additional-cmake-arguments/9903)

<div class="topic-metadata">

**Author:** [@JDBones](https://forum.opencv.org/u/JDBones)\
**Replies:** 0\
**Last updated:** [August 19, 2022, 7:17pm UTC](https://forum.opencv.org/t/how-to-compile-contrib-modules-with-build-xcframework-py-that-require-additional-cmake-arguments/9903 "2022-08-19T19:17:56Z")

</div>

Greetings. I am attempting to build OpenCV 4.6.0 as a framework file in macOS. Normally, I simply use the build\_xcframework.py or build\_framework.py files that came with the source under the apple/osx folders due to its…

---

## [Issues with Configuring/Building OpenCV 4.6.0 with SFM contrib Module in macOS m1](https://forum.opencv.org/t/issues-with-configuring-building-opencv-4-6-0-with-sfm-contrib-module-in-macos-m1/9897)

<div class="topic-metadata">

**Author:** [@JDBones](https://forum.opencv.org/u/JDBones)\
**Replies:** 2\
**Last updated:** [August 19, 2022, 6:01pm UTC](https://forum.opencv.org/t/issues-with-configuring-building-opencv-4-6-0-with-sfm-contrib-module-in-macos-m1/9897 "2022-08-19T18:01:28Z")

</div>

Hi. I am attempting to build OpenCV 4.6.0 with SFM module only for macOS arm64 architecture . Per the installation page for the SFM module, the dependencies are of the following: Eigen 3.2.2 or later Ceres glog gflags …

---

## [Estimating actual translation from unit vector from \`recoverPose\`](https://forum.opencv.org/t/estimating-actual-translation-from-unit-vector-from-recoverpose/8529)

<div class="topic-metadata">

**Author:** [@Salih\_MSA](https://forum.opencv.org/u/Salih_MSA)\
**Replies:** 0\
**Last updated:** [April 24, 2022, 2:10pm UTC](https://forum.opencv.org/t/estimating-actual-translation-from-unit-vector-from-recoverpose/8529 "2022-04-24T14:10:07Z")

</div>

Hi all, I am very desperate for some help on this problem: I am implementing a monocular VSLAM system and have currently gotten up to the stages of matching features and descriptors between images, determining the essen…

---

## [Linker errors on OpenCV 4.5.5 SFM module](https://forum.opencv.org/t/linker-errors-on-opencv-4-5-5-sfm-module/8404)

<div class="topic-metadata">

**Author:** [@fabmilan](https://forum.opencv.org/u/fabmilan)\
**Replies:** 4\
**Last updated:** [April 16, 2022, 4:59pm UTC](https://forum.opencv.org/t/linker-errors-on-opencv-4-5-5-sfm-module/8404 "2022-04-16T16:59:19Z")

</div>

OpenCV =\> 4.5.5 (latest) Operating System / Platform =\> Ubuntu 20.04.4 LTS 64 bits on WSL2 for Windows 10 64 bits Compiler =\> g++ 11.1 (Ubuntu 11.1.0-1ubuntu1~20.04) Build System: CMake 3.23rc5, Unix Makefiles generator …

---

## [Question about triangulatePoints function from sfm module (on opencv\_contrib)](https://forum.opencv.org/t/question-about-triangulatepoints-function-from-sfm-module-on-opencv-contrib/5788)

<div class="topic-metadata">

**Author:** [@cleprt](https://forum.opencv.org/u/cleprt)\
**Replies:** 0\
**Last updated:** [October 22, 2021, 8:29am UTC](https://forum.opencv.org/t/question-about-triangulatepoints-function-from-sfm-module-on-opencv-contrib/5788 "2021-10-22T08:29:45Z")

</div>

Hi everyone, I was wondering why the cv::sfm::triangulatePoints() function handles the case numberOfViews=2 and numberOfViews \> 2 differently ? The first call the function “cv::sfm::triangulateDLT()” while the second “…

---

## [Camera positional tracking](https://forum.opencv.org/t/camera-positional-tracking/3765)

<div class="topic-metadata">

**Author:** [@ash711](https://forum.opencv.org/u/ash711)\
**Replies:** 5\
**Last updated:** [June 24, 2021, 11:46am UTC](https://forum.opencv.org/t/camera-positional-tracking/3765 "2021-06-24T11:46:22Z")

</div>

I am working on a project where I need to detect the position of the camera. so for example when the camera moves I should be able to detect the movement and plot it somewhere, openGL for instance. ZED cameras already h…

---

## [Why isn't triangulate points (for any arbitrary number of views and not just two views) part of the official opencv python bindings?](https://forum.opencv.org/t/why-isnt-triangulate-points-for-any-arbitrary-number-of-views-and-not-just-two-views-part-of-the-official-opencv-python-bindings/2631)

<div class="topic-metadata">

**Author:** [@juan](https://forum.opencv.org/u/juan)\
**Replies:** 6\
**Last updated:** [April 6, 2021, 8:16pm UTC](https://forum.opencv.org/t/why-isnt-triangulate-points-for-any-arbitrary-number-of-views-and-not-just-two-views-part-of-the-official-opencv-python-bindings/2631 "2021-04-06T20:16:39Z")

</div>

In the official opencv python bindings (which you get by executing pip install opencv-python), you only get cv2.triangulatePoints which only triangulates a 2d point from two views and not for any arbitrary number of view…

---

## [Module 'cv2.cv2' has no attribute 'sfm'](https://forum.opencv.org/t/module-cv2-cv2-has-no-attribute-sfm/2620)

<div class="topic-metadata">

**Author:** [@juan](https://forum.opencv.org/u/juan)\
**Replies:** 1\
**Last updated:** [April 6, 2021, 11:04am UTC](https://forum.opencv.org/t/module-cv2-cv2-has-no-attribute-sfm/2620 "2021-04-06T11:04:34Z")

</div>

Unable to use sfm with opencv-python. import cv2 help(cv2.sfm) I get the following error: Traceback (most recent call last): File "\<stdin\>", line 1, in \<module\> AttributeError: module 'cv2.cv2' has no attribute 'sfm…

---

## [Object Tracking from a video and Getting 3-D Coordinates of objects](https://forum.opencv.org/t/object-tracking-from-a-video-and-getting-3-d-coordinates-of-objects/2336)

<div class="topic-metadata">

**Author:** [@Mukesh\_Malani](https://forum.opencv.org/u/Mukesh_Malani)\
**Replies:** 8\
**Last updated:** [March 25, 2021, 1:56am UTC](https://forum.opencv.org/t/object-tracking-from-a-video-and-getting-3-d-coordinates-of-objects/2336 "2021-03-25T01:56:02Z")

</div>

Hello everyone, I am trying to get 3D coordinates from a video feed as I am new to OpenCV I have the idea to get 2D coordinates X and Y but struggling to get 3D coordinates. Can somebody guide me on how can I get 3D co…
