ojos
Version:
High level API on top of Mirada (opencv.js) supporting bth browser and node.
35 lines • 1.66 kB
JavaScript
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 abstractOperation_1 = require("./abstractOperation");
/**
* perform advanced morphological transformations using an erosion and dilation as basic operations.
*/
var MorphologyEx = /** @class */ (function (_super) {
__extends(MorphologyEx, _super);
function MorphologyEx() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.name = "MorphologyEx";
_this.description = 'perform advanced morphological transformations using an erosion and dilation as basic operations.';
_this.sameSizeAndType = true;
return _this;
}
MorphologyEx.prototype._exec = function (o) {
cv.morphologyEx(o.src, o.dst, o.op, o.kernel, o.anchor || new cv.Point(-1, -1), o.iterations || 1, o.borderType || cv.BORDER_CONSTANT, o.borderValue || cv.morphologyDefaultBorderValue());
};
return MorphologyEx;
}(abstractOperation_1.AbstractOperation));
exports.MorphologyEx = MorphologyEx;
//# sourceMappingURL=morphologyEx.js.map
;