ssa
1function RGB2 = ButterRGB(RGB, VideoFile)
2
3% Çàäàéòå ïàðàìåòðû ôèëüòðà
4order = 4; % Ïîðÿäîê ôèëüòðà
5
6% Ñîçäàéòå ôèëüòð Áàòòåðâîðòà
7[b, a] = butter(order, [0.2 0.9], 'stop');
8
9% Ïðèìåíèòå ôèëüòð ê RGB ñèãíàëó
10RGB2 = zeros(size(RGB));
11
12for channel = 1:3
13RGB2(:, channel) = filter(b, a, RGB(:, channel));
14end
15
16SaveRGB(NameVideoFile(VideoFile)+'_but.txt', RGB2)
17end