Found 163 Articles for MATLAB

How to Calculate Moving Sum in MATLAB?

Manish Kumar Saini
Updated on 07-Aug-2023 17:17:53

108 Views

In this article, we will explore how to calculate moving sum using MATLAB programming. But before that let us have a look into the concept of moving sum. What is Moving Sum? Moving sum is a mathematical operation that allows to calculate the sum of a set of numbers over a specified interval, known as window size or rolling window. It is also known as cumulative sum or rolling sum. Moving sum is widely used in the field of data analysis and signal processing. Moving sum is generally performed on sequential data where the order of data elements is significant ... Read More

How to Convert YIQ Image to RGB Image Using MATLAB?

Manish Kumar Saini
Updated on 07-Aug-2023 17:15:58

105 Views

In this article, we will learn how to convert a YIQ image into an RGB image using MATLAB programming. YIQ is color space used in analog display devices to display color images. It uses three components namely, Y (brightness), I (In−Phase), and Q (Quadrature) to distinguish the image. Here, the Y component of the color space represents the luminance or brightness of the image, and the other two components, i.e. I and Q represent the color information of the image. The YIQ is a NTSC (National Television System Committee) standard based color−space. It is used in analog video systems to ... Read More

How to Convert Three Channels of Colored Image into Grayscale Image in MATLAB?

Manish Kumar Saini
Updated on 07-Aug-2023 17:12:37

153 Views

In this article, we will explore how to convert a colored image with three channels, i.e. RGB (Red, Green, and Blue) into a gray scale image using MATLAB. An RGB image is a digital image in which each pixel is represented as a combination of intensity of three−color channels, namely red, green, and blue. RGB image is mainly used display color images on display screens. On the other hand, a gray scale image is one that uses only two colors, i.e. black and white to represents the elements in an image. In other words, a gray scale image is a ... Read More

How to Convert RGB Image to Binary Image Using MATLAB?

Manish Kumar Saini
Updated on 07-Aug-2023 17:09:45

405 Views

In this article, we will explore how to convert an RGB image to a binary image using MATLAB programming. An RGB image is one which is represented by using three color channels namely, Red, Green, and Blue. In the case of an RGB image, the three primary colors, namely red, green, and blue are used to represent all the colors in the image. In the RGB image, each pixel of the image is represented by a combination of intensity values for these three colors. Therefore, the three intensity values of RGB colors determine the color of the pixel. In MATLAB, ... Read More

How to Convert HSI Image to RGB Image in MATLAB?

Manish Kumar Saini
Updated on 07-Aug-2023 17:08:29

236 Views

HSI (also called HSV) and RGB are two different types of color spaces. Where, HSI stands for Hue Saturation and Intensity, (HSV stands for Hue Saturation Value). An image represented based on the color model of HSI is called an HSI image. On the other hand, RGB stands for Red Green and Blue. It is another popular color space in which images are represented based on red, green, and blue color intensities. In this article, we will study how to convert an HSI image into an RGB image using MATLAB programming. MATLAB provides a built−in function ‘hsv2rgb’ to convert an ... Read More

How to Color Slicing Using HSV Color Space in MATLAB?

Manish Kumar Saini
Updated on 07-Aug-2023 17:05:21

155 Views

In digital image processing, the process of extracting a specific color or color range from an image with all other colors are discarded is referred to as color slicing. In an image, the color slicing is performed by creating a binary mask that selects all the pixels in the image that lies in the range of the specified color. Coloring slicing is generally used in specific color spaces such as RGB (Red−Green−Blue) color space or HSV (Hue−Saturation−Value) color space, etc. In this article, we will learn how to perform color slicing in HSV color space using MATLAB programming. In the ... Read More

How to Calculate Cumulative Product in MATLAB

Manish Kumar Saini
Updated on 07-Aug-2023 16:41:44

111 Views

In this article, we will learn how to calculate cumulative product in MATLAB. So, lets, start with the basic definition of cumulative product. What is Cumulative Product? A mathematical operation in which the product of a sequence of numbers is computed in a cumulative manner is called cumulative product. In the cumulative product, the product of elements of a sequence of numbers is computed up to the given index and the result obtained in each step is stored in the form of an array. To understand the what is the cumulative product? Let’s consider an example as follows. Let a ... Read More

How to Calculate Covariance in MATLAB

Manish Kumar Saini
Updated on 07-Aug-2023 16:36:01

128 Views

In this article, we will explore how to calculate covariance using MATLAB programming. But before that let’s have a look into the basic theory of covariance and importance. What is Covariance? Covariance is a statistical tool used to describe the correlation between two or more random variables. In other words, covariance is a measure that gives information about relationship between two or more variables. The covariable is primarily used to quantify the changes in one variable with respect to changes in another variables. The covariance between two random variables ‘A’ and ‘B’ is specified as cov(A, B), and ... Read More

How to Apply Median Filter for RGB Image in MATLAB?

Manish Kumar Saini
Updated on 07-Aug-2023 16:12:03

178 Views

In digital image processing, filtering is defined as a process of modifying an image to enhance its visibility. Image filtering in digital image processing involves the use of some mathematical operations applied to each pixel of the image. It alters the pixel value to achieve the desired corrections like noise reduction, edge detection, image enhancement, etc. The image filtering is performed by applying a filter to the image. Where, the filter is nothing but a matrix of numbers that determine how to modify the pixel values. There are several types of image filters available based on different requirements. Some common ... Read More

Convolution Theorem for Fourier Transform in MATLAB

Manish Kumar Saini
Updated on 07-Aug-2023 16:07:39

323 Views

According to the convolution theorem for Fourier transform, the convolution of two signals in the time domain is equivalent to the multiplication in the frequency domain. Therefore, if two signals are convolved in the time domain, they result the same if their Fourier transforms are multiplied in the frequency domain. For example, if x(t) and h(t) are two signals in the time domain and their Fourier transforms are X(ω) and H(ω) respectively. Then, their convolution in the time domain is given by, f(t) = x(t) * h(t) Here, the symbol ‘*’ represent the convolution of two signals. And the ... Read More

Advertisements