Comparing version 1.0.1 to 1.0.2
@@ -10,3 +10,3 @@ /** | ||
*/ | ||
export declare const LinearFilter: (mat: number[], kernel: number[]) => number; | ||
export declare const linearFilter: (mat: number[], kernel: number[]) => number; | ||
/** | ||
@@ -13,0 +13,0 @@ * 根据row col位置来取源数据中需与核运算的数据 |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.getLinearMatData = exports.LinearFilter = void 0; | ||
exports.getLinearMatData = exports.linearFilter = void 0; | ||
@@ -18,3 +18,3 @@ /** | ||
*/ | ||
var LinearFilter = function LinearFilter(mat, kernel) { | ||
var linearFilter = function linearFilter(mat, kernel) { | ||
return kernel.reduce(function (total, curr, index) { | ||
@@ -34,3 +34,3 @@ return total + curr * mat[index] || 0; | ||
exports.LinearFilter = LinearFilter; | ||
exports.linearFilter = linearFilter; | ||
@@ -37,0 +37,0 @@ var getLinearMatData = function getLinearMatData(src, srcWidth, kernelSize, row, col) { |
{ | ||
"name": "xy-math", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package