help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error with "medfilt2"


From: Hartmut
Subject: Re: Error with "medfilt2"
Date: Fri, 21 Jul 2017 13:42:40 -0700 (PDT)

Most filtering functions in the image package currently only support
grayscale images (no color images), at least when using this simple syntax.

There is a workaround explained here:
https://savannah.gnu.org/bugs/?45088#comment1

It is explained for rangefilt, but this workaround should also work for
medfilt2:

filtered = medfilt2 (noise_image, logical(padarray (ones (3), [0 0 1])));

At some time, this behavior might be fixed eventually in the Octave image
package.

The function imshowpair is currently not implemented in the image package.
Try

figure, imshow(im)
figure, imshow(noise_image)

instead.

Good luck

     Hartmut



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Error-with-medfilt2-tp4684182p4684197.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]