disparity: Add a "max-disparity" property
Submitted by ji0..@..ng.com
Link to original bug (#749260)
Description
Created attachment 303253
add a "max-disparity" property
The disparity element based on OpenCV is used for calculating disparities between two input images, but the current element only supports inputs whose maximum disparity is smaller than 16/32/64. (This fixed value depends on the algorithm type)
For supporting high-resolution images with larger disparity, I added a new property, "max-disparity". It can control a disparity size the element handles.
You can check it using the following command.
gst-launch-1.0 multifilesrc location=../L0000000000.png ! pngdec ! videoconvert ! video/x-raw,colorimetry="1:1:0:0" ! disp0.sink_right multifilesrc location=../R0000000000.png ! pngdec ! videoconvert ! video/x-raw,colorimetry="1:1:0:0" ! disp0.sink_left disparity max-disparity=64 name=disp0 method=sbm disp0.src ! videoconvert ! xvimagesink sync=false
Patch 303253, "add a "max-disparity" property":
add_max_disparity.diff
Version: 1.x