Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xy-math

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xy-math - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

lib/LinearFilter.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc