[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49941] image package: rgb2gray of a single im
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #49941] image package: rgb2gray of a single image produces a double image |
Date: |
Sun, 29 Jan 2017 16:00:11 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Update of bug #49941 (project octave):
Depends on: => bugs #50152
_______________________________________________________
Follow-up Comment #2:
I believe anonymous is right about the skipping the conversion to double
completely on the case of images of class single. I have fixed like that for
the bug #50152 (a duplicate of this).
To Avinoam:
you don't need to
assert (isequal(class(rgb2gray(ones(3,3,3,'single'))),'single'))
because assert takes an observed and expected arguments. Instead, use:
assert (class (rgb2gray (ones (3, 3, 3, 'single'))), 'single')
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49941>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/