[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8812] Added imquantize to image toolset
From: |
Guy B |
Subject: |
[Octave-patch-tracker] [patch #8812] Added imquantize to image toolset |
Date: |
Wed, 02 Dec 2015 20:23:54 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 |
Follow-up Comment #9, patch #8812 (project octave):
It does seem to work for the special case in which you only want to label
regions and not assign them costume values.
But it shouldn't work according to the documentation... in fact, I can't see
how the documentation on this function is correct.
Did I miss anything?
>From help lookup:
If table is increasing and 'idx = lookup (table, y)', then
'table(idx(i)) <= y(i) < table(idx(i+1))' for all 'y(i)' within the
table. If 'y(i) < table(1)' then 'idx(i)' is 0. If 'y(i) >=
table(end)' or 'isnan (y(i))' then 'idx(i)' is 'n'.
If the table is decreasing, then the tests are reversed. For
non-strictly monotonic tables, empty intervals are always skipped.
The result is undefined if TABLE is not monotonic, or if TABLE
contains a NaN.
The complexity of the lookup is O(M*log(N)) where N is the size of
TABLE and M is the size of Y. In the special case when Y is also
sorted, the complexity is O(min(M*log(N),M+N)).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8812>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/