UNPKG

@ai-on-browser/data-analysis-models

Version:

Data analysis model package without any dependencies

18 lines (17 loc) 466 B
/** * Sobel edge detection */ export default class Sobel { /** * @param {number} th Threshold */ constructor(th: number); _threshold: number; _convolute(x: any, kernel: any): any[][]; /** * Returns predicted edge flags. * @param {Array<Array<number>>} x Training data * @returns {Array<Array<boolean>>} Predicted values. `true` if a pixel is edge. */ predict(x: Array<Array<number>>): Array<Array<boolean>>; }