Home
last modified time | relevance | path

Searched refs:kernel_x (Results 1 – 25 of 112) sorted by relevance

12345

/dports/graphics/libpillowfight/libpillowfight-dae21f97de872e4ad2e94f1b0fc53302a00259fd/src/pillowfight/
H A D_gaussian.c79 struct pf_dbl_matrix kernel_x, kernel_y; in pf_gaussian_on_matrix() local
82 kernel_x = generate_gaussian_1d_kernel(sigma, nb_stddev); in pf_gaussian_on_matrix()
83 kernel_y = dbl_matrix_transpose(&kernel_x); in pf_gaussian_on_matrix()
85 out_x = pf_dbl_matrix_convolution(grayscale_matrix, &kernel_x); in pf_gaussian_on_matrix()
86 pf_dbl_matrix_free(&kernel_x); in pf_gaussian_on_matrix()
100 struct pf_dbl_matrix kernel_x, kernel_y; in pf_gaussian() local
105 kernel_x = generate_gaussian_1d_kernel(sigma, nb_stddev); in pf_gaussian()
106 kernel_y = dbl_matrix_transpose(&kernel_x); in pf_gaussian()
113 color_out = pf_dbl_matrix_convolution(&colors[color], &kernel_x); in pf_gaussian()
123 pf_dbl_matrix_free(&kernel_x); in pf_gaussian()
H A Dutil.c158 int img_x, kernel_x; in pf_dbl_matrix_convolution() local
169 for (kernel_x = 0 ; kernel_x < kernel->size.x ; kernel_x++) { in pf_dbl_matrix_convolution()
170 if (((img_x - kernel_x + (kernel->size.x / 2)) < 0) in pf_dbl_matrix_convolution()
171 || ((img_x - kernel_x + (kernel->size.x / 2)) >= img->size.x)) in pf_dbl_matrix_convolution()
182 img_x - kernel_x + (kernel->size.x / 2), in pf_dbl_matrix_convolution()
188 kernel_x, in pf_dbl_matrix_convolution()
H A D_sobel.c159 const struct pf_dbl_matrix *kernel_x, in pf_sobel_on_matrix() argument
166 out.g_x = pf_dbl_matrix_convolution(in, kernel_x); in pf_sobel_on_matrix()
182 kernel_x->size.x, kernel_x->size.y in pf_sobel_on_matrix()
/dports/graphics/py-pypillowfight/pypillowfight-0.3.0/src/pillowfight/
H A D_gaussian.c79 struct pf_dbl_matrix kernel_x, kernel_y; in pf_gaussian_on_matrix() local
82 kernel_x = generate_gaussian_1d_kernel(sigma, nb_stddev); in pf_gaussian_on_matrix()
83 kernel_y = dbl_matrix_transpose(&kernel_x); in pf_gaussian_on_matrix()
85 out_x = pf_dbl_matrix_convolution(grayscale_matrix, &kernel_x); in pf_gaussian_on_matrix()
86 pf_dbl_matrix_free(&kernel_x); in pf_gaussian_on_matrix()
100 struct pf_dbl_matrix kernel_x, kernel_y; in pf_gaussian() local
105 kernel_x = generate_gaussian_1d_kernel(sigma, nb_stddev); in pf_gaussian()
106 kernel_y = dbl_matrix_transpose(&kernel_x); in pf_gaussian()
113 color_out = pf_dbl_matrix_convolution(&colors[color], &kernel_x); in pf_gaussian()
123 pf_dbl_matrix_free(&kernel_x); in pf_gaussian()
H A Dutil.c158 int img_x, kernel_x; in pf_dbl_matrix_convolution() local
169 for (kernel_x = 0 ; kernel_x < kernel->size.x ; kernel_x++) { in pf_dbl_matrix_convolution()
170 if (((img_x - kernel_x + (kernel->size.x / 2)) < 0) in pf_dbl_matrix_convolution()
171 || ((img_x - kernel_x + (kernel->size.x / 2)) >= img->size.x)) in pf_dbl_matrix_convolution()
182 img_x - kernel_x + (kernel->size.x / 2), in pf_dbl_matrix_convolution()
188 kernel_x, in pf_dbl_matrix_convolution()
H A D_sobel.c159 const struct pf_dbl_matrix *kernel_x, in pf_sobel_on_matrix() argument
166 out.g_x = pf_dbl_matrix_convolution(in, kernel_x); in pf_sobel_on_matrix()
182 kernel_x->size.x, kernel_x->size.y in pf_sobel_on_matrix()
/dports/lang/halide/Halide-release_2019_08_27-2654-g664dc4993/apps/auto_viz/
H A Dauto_viz_demo_generator.cpp37 kernel_x, kernel_y, member in AutoVizDemo
80 kernel_x(x, k) = unnormalized_kernel_x(x, k) / kernel_sum_x(x); in generate()
88 resized_x(x, y, c) = sum(kernel_x(x, r) * as_float(r + beginx, y, c), "resized_x"); in generate()
93 resized_x(x, y, c) = sum(kernel_x(x, r) * resized_y(r + beginx, y, c), "resized_x"); in generate()
112 kernel_x in schedule()
133 kernel_x in schedule()
155 .compute_at(kernel_x, x) in schedule()
158 .compute_at(kernel_x, x) in schedule()
160 kernel_x in schedule()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/lib/libRocket/Source/Core/
H A DConvolutionFilter.cpp88 for (int kernel_x = 0; kernel_x < kernel_size; ++kernel_x) in Run() local
92 int source_x = x - source_offset.x - ((kernel_size - 1) / 2) + kernel_x; in Run()
98 …ger(source[source_y * source_dimensions.x + source_x] * kernel[kernel_y * kernel_size + kernel_x]); in Run()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavfilter/dnn/
H A Ddnn_backend_native_layer_conv2d.c128 for (int kernel_x = 0; kernel_x < conv_params->kernel_size; ++kernel_x) { in dnn_execute_layer_conv2d() local
132 … int x_pos = CLAMP_TO_EDGE(x + (kernel_x - radius) * conv_params->dilation, width); in dnn_execute_layer_conv2d()
136 int x_pos = x + (kernel_x - radius) * conv_params->dilation; in dnn_execute_layer_conv2d()
143kernel_x * conv_params->input_num + ch]; in dnn_execute_layer_conv2d()
/dports/lang/halide/Halide-release_2019_08_27-2654-g664dc4993/apps/resize/
H A Dresize_generator.cpp76 kernel_x, kernel_y, member in Resize
116 kernel_x(x, k) = unnormalized_kernel_x(x, k) / kernel_sum_x(x); in generate()
124 resized_x(x, y, c) = sum(kernel_x(x, r) * as_float(r + beginx, y, c), "resized_x"); in generate()
129 resized_x(x, y, c) = sum(kernel_x(x, r) * resized_y(r + beginx, y, c), "resized_x"); in generate()
143 .compute_at(kernel_x, x) in schedule()
146 .compute_at(kernel_x, x) in schedule()
148 kernel_x in schedule()
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/2d/include/pcl/2d/impl/
H A Dedge.hpp51 pcl::PointCloud<PointXYZI>::Ptr kernel_x(new pcl::PointCloud<PointXYZI>); in detectEdgeSobel() local
54 kernel_.fetchKernel(*kernel_x); in detectEdgeSobel()
55 convolution_.setKernel(*kernel_x); in detectEdgeSobel()
91 pcl::PointCloud<PointXYZI>::Ptr kernel_x(new pcl::PointCloud<PointXYZI>); in sobelMagnitudeDirection() local
94 kernel_.fetchKernel(*kernel_x); in sobelMagnitudeDirection()
95 convolution_.setKernel(*kernel_x); in sobelMagnitudeDirection()
130 pcl::PointCloud<PointXYZI>::Ptr kernel_x(new pcl::PointCloud<PointXYZI>); in detectEdgePrewitt() local
133 kernel_.fetchKernel(*kernel_x); in detectEdgePrewitt()
134 convolution_.setKernel(*kernel_x); in detectEdgePrewitt()
171 kernel_.fetchKernel(*kernel_x); in detectEdgeRoberts()
[all …]
/dports/graphics/darktable38/darktable-3.8.0/src/iop/
H A Dhazeremoval.c568 const int kernel_x = gd->kernel_hazeremoval_box_min_x; in box_min_cl() local
569 dt_opencl_set_kernel_arg(devid, kernel_x, 0, sizeof(width), &width); in box_min_cl()
571 dt_opencl_set_kernel_arg(devid, kernel_x, 2, sizeof(in), &in); in box_min_cl()
572 dt_opencl_set_kernel_arg(devid, kernel_x, 3, sizeof(temp), &temp); in box_min_cl()
573 dt_opencl_set_kernel_arg(devid, kernel_x, 4, sizeof(w), &w); in box_min_cl()
575 int err = dt_opencl_enqueue_kernel_2d(devid, kernel_x, sizes_x); in box_min_cl()
601 const int kernel_x = gd->kernel_hazeremoval_box_max_x; in box_max_cl() local
604 dt_opencl_set_kernel_arg(devid, kernel_x, 2, sizeof(in), &in); in box_max_cl()
605 dt_opencl_set_kernel_arg(devid, kernel_x, 3, sizeof(temp), &temp); in box_max_cl()
606 dt_opencl_set_kernel_arg(devid, kernel_x, 4, sizeof(w), &w); in box_max_cl()
[all …]
/dports/graphics/darktable/darktable-3.6.1/src/iop/
H A Dhazeremoval.c568 const int kernel_x = gd->kernel_hazeremoval_box_min_x; in box_min_cl() local
569 dt_opencl_set_kernel_arg(devid, kernel_x, 0, sizeof(width), &width); in box_min_cl()
571 dt_opencl_set_kernel_arg(devid, kernel_x, 2, sizeof(in), &in); in box_min_cl()
572 dt_opencl_set_kernel_arg(devid, kernel_x, 3, sizeof(temp), &temp); in box_min_cl()
573 dt_opencl_set_kernel_arg(devid, kernel_x, 4, sizeof(w), &w); in box_min_cl()
575 int err = dt_opencl_enqueue_kernel_2d(devid, kernel_x, sizes_x); in box_min_cl()
601 const int kernel_x = gd->kernel_hazeremoval_box_max_x; in box_max_cl() local
604 dt_opencl_set_kernel_arg(devid, kernel_x, 2, sizeof(in), &in); in box_max_cl()
605 dt_opencl_set_kernel_arg(devid, kernel_x, 3, sizeof(temp), &temp); in box_max_cl()
606 dt_opencl_set_kernel_arg(devid, kernel_x, 4, sizeof(w), &w); in box_max_cl()
[all …]
/dports/multimedia/handbrake/ffmpeg-4.4/libavfilter/dnn/
H A Ddnn_backend_native_layer_avgpool.c127 for (int kernel_x = 0; kernel_x < avgpool_params->kernel_size; ++kernel_x) { in ff_dnn_execute_layer_avg_pool() local
130 int x_pos = x + (kernel_x - width_radius); in ff_dnn_execute_layer_avg_pool()
H A Ddnn_backend_native_layer_conv2d.c145 for (int kernel_x = 0; kernel_x < conv_params->kernel_size; ++kernel_x) { in dnn_execute_layer_conv2d_thread() local
149 … int x_pos = CLAMP_TO_EDGE(x + (kernel_x - radius) * conv_params->dilation, width); in dnn_execute_layer_conv2d_thread()
153 int x_pos = x + (kernel_x - radius) * conv_params->dilation; in dnn_execute_layer_conv2d_thread()
160kernel_x * conv_params->input_num + ch]; in dnn_execute_layer_conv2d_thread()
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavfilter/dnn/
H A Ddnn_backend_native_layer_avgpool.c127 for (int kernel_x = 0; kernel_x < avgpool_params->kernel_size; ++kernel_x) { in ff_dnn_execute_layer_avg_pool() local
130 int x_pos = x + (kernel_x - width_radius); in ff_dnn_execute_layer_avg_pool()
H A Ddnn_backend_native_layer_conv2d.c145 for (int kernel_x = 0; kernel_x < conv_params->kernel_size; ++kernel_x) { in dnn_execute_layer_conv2d_thread() local
149 … int x_pos = CLAMP_TO_EDGE(x + (kernel_x - radius) * conv_params->dilation, width); in dnn_execute_layer_conv2d_thread()
153 int x_pos = x + (kernel_x - radius) * conv_params->dilation; in dnn_execute_layer_conv2d_thread()
160kernel_x * conv_params->input_num + ch]; in dnn_execute_layer_conv2d_thread()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavfilter/dnn/
H A Ddnn_backend_native_layer_avgpool.c127 for (int kernel_x = 0; kernel_x < avgpool_params->kernel_size; ++kernel_x) { in dnn_execute_layer_avg_pool() local
130 int x_pos = x + (kernel_x - width_radius); in dnn_execute_layer_avg_pool()
H A Ddnn_backend_native_layer_conv2d.c142 for (int kernel_x = 0; kernel_x < conv_params->kernel_size; ++kernel_x) { in dnn_execute_layer_conv2d_thread() local
146 … int x_pos = CLAMP_TO_EDGE(x + (kernel_x - radius) * conv_params->dilation, width); in dnn_execute_layer_conv2d_thread()
150 int x_pos = x + (kernel_x - radius) * conv_params->dilation; in dnn_execute_layer_conv2d_thread()
157kernel_x * conv_params->input_num + ch]; in dnn_execute_layer_conv2d_thread()
/dports/misc/mnn/MNN-1.2.0/source/backend/metal/
H A DMetalConvolution.metal92 int kernel_x;
115 int ex = min(cst.kernel_x, UP_DIV(cst.input_width - offset_x, cst.dilation_x));
132 auto wt4 = z_wt[z * cst.kernel_size + y * cst.kernel_x + x];
227 int ex = min(cst.kernel_x, UP_DIV(cst.input_width - offset_x, cst.dilation_x));
236 … auto z_wt = wt + uz[0] * cst.input_slice * cst.kernel_size + sy * cst.kernel_x + sx;
245 auto x_wt = z_wt + y * cst.kernel_x + x;
291 for (auto kx = 0; kx < cst.kernel_x; kx++) {
297 cols[z * cst.kernel_size + ky * cst.kernel_x + kx] = {
312 for (auto kx = 0; kx < cst.kernel_x; kx++) {
313 auto in4 = cols[ z * cst.kernel_size + ky * cst.kernel_x + kx];
[all …]
H A DMetalDeconvolution.metal24 int kernel_x;
63 … int min_sx = max(0, ROUND_UP(ox + cst.dilation_x - cst.kernel_x * cst.dilation_x, cst.stride_x));
74 auto wt4 = o_wt[z * cst.kernel_size + ky * cst.kernel_x + kx];
103 … int min_sx = max(0, ROUND_UP(ox + cst.dilation_x - cst.kernel_x * cst.dilation_x, cst.stride_x));
113 auto wt4 = z_wt[ky * cst.kernel_x + kx];
H A DMetalConvolutionDepthwise.metal25 int kernel_x;
49 int ex = min(cst.kernel_x, UP_DIV(cst.input_width - offset_x, cst.dilation_x));
61 auto wt4 = z_wt[ky * cst.kernel_x + kx];
/dports/misc/openmvg/openMVG-2.0/src/openMVG/image/
H A Dimage_convolution.hpp198 const Eigen::Matrix<float, 1, Eigen::Dynamic>& kernel_x, in SeparableConvolution2d() argument
239 const int sigma_x = static_cast<int>( kernel_x.cols() ); in SeparableConvolution2d()
240 const int half_sigma_x = static_cast<int>( kernel_x.cols() / 2 ); in SeparableConvolution2d()
262 out->row( row ) = kernel_x( 0 ) * temp_row.head( image.cols() ); in SeparableConvolution2d()
265 out->row( row ) += kernel_x( i ) * temp_row.segment( i, image.cols() ); in SeparableConvolution2d()
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavfilter/
H A Ddnn_backend_native.c224 int y, x, n_filter, ch, kernel_y, kernel_x; in convolve() local
236 for (kernel_x = 0; kernel_x < conv_params->kernel_size; ++kernel_x){ in convolve()
238 … CLAMP_TO_EDGE(x + kernel_x - radius, width) * conv_params->input_num + ch] * in convolve()
240kernel_x * conv_params->input_num + ch]; in convolve()
/dports/graphics/librsvg2-rust/librsvg-2.52.8/src/filters/
H A Dconvolve_matrix.rs240 let kernel_x = (kernel_bounds.x1 - x - 1) as usize; in render() localVariable
243 r += f64::from(pixel.r) / 255.0 * matrix[(kernel_y, kernel_x)]; in render()
244 g += f64::from(pixel.g) / 255.0 * matrix[(kernel_y, kernel_x)]; in render()
245 b += f64::from(pixel.b) / 255.0 * matrix[(kernel_y, kernel_x)]; in render()
248 a += f64::from(pixel.a) / 255.0 * matrix[(kernel_y, kernel_x)]; in render()

12345