[Top][All Lists]

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

Re: colorspace_conversion_input_check

From: Doug Stewart
Subject: Re: colorspace_conversion_input_check
Date: Wed, 17 Jan 2018 12:00:02 -0500

On Wed, Jan 17, 2018 at 11:47 AM, Rik <address@hidden> wrote:

According to the Matlab documentation, input images for rgb2gray and
rgb2hsv can only be of type double, single, uint8, uint16.  However, the
input validation is also accepting int8 and int16:

    if (! any (strcmp (cls, {"uint8", "int8", "int16", "uint16", ...
                             "single", "double"})))
      error ("%s: %s of invalid data type '%s'", func, arg_name, cls);

Should we remove support for int8 and int16, or is there undocumented
Matlab voodoo and images of those types are accepted?

I've finished up with rgb2gray, except for this issue.


Isn't it ok to do more than matlab?


reply via email to

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