[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run
From: |
Eli Chan |
Subject: |
[Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors |
Date: |
Mon, 6 Apr 2020 12:58:45 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0 |
Follow-up Comment #5, bug #58125 (project octave):
if I use a ridiculously small png file, it will work.
the shape of img is: 64x48x3
Anything larger than that will stuck at I = rgb * xform;
octave:2> dbstop rgb2gray
ans = 45
octave:3> img_gray=rgb2gray(img)
stopped in /usr/local/share/octave/5.2.0/m/image/rgb2gray.m at line 45
45: if (nargin != 1)
debug> dbstep
stopped in /usr/local/share/octave/5.2.0/m/image/rgb2gray.m at line 49
49: is_int = isinteger (rgb);
debug> dbstep
stopped in /usr/local/share/octave/5.2.0/m/image/rgb2gray.m at line 50
50: if (is_int)
debug> dbstep
stopped in /usr/local/share/octave/5.2.0/m/image/rgb2gray.m at line 51
51: cls = class (rgb);
debug> dbstep
stopped in /usr/local/share/octave/5.2.0/m/image/rgb2gray.m at line 54
54: = colorspace_conversion_input_check ("rgb2gray", "RGB", rgb);
debug> dbstep
stopped in /usr/local/share/octave/5.2.0/m/image/rgb2gray.m at line 58
58: xform = [0.298936; 0.587043; 0.114021];
debug> dbstep
stopped in /usr/local/share/octave/5.2.0/m/image/rgb2gray.m at line 59
59: I = rgb * xform;
debug> dbstep
stopped in /usr/local/share/octave/5.2.0/m/image/rgb2gray.m at line 61
61: sz(3) = 1; # grayscale images have 3rd dimension of length 1
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58125>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Eli Chan, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Dmitri A. Sergatskov, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Pantxo Diribarne, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Eli Chan, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Eli Chan, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors,
Eli Chan <=
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Eli Chan, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Dmitri A. Sergatskov, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Pantxo Diribarne, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Eli Chan, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Mike Miller, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Dmitri A. Sergatskov, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Dmitri A. Sergatskov, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Eli Chan, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Eli Chan, 2020/04/06
- [Octave-bug-tracker] [bug #58125] rgb2gray causes high cpu and will run forever without any errors, Eli Chan, 2020/04/07