フィルターのクリア

how can i filter a RGB without using imfilter,conv,conv2 or similar?

3 ビュー (過去 30 日間)
Alprcnkt
Alprcnkt 2016 年 4 月 4 日
コメント済み: Image Analyst 2020 年 4 月 18 日
hi guys,
i have to create a function which has 2 inputs (one for image ,one for kernel which is [5 5]) and for the pixels from outside the original image must be [0,0,0]
ps : no conv, conv2, imfilter or similar
TO be clear : the code must be something in it but i dont know how i do that
function [result] = evc_filter(I, kernel)
result = I;
end
  1 件のコメント
Leo Meditz
Leo Meditz 2020 年 4 月 18 日
Have you figured it out? I have the same problem

サインインしてコメントする。

回答 (2 件)

Walter Roberson
Walter Roberson 2016 年 4 月 4 日

Image Analyst
Image Analyst 2020 年 4 月 18 日
See my attached manual convolution script.
  2 件のコメント
Leo Meditz
Leo Meditz 2020 年 4 月 18 日
Thanks for the fast reply. The skript is pretty large and I'm a beginner. how do i find the thing i'm searching for?
Image Analyst
Image Analyst 2020 年 4 月 18 日
The beginning stuff is just asking the user for the image and the window size. The main part is where it says:
%=================================================================================================
% HERE IS THE MAIN COMPUTATION ENGINE OF THE WHOLE PROCESS:
That's where the 4-deep nested for loop is.
I think it's very well commented. If you disagree, tell me what parts need more explanation.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by