What is one filter matrix equivalent to applying [1 1 1] twice on an image using imfilter with parameter ‘full’? Would it still be a 1×3 matrix?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
convolution is associative, which means
(f*g)*h = f*(g*h). So instead ofyou can precompute the convolution of the two filters and then apply it to each image only once:
where the new filter is
[1 2 3 2 1], which however is not of the same size of the original filter.