[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51264] imread incorrect results (vs python ma
From: |
mac cordel |
Subject: |
[Octave-bug-tracker] [bug #51264] imread incorrect results (vs python matlab results) |
Date: |
Mon, 19 Jun 2017 11:01:06 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36 |
Follow-up Comment #3, bug #51264 (project octave):
I made some experiments:
(1) Tried to display individual channels in matlab, and they look all the
same. So I checked using sum(sum(x(:,:,1)==x(:,:,2))), etc. It sums to the
number of pixels.
(2) I generated random 100x100 RGB image with channels different from each
other, then I saved it as sample.jpg. Also, I created another 100x100 RGB
image whose channels are equal, i.e. R channel = G channel = B channel, then I
saved it as sample2.jpg.
(3) Using imread from Octave. Then, x=imread('sample.jpg') and
y=('sample2.jpg'). Size of x is 100x100x3, size of y is 100x100 only.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51264>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/