Digital Image Processing Tutorial
Last Updated :
12 Apr, 2024
In this tutorial, we will learn all about Digital Image Processing or DIP which is a subcategory of signal processing that particularly deals with the manipulation of digital images by using a digital computer. It is based on the principle of the I-P-O cycle, where it will take a digital image as an input and process it to get an image as an output.

This free DIP tutorial is designed from basics to advanced level so anyone, from beginners to professionals can easily get all the details of digital image processing. This tutorial includes all the modules like basics, MATLAB GUI, Image conversion, image filtering techniques, histogram equalization, object identification, edge detection in MATLAB, Image extensions, MATLAB built-in functions, array functions, etc.
What is Digital Image Processing (DIP)?
Digital Image Processing or DIP is software that takes a digital image as an input to process it to get an image as an output. In other words, DIP deals with the manipulation of digital images by using a digital computer. It is a subcategory of signals and systems where it can be easily understood by beginners if they know the basics of digital electronics.
It also requires the knowledge of basic calculus, probability, and differential equations for mathematical calculation purposes. Also, there is a basic knowledge of programming like MATLAB, C++, etc.
Digital Image Processing is used as a software for image processing. Photography is the mechanism that processes the image accordingly. Other examples are computer graphics, pixels, etc.
Examples of Digital Image Processing
The most common and highly used example is Adobe photoshop. As we discussed above, other examples are computer graphics, photography, camera, X Ray images, CT Scans, etc.
Working of Digital Image Processing
The working principle of Digital Image Processing is based on I-P-O cycle where takes input, process and then release output. Here, digital image acts as an input and after processing, it will become the desired image we want acts as an output. Lets take an example to elaborate the working of Digital Image Processing.
If we take a snap from a camera or mobile, and send that snap to digital system so that it can remove all the irrelevant part of that image and can just enhance the part we want. Like, a snap contains a view of a village and we want to just focus on 3rd cottage, then digital system will just focuses on that only by zooming it and the quality will not get compromised.
Introduction to DIP (Digital Image Processing)
Digital Image Processing (DIP) is a field of study and practice on manipulating and analyzing of digital images using digital Algorithms. It deals with the images which are represented in the digital format, basically array of pixels. In DIP, the images are processed to enhance their quality or to perform various operation such as segmentation, restoration and recognition. It has various Applications in domains such as medicine, remote sensing, surveillance and more.
For Example, DIP Techniques are used to enhance clarity of X-ray images which provides healthcare professionals to detect abnormalities more accurately.
DIP Basics
What is Image Processing ?
What is an Image in DIP?
What is Digital Image Processing ?
Fundamental Steps in Digital Image Processing
Components of Digital Image Processing
Applications of Digital Image Processing
Analog Image Processing
History of Photography
Concept of Dimensions in DIP
Image Formation on Camera
Camera Mechanism
What is Pixel?
Concept of Bits Per Pixel
Types of Images
Binary Image
Concept of Sampling
Pixel Resolution
Image Conversion
Image conversion is the process of converting images from one format to another format. The image conversion is important in digital image processing as different devices and software supports different image formats. Image conversion can be performed using different tools and services. Overall image conversion is an important and valuable process that allows user to change image format for different platforms, devices, and usage scenarios, ensuring compatibility, efficiency, and optimal visual quality.
Introduction to Digital Images
Color Codes Conversion
RGB image representation
How to convert RGB image to binary image
YIQ Color Model
How to convert YIQ image to RGB image
How to convert RGB image to YIQ image
What is Grayscale image?
What are the advantages and disadvantages of HSV color ?
How to convert RGB image to grayscale image without using rgb2gray function
What is Otsu Thresholding ?
Otsu's thresholding without graythresh function
What is HSI Color Space ?
Converting RGB Image to HSI Image
Converting HSI Image to RGB Image
How to partially colored gray image in MATLAB
What is the HSV (Hue, Saturation, Value) Color Model?
What are the advantages and disadvantages of HSV color ?
Color Slicing using HSV color space
Image Filtering Techniques
Image Filtering Techniques are one of the important tools that are used in the digital image processing which provides different methods to improve, modify or extract information from the images. One of the the primary functions of the image processing is to reduce the unwanted noise that can degrade the image quality, to reduce this ,image filtering techniques are used to smooth out irregularities and improve the clarity of image. Overall image filter are important in the digital image processing to perform various functions such as reducing noise, detecting edges, enhancing details, or manipulating colors.
What are Image Filtering Techniques ?
Spatial Filtering and its Types
Frequency Domain Filters and its Types
What is Median filtering ?
Median filtering for salt and pepper noise without using medfilt2 function
What is moving average filter ?
How to decide window size for a moving average filter?
Noise Models in Digital Image Processing
Gaussian Noise
Rayleigh Noise
Erlang (or gamma) Noise
Exponential Noise
Uniform Noise
Impulse NoiseÂ
How to apply Median filter for RGB image in MATLAB
What is moving average filter ?
Linear filtering without using imfilter function
Add 'Salt and pepper'or 'Speckle' noise to an image
What is Linear filtering ?
What is Adaptive filtering- Local Noise filter
One Dimensional Low pass filtering
High Pass filtering
Band pass filtering
MATLAB - Converting a Grayscale Image to Binary Image using Thresholding
Gaussian Filtering/ Gaussian Blur
Upsampling in MATLAB
Upsampling in Frequency Domain
Convolution Shape (full/same/valid) in MATLAB
Linear Convolution using C and MATLAB
Circular Convolution using C and MATLAB
Histogram Equalization
Histogram Equalization is one of the fundamental technique used in image processing to improve contrast and brightness of the image. This method works by adjusting the Pixel density distribution of an image to create more uniform histograms which results in improving the visual quality and clarity. Histogram equalization is used in the various image processing such as medical imaging, satellite imaging, digital photography, and computer vision.
Histogram Equalization in Digital Image Processing
Histogram equalization without using histeq() function.[Global]
Local Histogram equalization in MATLAB
Color Histogram equalization
Identifying objects based on label(bwlabel)
Object Identification and Edge Detection
Object Identification and Edge Detection are techniques of digital image processing where we can find out the boundaries or area covered by objects within an image and it can be done by using image segmentation and data extraction. It is useful and implemented in many areas like computer and machine vision, image processing, medical imaging, remote sensing, pattern recognition. It can be implemented by using 4 important steps named as smoothing, enhancement, detection and localization.
MATLAB output function
Cartesian to Polar co-ordinates
Identifying objects based on label(bwlabel)
Image shading in MATLAB
Edge detection using in-built function in MATLAB
Digital Image Processing Algorithms using MATLAB
Sobel edge detection
Edge Detection -Fundamentals
Image Sharpening using second order derivative - (Laplacian)
Edge detection using Local Variance
PhotoShop Effects in MATLAB
In MATLAB, users can replicate various photoshop effects by using various image processing techniques. By using these techniques user can make similar photoshop visual effects like Adobe Photoshops. For this process, MATLAB is used as it is flexible and it has extensive toolbox which makes it a powerful platform for implementing a wide range of image effects and enhancements. These includes effects like motion blur, sharpening techniques, color adjustments, denoising algorithms, artistic effects such as oil painting or watercolor, geometric transformations, text overlays, and more.
What is Swirl Effect in MATLAB
Oil Painting in MATLAB
Cone effect in MATLAB
Glassy effect in MATLAB
Tiling effect in MATLAB
These techniques are the integral components of the digital image processing. The image Geometry is used to deal with the spatial arrangements in the digital images, it includes techniques for image adjustment, such as resizing, cropping, and rotating. The Optical illusion are used for visual Phenomena, it contains various techniques to create or replicate optical illusions. The Image Transformation are the broad range of techniques used for altering the appearance or content of digital images. These Techniques has various applications in photography, graphic design, medical imaging, and scientific research.
Geometric Transformation in Image Processing
Image rotation by Matlab without using imrotate
Image Resizing in Matlab
Matlab program to rotate an image 180 degrees clockwise without using function
Optical Illusion in Digital Image Processing
Nearest-neighbor interpolation algorithm in MATLAB
Black and white optical illusion
MATLAB | Complement colors in a Binary image
2-D Discrete Cosine Transform
2-D Inverse Cosine Transform
Intensity Transformation Operations on Images
What is Fast Fourier Transform?
Fast Fourier Transform on 2 Dimensional matrix using MATLAB
Gray Level Transformation
Gray Scale to Pseudo Color Transformation
What is Image Enhancement?
Linear Contrast Enhancement
Balance Contrast Enhancement Technique
Morphological Image Processing, Compression and Files
These Processing techniques are the important components of digital image processing. The Morphological Image Processing involves the analysis and manipulation of image shape and structure using mathematical techniques which includes function such as dilation, erosion, opening, and closing, that are used to enhance, segment, or extract features from images based on their geometric properties.
The Compression is the techniques used to reduce the size of the digital image file while preserving its quality. This is done by eliminating redundant or irrelevant information from images. The File handling technique is the process of managing, manipulating and storing the image files in the different formats. These techniques has wide range of applications in science, engineering, medicine, and multimedia.
What is morphological image processing?
What are data compression techniques?
Boundary Extraction
MATLAB: Connected Component labeling without using bwlabel or bwconncomp functions
Morphological Operations in MATLAB
MATLAB Erosion of an Image
Auto Cropping- Based on labeling the connected components
Run Length Encoding & Decoding in MATLAB
Lossless Predictive Coding
Bit Plane Compression
How to read text file backwards?
Read words in a file in reverse order
How to read image file or complex image file in MATLAB
Image Transformation is the process of changing or alerting the appearance or characteristics of digital images through various mathematical operations. These operations involves different techniques to modify the spatial properties of images such as size, orientation, and position to get the desired visual effect or to extract the specific information. Image Transformation is widely used in the DIP for performing operation such as geometric correction, image registration, and feature extraction.
What is Image Coding ?
What is image comparison?
What is a texture in image processing?
2-D Discrete Cosine Transform
2-D Inverse Cosine Transform
Intensity Transformation Operations on Images
Fast Fourier Transform on 2 Dimensional matrix using MATLAB
Gray Scale to Pseudo Color Transformation
Linear Contrast Enhancement
Balance Contrast Enhancement Technique
Image Coding, Comparison and Texture Features
Image Coding ,Comparison and Text features are the fundamental aspects in the DIP. Image coding is the techniques for efficiently representing and compressing the digital images. It contains different compression algorithms such as JPEG, PNG, and GIF. Comparison techniques are used for assessing similarities or differences between images. It includes Methods like computing the similarity metrics, such as correlation coefficients or structural similarity indices, to find the degree of resemblance between images.
The Texture feature is the Spatial arrangement of pixel intensities in an image that provides the information about surface properties such as smoothness, roughness, or granularity. These Techniques plays important role in advancing the field of digital image processing.
Digital Image Watermarking
Hide the message or image inside an image
How do I match a template in Matlab?
Grey Level Co-occurrence Matrix (GLCM) in MATLAB
Texture Measures from GLCM – MATLAB CODE
Difference Between
This part of the tutorial contains important differences or comparison based topics based on digital image processing where you can see differences of types of images, color models, types of noise etc. All the differences articles will give you an structured tabular format differences for comparison with clarity.
Analog Image Processing vs. Digital Image Processing
Difference Between RGB, CMYK, HSV, and YIQ Color Models
Difference between dilation and Erosion
Differentiate between grayscale and RGB images
Monochrome vs. Grayscale
Difference between binary and grayscale images?
Differences between RGB and CMYK color schemes
Portable Cameras vs. Digital Cameras
Difference between 8-bit and 16 bit color format
Difference between salt noise and pepper noise
Conclusion
With a clear focus on practical techniques and real-world applications, this digital image processing tutorial equips learners with the essential skills to navigate the complexities of digital image processing seamlessly on the areas MATLAB GUI, Image conversion, image filtering techniques, histogram equalization, object identification, edge detection in MATLAB, Image extensions, MATLAB built-in functions, array functions, etc. Whether you're a beginner or an experienced, embracing the knowledge will undoubtedly elevate your proficiency in digital image processing to new heights. Explore, learn, and unlock the boundless possibilities of digital imagery with this definitive tutorial.
Similar Reads
Digital Image Processing Tutorial
In this tutorial, we will learn all about Digital Image Processing or DIP which is a subcategory of signal processing that particularly deals with the manipulation of digital images by using a digital computer. It is based on the principle of the I-P-O cycle, where it will take a digital image as an
13 min read
Introduction to Digital Image Processing
Image Conversion
MATLAB | RGB image representation
RGB image can be viewed as three different images(a red scale image, a green scale image and a blue scale image) stacked on top of each other, and when fed into the red, green and blue inputs of a color monitor, it produces a color image on the screen. RGB color model is the model in which Red, Blue
4 min read
How to Convert RGB Image to Binary Image Using MATLAB?
An Image, by definition, is essentially a visual representation of something that depicts or records visual perception. Images are classified in one of the three types. Binary ImagesGrayscale ImagesColor ImagesBinary Images: This is the most basic type of image that exists. The only permissible pixe
3 min read
YIQ Color Model in Computer Graphics
During the early days of color television, black-and-white sets were still expected to display what were originally color images. YIQ model separated chrominance from luminance. Luminance information is contained on the Y-channel, whereas color information is carried on I and Q channels (in-phase an
2 min read
How to Convert YIQ Image to RGB Image Using MATLAB?
Converting images from one color space to another is a handy process in image processing that provides convenience and eases the overall process by choosing the most accurate color space to work the image on. The YIQ color space, as the name suggests comprises of three components namely Luma (Y), In
4 min read
How to Convert RGB Image to YIQ Image using MATLAB?
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 vec
2 min read
MATLAB | RGB image to grayscale image conversion
An RGB image can be viewed as three images( a red scale image, a green scale image and a blue scale image) stacked on top of each other. In MATLAB, an RGB image is basically a M*N*3 array of colour pixel, where each colour pixel is a triplet which corresponds to red, blue and green colour component
4 min read
MATLAB | Change the color of background pixels by OTSU Thresholding
MATLAB also called Matrix Laboratory is a numerical computing environment and a platform for programming language. it was designed and developed by MathWorks. MATLAB is a framework that allows you to perform matrix manipulations, implementing algorithms, plotting functions and data, creating user-in
2 min read
How to Converting RGB Image to HSI Image in MATLAB?
Converting the color space of an image is one of the most commonly performed operations in Image Processing. It is used so much as a lot of transformation/filters are performed on a specific color mode of an image. i.e. Thresholding is performed in Grayscale, Color slicing in HSV etc. A color space
2 min read
How to Convert HSI Image to RGB Image in MATLAB?
HSI stands for Hue Saturation Intensity. HSI is color space, it provides a way of numeric to readout the image that is corresponding to the color name contained. RGB it's basically called the RGB triplet. in MATLAB the RGB image is a kind of  MxNx3 M cross N cross 3 arrays of colors pixel which is u
3 min read
How to Partially Colored Gray Image in MATLAB?
Partially colored images are a common way of enhancing the objects within the image. It is sometimes used as a tool to emphasize the presence of certain objects within the scene. And the processing required to create one is negligible, in contrast to the effect it produces. In this article you will
3 min read
HSV Color Model in Computer Graphics
A color model is a multidimensional representation of the color spectrum. The most relevant color spectrums are RGB, HSV, HSL and CMYK. A color model can be represented as a 3D surface (e.g. for RGB) or go into much higher dimensions (such as CMYK). By adjusting the parameters of these surfaces, we
2 min read
How to Color Slicing Using HSV Color Space in MATLAB?
Color slicing is a technique in image processing, which lets us separate certain objects from their surroundings. Furthermore, it works by filtering through only a certain band of the color spectrum, essentially erasing all other colors beyond it. In this article, you will learn how to perform color
4 min read
Image Filtering Techniques
Spatial Filtering and its Types
Spatial Filtering technique is used directly on pixels of an image. Mask is usually considered to be added in size so that it has specific center pixel. This mask is moved on the image such that the center of the mask traverses all image pixels. Classification on the basis of Linearity There are two
3 min read
Frequency Domain Filters and its Types
Frequency Domain Filters are used for smoothing and sharpening of image by removal of high or low frequency components. Sometimes it is possible of removal of very high and very low frequency. Frequency domain filters are different from spatial domain filters as it basically focuses on the frequency
2 min read
How to Remove Salt and Pepper Noise from Image Using MATLAB?
Impulse noise is a unique form of noise that can have many different origins. Images are frequently corrupted through impulse noise due to transmission errors, defective memory places, or timing mistakes in analog-to-digital conversion. Salt-and-pepper noise is one form of impulse noise that can cor
4 min read
How to Decide Window Size for a Moving Average Filter in MATLAB?
A moving average filter is a widely used technique for smoothing data in signal processing. It is used to reduce the amount of noise in a given signal and to identify trends in the data. In MATLAB, the window size of a moving average filter is an important parameter that determines how much data is
3 min read
Noise Models in Digital Image Processing
The principal source of noise in digital images arises during image acquisition and transmission. The performance of imaging sensors is affected by a variety of environmental and mechanical factors of the instrument, resulting in the addition of undesirable noise in the image. Images are also corrup
3 min read
How to Apply Median Filter For RGB Image in MATLAB?
Filtering by definition is the process of enhancing or modifying an image by applying some method or algorithm over a small area and extending that algorithm over all the areas of the image. Since we apply the methods over an area, filtering is classified as a neighboring operation. Filters are esse
2 min read
How to Linear Filtering Without Using Imfilter Function in MATLAB?
Edges can be sharpened, random noise can be reduced, and uneven illuminations can be corrected using a linear filtering technique. Correlating the image with the proper filter kernel completes the process. The imfilter function calculates the value of each output pixel using double-precision floatin
3 min read
Noise addition using in-built Matlab function
Noise in an image: Digital images are prone to various types of noise that makes the quality of the images worst. Image noise is random variation of brightness or color information in the captured image. Noise is basically the degradation in image signal caused by external sources such as camera. Im
3 min read
Adaptive Filtering - Local Noise Filter in MATLAB
On the degraded image, which contains both the original image and noise, an adaptive filter is applied. With a predetermined mxn window region, the mean and variance are the two statistical measures on which a locally adaptive filter depends. Adaptive Filters:adaptive filters are also Digital filte
4 min read
Difference between Low pass filter and High pass filter
IntrWhen it comes to processing signals, filtering is a key aspect that helps in shaping the characteristics of the signal. Low-pass and high-pass filters are two commonly used types of filters that work in opposite ways to filter signals. Low-pass filters, as the name suggests, allow low-frequency
3 min read
MATLAB - Butterworth Lowpass Filter in Image Processing
In the field of Image Processing, Butterworth Lowpass Filter (BLPF) is used for image smoothing in the frequency domain. It removes high-frequency noise from a digital image and preserves low-frequency components. The transfer function of BLPF of order [Tex]n[/Tex] is defined as- [Tex]H(u, v)=\frac{
3 min read
MATLAB - Ideal Lowpass Filter in Image Processing
In the field of Image Processing, Ideal Lowpass Filter (ILPF) is used for image smoothing in the frequency domain. It removes high-frequency noise from a digital image and preserves low-frequency components. It can be specified by the function- [Tex] $H(u, v)=\left\{\begin{array}{ll}1 & D(u, v)
3 min read
MATLAB | Converting a Grayscale Image to Binary Image using Thresholding
Thresholding is the simplest method of image segmentation and the most common way to convert a grayscale image to a binary image.In thresholding, we select a threshold value and then all the gray level value which is below the selected threshold value is classified as 0(black i.e background ) and al
3 min read
Laplacian of Gaussian Filter in MATLAB
The Laplacian filter is used to detect the edges in the images. But it has a disadvantage over the noisy images. It amplifies the noise in the image. Hence, first, we use a Gaussian filter on the noisy image to smoothen it and then subsequently use the Laplacian filter for edge detection. Dealing wi
4 min read
What is Upsampling in MATLAB?
In this article, we will see Upsampling in MATLAB. As we know that upsampling is the process of increasing the sampling rate, i.e, increasing the number of samples. When an upsampling functions on a series of samples of a signal or other continued function, it has an estimation of the row that would
4 min read
Upsampling in Frequency Domain in MATLAB
Upsampling" is the process of inserting zero-valued samples between original samples to increase the sampling rate. (This is called "zero-stuffing".) Upsampling adds to the original signal undesired spectral images which are centered on multiples of the original sampling rate. In Frequency domain ,
4 min read
Convolution Shape (full/same/valid) in MATLAB
Convolution is a mathematical operation. It is used in Image processing in MatLab. A mask/filter is used to convolve an image for image detection purposes. But MatLab offers three types of convolution. Here we shall explain the simple convolution. The filter slides over the image matrix from left to
6 min read
Linear Convolution using C and MATLAB
A key concept often introduced to those pursuing electronics engineering is Linear Convolution. This is a crucial component of Digital Signal Processing and Signals and Systems. Keeping general interest and academic implications in mind, this article introduces the concept and its applications and i
8 min read
Object Identification and Edge Detection
Functions in MATLAB
Methods are also popularly known as functions. The main aim of the methods is to reuse the code. A method is a block of code which is invoked and executed when it is called by the user. It contains local workspace and independent of base workspace which belongs to command prompt. Let's take a glance
5 min read
Program to determine the quadrant of the cartesian plane
Given co-ordinates (x, y), determine the quadrant of the cartesian plane. Image_source : wikipedia.org Examples : Input : x = 1, y = 1 Output : lies in 1st quadrant Input : x = 0, y = 0 Output : lies at origin There are 9 conditions that needs to be checked to determine where does the points lies -
6 min read
How To Identifying Objects Based On Label in MATLAB?
labeling means identifying and placing labels on each program of an object project in the image. in Binary image, it's classified as 4-connected and 8-connected. for performing the labeling in MATLAB we use the Built-in function bwlabel() used to label the object in the binary image. So, In this art
4 min read
What is Image shading in MATLAB?
As the name suggests, Image shading means modifying the original image into its sharpened form by detecting the edges of the image. Here two words are combined to define a process one is "image" which means picture and another word is "Shading" which is defined as a process of redrawing or modifying
3 min read
Edge detection using in-built function in MATLAB
Edge detection: In an image, an edge is a curve that follows a path of rapid change in intensity of that image. Edges are often associated with the boundaries of the object in a scene environment. Edge detection is used to identify the edges in an image to make image processing easy. Edge detection
2 min read
Digital Image Processing Algorithms using MATLAB
Like it is said, "One picture is worth more than ten thousand words "A digital image is composed of thousands and thousands of pixels. An image could also be defined as a two-dimensional function, f(x, y), where x and y are spatial (plane) coordinates and therefore the amplitude of f at any pair of
8 min read
MATLAB - Image Edge Detection using Sobel Operator from Scratch
Sobel Operator: It is a discrete differentiation gradient-based operator. It computes the gradient approximation of image intensity function for image edge detection. At the pixels of an image, the Sobel operator produces either the normal to a vector or the corresponding gradient vector. It uses tw
3 min read
Image Complement in Matlab
Prerequisite: RGB image representationMATLAB stores most images as two-dimensional matrices, in which each element of the matrix corresponds to a single discrete pixel in the displayed image. Some images, such as truecolor images, represent images using a three-dimensional array. In truecolor images
2 min read
Image Sharpening Using Laplacian Filter and High Boost Filtering in MATLAB
Image sharpening is an effect applied to digital images to give them a sharper appearance. Sharpening enhances the definition of edges in an image. The dull images are those which are poor at the edges. There is not much difference in background and edges. On the contrary, the sharpened image is tha
4 min read
Edge detection using in-built function in MATLAB
Edge detection: In an image, an edge is a curve that follows a path of rapid change in intensity of that image. Edges are often associated with the boundaries of the object in a scene environment. Edge detection is used to identify the edges in an image to make image processing easy. Edge detection
2 min read
PhotoShop Effects in MATLAB
What is Swirl Effect in MATLAB?
In Matlab, the Swirl Effect is a type of Photoshop effect. Image processing has made extensive use of the swirl effect. It is advantageous for those with expertise in image processing because both the image and the fundamental component of the swirl effect are matrices. The swirl effect simplifies i
2 min read
What is Oil Painting in MATLAB?
In this era of information and intelligence, it seems that painting graphics have been seriously marginalized, which also produced how to better develop painting technology in modern society. Nowadays, in this field, digital image processing plays important role in the expansion of oil painting crea
3 min read
Cone Effect in MATLAB
MATLAB is a high-performance language that is used for matrix manipulation, performing technical computations, graph plottings, etc. It stands for Matrix Laboratory. With the help of this software, we can also give the cone effect to an image. It is done by using the image's midpoint. After this, we
2 min read
What is Glassy Effect in MATLAB?
MATLAB is a high-performance language that is used for matrix manipulation, performing technical computations, graph plottings, etc. It stands for Matrix Laboratory. With the help of this software, we can also give the glassy effect to an image. It is done by replacing each pixel value in the image
2 min read
What is Tiling Effect in MATLAB?
MATLAB is a high-performance language that is used for matrix manipulation, performing technical computations, graph plottings, etc. It stands for Matrix Laboratory. With the help of this software, we can provide a tiling effect to an image. It is done by breaking the original image and then allocat
2 min read
Image Geometry, Optical Illusion and Image Transformation
Matlab program to rotate an image 180 degrees clockwise without using function
An image is defined as two-dimensional function, f(x, y), where x and y are spatial (plane) coordinates, and the amplitude of f at any pair of coordinates(x, y) is called the Intensity or the Gray level of the image at that point. When x, y and the intensity values of f are all finite, discrete quan
2 min read
Image Resizing in Matlab
Prerequisite : RGB image representation MATLAB stores most images as two-dimensional matrices, in which each element of the matrix corresponds to a single discrete pixel in the displayed image. Some images, such as truecolor images, represent images using a three-dimensional array. In truecolor imag
2 min read
Matlab program to rotate an image 180 degrees clockwise without using function
An image is defined as two-dimensional function, f(x, y), where x and y are spatial (plane) coordinates, and the amplitude of f at any pair of coordinates(x, y) is called the Intensity or the Gray level of the image at that point. When x, y and the intensity values of f are all finite, discrete quan
2 min read
Nearest-Neighbor Interpolation Algorithm in MATLAB
Nearest neighbor interpolation is a type of interpolation. This method simply determines the "nearest" neighboring pixel and assumes its intensity value, as opposed to calculating an average value using some weighting criteria or producing an intermediate value based on intricate rules. Interpolatio
3 min read
Black and White Optical illusion in MATLAB
MATLAB provides many toolboxes for different applications. The Image Processing Toolbox is one of the important toolboxes in MATLAB. The Black and White optical illusion in MATLAB happens when we compliment the pixel values in a black and white image and after staring at the center of the resultant
2 min read
MATLAB | Complement colors in a Binary image
Binary image is a digital image that has only two possible value for each pixel - either 1 or 0, where 0 represents white and 1 represents black. In the complement of a binary image, the image pixel having value zeros become ones and the image pixel having value ones become zeros; i.e white and blac
3 min read
Discrete Cosine Transform (Algorithm and Program)
Image Compression : Image is stored or transmitted with having pixel value. It can be compressed by reducing the value its every pixel contains. Image compression is basically of two types : Lossless compression : In this type of compression, after recovering image is exactly become same as that was
11 min read
2-D Inverse Cosine Transform in MATLAB
The 2-D inverse cosine transform is used to decode an image into the spatial domain, which is a more suitable data representation for compression (ICT). ICT-based decoding is the foundation for standards for image and video decompression. or, to put it another way, we can say that the inverse cosine
2 min read
MATLAB - Intensity Transformation Operations on Images
Intensity transformations are among the simplest of all image processing techniques. Approaches whose results depend only on the intensity at a point are called point processing techniques or Intensity transformation techniques. Although intensity transformation and spatial filtering methods span a
4 min read
Fast Fourier Transformation for polynomial multiplication
Given two polynomial A(x) and B(x), find the product C(x) = A(x)*B(x). There is already an O([Tex]n^2 [/Tex]) naive approach to solve this problem. here. This approach uses the coefficient form of the polynomial to calculate the product.A coefficient representation of a polynomial [Tex]A(x)=\sum_{j=
13 min read
Gray Scale to Pseudo Color Transformation in MATLAB
The principle behind the pseudo color transformation is to map the intensity value in the image to the result of three distinct transformationsâRED, BLUE, and GREENâon a grayscale or intensity image. Now we can see an example of this procedure using Matlab. Example 1: [GFGTABS] Matlab % READ A IMAGE
1 min read
Piece-wise Linear Transformation
Piece-wise Linear Transformation is type of gray level transformation that is used for image enhancement. It is a spatial domain method. It is used for manipulation of an image so that the result is more suitable than the original for a specific application. Some commonly used piece-wise linear tran
2 min read
Balance Contrast Enhancement Technique in MATLAB
With this technique, biassed color (Red Green Blue) composition can be fixed. The histogram pattern of the input image is unaffected by changes to the contrast of the image (A). The solution is based on the parabolic function of the input image. Equation: [Tex] y = a (x - b)2 + c [/Tex] The three i
1 min read
Morphologiocal Image Processing, Compression and Files
Boundary Extraction of image using MATLAB
The boundary of the image is different from the edges in the image. Edges represent the abrupt change in pixel intensity values while the boundary of the image is the contour. As the name boundary suggests that something whose ownership changes, in the image when pixel ownership changes from one sur
3 min read
MATLAB: Connected Component Labeling without Using bwlabel or bwconncomp Functions
A connected component or object in a binary image is a set of adjacent pixels. Determining which pixels are adjacent depends on how pixel connectivity is defined. There are two standard classification connections for 2D images. Connected-4 - Pixels are connected when the edges touch. Two adjacent pi
3 min read
Morphological operations in MATLAB
Morphological Operations is a broad set of image processing operations that process digital images based on their shapes. In a morphological operation, each image pixel is corresponding to the value of other pixel in its neighborhood. By choosing the shape and size of the neighborhood pixel, you can
2 min read
Matlab | Erosion of an Image
Morphology is known as the broad set of image processing operations that process images based on shapes. It is also known as a tool used for extracting image components that are useful in the representation and description of region shape. The basic morphological operations are: Erosion DilationIn t
3 min read
Auto Cropping- Based on Labeling the Connected Components using MATLAB
Auto Cropping Based on labeling the connected components is related to digital image processing. So, In this article, we will discuss the Auto Cropping-Based on labeling the connected components. Before that look at the basic terms which are required in this topic. Auto CroppingIn terms of MATLAB, t
3 min read
Run Length Encoding & Decoding in MATLAB
Run-length encoding, or RLE, is a straightforward method of lossless data compression in which runs of data, or sequences of data with the same value in many consecutive elements, are stored as a single value and count rather than as the original run. Â In other words, RLE ( Run Length coding) is a s
2 min read
Lossless Predictive Coding in MATLAB
In Lossless Predictive Coding A new pixel value is obtained by finding the difference between the predicted pixel value and the current pixel. In other words, this is The new information of a pixel is defined as the difference between the actual and predicted value of that pixel.  The approach comm
3 min read
Extract bit planes from an Image in Matlab
Image is basically combination of individual pixel (dots) information. When we write that image is of 620 X 480 size, it means that image has 620 pixel in horizontal direction and 480 pixel in vertical direction. So, altogether there is 620 X 480 pixels and each pixels contains some information abou
3 min read
How to Read Text File Backwards Using MATLAB?
Prerequisites: Write Data to Text Files in MATLAB Sometimes for some specific use case, it is required for us to read the file backward. i.e. The file should be read from EOF (End of file Marker) to the beginning of the file in reverse order. In this article we would learn how to read a file in back
3 min read
MATLAB - Read Words in a File in Reverse Order
MATLAB stands for Matrix Laboratory. It is a high-performance language that is used for technical computing. It allows matrix manipulations, plotting of functions, implementation of algorithms, and creation of user interfaces Suppose we are given a text file containing the following words "I STUDY F
2 min read
How to Read Image File or Complex Image File in MATLAB?
MATLAB is a programming and numeric computing platform used by millions of engineers and scientists to analyze data, develop algorithms, and create models. For Image Reading in MATLAB, we use the image processing toolbox. In this ToolBox, there are many methods such as imread(), imshow() etc. imshow
2 min read
Image Coding, Comparison and Texture Features
Digital Watermarking and its Types
Digital Watermarking is use of a kind of marker covertly embedded in a digital media such as audio, video or image which enables us to know the source or owner of the copyright. This technique is used for tracing copyright infringement in social media and knowing the genuineness of the notes in the
3 min read
How To Hide Message or Image Inside An Image In MATLAB?
MATLAB is a high-performance language that is used for matrix manipulation, performing technical computations, graph plottings, etc. It stands for Matrix Laboratory. With the help of this software, we can also hide a message or image inside an image. Following are the steps to hide an image, which c
3 min read
How to Match a Template in MATLAB?
Moving the template across the entire image and comparing it to the image's covered window is a process known as "template matching." The implementation of template matching involves two-dimensional convolution. Template matching has different applications and is utilized in such fields as face ackn
4 min read
Grey Level Co-occurrence Matrix in MATLAB
The use of texture to identify regions of interest in an image is a crucial characteristic. One of Haralick et al.'s earliest approaches to texture feature extraction was Grey Level Co-occurrence Matrices (GLCM) Â in the year 1973. Since then, it has been used extensively in a number of texture analy
4 min read
MATLAB - Texture Measures from GLCM
GLCM stands for Gray Level Co-occurrence Matrix. In image processing, The GLCM function computes how often pairs of pixels with a particular value and in a particular spatial relationship occur in an image, constructs a GLCM, and extracts statistical measures from this matrix to determine the textur
4 min read