how to encode a low pass filter to an image
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi, I'm quite new to Matlab. im trying to write an encoded code to filter an image. i'm using the following filter code. filter = 1/9 * [1 1 1; 1 1 1; 1 1 1];
i get the message "matrix dimensions must agree", how would you go about filtering a whole image? do i have to loop it somehow? thanks
댓글 수: 3
Christoph F.
2017년 10월 17일
편집: Christoph F.
2017년 10월 17일
Use the filter2() or the conv2() command to apply the filter.
The mathematical operation that applies a filter is convolution, not matrix/vector multiplication.
채택된 답변
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!