Histograms – Chapter 4 Continued.

Slides:



Advertisements
Similar presentations
Point Processing Histograms. Histogram Equalization Histogram equalization is a powerful point processing enhancement technique that seeks to optimize.
Advertisements

Digital Color 24-bit Color Indexed Color Image file compression
Photoshop Lab colorspace A quick and easy 26 step process for enhancing your photos.
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
UNDERSTANDING RAW Joe Sukenick DigiQuest
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Objectives Understand grayscale Investigate a grayscale image
Digital Imaging and Image Analysis
Comp 1001: IT & Architecture - Joe Carthy 1 Review Floating point numbers are represented in scientific notation In binary: ± m x 2 exp There are different.
Image (and Video) Coding and Processing Lecture 5: Point Operations Wade Trappe.
Color COM 366 Web Design & Production. RGB color Amount of light in each channel Closer to 255, whiter color gets Every color has value for red,
Image Forgery Detection by Gamma Correction Differences.
IMAGE 1 An image is a two dimensional Function f(x,y) where x and y are spatial coordinates And f at any x,y is related to the brightness at that point.
1/22/04© University of Wisconsin, CS559 Spring 2004 Last Time Course introduction Image basics.
Two-week ISTE workshop on Effective teaching/learning of computer programming Dr Deepak B Phatak Subrao Nilekani Chair Professor Department of CSE, Kanwal.
CS110: Computers and the Internet Color and Image Representation.
Bits & Bytes (are not junk food!). Bit is short for binary digit, the smallest unit of information in the digital world. A single bit can hold only one.
Spectral contrast enhancement
HBCU-CUL Digital Imaging Workshop, November 2005
Core Issues in Digital Preservation: Text and Images Jacob Nadal, Preservation Officer UCLA Library.
The Digital Image.
Chpater 3 Resolution, File Formats and Storage. Introduction There are two factors that determine the quality of the picture you take; The resolution.
Color Names All standards-compliant browsers should handle these color names These color names can be used with the CSS properties of color and background-color.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Image Storage Bitmapped Graphics – in which an image is represented as a collection of dots Vector Graphics – in which an image is represented as a set.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Resolution = the number of photosites (pixels) in the array of your sensor or the total number of buckets Bit Depth / Pixel Depth.
Dynamic Range And Granularity. Dynamic range is important. It is defined as the difference between light and dark areas of an image. All digital images.
Digital Cameras. Image Capture  Images are captured by the image sensor, then stored in the camera in a memory device.  Sensors convert light into an.
Remote Sensing and Image Processing: 2 Dr. Hassan J. Eghbali.
Color in image and video Mr.Nael Aburas. outline  Color Science  Color Models in Images  Color Models in Video.
Images The Science of Images What is an Image on the computer? The Psychology of Images What do we use images for? What effect color has on our mood and.
Fundamentals of Multimedia Chapter 4 : Color in Image and Video 2 nd Edition 2014 Ze-Nian Li Mark S. Drew Jiangchuan Liu 1.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
Point Operations – Chapter 5. Definition Some of the things we do to an image involve performing the same operation on each and every pixel (point) –We.
Vocabulary Words. 2-stage shutter release is a shutter release, that when pressed halfway, it activates the autofocus and the light meter of the camera,
1 Chapter 2: Color Basics. 2 What is light?  EM wave, radiation  Visible light has a spectrum wavelength from 400 – 780 nm.  Light can be composed.
Chapter 1. Introduction. Goals of Image Processing “One picture is worth more than a thousand words” 1.Improvement of pictorial information for human.
Histograms – Chapter 4. Huh? That image is too contrasty. The colors aren’t vibrant enough. I want the reds to pop. It doesn’t have a warm enough feel.
Resolution = the number of photosites (pixels) in the array of your sensor or the total number of buckets Bit Depth / Pixel Depth.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Digital Image Processing Part 1 Introduction. The eye.
An Introduction to Analyzing Colors in a Digital Photograph Rob Snyder.
Digital Images are represented by manipulating this…
 By Bob “The Bird” Fiske & Anita “The Snail” Cost.
POWERPOINT PLUS 11/17/07 Class Notes. WHAT IS A PIXEL A pixel is a number that represents the intensity of light at a square spot in the picture. Pixels.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
1 Perception and VR MONT 104S, Fall 2008 Lecture 20 Computer Graphics and VR.
Digital Image Processing CSC331 Image Enhancement 1.
Digital Images and Digital Cameras take notes in your journal.
Intelligent Robotics Today: Vision & Time & Space Complexity.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Retina Retina covered with light sensitive receptors –RODS Primarily for night vision and movement Sensitive to broad spectrum of light.
Image Processing Intro2CS – week 6 1. Image Processing Many devices now have cameras on them Lots of image data recorded for computers to process. But.
Introduction to Digital Image Analysis Kurt Thorn NIC.
Digital Cameras in the Classroom Day One Basics Ann Howden UEN Professional Development
Masaki Hayashi 2015, Autumn Visualization with 3D CG Digital 2D Image Basic.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging 1 GGC -- ITEC Digital Media.
Data Representation.
Sampling, Quantization, Color Models & Indexed Color
Introduction to Camera
How to Convert Pictures into Numbers
Computer Graphics Different Images File.
EXPOSURE Reed's Cameras- Digital Photo 101.
Digital 2D Image Basic Masaki Hayashi
Representing Images 2.6 – Data Representation.
Introduction to Digital Image Analysis Part I: Digital Images
Basic Concepts of Digital Imaging

Presentation transcript:

Histograms – Chapter 4 Continued

ImageJ – from last time… Open snake.png (download from my web site) Select Analyze/Histogram This is the histogram of the luminance channel of the color image Select Image/Color/Split Channels You now have the red/green/blue channels individually Create histograms of each of these Comment on exposure, contrast, dynamic range Pull other images from wherever, play with it

Effects of JPEG compression Original, uncompressed file 229K bytes Smooth histogram

Effects of JPEG compression JPEG compressed file 33K bytes Smooth histogram – not much change, image visually lossless

Effects of JPEG compression JPEG compressed file 18K bytes Histogram showing spikes – image starting to blur

Effects of JPEG compression JPEG compressed file 12K bytes Histogram showing spikes – image more blurring

Effects of JPEG compression JPEG compressed file 6K bytes Histogram showing tall spikes – image blocking, color fidelity lost

Effects of JPEG compression JPEG compressed file 5K bytes Histogram showing tall spikes – image blocking, color fidelity lost

Effects of JPEG compression JPEG compressed file 3K bytes Histogram showing tall spikes – image wrecked

Effects of JPEG compression JPEG compressed file 3K bytes Histogram showing tall spikes and gaps – image wrecked

Effects of JPEG compression JPEG compressed file 2K bytes Histogram showing tall spikes and gaps – image, what snake?

ImageJ JPEG Edit->Options->Input/Output… Allows you to set level of compression Smaller number gives more compression at the cost of greater information loss Larger number retains more information at the cost of less compression

Effects of saturation Ideally the sensor’s range (detectable light levels from dark to bright) is greater than that of the scene being imaged Realistically, this doesn’t always happen The human visual system has incredible dynamic range due to the distribution of rods and cones in the retina Very difficult to match in silicon

Human visual system Cones: process color (3 types) Primarily in the foveal region of the retina Rods: process shades of gray Primarily in the peripheral region of the retina

Effects of saturation Original, looks decent enough Histogram is smooth, contrast is a little low, exposure a little low, dynamic range a little low

Effects of saturation We brighten it up by multiplying pixels by some specified values (artificially brighten it to compensate for the sensor deficiencies) Histogram shows dynamic range is good, contrast is good, but we get spikes and a lot of saturated pixels

Playing detective When you see stuff like this in the histogram, you know something is awry If you see spikes, either the imaging device was bad or the image was digitally manipulated Analog pixels don’t do this Ditto if you see gaps If you see a lot of saturation either the photographer screwed up or the image was digitally manipulated (or the scene was too bright for the camera)

Computing histograms Because you should at least see the code… int Histogram[] = new int[256]; // 8 bit histogram for (int i = 0; i < imageHeight; i++) { for (int j = 0; j < imageWidth; j++) { ++Histogram[image[i][j]]; }

Computing histograms There may be times when your histogram is bigger than your memory size Large bit-depth images Floating point images All is not lost, we just resort to binning In this case a single histogram entry represents a range of pixel values [rather than a single value] Be careful when reading these as spikes/gaps could be hidden in the representation

Computing histograms Histograms of color images create another situation to be dealt with Color images are typically 24-bits 8-bits each for Red, Green, and Blue Results in 224 = 16777216 pixel values Not suitable for direct histogram creation and binning makes not sense – why? There is not natural ordering of the colors as there is in a gray scale image Two choices Display the luminance histogram (the brightness content of the image) Display the red, green, and blue histograms separately

Color histograms Luminance Red Green Blue

Color histograms The green histogram will [typically] look similar to the luminance histogram If the red, green, and blue histograms look similar the image has most likely been white balanced Two of the channels (e.g. red, and blue) have been enhanced (contrast, dynamic range) to look similar to the third (e.g. green) This “trick” is performed to make sure that white objects in the scene appear white in the resulting image Corrects for deficiencies in the imaging device

Color histograms Another option is to create a three dimensional histogram or scatter plot of the image pixel colors

Cumulative histogram A bin in the cumulative histogram is the sum of all lower bins of the “normal” histogram It’s not overly useful for analysis but will provide some needed information for certain image enhancement operations

Cumulative histogram

Cumulative histogram I’ve placed a plugin for the cumulative histogram on the website Download it and drop it into the folder It will show up under the Plugins->Chapter04 menu C:\Program Files\ImageJ\plugins\Chapter04