How to Convert RGB Image to YIQ Image using MATLAB? Last Updated : 08 Mar, 2022 Comments Improve Suggest changes 1 Likes Like Report Image Processing in MATLAB use functions from the Image Processing Toolbox. This toolbox generally represents colors as RGB numeric values. Different models also exist for representing colors numerically. The official term for these models is "color spaces" and is coined from the definition of a vector space as these can be mapped in a 2D,3D, or 4D coordinate system. The most important advantage of having different color spaces and toggling between them is that they make certain calculations more convenient depending on the type of result the user desires. Mathematical transformations are used to interchange among the color spaces. The YIQ color space is used in televisions in the United States. This color space separates grayscale information from color data, so the same signal can be used for both color and black and white television sets thereby increasing usability. In this article, we will be seeing how to convert an RGB Image to YIQ using MATLAB. Approach:Read the RGB Image.Use the rgb2ntsc() command to apply the transformations and convert to YIQ space.Show both the Images together for comparison purposes.Example 1: Matlab % Matlab Code to convert an RGB % Image to Binary image reading image I = imread('GFG.jpeg'); % Creating figure window for input image % Displaying the input image imshow(I); % Converting the image from rgb to % binary using thresholding J = rgb2ntsc(I); % Creating figure window for the output image % Displaying the output image imshow(J); Output: Figure 1: Input imageFigure 2: Output imageConsider another example with MATLAB's inbuilt image of a lighthouse. Example 2: Matlab % Matlab Code to convert an RGB Image % to Binary image reading image I = imread('lighthouse.png'); % Creating figure window for input image % Displaying the input image imshow(I); % Converting the image from rgb to % binary using thresholding J = rgb2ntsc(I); % Creating figure window for the output image % Displaying the output image imshow(J); Output : Figure 3: Input image Figure 4: Output imageCode Explanation: I = imread('lighthouse.png'); This line reads the imageimshow(I); This line displays the input image I in the figure windowJ = rgb2ntsc(I); This line converts the Image from RGB color space to YIQ color space.imshow(J); This line displays the output image J in another figure window. Create Quiz Comment H htripathi6 Follow 1 Improve H htripathi6 Follow 1 Improve Article Tags : Software Engineering Geeks-Premier-League-2022 Explore Software Engineering BasicsIntroduction to Software Engineering7 min readSoftware Development Life Cycle (SDLC)6 min readSoftware Quality - Software Engineering5 min readISO/IEC 9126 in Software Engineering4 min readBoehm's Software Quality Model4 min readSoftware Crisis - Software Engineering3 min readSoftware Measurement & MetricesSoftware Measurement and Metrics4 min readPeople Metrics and Process Metrics in Software Engineering7 min readHalsteadâs Software Metrics - Software Engineering10 min readCyclomatic Complexity6 min readFunctional Point (FP) Analysis - Software Engineering8 min readLines of Code (LOC) in Software Engineering4 min readSoftware Development Models & Agile MethodsWaterfall Model - Software Engineering12 min readWhat is Spiral Model in Software Engineering?9 min readPrototyping Model - Software Engineering7 min readIncremental Process Model - Software Engineering6 min readRapid Application Development Model (RAD) - Software Engineering9 min readCoupling and Cohesion - Software Engineering10 min readAgile Software Development - Software Engineering15+ min readSRS & SPMSoftware Requirement Specification (SRS) Format5 min readSoftware Engineering | Quality Characteristics of a good SRS7 min readSoftware Project Management (SPM) - Software Engineering8 min readCOCOMO Model - Software Engineering15+ min readCapability Maturity Model (CMM) - Software Engineering10 min readIntegrating Risk Management in SDLC | Set 18 min readSoftware Maintenance - Software Engineering13 min readTesting & DebuggingWhat is Software Testing?11 min readTypes of Software Testing15+ min readTesting Guidelines - Software Engineering3 min readWhat is Debugging in Software Engineering?11 min readVerification & ValidationVerification and Validation in Software Engineering6 min readRole of Verification and Validation (V&V) in SDLC5 min readRequirements Validation Techniques - Software Engineering8 min readPractice QuestionsTop 50+ Software Engineering Interview Questions and Answers15+ min read Like