From ac33357e7ce7c474aeaffc92e381020289d767a2 Mon Sep 17 00:00:00 2001 From: allusive-dev Date: Mon, 30 Oct 2023 15:12:21 +1100 Subject: Version 1.0 --- src/kernel.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/kernel.h') diff --git a/src/kernel.h b/src/kernel.h index 251d127..d1dd2ee 100644 --- a/src/kernel.h +++ b/src/kernel.h @@ -22,12 +22,15 @@ double attr_pure sum_kernel_normalized(const conv *map, int x, int y, int width, /// `size`. conv *gaussian_kernel(double r, int size); +/// Estimate the best standard deviation for a give kernel size. +double gaussian_kernel_std_for_size(double size, double row_limit); + /// Create a gaussian kernel with auto detected standard deviation. The choosen standard /// deviation tries to make sure the outer most pixels of the shadow are completely /// transparent. /// /// @param[in] shadow_radius the radius of the shadow -conv *gaussian_kernel_autodetect_deviation(int shadow_radius); +conv *gaussian_kernel_autodetect_deviation(double shadow_radius); /// preprocess kernels to make shadow generation faster /// shadow_sum[x*d+y] is the sum of the kernel from (0, 0) to (x, y), inclusive -- cgit v1.2.3