[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 #27, bug #45088 (group octave):
It looks to me that we need to make changes to both CC file and M file(s).
With attached (file rangefilt_20260310.diff) the
test from comment #9 seems to work for me:
octave:1> pkg load image
octave:2> R = [1:5] .* ones(5,1);
octave:3> G = R+1;
octave:4> B = R*2;
octave:5> I = cat(3, R, G, B);
octave:6> J = rangefilt(I)
J =
ans(:,:,1) =
1 2 2 2 1
1 2 2 2 1
1 2 2 2 1
1 2 2 2 1
1 2 2 2 1
ans(:,:,2) =
1 2 2 2 1
1 2 2 2 1
1 2 2 2 1
1 2 2 2 1
1 2 2 2 1
ans(:,:,3) =
2 4 4 4 2
2 4 4 4 2
2 4 4 4 2
2 4 4 4 2
2 4 4 4 2
if other tests pass I can change other filtering functions in the same
manner.
Dmitri.
--
(file #58326)
_______________________________________________________
Additional Item Attachment:
Name: rangefilt_20260310.diff Size: 2.3KiB
<https://file.savannah.gnu.org/file/rangefilt_20260310.diff?file_id=58326>
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----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCabCizAAKCRCqLAuaBUf3 TuOqAP9k6sPu1qP8hIZfrBQb2XwU8XFSIh7kOtKAi2dl0DEbRwD+MVQ1aP/nK0Bk EdNPPkLmJ0NzG5oTTFzzeiAlcxI/Xgg= =CrWj -----END PGP SIGNATURE-----