[Top][All Lists]

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

Re: colorspace_conversion_input_check

From: Rik
Subject: Re: colorspace_conversion_input_check
Date: Wed, 17 Jan 2018 08:47:52 -0800


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.


reply via email to

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