fixstars / libSGM

Stereo Semi Global Matching by cuda
Apache License 2.0
623 stars 189 forks source link

Point clouds are calculated by disparity. Why are point clouds in ladder shape? #46

Closed 8BitCatJQW closed 5 years ago

NiuKeke commented 5 years ago

No description provided. Maybe you have forgotten the subpixel param which you should have set true.

8BitCatJQW commented 5 years ago

No description provided. Maybe you have forgotten the subpixel param which you should have set true. Thank you for your reply Here are my Settings, but still with the same problem. struct Parameters { int P1; int P2; float uniqueness; bool subpixel; Parameters(int P1 = 10, int P2 = 120, float uniqueness = 0.95f, bool subpixel = true) : P1(P1), P2(P2), uniqueness(uniqueness), subpixel(subpixel) {} };

sotsuka-fixstars commented 5 years ago

Hi, @8BitCatJQW Thank you for using libSGM.

Where was this issue occurred in? Our sample or your repository? We would apprecite if you tell us more details.

8BitCatJQW commented 5 years ago

Hi, @8BitCatJQW Thank you for using libSGM. Where was this issue occurred in? Our sample or your repository? We would apprecite if you tell us more details. Thank you for your reply。 This is my repository:https://github.com/8BitCatJQW/libsgmIssueDetails Can you tell me your E-mail?I can send you the results of my experiment.

sotsuka-fixstars commented 5 years ago

As https://github.com/8BitCatJQW/libsgmIssueDetails/pull/1 was merged, I will close this issue. If you are faced with anything related this issue, reopen it.

8BitCatJQW commented 5 years ago

As 8BitCatJQW/libsgmIssueDetails#1 was merged, I will close this issue. If you are faced with anything related this issue, reopen it.

ok Thank you very much. It's my fault.

DekaiZhu commented 4 years ago

@sotsuka-fixstars hi, thanks for your code! i use your code to calculate the disparity map from a pair of images from a stereo vision system, and then i use this disparity map to calculate the point cloud but i meet some problem. I am sure that i have enabled the sub-pixel mode (which means that 4 bits in the output disparity value are used for fractional part), but the plane in the generated point cloud still looks like a ladder. 2020-09-22 09-39-09屏幕截图 I have tried to compute the mean value with several depth maps, but this small ladder is still there, so i wanna know if there are some suitable method to reduce this problem :)

sotsuka-fixstars commented 4 years ago

Hi, @DekaiZhu,

a pair of images from a stereo vision system,

Thank you for finding weakness of libSGM. If you don't mind, could you share test dataset? We would like to check it as well.

May be post disparity refinement were needed. Comparisons are following link.

https://github.com/fixstars/libSGM/issues/20#issuecomment-526442077