What is The Difference Between the Smooth Filtering(kernel) And Blockproc Function
2 Ansichten (letzte 30 Tage)
As I undersand that the blockproc function is used to divide the image into pixels size(ex. 3*3 pixels) and apply a fuction to the blockproc and get the output as follwoing code:
myfun = @(block_struct) uint8(mean2(block_struct.data)*ones(size(block_struct.data)))
out = blockproc(image,[3 3],myfun);
from above code, I took the avarage if 3*3 pixels and gereate a new output which is reduced the background of an image.
where is a smooth filtering of an image which is taking averaging kernel of an image and gerenrat ean output image based of this avarging.
so what is the differeace between the blockproc fuction and avrageing kernel?
the aim of asking this question is to find a better why to reduce the background of a complex image.