[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45131] image package: rgb2hsv is not compatib
From: |
Avinoam Kalma |
Subject: |
[Octave-bug-tracker] [bug #45131] image package: rgb2hsv is not compatible to Matlab |
Date: |
Mon, 18 May 2015 14:26:24 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko |
URL:
<http://savannah.gnu.org/bugs/?45131>
Summary: image package: rgb2hsv is not compatible to Matlab
Project: GNU Octave
Submitted by: avinoam
Submitted on: Mon May 18 14:26:23 2015
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Avinoam
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
In Matlab 2010A
>> B = uint8(100*ones(2,2,3));
>> rgb2hsv(double(B))
ans(:,:,1) =
0 0
0 0
ans(:,:,2) =
0 0
0 0
ans(:,:,3) =
100 100
100 100
In Octave
>> B = uint8(100*ones(2,2,3));
>> rgb2hsv(double(B))
error: rgb2hsv: floating point images may only contain values between 0 and 1
error: called from
rgb2hsv at line 47 column 5
double(B) is in the range [0:255] and not in [0:1]
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45131>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #45131] image package: rgb2hsv is not compatible to Matlab,
Avinoam Kalma <=