May 2018
Beginner
490 pages
13h 16m
English
The initial image has a set of values you can display, as follows:
#II.Load imageimage=mpimg.imread('img.bmp')[:,:,0]shape = image.shapeprint("image shape",shape)
The code will print a numerical output of the image as follows:
image shape (100, 100)image before convolution[[255 255 255 ..., 255 255 255] [255 255 255 ..., 255 255 255] [255 255 255 ..., 255 255 255] ...,
The convolution filter is applied using filter.convolve, a mathematical function, to transform the image and filter it.
The convolution filter function uses several variables:
Read now
Unlock full access