octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #56169] images of class double or single fail


From: anonymous
Subject: [Octave-bug-tracker] [bug #56169] images of class double or single fail to convert to class uint8
Date: Fri, 19 Apr 2019 04:02:07 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

URL:
  <https://savannah.gnu.org/bugs/?56169>

                 Summary: images of class double or single fail to convert to
class uint8
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 19 Apr 2019 08:02:06 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

>> lab = rgb2lab(im);
>> im(1:10,1:10,1)
ans =

  21  21  21  21  22  23  22  18  20  23
  24  23  21  21  21  20  20  19  21  22
  23  23  22  21  21  20  20  20  21  20
  25  23  21  21  21  22  22  22  23  24
  21  21  21  21  21  22  20  22  23  24
  25  22  21  21  21  21  21  21  22  23
  23  21  21  22  22  22  23  20  20  23
  25  24  24  22  22  22  23  23  24  24
  24  24  22  22  21  21  22  20  22  24
  26  23  21  21  22  22  20  19  20  23

>> lab(1:10,1:10,1)
ans =

   34.908   32.971   32.649   31.366   32.296   32.911   31.653   30.946  
31.108   31.565
   34.340   32.965   32.762   31.892   31.570   31.603   31.925   31.697  
31.745   31.451
   34.525   33.343   32.674   32.483   31.513   32.514   32.784   32.784  
32.428   31.811
   34.362   33.343   32.064   32.271   31.513   32.296   31.749   31.749  
33.128   32.725
   34.157   33.941   32.647   32.807   31.835   31.216   32.191   31.216  
32.210   33.102
   34.629   33.428   31.686   31.628   32.103   31.399   31.686   30.410  
31.711   32.965
   34.954   33.460   29.527   31.314   31.595   31.274   31.016   31.208  
31.589   32.533
   36.233   33.960   33.314   32.399   31.805   32.019   32.478   31.887  
32.614   33.102
   36.209   34.604   33.051   31.694   32.374   31.456   31.481   31.165  
31.102   31.271
   35.565   35.274   33.140   32.807   31.917   30.694   32.135   31.511  
32.079   32.424

>> a = im2uint8(lab);
>> size(a)
ans =

   308   168     3

>> class(a)
ans = uint8
>> a(1:10,1:10,1)
ans =

  255  255  255  255  255  255  255  255  255  255
  255  255  255  255  255  255  255  255  255  255
  255  255  255  255  255  255  255  255  255  255
  255  255  255  255  255  255  255  255  255  255
  255  255  255  255  255  255  255  255  255  255
  255  255  255  255  255  255  255  255  255  255
  255  255  255  255  255  255  255  255  255  255
  255  255  255  255  255  255  255  255  255  255
  255  255  255  255  255  255  255  255  255  255
  255  255  255  255  255  255  255  255  255  255

>>
บบบบบบบบบบบบบบบบบบบ 翀 øᏊ貀 퀰
'�)�p�é�w�v�u�t�,�(�&��Ž




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56169>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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