Lesson 4: Changing Color Space
Channel: Nuruzzaman Faruqui
Date: 2018-07-23

How to change / convert color space in MATLAB?

Please follow me on Facebook: https://www.facebook.com/NZamanFaruqui
Connect with me on LinkedIn: https://www.linkedin.com/in/nuruzzaman-faruqui/
Subscribe to my new channel: https://www.youtube.com/@UCiY_Ek_yfkmq3EG2s1w_I3w 
Contact me on Fiverr: https://www.fiverr.com/zaman_faruqui

In this tutorial, you will learn how to convert color space using MATLAB. Changing color space is a frequent task when we work with image processing. This easy tutorial will help you learning how to convert color space using MATLAB. The code used in this video lesson is here:

% Converting color space
original_image = imread('C:/orange.jpg');
gray_image = rgb2gray(original_image);

subplot(2,1,1); imshow(original_image);
subplot(2,1,2); imshow(gray_image);