/external/opencv/cv/src/ |
H A D | cvstereobm.cpp | 184 int ndisp = state->numberOfDisparities; local 186 int lofs = MAX(ndisp - 1 + mindisp, 0); 187 int rofs = -MIN(ndisp - 1 + mindisp, 0); 189 int width1 = width - rofs - ndisp + 1; 204 int cstep = (height + dy0 + dy1)*ndisp; 210 hsad0 = (ushort*)cvAlignPtr(sad + ndisp + 1 + dy0*ndisp); 211 htext = (int*)cvAlignPtr((int*)(hsad0 + (height+dy1)*ndisp) + wsz2 + 2); 212 cbuf0 = (uchar*)cvAlignPtr(htext + height + wsz2 + 2 + dy0*ndisp); 218 memset( hsad0 - dy0*ndisp, 392 int ndisp = state->numberOfDisparities; local 560 int wsz, ndisp, mindisp, lofs, rofs; local [all...] |
/external/opencv3/modules/cudastereo/src/ |
H A D | util.cpp | 93 void drawColorDisp_gpu(const PtrStepSzb& src, const PtrStepSzb& dst, int ndisp, const cudaStream_t& stream); 94 void drawColorDisp_gpu(const PtrStepSz<short>& src, const PtrStepSzb& dst, int ndisp, const cudaStream_t& stream); 100 void drawColorDisp_caller(const GpuMat& src, OutputArray _dst, int ndisp, const cudaStream_t& stream) 107 drawColorDisp_gpu((PtrStepSz<T>)src, dst, ndisp, stream); 111 void cv::cuda::drawColorDisp(InputArray _src, OutputArray dst, int ndisp, Stream& stream) 113 typedef void (*drawColorDisp_caller_t)(const GpuMat& src, OutputArray dst, int ndisp, const cudaStream_t& stream); 120 drawColorDisp_callers[src.type()](src, dst, ndisp, StreamAccessor::getStream(stream));
|
H A D | disparity_bilateral_filter.cpp | 61 DispBilateralFilterImpl(int ndisp, int radius, int iters); 127 DispBilateralFilterImpl::DispBilateralFilterImpl(int ndisp, int radius, int iters) : argument 128 ndisp_(ndisp), radius_(radius), iters_(iters), 149 void disp_bilateral_filter_operator(int ndisp, int radius, int iters, float edge_threshold, float max_disc_threshold, argument 156 const short edge_disc = std::max<short>(short(1), short(ndisp * edge_threshold + 0.5)); 157 const short max_disc = short(ndisp * max_disc_threshold + 0.5); 172 typedef void (*bilateral_filter_operator_t)(int ndisp, int radius, int iters, float edge_threshold, float max_disc_threshold, 192 Ptr<cuda::DisparityBilateralFilter> cv::cuda::createDisparityBilateralFilter(int ndisp, int radius, int iters) argument 194 return makePtr<DispBilateralFilterImpl>(ndisp, radius, iters);
|
H A D | stereobp.cpp | 60 void load_constants(int ndisp, float max_data_term, float data_weight, float max_disc_term, float disc_single_jump); 81 StereoBPImpl(int ndisp, int iters, int levels, int msg_type); 152 StereoBPImpl::StereoBPImpl(int ndisp, int iters, int levels, int msg_type) : 153 ndisp_(ndisp), iters_(iters), levels_(levels), 362 Ptr<cuda::StereoBeliefPropagation> cv::cuda::createStereoBeliefPropagation(int ndisp, int iters, int levels, int msg_type) 364 return makePtr<StereoBPImpl>(ndisp, iters, levels, msg_type); 367 void cv::cuda::StereoBeliefPropagation::estimateRecommendedParams(int width, int height, int& ndisp, int& iters, int& levels) 369 ndisp = width / 4; 370 if ((ndisp & 1) != 0) 371 ndisp [all...] |
H A D | stereocsbp.cpp | 63 StereoCSBPImpl(int ndisp, int iters, int levels, int nr_plane, int msg_type); 137 StereoCSBPImpl::StereoCSBPImpl(int ndisp, int iters, int levels, int nr_plane, int msg_type) : argument 138 min_disp_th_(0), ndisp_(ndisp), iters_(iters), levels_(levels), 337 Ptr<cuda::StereoConstantSpaceBP> cv::cuda::createStereoConstantSpaceBP(int ndisp, int iters, int levels, int nr_plane, int msg_type) argument 339 return makePtr<StereoCSBPImpl>(ndisp, iters, levels, nr_plane, msg_type); 342 void cv::cuda::StereoConstantSpaceBP::estimateRecommendedParams(int width, int height, int& ndisp, int& iters, int& levels, int& nr_plane) argument 344 ndisp = (int) ((float) width / 3.14f); 345 if ((ndisp & 1) != 0) 346 ndisp++; 354 nr_plane = (int) ((float) ndisp / st [all...] |
H A D | stereobm.cpp | 58 void stereoBM_CUDA(const PtrStepSzb& left, const PtrStepSzb& right, const PtrStepSzb& disp, int ndisp, int winsz, const PtrStepSz<unsigned int>& minSSD_buf, cudaStream_t & stream);
|
/external/opencv3/samples/gpu/ |
H A D | stereo_match.cpp | 35 int ndisp; // Max disparity + 1 member in struct:Params 82 << "\t--ndisp <number> # number of disparity levels\n"; 112 ndisp = 64; 132 else if (string(argv[i]) == "--ndisp") p.ndisp = atoi(argv[++i]); 176 bm = cuda::createStereoBM(p.ndisp); 177 bp = cuda::createStereoBeliefPropagation(p.ndisp); 178 csbp = cv::cuda::createStereoConstantSpaceBP(p.ndisp); 228 << "ndisp: " << p.ndisp << end [all...] |
/external/opencv3/modules/cudastereo/include/opencv2/ |
H A D | cudastereo.hpp | 103 \f[width \_ step \cdot height \cdot ndisp \cdot 4 \cdot (1 + 0.25)\f] 107 \f[width\_step \cdot height \cdot ndisp \cdot (1 + 0.25 + 0.0625 + \dotsm + \frac{1}{4^{levels}})\f] 139 Size(\<image columns\>\*ndisp, \<image rows\>) size. 174 /** @brief Uses a heuristic method to compute the recommended parameters ( ndisp, iters and levels ) for the 177 static void estimateRecommendedParams(int width, int height, int& ndisp, int& iters, int& levels); 182 @param ndisp Number of disparities. 188 createStereoBeliefPropagation(int ndisp = 64, int iters = 5, int levels = 5, int msg_type = CV_32F); 226 /** @brief Uses a heuristic method to compute parameters (ndisp, iters, levelsand nrplane) for the specified 229 static void estimateRecommendedParams(int width, int height, int& ndisp, int& iters, int& levels, int& nr_plane); 234 @param ndisp Numbe [all...] |
/external/opencv3/modules/cudastereo/src/cuda/ |
H A D | util.cu | 105 __device__ unsigned int cvtPixel(T d, int ndisp, float S = 1, float V = 1) 107 unsigned int H = ((ndisp-d) * 240)/ndisp; 166 __global__ void drawColorDisp(uchar* disp, size_t disp_step, uchar* out_image, size_t out_step, int width, int height, int ndisp) 176 res.x = cvtPixel(d4.x, ndisp); 177 res.y = cvtPixel(d4.y, ndisp); 178 res.z = cvtPixel(d4.z, ndisp); 179 res.w = cvtPixel(d4.w, ndisp); 186 __global__ void drawColorDisp(short* disp, size_t disp_step, uchar* out_image, size_t out_step, int width, int height, int ndisp) 196 res.x = cvtPixel(d2.x, ndisp); [all...] |
H A D | stereocsbp.cu | 87 __global__ void get_first_k_initial_global(uchar *ctemp, T* data_cost_selected_, T *selected_disp_pyr, int h, int w, int nr_plane, int ndisp, 103 for(int d = 0; d < ndisp; d++) 122 __global__ void get_first_k_initial_local(uchar *ctemp, T* data_cost_selected_, T* selected_disp_pyr, int h, int w, int nr_plane, int ndisp, 140 for (int d = 1; d < ndisp - 1 && nr_local_minimum < nr_plane; d++) 161 for (int d = 0; d < ndisp; d++) 180 int h, int w, int level, int ndisp, float data_weight, float max_data_term, 196 for(int d = 0; d < ndisp; ++d) 222 int level, int rows, int cols, int h, int ndisp, float data_weight, float max_data_term, 231 if (d < ndisp) 271 void init_data_cost_caller_(const uchar *cleft, const uchar *cright, uchar *ctemp, size_t cimg_step, int /*rows*/, int /*cols*/, int h, int w, int level, int ndisp, in [all...] |
H A D | stereocsbp.hpp | 7 int h, int w, int level, int nr_plane, int ndisp, int channels, float data_weight, float max_data_term, int min_disp, bool use_local_init_data_cost, cudaStream_t stream);
|
H A D | stereobp.cu | 63 void load_constants(int ndisp, float max_data_term, float data_weight, float max_disc_term, float disc_single_jump) 65 cudaSafeCall( cudaMemcpyToSymbol(cndisp, &ndisp, sizeof(int )) );
|
/external/opencv3/modules/cudastereo/perf/ |
H A D | perf_stereo.cpp | 66 const int ndisp = 256; local 70 cv::Ptr<cv::StereoBM> d_bm = cv::cuda::createStereoBM(ndisp); 82 cv::Ptr<cv::StereoBM> bm = cv::StereoBM::create(ndisp); 106 const int ndisp = 64; local 110 cv::Ptr<cv::cuda::StereoBeliefPropagation> d_bp = cv::cuda::createStereoBeliefPropagation(ndisp); 140 const int ndisp = 128; local 144 cv::Ptr<cv::cuda::StereoConstantSpaceBP> d_csbp = cv::cuda::createStereoConstantSpaceBP(ndisp); 172 const int ndisp = 128; local 176 cv::Ptr<cv::cuda::DisparityBilateralFilter> d_filter = cv::cuda::createDisparityBilateralFilter(ndisp);
|
/external/opencv3/modules/calib3d/src/ |
H A D | stereobm.cpp | 327 int ndisp = state.numDisparities; 329 int lofs = MAX(ndisp - 1 + mindisp, 0); 330 int rofs = -MIN(ndisp - 1 + mindisp, 0); 332 int width1 = width - rofs - ndisp + 1; 347 int cstep = (height + dy0 + dy1)*ndisp; 355 hsad0 = (ushort*)alignPtr(sad + ndisp + 1 + dy0*ndisp, ALIGN); 356 htext = (int*)alignPtr((int*)(hsad0 + (height+dy1)*ndisp) + wsz2 + 2, ALIGN); 357 cbuf0 = (uchar*)alignPtr((uchar*)(htext + height + wsz2 + 2) + dy0*ndisp, ALIGN); 363 memset( hsad0 - dy0*ndisp, [all...] |
/external/opencv3/modules/calib3d/test/ |
H A D | test_stereomatching.cpp | 688 int ndisp; 702 String ndisp = fn[i+2]; params.ndisp = atoi(ndisp.c_str()); 715 assert( params.ndisp%16 == 0 ); 720 Ptr<StereoBM> bm = StereoBM::create( params.ndisp, params.winSize ); 743 int ndisp; 758 String ndisp = fn[i+2]; params.ndisp = atoi(ndisp [all...] |
H A D | test_fisheye.cpp | 424 int ndisp = 128; local 427 cv::rectangle(r, cv::Rect(255-ndisp, 0, 829+ndisp ,l.rows-1), cv::Scalar(0, 0, 255));
|