elerac / structuredlight

Generate and Decode structured light. Binary, Gray, XOR, Ramp, Phase-Shifting, Stripe.
MIT License
138 stars 28 forks source link

Decoding stereo images? #4

Closed metobom closed 3 years ago

metobom commented 3 years ago

Is there a way to decode stereo images?

elerac commented 3 years ago

Hi @metobom !

Does "stereo images" mean images taken by only two (or more) camera pairs?

If so, I'm afraid I can't help you. Structure-light systems mainly assume projector and camera pairs (a.k.a. projector-camera or pro-cam). So, if you want to decode images only from the camera, this repository may not be suitable for your purpose.

If not, and you mean projector-camera systems. Let me know more details of your purpose and system configuration.

metobom commented 3 years ago

I meant stereo but actually I am trying to measure parts of an object in x, y, and z, where the camera is the origin. For example, I want to know how far the leg of a scanned action figure and what is the size of leg in cm. Can achieve that with projector and camera setup?

elerac commented 3 years ago

@metobom

Can achieve that with projector and camera setup?

Yes, you will.

It looks that the projector-camera system is one of the good choices for your purpose. However, as you may know, these 3D measurements technique require complex processes (e.g., calibration, acquire correspondence, calculate 3D points). So, it is hard to create the pro-cam system from the ground up.

Therefore, if you want to do just 3D measurement, I recommend using a commercial 3D scanner (such as Intel RealSense, Desktop 3D Scanner, or iPhone with 3D scan app).

Or, if you want to create an original scanner that is research-oriented and/or customizable, this repository will help you.

metobom commented 3 years ago

I like to create one myself. I don't know how can I triangulate points with a projector and camera. Do you have any sources to read?

elerac commented 3 years ago

Yes!

Nayar's videos are good for a first step.

Gkioulekas's course releases great slides for computational photography.

This SIGGRAPH course finds out practical ways.