function vars = nonlinear(f)
p = colfilt(f , [3 , 3] ,'sliding',@vimabsolute);
imshow (p);
end
function v = vimabsolute(A)
[a ~] = size(A);
q =rand(1,a);
v = q * A;
end
B = colfilt(A,[M N],'sliding',FUN) rearranges each M-by-N sliding
neighborhood of A into a column in a temporary matrix, and then applies
the function FUN to this matrix. FUN must return a row vector containing
a single value for each column in the temporary matrix. (Column
compression functions such as SUM return the appropriate type of
output.) colfilt then rearranges the vector returned by FUN into a
matrix of the same size as A.
Ich möchte nur versuchen, wenn die colfilt Funktion könnte in der Dokumentation erwähnt work.As, A eine 9 von MN matrice, aber es läuft zurück FehlermeldungFehler die colfilt Funktion in MATLAB mit
Error using *
MTIMES does not fully support integer classes. At least one input must be scalar
Was mache ich falsch?
Wie laden Sie Ihr Bild? – excaza
@excaza f = imread ('XX.jpg') und nichtlineare (f) – DennngP