cs4495 6495
play

CS4495/6495 Introduction to Computer Vision 2A-L1 Images as - PowerPoint PPT Presentation

CS4495/6495 Introduction to Computer Vision 2A-L1 Images as functions Images as functions Images as functions Images as functions Images as functions Quiz An image can be thought of as: a) A 2-dimensional array of numbers ranging from some


  1. CS4495/6495 Introduction to Computer Vision 2A-L1 Images as functions

  2. Images as functions

  3. Images as functions

  4. Images as functions

  5. Images as functions

  6. Quiz An image can be thought of as: a) A 2-dimensional array of numbers ranging from some minimum to some maximum b) A function I of x and y: 𝐽(𝑦, 𝑧) Something generated by a camera. c) d) All of the above.

  7. Images as functions We think of an image as a function , 𝑔 or 𝐽 , from 𝑆 2 to 𝑆 : 𝑔(𝑦, 𝑧) gives the intensity or value at position (𝑦, 𝑧)

  8. Images as functions We think of an image as a function , 𝑔 or 𝐽 , from 𝑆 2 to 𝑆 : 𝑔(𝑦, 𝑧) gives the intensity or value at position 𝑦, 𝑧 Practically define the image over a rectangle, with a finite range: 𝑔: [𝑏, 𝑐] 𝑦 [𝑑, 𝑒] οƒ  [π‘›π‘—π‘œ, 𝑛𝑏𝑦]

  9. Color images as functions A color image is just three functions β€œstacked” together. We can write this as a β€œvector - valued” function:  οƒΉ r x y ( , ) οƒͺ οƒΊ ο€½ f ( , x y ) g x y ( , ) οƒͺ οƒΊ οƒͺ οƒΊ b x y ( , )   Source: S. Seitz

  10. The real Phyllis

  11. Digital images In computer vision we typically operate on digital (discrete) images: Sample the 2D space on a regular grid Quantize each sample (round to β€œnearest integer”) Adapted from S. Seitz

  12. Digital images Image thus represented as a matrix of integer values. Adapted from S. Seitz

  13. j i 2D 1D Adapted from S. Seitz

  14. Matlab – images are matrices

  15. Matlab – images are matrices >> im = imread('peppers.png'); % semicolon or many numbers >> imgreen = im(:,:,2);

  16. Matlab – images are matrices >> im = imread('peppers.png'); % semicolon or many numbers >> imgreen = im(:,:,2); >> imshow(imgreen) >> line([1 512], [256 256],'color','r') >> plot(imgreen(256,:)); 100 200 300 400 500 100 200 300 400 500

  17. Noise in images β€’ Noise is just another function that is combined with the original function to get a new – guess what – function Β’ I ( x , y ) = I ( x , y ) + h ( x , y )

  18. Common Types of Noise Salt and pepper noise : random occurrences of black and white pixels

  19. Common Types of Noise Impulse noise: random occurrences of white pixels

  20. Common Types of Noise Gaussian noise : variations in intensity drawn from a Gaussian normal distribution

  21. Gaussian noise >> noise = randn(size(im)).*sigma; >> output = im + noise; Fig: M. Hebert

  22. Quiz: Effect of Οƒ on Gaussian noise Noise images : Images noise = randn(size(im)).*sigma showing noise values generated with different sigma sigma = sigma = 𝜏 = 2, 8, 32, 64 Guess sigma for each noise image sigma = sigma =

  23. Quiz: Effect of Οƒ on Gaussian noise Noise images : Images noise = randn(size(im)).*sigma showing noise values generated with different sigma sigma = 32 sigma = 8 𝜏 = 2, 8, 32, 64 Guess sigma for each noise image sigma = 64 sigma = 2

  24. Values of Οƒ to use β€’ A 𝜏 of 1.0 would be tiny if the range is [0 255] but huge if pixels went from [0.0 1.0]. β€’ Matlab can do either and you need to be very careful - if in doubt convert to doubles.

  25. Displaying images in Matlab Look at the Matlab function imshow() imshow(im,[LOW HIGH]) will display the image im with value LOW as black and HIGH as white.

  26. Displaying images in Matlab Look at the Matlab function imshow() imshow(im,[]) will display the image im with the based on the range of pixel values in im .

  27. Quiz When adding noise to images as arithmetic operators we have to worry about: The speed of the addition operation a) The magnitude of noise compared to the range of the b) image Whether we add the noise to the image or the image to c) the noise (the order of operation) None of the above d)

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend