[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54614] [octave forge] (image) wrong results o
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #54614] [octave forge] (image) wrong results of entropyfilt |
Date: |
Sat, 29 Sep 2018 09:23:54 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #3, bug #54614 (project octave):
> Another problem is in the transfer of data from the matrix:
It seems that the line [...] is wrong [...]
That line adds the height value to each element. Some functions call
__spatial_filtering__ with a value there (but I think in most cases it will be
zero).
Do you have a case where that line is causing incorrect values? If the test
suite did not fail when you removed it, I guess we should add a case for it.
For example:
octave:7> ordfiltn([1 2 3 4], 1, [1 1 1], [0 0 0]) # this is default height
(S)
ans =
0 1 2 0
octave:8> ordfiltn([1 2 3 4], 1, [1 1 1], [2 1 0])
ans =
2 3 4 0
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54614>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/