public void process ( Input left , Input right , Disparity disparity ) { // initialize data structures InputSanityCheck . checkSameShape ( left , right , disparity ) ; if ( maxDisparity > left . width - 2 * radiusX ) throw new RuntimeException ( "The maximum disparity is too large for this image size: max size " + ( left . width - 2 * radiusX ) ) ; lengthHorizontal = left . width * rangeDisparity ; _process ( left , right , disparity ) ; }
Computes disparity between two stereo images