help-octave
[Top][All Lists]
Advanced

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

Re: Converting image using octave from rgb to hsv back to rgb


From: Markus Bergholz
Subject: Re: Converting image using octave from rgb to hsv back to rgb
Date: Tue, 21 Jul 2015 22:27:48 +0200



On Tue, Jul 21, 2015 at 7:35 PM, RT <address@hidden> wrote:

I'm trying to convert a color image from rgb to hsv (make changes) then back to rgb. As a test I made this code just to test how to go from rgb to hsv back to rgb but when I view the image it just shows up as black. What am I missing?

PS I'm using octave 3.8.1 but I won't have access to the image toolbox / image package.

test code below:

f=imread('/tmp/bump.jpg'); %color image location

%Hue - Saturation - Value 
f_rgb2hsv=rgb2hsv(f); %convert image to HSV double
f_hsv2rgb=hsv2rgb(f_rgb2hsv);%convert to RGB double
f_to_image=uint8(f_hsv2rgb); %convert to uint8 to see image
imshow(f_to_image); 

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave




crosspost: http://stackoverflow.com/questions/31544618/converting-image-using-matlab-octave-from-rgb-to-hsv-back-to-rgb


--
icq: 167498924
XMPP|Jabber: address@hidden

reply via email to

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