export class DilateComponent extends CVFIOComponent {
static menu = { tabTitle: "Arithmetic", title: 'Dilate' };
static processor = class DilateNode extends CVFNodeProcessor {
properties = [
{ name: 'kernel', type: PropertyType.OneZeroMatrix },
{ name: 'anchor', type: PropertyType.Point },
{ name: 'iterations', type: PropertyType.Integer },
{ name: 'borderType', type: PropertyType.BorderType },
{ name: 'borderValue', type: PropertyType.Scalar },
];
kernel: Mat = cv.getStructuringElement(
cv.MORPH_ELLIPSE,
new cv.Size(3, 3),
new cv.Point(-1, -1)
);
anchor: Point = new cv.Point(-1, -1);
iterations: number = 1;
borderType: BorderTypes = cv.BORDER_CONSTANT;
borderValue: Scalar = cv.morphologyDefaultBorderValue();
async proccess() {
}
};
}