Understanding Matrices to Perform Basic Image Processing on Digital Images

Similar documents
CATEGORY SKILL SET REF. TASK ITEM

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

CIS581: Computer Vision and Computational Photography Homework: Cameras and Convolution Due: Sept. 14, 2017 at 3:00 pm

Image Processing. Adam Finkelstein Princeton University COS 426, Spring 2019

Adobe Photoshop The program: The Menus: Computer Graphics I- Final Review

>>> from numpy import random as r >>> I = r.rand(256,256);

Filters. Materials from Prof. Klaus Mueller

Digital Media. Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr.

Introduction to DSP ECE-S352 Fall Quarter 2000 Matlab Project 1

Computer Graphics Fundamentals

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

Practical Image and Video Processing Using MATLAB

Image Filtering and Gaussian Pyramids

Photo/Image Controls

Midterm Examination CS 534: Computational Photography

Sampling Rate = Resolution Quantization Level = Color Depth = Bit Depth = Number of Colors

Image Processing COS 426

Digital Photography 1

Last Lecture. photomatix.com

Last Lecture. photomatix.com

The first task is to make a pattern on the top that looks like the following diagram.

Getting Started. 1. Double click on the eye con. 2. Single click on File, then new, then OK. Click here.

Creating Pastel Images and other effects in Photoshop

Pixilation and Resolution name:

>>> from numpy import random as r >>> I = r.rand(256,256);

Image processing for gesture recognition: from theory to practice. Michela Goffredo University Roma TRE

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

Page 1 of 9. Blending Multiple Exposures The Manual Way to HDR (High Dynamic Range) TJ Avery 7-Feb-2008

CONTENTS. Chapter I Introduction Package Includes Appearance System Requirements... 1

PHOTOSHOP DESIGN EFFECTS FOR INTERMEDIATE TO ADVANCED USERS

FLAMING HOT FIRE TEXT

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University

Video Process Gallery.

Adobe Photoshop CS 6 Level I. Topics: Toolbars Workspace Panels Camera Raw Image Adjustment

Digitizing Color. Place Value in a Decimal Number. Place Value in a Binary Number. Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally

Study guide for Graduate Computer Vision

Preparing Remote Sensing Data for Natural Resources Mapping (image enhancement, rectifications )

Filtering in the spatial domain (Spatial Filtering)

5/17/2009. Digitizing Color. Place Value in a Binary Number. Place Value in a Decimal Number. Place Value in a Binary Number

Lecture 2 Digital Image Fundamentals. Lin ZHANG, PhD School of Software Engineering Tongji University Fall 2016

Sampling and Reconstruction

Digital Image Processing

Extreme Makeovers: Photoshop Retouching Techniques

Applying mathematics to digital image processing using a spreadsheet

Digital Image Fundamentals. Digital Image Processing. Human Visual System. Contents. Structure Of The Human Eye (cont.) Structure Of The Human Eye

Digital Image Fundamentals. Digital Image Processing. Human Visual System. Contents. Structure Of The Human Eye (cont.) Structure Of The Human Eye

Super resolution with Epitomes

Digital Image Processing

TV Aquarium. Create a new document. 8.5 x 11, 300 dpi. Save as TV Aquarium Your Name. Create TV shape. Use Pen

Applications of Flash and No-Flash Image Pairs in Mobile Phone Photography

Image Processing (EA C443)

The KolourPaint Handbook. Thurston Dang, Clarence Dang, and Lauri Watts

Computer Graphics and Image Editing Software

MATLAB 6.5 Image Processing Toolbox Tutorial

The KolourPaint Handbook. Thurston Dang, Clarence Dang, and Lauri Watts

Digital Design and Communication Teaching (DiDACT) University of Sheffield Department of Landscape. Adobe Photoshop CS5 INTRODUCTION WORKSHOPS

Image analysis. CS/CME/BioE/Biophys/BMI 279 Oct. 31 and Nov. 2, 2017 Ron Dror

Lecture 1: image display and representation

Transforming Your Photographs with Photoshop

Tonemapping and bilateral filtering

Fourier Transform. Any signal can be expressed as a linear combination of a bunch of sine gratings of different frequency Amplitude Phase

CPSC 340: Machine Learning and Data Mining. Convolutional Neural Networks Fall 2018

Digital Image Processing. Digital Image Fundamentals II 12 th June, 2017

Central Photography Photoshop Tutorial. Color Splash. 1. Open Photoshop. 2. Go to File>Open (Command O).

PLazeR. a planar laser rangefinder. Robert Ying (ry2242) Derek Xingzhou He (xh2187) Peiqian Li (pl2521) Minh Trang Nguyen (mnn2108)

RGB COLORS. Connecting with Computer Science cs.ubc.ca/~hoos/cpsc101

Image Enhancement using Histogram Equalization and Spatial Filtering

Using the Advanced Sharpen Transformation

photoshop filters kelly ludwig assistant professor

ENEE408G Multimedia Signal Processing

PHOTOSHOP & ILLUSTRATOR BOOTCAMP

Course Syllabus. Course Title. Who should attend? Course Description. Photoshop ( Level 2 (

6.098/6.882 Computational Photography 1. Problem Set 1. Assigned: Feb 9, 2006 Due: Feb 23, 2006

Digital Imaging and Image Editing

The original image. Let s get started! The final rainbow effect. The photo sits on the Background layer in the Layers panel.

Autodesk. SketchBook Mobile

Chapter 8. Representing Multimedia Digitally

Unit 4.4 Representing Images

Lecture 3: Linear Filters

CS6670: Computer Vision Noah Snavely. Administrivia. Administrivia. Reading. Last time: Convolution. Last time: Cross correlation 9/8/2009

A type of wheel or dial on a camera that makes it possible to scroll through setting options by

Users Guide BRESSER MikroCamLab (1.3 / 3.0 / 5.0 / 9.0 / 10.0 MP)

ACM Fast Image Convolutions. by: Wojciech Jarosz

Overview. Neighborhood Filters. Dithering

Sensors and Sensing Cameras and Camera Calibration

Click once and the top layer is masked by the bottom layer.

MODULE No. 34: Digital Photography and Enhancement

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

FREDRIK TUFVESSON ELECTRICAL AND INFORMATION TECHNOLOGY

Orientation (Rotate Canvas)

Adding Light Beams to a Photo

For customers in USA This device complies with Part 15 of the FCC rules. Operation is subject to the following two conditions:

Distorting with Displace

Ian Barber Photography

Adventures with Rubik s UFO. Bill Higgins Wittenberg University

BEST PRACTICES FOR SCANNING DOCUMENTS. By Frank Harrell

For customers in Canada This Class B digital apparatus meets all requirements of the Canadian Interference-Causing Equipment Regulations.

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

Computer Graphics: Graphics Output Primitives Primitives Attributes

Transcription:

Orenda Williams Understanding Matrices to Perform Basic Image Processing on Digital Images Traditional photography has been fading away for decades with the introduction of digital image sensors. The majority of photography today is done using digital cameras due to the convenience of being able to instantly access the images without the hassle of having film processed. Digital images can be created in a variety of ways outside of using digital cameras as well; scanning printed images and using programs such as MS Paint (a basic example) can be other ways to create a digital image. Digital images can be manipulated using matrices, since when broken into the smallest bits of information (pixels) they are matrices. Figure 1 demonstrates binary pixel art, in which each box is being represented in the correlating matrix with either a 1 or a 0. A zero means the box contains nothing (would normally appear transparent or white), while a one indicates that the box is filled (in this case it is filled with black). Figure 1: Binary pixel art In normal digital images, the number that each spot of the matrix contains is much more complex and has information for the amount of red, green, and blue that the pixel should display. These numbers are represented using a system of hexadecimal numbers. In hexadecimal, black is #000000 (equivalent hexadecimal number for 0) and white is #FFFFFF (equivalent to red, blue, and green each containing the highest possible amount). So each pixel stores information about what color it should be displaying in the digital image, putting the output within a small 1x1 square. When viewed far away and together, they create the illusion of lines, curves, and blended colors instead of the individual squares that they are (see Figure 2).

Figure 2: a portion of a digital image zoomed in. You can see each square and that each one represents an individual color. The ability to break the image into data points has allowed for the creation of photo editing techniques that would be much more difficult (if not impossible) to apply in film photography. One popular method of doing this is utilizing matrix kernels. The kernel for an affect is a small matrix, often size 3x3, that is then applied to each individual pixel of the digital image. Rather than using normal matrix multiplication, the kernel is applied by convolution. Each new target pixel color value is calculated using the original target pixel and the surrounding pixels. Below are two examples of kernel convolution. BOX BLUR KERNEL:

GAUSSIAN BLUR KERNEL: Many popular image processing effects are a result of kernel convolution. Here are some more examples of possible kernels: ORIGINAL SHARPEN EMBOSS OUTLINE

The matrix representation of an image also allows for functions such as adding brightness or rotation. For brightness, a constant (such as 20) is added to the red, green, and blue values of each pixel. For rotation, a new image can be generated by moving the rows and columns of pixels around (see Figure 3). Because each pixel has a set location in the original image, it is possible to convert the positions to new locations in a systematic manner. Figure 3: rotation clockwise with highlighted rows/columns As well, it is easy to apply filters that can change the coloring of an image since the color value information is easily accessible and well organized. To achieve a black and white filter, each individual pixel has the average of its red, green, blue values taken; then the new pixel for the black and white image has the red, green, and blue values set to that average. Doing color swaps, the new pixel has the values for red and blue swapped from those in the original image. Figure 4: red-blue swap The representation of images using matrices has created a huge world of possibilities in digital image processing. The ones listed here are a slim picking of examples to demonstrate this. There are multitude more of kernels that can be applied, as well as applications of constants and changing of pixel positions (skewing, flipping, etc.). Matrix manipulation has made a world of difference in image processing.

Sources Ludwig, Jamie (n.d.). Image Convolution (http://web.pdx.edu/~jduh/courses/archive/geog481w07/students/ludwig_imageconvoluti on.pdf). Portland State University. Powell, Victor. Image Kernels Explained Visually (http://setosa.io/ev/image-kernels/).