Matching: Split x and y disparity
Hello everyone,
I have a 3D image and I want to mark some pixels on the left image (to outline an object) and then find it programmatically on the right image. So I thought about creating a disparity map and just adding the corresponding values to my pixels' coordinates.
So far, I ran the SBM_Sample.cpp and it works fine, but I need the disparity to be separated in x and y directions. Is there an algorithm that does this for me?
Cheers
Alex
the disparity is a 1 channel image. what do you expect to "split" there, exactly ?
Disparity should be calculated in x and y direction, because cameras aren't guaranteed to be aligned with pixel precision, so the y coordinates of any object might be different in both images. The OpenCV disparity is just the difference in x, right? Or is it sqrt(x²+y²)?