Lines Matching full:channels
61 template <int channels> static float __device__ pixeldiff(const uchar* left, const uchar* right, float max_data_term);
178 template <typename T, int channels>
208 const uchar* lle = cleft + yi * cimg_step + xi * channels;
209 const uchar* lri = cright + yi * cimg_step + xr * channels;
211 val += data_weight * pixeldiff<channels>(lle, lri, max_data_term);
220 template <typename T, int winsz, int channels>
245 const uchar* lle = cleft + y0 * cimg_step + channels * (x0 + tid );
246 const uchar* lri = cright + y0 * cimg_step + channels * (x0 + tid - d);
250 val += data_weight * pixeldiff<channels>(lle, lri, max_data_term);
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, int channels, float data_weight, float max_data_term, int min_disp, size_t msg_step, size_t disp_step, cudaStream_t stream)
279 switch (channels)
284 default: CV_Error(cv::Error::BadNumChannels, "Unsupported channels count");
289 void init_data_cost_reduce_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, int channels, float data_weight, float max_data_term, int min_disp, size_t msg_step, size_t disp_step, cudaStream_t stream)
298 switch (channels)
303 default: CV_Error(cv::Error::BadNumChannels, "Unsupported channels count");
309 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)
312 typedef void (*InitDataCostCaller)(const uchar *cleft, const uchar *cright, uchar *ctemp, size_t cimg_step, int cols, int rows, int w, int h, int level, int ndisp, int channels, float data_weight, float max_data_term, int min_disp, size_t msg_step, size_t disp_step, cudaStream_t stream);
323 init_data_cost_callers[level](cleft, cright, ctemp, cimg_step, rows, cols, h, w, level, ndisp, channels, data_weight, max_data_term, min_disp, msg_step, disp_step, stream);
347 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);
350 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);
356 template <typename T, int channels>
387 const uchar* left_x = cleft + yi * cimg_step + xi * channels;
388 const uchar* right_x = cright + yi * cimg_step + xr * channels;
390 val += data_weight * pixeldiff<channels>(left_x, right_x, max_data_term);
399 template <typename T, int winsz, int channels>
427 const uchar* lle = cleft + y0 * cimg_step + channels * (x0 + tid );
428 const uchar* lri = cright + y0 * cimg_step + channels * (x0 + tid - sel_disp);
432 val += data_weight * pixeldiff<channels>(lle, lri, max_data_term);
451 int h, int w, int level, int nr_plane, int channels, float data_weight, float max_data_term, int min_disp, size_t msg_step, size_t disp_step1, size_t disp_step2, cudaStream_t stream)
459 switch(channels)
464 default: CV_Error(cv::Error::BadNumChannels, "Unsupported channels count");
470 int h, int w, int level, int nr_plane, int channels, float data_weight, float max_data_term, int min_disp, size_t msg_step, size_t disp_step1, size_t disp_step2, cudaStream_t stream)
479 switch (channels)
484 default: CV_Error(cv::Error::BadNumChannels, "Unsupported channels count");
490 int rows, int cols, int h, int w, int h2, int level, int nr_plane, int channels, float data_weight, float max_data_term,
494 int h, int w, int level, int nr_plane, int channels, float data_weight, float max_data_term, int min_disp, size_t msg_step, size_t disp_step1, size_t disp_step2, cudaStream_t stream);
506 callers[level](cleft, cright, cimg_step, disp_selected_pyr, data_cost, rows, cols, h, w, level, nr_plane, channels, data_weight, max_data_term, min_disp, msg_step, disp_step1, disp_step2, stream);
514 int rows, int cols, int h, int w, int h2, int level, int nr_plane, int channels, float data_weight, float max_data_term, int min_disp, cudaStream_t stream);
517 int rows, int cols, int h, int w, int h2, int level, int nr_plane, int channels, float data_weight, float max_data_term, int min_disp, cudaStream_t stream);