Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Manish Kumar Saini
Page 20 of 80
How to Color Slicing Using HSV Color Space in MATLAB?
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 MoreHow to Calculate Cumulative Product in MATLAB
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 MoreHow to Calculate Covariance in MATLAB
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 MoreHow to Apply Median Filter for RGB Image in MATLAB?
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 MoreConvolution Theorem for Fourier Transform in MATLAB
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 MoreConvolution Shape (full/same/valid) in MATLAB
In digital signal processing and image processing, the convolution is a crucial mathematical operation. The primary function of the convolution is to combine two signals to produce a resulting signal. The resulting signal specifies the interaction between the two signals that we combined. In MATLAB, we can perform the convolution of two signals by using a built−in function ‘conv()’. This MATLAB function performs the convolution by using a discrete approximation of the integration. For this, it uses discrete samples of the input signals. Syntax The following is the general syntax for the ‘conv()’ function, a = conv(x, y, shape); ...
Read MoreConfigure the Run Button for Functions in MATLAB
In this article, we will learn to configure the Run button for functions in MATLAB. In MATLAB, the `Run` button is used execute a MATLAB code. Also, MATLAB allows us to configure the `Run` button to execute a specific user defined function. Algorithm to Configure Run Button The step−by−step process to configure the Run button to execute a specific function in MATLAB is explained below: Step 1 − Firstly, create a new script to open the MATLAB editor. Step 2 − Define or create a function for which you want to configure the Run button. For example, we create ...
Read MoreComparing Two Cell Arrays of Strings of Different Sizes in MATLAB
In this article, we will learn how to compare two cell arrays of strings of different sizes in MATLAB. Cell Array of Strings In MATLAB, a cell array of strings is a data structure that can store different types of elements. The element of a cell array are enclosed within curly braces `{}`. Syntax We can use the following syntax to create a cell array of strings, A = {'string1', 'string2', 'string3', …'stringN'}; Here, `A` is a cell array of strings that contains N string elements namely, `string1`, `string2`, …, `stringN`. In MATLAB, the cell arrays of strings are ...
Read MoreBoundary Extraction of Image using MATLAB
In an image, a boundary is an element that separates an object from the background of the image or two different regions within an image. Boundary provides information about the shape and structure of objects present in the image. Boundaries are mainly classified into the following two types: Inner Boundary It is the boundary of an object within an image that separates it from the image background. The inner boundary is basically the outline of the object and provides information about the shape of the object. Therefore, by extracting the inner boundary of an object, we can identify and analyze ...
Read MoreBlack and White Optical Illusion in MATLAB
An optical or visual phenomenon that creates the perception of distortion, movement or any other type of fascinating visual effect by using back and white patterns is referred to as back and white optical illusion. These back and white patterns utilize the way our eyes and brain process the visual information and create an illusion to mislead our perception. The back and white optical illusions use various black and white patterns, shapes, and lines arranged in a specific style. These arrangements are made such that they can create illusion of movement, distortion, depth, and more. In this article, we will ...
Read More