this.gradient = this.$refs.canvas .getContext('2d') .createLinearGradient(0, 0, 0, 450) this.gradient.addColorStop(0, 'rgba(255, 0,0, 0.5)') this.gradient ...
The input to the program is a grayscale image of size 𝑁𝑁 × 𝑀𝑀 (rows × cols.) Using the 7 × 7 Gaussian mask below for smoothing the input image with the center of the mask as the reference center.