ojos
Version:
High level API on top of Mirada (opencv.js) supporting bth browser and node.
34 lines • 1.39 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");
/**
* converts source pixel values to the target data type.
*/
var ConvertTo = /** @class */ (function (_super) {
__extends(ConvertTo, _super);
function ConvertTo() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.name = "ConvertTo";
_this.description = 'converts source pixel values to the target data type.';
return _this;
}
ConvertTo.prototype._exec = function (o) {
o.src.convertTo(o.dst, o.dtype || -1, o.alpha || 1.0, o.beta || 0.0);
};
return ConvertTo;
}(abstractOperation_1.AbstractOperation));
exports.ConvertTo = ConvertTo;
//# sourceMappingURL=convertTo.js.map