UNPKG

ojos

Version:

High level API on top of Mirada (opencv.js) supporting bth browser and node.

36 lines 1.89 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var util_1 = require("../util"); var abstractOperation_1 = require("./abstractOperation"); /** * smooths an image. Unnormalized box filter is useful for computing various integral characteristics over each pixel neighborhood, such as covariance matrices of image derivatives (used in dense optical flow algorithms, and so on). */ var BoxFilter = /** @class */ (function (_super) { __extends(BoxFilter, _super); function BoxFilter() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.name = "BoxFilter"; _this.description = 'smooths an image. Unnormalized box filter is useful for computing various integral characteristics over each pixel neighborhood, such as covariance matrices of image derivatives (used in dense optical flow algorithms, and so on). '; _this.sameSizeAndType = true; return _this; } BoxFilter.prototype._exec = function (o) { cv.boxFilter(o.src, o.dst, o.ddepth || -1, util_1.toSize(o.ksize), o.anchor || new cv.Point(-1, -1), o.normalize, o.borderType || cv.BORDER_DEFAULT); }; return BoxFilter; }(abstractOperation_1.AbstractOperation)); exports.BoxFilter = BoxFilter; //# sourceMappingURL=boxFilter.js.map