help-octave
[Top][All Lists]
Advanced

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

Re: rgb2ind issue


From: Nicholas Jankowski
Subject: Re: rgb2ind issue
Date: Thu, 26 Jul 2018 16:41:20 -0400

On Thu, Jul 26, 2018 at 4:35 PM, RT <address@hidden> wrote:
but I get an error
"error: Invalid call to rgb2ind.  Correct usage is:

 -- [X, MAP] = rgb2ind (RGB)
 -- [X, MAP] = rgb2ind (R, G, B)


Looking at the function calling structure on matlab:


https://www.mathworks.com/help/matlab/ref/rgb2ind.html

[X,map] = rgb2ind(RGB,n)
X = rgb2ind(RGB, map)
[X,map] = rgb2ind(RGB, tol)
[___] = rgb2ind(___,dither_option)

and octave:

https://octave.sourceforge.io/octave/function/rgb2ind.html
[x, map] = rgb2ind (rgb)
[x, map] = rgb2ind (R, G, B)

it appears that the current Octave implementation is not fully compatible. Unless there's already something on the bug tracker that I didn't see in a quick search, it should probably be logged as one:

bugs.octave.org

reply via email to

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