Wpis z mikrobloga

@MasterSoundBlaster: póki co kombinuję z istniejącym już kodem (który już wcześnie innym ponoć działał):

[X,map] = imread('lena.bmp');
[w h] = size(X);
h1 = 1/9 * ones(3);
w1 = conv2(double(X),h1);
@rss:

Bzdury. Na zwykłych macierzach tak, ale wpisujesz wektory. No chyba, że h1 nie jest wektorem tylko normalną macierzą.

C = CONV2(H1, H2, A) convolves A first with the vector H1 along the


rows and then with the vector H2 along the columns. If n1 = length(H1)


and n2 = length(H2), then mc = max([ma+n1-1,ma,n1]) and


nc = max([na+n2-1,na,n2]).