[bug #45088] [octave forge] (image) rangefilt requires domain and image to have equal number of dimensions

"Dmitri A. Sergatskov" <[email protected]>
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #31, bug #45088 (group octave):

Going through M-files I saw a "TODO" in medfilt2.m, so I implem,ented
"medfilt" backend in spatial_filtering (all machinery was already in place, so
it was not too bad).

Attached cset (file bug45088_filters_20260312_100.cset) has those changes to
spatial_filtering as well as to entropyfilt.m rangefilt.m stdfilt.m ordfiltn.m
medfilt2.m

I went through demos on MW pages (made a look-alike image with coins (file
coins_octave_gs_640.png) -- feel free to use it in your demos) and they all
look OK to me. E.g. with medfilt2:

octave:1> pkg load image
octave:2> I = imread("coins_octave_gs_640.png");
octave:3> J = imnoise(I,'salt & pepper',0.02);
octave:4> K = medfilt2(J);
octave:5> imshowpair(J,K,'montage')
ans = -39.070

The results are (file medfilt2_coins.png)

Dmitri.
-- 


(file #58352, file #58353, file #58354)

    _______________________________________________________

Additional Item Attachment:

Name: bug45088_filters_20260312_100.cset Size: 11KiB

<https://file.savannah.gnu.org/file/bug45088_filters_20260312_100.cset?file_id=58352>

Name: medfilt2_coins.png             Size: 325KiB
    <https://file.savannah.gnu.org/file/medfilt2_coins.png?file_id=58353>

Name: coins_octave_gs_640.png        Size: 156KiB
    <https://file.savannah.gnu.org/file/coins_octave_gs_640.png?file_id=58354>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-5479f0ac3e1f014845fd281c379bc3ccb7a72723.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?45088>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCabMwZAAKCRCqLAuaBUf3
Tv+XAP44zjx2Dg2KVPymhtw40d8HyalxluFOZm/mnDztqf1VfAEAjPDIYNDRDTbK
296b1M6qbbfAA2adISTML6707L4Sgg4=
=41+W
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.