How to find the disparity in image processing.

Click For Summary
SUMMARY

This discussion focuses on calculating disparity in image processing using C#. The formula Z = bf/D is highlighted, where Z is the distance to an object, b is the baseline, and D is the disparity. The user seeks clarity on the relationship between disparity and corresponding points in images, as well as the units of disparity. Additionally, the necessity of the essential and fundamental matrices for calculating disparity is questioned, with a preference for a self-developed algorithm without libraries like OpenCV.

PREREQUISITES
  • Understanding of stereo vision concepts
  • Familiarity with disparity calculation in image processing
  • Knowledge of C# programming
  • Basic mathematics related to geometry and distance measurement
NEXT STEPS
  • Research disparity calculation algorithms in C#
  • Learn about corresponding points in stereo images
  • Study the essential and fundamental matrices in computer vision
  • Explore methods to convert focal length from millimeters to pixels
USEFUL FOR

Image processing developers, computer vision researchers, and anyone interested in implementing disparity calculations without relying on external libraries.

ngkamsengpeter
Messages
193
Reaction score
0
Given 2 image taken from 2 camera in canonical position, and the baseline is b, we can find the distance Z of an object from the camera. We know that

Z=bf/D where D is disparity.

I read some books but still have no idea of how to find the disparity using c#. Can someone suggest some mathematics and algorithm for me?
I also read about finding the correspondence point of the image but i have no idea of how the corresponding point related to disparity. And what is the unit of disparity we found using algorithm.Is it in unit of pixel and can we plug directly into above equation to find Z in unit of mm or cm? Or how can we convert focal length into pixel?

I also read about the essential matrix and fundamental matrix, do i really need to find them? because if i can find disparity without using these matrix, then i already can find the distance using formula above. This matrices is very difficult to solve.

My supervisor require me to write the entire algorithm by myself without using any library such as opencv. So someone please give me the mathematics behind the algorithm.
 
Technology news on Phys.org

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 11 ·
Replies
11
Views
3K