⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 f_predict_pixel.m

📁 audio compression matlab code
💻 M
字号:
function p = f_predict_pixel(a, w)
% linear prediction  ofthe pixel value "p"
% "a" is the vector ofprevious pixels
% "w" is thevector of wheigts
% vector line input vectors...


[n,m] = size(a);
if n > m, a =a'; end
[n,m] = size(w);
if n > m, w = w'; end

p = sum(a .* w);
p = round(p);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -