help-octave
[Top][All Lists]
Advanced

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

Color Image to grayscale image


From: RT
Subject: Color Image to grayscale image
Date: Sun, 9 Jun 2019 23:39:13 -0400

I have a color image that I'm trying to convert to grayscale, I use the code below but the image is still in color.

grayimage=mat2gray(colorimage);
imshow(grayimage)

My goal is:
1) To convert a color image into grayscale
2) Then place the intensity / brightness of each grayscale pixel into a range between 0-1

I'm using Octave 4.2.2 Ubuntu 64bit 18.04



--
--
|======================================================|

reply via email to

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