SlideShare uma empresa Scribd logo
1 de 20
Digital Image Processing
Asad Ali. From BCS 6th
3395
What is Image Arithmetic?
Image arithmetic is the implementation of standard
arithmetic operations
What is Image Arithmetic?
Image arithmetic is the implementation of standard
arithmetic operations, such as
• Addition
What is Image Arithmetic?
Image arithmetic is the implementation of standard
arithmetic operations, such as
• Addition
• Subtraction
What is Image Arithmetic?
Image arithmetic is the implementation of standard
arithmetic operations, such as
• Addition
• Subtraction
• Multiplication
What is Image Arithmetic?
Image arithmetic is the implementation of standard
arithmetic operations, such as
• Addition
• Subtraction
• Multiplication
• Division
IA JUICED UP!!
Usage of Image Arithmetic
Image arithmetic has many uses in image processing both as a
preliminary step in more complex operations and by itself.
For example:
Image subtraction can be used to detect differences
between two or more images of the same scene or
object.
HOW/WHERE you can use
Image Arithmetic?
You can do image arithmetic using the MATLAB arithmetic
operators.
HOW/WHERE you can use
Image Arithmetic?
You can do image arithmetic using the MATLAB arithmetic
operators.
But:-
Wait Wait Wait..!!!!!
HOW/WHERE you can use
Image Arithmetic?
You can do image arithmetic using the MATLAB arithmetic
operators.
But remember to:
• Convert the images to class.
AND
• Double to use these operators.
Adding Images
To add two images or add a constant value to an image.
Adding Images
To add two images or add a constant value to an image.
• [imadd] function
adds the value of each pixel in one of the input images with the
corresponding pixel in the other input image and returns the
sum in the corresponding pixel of the output image.
USAGE of Adding Images
Image addition has many uses in image processing.
For example:
The following code fragment uses addition to superimpose one
image on top of another. The images must be the same size and
class. You can brighten your image too.
USAGE of Adding Images
Image addition has many uses in image processing.
For example:
The following code fragment uses addition to superimpose one
image on top of another. The images must be the same size and
class. You can brighten your image too.
I = imread(‘pic1.tif');
J = imread(‘pic2.tif');
K = imadd(I,J);
imshow(K)
USAGE of Adding Images
Image addition has many uses in image processing.
For example:
The following code fragment uses addition to superimpose one
image on top of another. The images must be the same size and
class. You can brighten your image too.
I = imread(‘pic1.tif');
J = imread(‘pic2.tif');
K = imadd(I,J);
imshow(K)
Multiplying Images
[immultiply] function.This does an element-by-element
multiplication (.*) of each corresponding pixel in a pair
of input images and returns the product of these multiplications
in the corresponding pixel in an output image.
Multiplying Images
[immultiply] function.This does an element-by-element
multiplication (.*) of each corresponding pixel in a pair
of input images and returns the product of these multiplications
in the corresponding pixel in an output image.
Scaling image processing operations.
Scaling brightens an image; a factor less than one darkens an image.
Scaling generally produces a much more natural
brightening/darkening effect than simply adding an offset to the
pixels, since it preserves the relative contrast of the image better.
For example, this code scales an image by a constant factor.
Multiplying Images
Example Code
I = imread(‘pic.tif');
J = immultiply(I,1.2);
imshow(I);
figure, imshow(J);
Summary of Image
Arithmetic Functions
Function Description
imabsdiff Absolute difference of two images
Imadd Add two images
imcomplement Complement an image
imdivide Divide two images
imlincomb Compute linear combination of two images
immultiply Multiply two images
imsubtract Subtract two images

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processing
 
Segmentation
SegmentationSegmentation
Segmentation
 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
 
Simultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesSimultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color Images
 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing Basics
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
 
03 digital image fundamentals DIP
03 digital image fundamentals DIP03 digital image fundamentals DIP
03 digital image fundamentals DIP
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 
Boundary Extraction
Boundary ExtractionBoundary Extraction
Boundary Extraction
 
Point processing
Point processingPoint processing
Point processing
 

Semelhante a Mathematical operations in image processing

Final Report for project
Final Report for projectFinal Report for project
Final Report for project
Rajarshi Roy
 
Image processing tool box.pptx
Image processing tool box.pptxImage processing tool box.pptx
Image processing tool box.pptx
AvinashJain66
 
Inception V3 Image Processing (1).pptx
Inception V3 Image Processing (1).pptxInception V3 Image Processing (1).pptx
Inception V3 Image Processing (1).pptx
MahmoudMohamedAbdelb
 
Matlab intro
Matlab introMatlab intro
Matlab intro
fvijayami
 

Semelhante a Mathematical operations in image processing (20)

aip basic open cv example
aip basic open cv exampleaip basic open cv example
aip basic open cv example
 
Final Report for project
Final Report for projectFinal Report for project
Final Report for project
 
Image processing in MATLAB
Image processing in MATLABImage processing in MATLAB
Image processing in MATLAB
 
Topic 1_PPT.pptx
Topic 1_PPT.pptxTopic 1_PPT.pptx
Topic 1_PPT.pptx
 
Image processing tool box.pptx
Image processing tool box.pptxImage processing tool box.pptx
Image processing tool box.pptx
 
Chapter1 8
Chapter1 8Chapter1 8
Chapter1 8
 
Image inpainting
Image inpaintingImage inpainting
Image inpainting
 
Programming in matlab lesson5
Programming in matlab lesson5Programming in matlab lesson5
Programming in matlab lesson5
 
ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLAB
ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLABANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLAB
ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLAB
 
CNN_INTRO.pptx
CNN_INTRO.pptxCNN_INTRO.pptx
CNN_INTRO.pptx
 
Inception V3 Image Processing .pptx
Inception V3 Image Processing .pptxInception V3 Image Processing .pptx
Inception V3 Image Processing .pptx
 
Digital Image Processing (Lab 05)
Digital Image Processing (Lab 05)Digital Image Processing (Lab 05)
Digital Image Processing (Lab 05)
 
Image processing
Image processingImage processing
Image processing
 
Digital Image Processing (Lab 07)
Digital Image Processing (Lab 07)Digital Image Processing (Lab 07)
Digital Image Processing (Lab 07)
 
Image processing for robotics
Image processing for roboticsImage processing for robotics
Image processing for robotics
 
Basics of image processing using MATLAB
Basics of image processing using MATLABBasics of image processing using MATLAB
Basics of image processing using MATLAB
 
Inception V3 Image Processing (1).pptx
Inception V3 Image Processing (1).pptxInception V3 Image Processing (1).pptx
Inception V3 Image Processing (1).pptx
 
Dip digital image 3
Dip digital image 3Dip digital image 3
Dip digital image 3
 
YCIS_Forensic PArt 1 Digital Image Processing.pptx
YCIS_Forensic PArt 1 Digital Image Processing.pptxYCIS_Forensic PArt 1 Digital Image Processing.pptx
YCIS_Forensic PArt 1 Digital Image Processing.pptx
 
Matlab intro
Matlab introMatlab intro
Matlab intro
 

Mais de Asad Ali

Course outlines
Course outlinesCourse outlines
Course outlines
Asad Ali
 
Nation state system
Nation state systemNation state system
Nation state system
Asad Ali
 

Mais de Asad Ali (14)

Echo housing system
Echo housing systemEcho housing system
Echo housing system
 
Ssl (Secure Sockets Layer)
Ssl (Secure Sockets Layer)Ssl (Secure Sockets Layer)
Ssl (Secure Sockets Layer)
 
Attacks Attacks AND Attacks!
Attacks Attacks AND Attacks!Attacks Attacks AND Attacks!
Attacks Attacks AND Attacks!
 
block ciphers
block ciphersblock ciphers
block ciphers
 
Course outlines
Course outlinesCourse outlines
Course outlines
 
Ciphers modes
Ciphers modesCiphers modes
Ciphers modes
 
One time pad Encryption:
One time pad Encryption:One time pad Encryption:
One time pad Encryption:
 
History of Cipher System
History of Cipher SystemHistory of Cipher System
History of Cipher System
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2
 
Nation state system
Nation state systemNation state system
Nation state system
 
Ir meaning, nature and importance
Ir  meaning, nature and importanceIr  meaning, nature and importance
Ir meaning, nature and importance
 
Bit plane slicing
Bit plane slicingBit plane slicing
Bit plane slicing
 
Auto-Lab
Auto-LabAuto-Lab
Auto-Lab
 

Último

Call Girl In Chandigarh ☎ 08868886958✅ Just Genuine Call Call Girls Chandigar...
Call Girl In Chandigarh ☎ 08868886958✅ Just Genuine Call Call Girls Chandigar...Call Girl In Chandigarh ☎ 08868886958✅ Just Genuine Call Call Girls Chandigar...
Call Girl In Chandigarh ☎ 08868886958✅ Just Genuine Call Call Girls Chandigar...
Sheetaleventcompany
 
codes and conventions of film magazine and website.pptx
codes and conventions of film magazine and website.pptxcodes and conventions of film magazine and website.pptx
codes and conventions of film magazine and website.pptx
17duffyc
 
Museum of fine arts Lauren Simpson…………..
Museum of fine arts Lauren Simpson…………..Museum of fine arts Lauren Simpson…………..
Museum of fine arts Lauren Simpson…………..
mvxpw22gfc
 
WhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) Delhi
WhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) DelhiWhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) Delhi
WhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) Delhi
delhimunirka15
 
Russian Call Girls Pilibhit Just Call 👉👉 📞 8617370543 Top Class Call Girl Ser...
Russian Call Girls Pilibhit Just Call 👉👉 📞 8617370543 Top Class Call Girl Ser...Russian Call Girls Pilibhit Just Call 👉👉 📞 8617370543 Top Class Call Girl Ser...
Russian Call Girls Pilibhit Just Call 👉👉 📞 8617370543 Top Class Call Girl Ser...
Nitya salvi
 
Engineering Major for College_ Environmental Health Engineering by Slidesgo.pptx
Engineering Major for College_ Environmental Health Engineering by Slidesgo.pptxEngineering Major for College_ Environmental Health Engineering by Slidesgo.pptx
Engineering Major for College_ Environmental Health Engineering by Slidesgo.pptx
DanielRemache4
 

Último (20)

Turn Off The Air Con - The Singapore Punk Scene
Turn Off The Air Con - The Singapore Punk SceneTurn Off The Air Con - The Singapore Punk Scene
Turn Off The Air Con - The Singapore Punk Scene
 
Just Call Vip call girls Farrukhabad Escorts ☎️8617370543 Two shot with one g...
Just Call Vip call girls Farrukhabad Escorts ☎️8617370543 Two shot with one g...Just Call Vip call girls Farrukhabad Escorts ☎️8617370543 Two shot with one g...
Just Call Vip call girls Farrukhabad Escorts ☎️8617370543 Two shot with one g...
 
Jaro je tady - Spring is here (Judith) 3
Jaro je tady - Spring is here (Judith) 3Jaro je tady - Spring is here (Judith) 3
Jaro je tady - Spring is here (Judith) 3
 
Call Girl In Chandigarh ☎ 08868886958✅ Just Genuine Call Call Girls Chandigar...
Call Girl In Chandigarh ☎ 08868886958✅ Just Genuine Call Call Girls Chandigar...Call Girl In Chandigarh ☎ 08868886958✅ Just Genuine Call Call Girls Chandigar...
Call Girl In Chandigarh ☎ 08868886958✅ Just Genuine Call Call Girls Chandigar...
 
codes and conventions of film magazine and website.pptx
codes and conventions of film magazine and website.pptxcodes and conventions of film magazine and website.pptx
codes and conventions of film magazine and website.pptx
 
SB_ Dragons Riders of Berk_ Rough_ RiverPhan (2024)
SB_ Dragons Riders of Berk_ Rough_ RiverPhan (2024)SB_ Dragons Riders of Berk_ Rough_ RiverPhan (2024)
SB_ Dragons Riders of Berk_ Rough_ RiverPhan (2024)
 
HUMA Final Presentation About Chicano Culture
HUMA Final Presentation About Chicano CultureHUMA Final Presentation About Chicano Culture
HUMA Final Presentation About Chicano Culture
 
Sui Generis Magazine volume one Kristen Murillo.pdf
Sui Generis Magazine volume one Kristen Murillo.pdfSui Generis Magazine volume one Kristen Murillo.pdf
Sui Generis Magazine volume one Kristen Murillo.pdf
 
Museum of fine arts Lauren Simpson…………..
Museum of fine arts Lauren Simpson…………..Museum of fine arts Lauren Simpson…………..
Museum of fine arts Lauren Simpson…………..
 
Call Girls Aligarh Just Call 8617370543 Top Class Call Girl Service Available
Call Girls Aligarh Just Call 8617370543 Top Class Call Girl Service AvailableCall Girls Aligarh Just Call 8617370543 Top Class Call Girl Service Available
Call Girls Aligarh Just Call 8617370543 Top Class Call Girl Service Available
 
New Call Girls In Shamli 8617370543 Shamli Escorts Service
New Call Girls In Shamli 8617370543 Shamli Escorts ServiceNew Call Girls In Shamli 8617370543 Shamli Escorts Service
New Call Girls In Shamli 8617370543 Shamli Escorts Service
 
Call Girls Bhavnagar - 📞 8617370543 Our call girls are sure to provide you wi...
Call Girls Bhavnagar - 📞 8617370543 Our call girls are sure to provide you wi...Call Girls Bhavnagar - 📞 8617370543 Our call girls are sure to provide you wi...
Call Girls Bhavnagar - 📞 8617370543 Our call girls are sure to provide you wi...
 
Storyboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to SingStoryboard short: Ferrarius Tries to Sing
Storyboard short: Ferrarius Tries to Sing
 
Call Girls Sultanpur Just Call 📞 8617370543 Top Class Call Girl Service Avail...
Call Girls Sultanpur Just Call 📞 8617370543 Top Class Call Girl Service Avail...Call Girls Sultanpur Just Call 📞 8617370543 Top Class Call Girl Service Avail...
Call Girls Sultanpur Just Call 📞 8617370543 Top Class Call Girl Service Avail...
 
Theoretical Framework- Explanation with Flow Chart.docx
Theoretical Framework- Explanation with Flow Chart.docxTheoretical Framework- Explanation with Flow Chart.docx
Theoretical Framework- Explanation with Flow Chart.docx
 
WhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) Delhi
WhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) DelhiWhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) Delhi
WhatsApp-(# 9711106444 #)Call Girl in Noida Sector 80 Noida (Escorts) Delhi
 
Jaro je tady - Spring is here (Judith) 4
Jaro je tady - Spring is here (Judith) 4Jaro je tady - Spring is here (Judith) 4
Jaro je tady - Spring is here (Judith) 4
 
Russian Call Girls Pilibhit Just Call 👉👉 📞 8617370543 Top Class Call Girl Ser...
Russian Call Girls Pilibhit Just Call 👉👉 📞 8617370543 Top Class Call Girl Ser...Russian Call Girls Pilibhit Just Call 👉👉 📞 8617370543 Top Class Call Girl Ser...
Russian Call Girls Pilibhit Just Call 👉👉 📞 8617370543 Top Class Call Girl Ser...
 
Engineering Major for College_ Environmental Health Engineering by Slidesgo.pptx
Engineering Major for College_ Environmental Health Engineering by Slidesgo.pptxEngineering Major for College_ Environmental Health Engineering by Slidesgo.pptx
Engineering Major for College_ Environmental Health Engineering by Slidesgo.pptx
 
SB_ Pretzel and the puppies_ Rough_ RiverPhan (2024)
SB_ Pretzel and the puppies_ Rough_ RiverPhan (2024)SB_ Pretzel and the puppies_ Rough_ RiverPhan (2024)
SB_ Pretzel and the puppies_ Rough_ RiverPhan (2024)
 

Mathematical operations in image processing

  • 1. Digital Image Processing Asad Ali. From BCS 6th 3395
  • 2. What is Image Arithmetic? Image arithmetic is the implementation of standard arithmetic operations
  • 3. What is Image Arithmetic? Image arithmetic is the implementation of standard arithmetic operations, such as • Addition
  • 4. What is Image Arithmetic? Image arithmetic is the implementation of standard arithmetic operations, such as • Addition • Subtraction
  • 5. What is Image Arithmetic? Image arithmetic is the implementation of standard arithmetic operations, such as • Addition • Subtraction • Multiplication
  • 6. What is Image Arithmetic? Image arithmetic is the implementation of standard arithmetic operations, such as • Addition • Subtraction • Multiplication • Division
  • 8. Usage of Image Arithmetic Image arithmetic has many uses in image processing both as a preliminary step in more complex operations and by itself. For example: Image subtraction can be used to detect differences between two or more images of the same scene or object.
  • 9. HOW/WHERE you can use Image Arithmetic? You can do image arithmetic using the MATLAB arithmetic operators.
  • 10. HOW/WHERE you can use Image Arithmetic? You can do image arithmetic using the MATLAB arithmetic operators. But:- Wait Wait Wait..!!!!!
  • 11. HOW/WHERE you can use Image Arithmetic? You can do image arithmetic using the MATLAB arithmetic operators. But remember to: • Convert the images to class. AND • Double to use these operators.
  • 12. Adding Images To add two images or add a constant value to an image.
  • 13. Adding Images To add two images or add a constant value to an image. • [imadd] function adds the value of each pixel in one of the input images with the corresponding pixel in the other input image and returns the sum in the corresponding pixel of the output image.
  • 14. USAGE of Adding Images Image addition has many uses in image processing. For example: The following code fragment uses addition to superimpose one image on top of another. The images must be the same size and class. You can brighten your image too.
  • 15. USAGE of Adding Images Image addition has many uses in image processing. For example: The following code fragment uses addition to superimpose one image on top of another. The images must be the same size and class. You can brighten your image too. I = imread(‘pic1.tif'); J = imread(‘pic2.tif'); K = imadd(I,J); imshow(K)
  • 16. USAGE of Adding Images Image addition has many uses in image processing. For example: The following code fragment uses addition to superimpose one image on top of another. The images must be the same size and class. You can brighten your image too. I = imread(‘pic1.tif'); J = imread(‘pic2.tif'); K = imadd(I,J); imshow(K)
  • 17. Multiplying Images [immultiply] function.This does an element-by-element multiplication (.*) of each corresponding pixel in a pair of input images and returns the product of these multiplications in the corresponding pixel in an output image.
  • 18. Multiplying Images [immultiply] function.This does an element-by-element multiplication (.*) of each corresponding pixel in a pair of input images and returns the product of these multiplications in the corresponding pixel in an output image. Scaling image processing operations. Scaling brightens an image; a factor less than one darkens an image. Scaling generally produces a much more natural brightening/darkening effect than simply adding an offset to the pixels, since it preserves the relative contrast of the image better. For example, this code scales an image by a constant factor.
  • 19. Multiplying Images Example Code I = imread(‘pic.tif'); J = immultiply(I,1.2); imshow(I); figure, imshow(J);
  • 20. Summary of Image Arithmetic Functions Function Description imabsdiff Absolute difference of two images Imadd Add two images imcomplement Complement an image imdivide Divide two images imlincomb Compute linear combination of two images immultiply Multiply two images imsubtract Subtract two images