fixstars / libSGM

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

I do not understand what if the min disparity of my input data is higher than 128.According to the code , it won't get correct disparity image. #34

Open NiuKeke opened 5 years ago

NiuKeke commented 5 years ago

I do not understand what if the min disparity of my input data is higher than 128.According to the code , it won't get correct disparity image.

NiuKeke commented 5 years ago

I think it should be processed in the pyramid firstly,so it will have a base disparity for each pixel.Then,it will be correct when it comes to the big images.

sotsuka-fixstars commented 5 years ago

@NiuKeke Thank you for letting us know this issue!

Indeed the default libSGM can handle 64 or 128 as MAX_DISPARITY. If we want to handle 128 or higher disparities, input image size should be reduced just as you said like https://github.com/fixstars/libSGM/issues/24#issuecomment-455118014. We can also increase MAX_DISPARITY to 256 by referring the following issue: https://github.com/fixstars/libSGM/issues/11

Sincerely,

NiuKeke commented 5 years ago

@NiuKeke Thank you for letting us know this issue!

Indeed the default libSGM can handle 64 or 128 as MAX_DISPARITY. If we want to handle 128 or higher disparities, input image size should be reduced just as you said like #24 (comment). We can also increase MAX_DISPARITY to 256 by referring the following issue: #11

Sincerely,

I got it ,thank you very much.