alpha: 0, }); if (kernel.columns % 2 === 0 || kernel.rows % 2 === 0) { throw new TypeError( 'close: The number of rows and columns of the kernel must be odd',
break; ret[0].columns.push(x) }) return ret
alpha: 0, }); if (kernel.columns % 2 === 0 || kernel.rows % 2 === 0) { throw new TypeError( 'dilate: The number of rows and columns of the kernel must be odd',
alpha: 0, }); if (kernel.columns % 2 === 0 || kernel.rows % 2 === 0) { throw new TypeError( 'morphologicalGradient: The number of rows and columns of the kernel must be odd',
alpha: 0, }); if (kernel.columns % 2 === 0 || kernel.rows % 2 === 0) { throw new TypeError( 'blackHat: The number of rows and columns of the kernel must be odd',
alpha: 0, }); if (kernel.columns % 2 === 0 || kernel.rows % 2 === 0) { throw new TypeError( 'erode: The number of rows and columns of the kernel must be odd',
alpha: 0, }); if (kernel.columns % 2 === 0 || kernel.rows % 2 === 0) { throw new TypeError( 'open: The number of rows and columns of the kernel must be odd',
break; ret[0].columns.push(x) }) return ret
break; ret[0].columns.push(x) }) return ret
break; ret[0].columns.push(x) }) return ret