CSE 564: Scientific Visualization

Similar documents
CSE 564: Visualization. Image Operations. Motivation. Provide the user (scientist, t doctor, ) with some means to: Global operations:

Digital Image Processing

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

Image Filtering. Median Filtering

Image Manipulation: Filters and Convolutions

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

Graphics and Image Processing Basics

Image Enhancement in the Spatial Domain Low and High Pass Filtering

Image Filtering Josef Pelikán & Alexander Wilkie CGG MFF UK Praha

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

Computing for Engineers in Python

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

Digital Image Processing

LAB MANUAL SUBJECT: IMAGE PROCESSING BE (COMPUTER) SEM VII

1.Discuss the frequency domain techniques of image enhancement in detail.

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Filtering in the spatial domain (Spatial Filtering)

IMAGE PROCESSING: POINT PROCESSES

Image Enhancement in spatial domain. Digital Image Processing GW Chapter 3 from Section (pag 110) Part 2: Filtering in spatial domain

Image filtering, image operations. Jana Kosecka

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

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

Color Transformations

Image Processing for feature extraction

Digital Image Processing

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Image Capture and Problems

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016

June 30 th, 2008 Lesson notes taken from professor Hongmei Zhu class.

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

CS 445 HW#2 Solutions

EE482: Digital Signal Processing Applications

Image enhancement. Introduction to Photogrammetry and Remote Sensing (SGHG 1473) Dr. Muhammad Zulkarnain Abdul Rahman

Computer Graphics Fundamentals

TIRF, geometric operators

Computer Vision. Non linear filters. 25 August Copyright by NHL Hogeschool and Van de Loosdrecht Machine Vision BV All rights reserved

Color Space 1: RGB Color Space. Color Space 2: HSV. RGB Cube Easy for devices But not perceptual Where do the grays live? Where is hue and saturation?

Solution for Image & Video Processing

Filip Malmberg 1TD396 fall 2018 Today s lecture

Digital Image Processing. Lecture 5 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009

Image Enhancement using Histogram Equalization and Spatial Filtering

Chapter 6. [6]Preprocessing

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

What is image enhancement? Point operation

Spatial Domain Processing and Image Enhancement

Digital Image Processing Programming Exercise 2012 Part 2

Digital Image Processing. Lecture # 3 Image Enhancement

Image Enhancement. Image Enhancement

Image Processing and Computer Graphics

Part I Feature Extraction (1) Image Enhancement. CSc I6716 Spring Local, meaningful, detectable parts of the image.

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

Non Linear Image Enhancement

Analysis of infrared images in integrated-circuit techniques by mathematical filtering

Chrominance Assisted Sharpening of Images

Last Lecture. Lecture 2, Point Processing GW , & , Ida-Maria Which image is wich channel?

Images and Filters. EE/CSE 576 Linda Shapiro

Image analysis. CS/CME/BIOPHYS/BMI 279 Fall 2015 Ron Dror

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

Midterm Examination CS 534: Computational Photography

Image Processing COS 426

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

Image Processing Lecture 4

VU Signal and Image Processing. Image Enhancement. Torsten Möller + Hrvoje Bogunović + Raphael Sahann

Prof. Feng Liu. Winter /10/2019

Image Enhancement in the Spatial Domain

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

Midterm Review. Image Processing CSE 166 Lecture 10

DIGITAL IMAGE DE-NOISING FILTERS A COMPREHENSIVE STUDY

Introduction. Computer Vision. CSc I6716 Fall Part I. Image Enhancement. Zhigang Zhu, City College of New York

A Division of Sun Chemical Corporation. Unsharp Masking How to Make Your Images Pop!

2. Color spaces Introduction The RGB color space

IMAGE PROCESSING PROJECT REPORT NUCLEUS CLASIFICATION

ABSTRACT I. INTRODUCTION

Enhancement Techniques for True Color Images in Spatial Domain

CSC 320 H1S CSC320 Exam Study Guide (Last updated: April 2, 2015) Winter 2015

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

CS/ECE 545 (Digital Image Processing) Midterm Review

Multimedia Systems Giorgio Leonardi A.A Lectures 14-16: Raster images processing and filters

Image Enhancement contd. An example of low pass filters is:

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

Image Enhancement. DD2423 Image Analysis and Computer Vision. Computational Vision and Active Perception School of Computer Science and Communication

IDENTIFICATION OF FISSION GAS VOIDS. Ryan Collette

COMPREHENSIVE EXAMINATION WEIGHTAGE 40%, MAX MARKS 40, TIME 3 HOURS, DATE Note : Answer all the questions

Anna University, Chennai B.E./B.TECH DEGREE EXAMINATION, MAY/JUNE 2013 Seventh Semester

Color Image Processing

ABSTRACT. Keywords: Color image differences, image appearance, image quality, vision modeling 1. INTRODUCTION

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

CONVERTING AND EDITING RAW IMAGES

Converting and editing raw images

Frequency Domain Enhancement

Lecture 4: Spatial Domain Processing and Image Enhancement

Vision Review: Image Processing. Course web page:

TDI2131 Digital Image Processing

Image Filtering in Spatial domain. Computer Vision Jia-Bin Huang, Virginia Tech

The Unique Role of Lucis Differential Hysteresis Processing (DHP) in Digital Image Enhancement

Image Filtering. Reading Today s Lecture. Reading for Next Time. What would be the result? Some Questions from Last Lecture

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

An Effective Method for Removing Scratches and Restoring Low -Quality QR Code Images

NON UNIFORM BACKGROUND REMOVAL FOR PARTICLE ANALYSIS BASED ON MORPHOLOGICAL STRUCTURING ELEMENT:

Chapter 3 Image Enhancement in the Spatial Domain. Chapter 3 Image Enhancement in the Spatial Domain

Transcription:

CSE 564: Scientific Visualization Lecture 5: Image Processing Klaus Mueller Stony Brook University Computer Science Department Klaus Mueller, Stony Brook 2003

Image Processing Definitions Purpose: - enhance certain features of the image - de-emphasize other features of the image Implemented as filters or transformations: - some operate on the entire set of pixels at once (global operations) examples: brightness and contrast enhancement - some operate only on a subset of pixels (local operations in a pixel neighborhood) examples: edge detection, contouring, image sharpening, blurring 2

Intensity Transformations Problem: we only have a fixed number of grey / color levels to work with (e.g., 8 bits / 24 bits) Need to use this real estate wisely to bring out the image features that we want new pixel value p new 255 T(p) Intensity transformations T p enhance certain intensity ranges at the cost of compressing others 255 original pixel value p org Examples: p new identity T(p) p new revert T(p) p org p org 3

Intensity Transformations II More examples p new contrast stretching p org T(p) p new threshold p org T(p) 4

Color Transformations H new Convert the image from RGB to HSV space Perform transformations of pixel H, S, V values via transfer functions Convert the transformed HSV image back into RGB space and display H org Original Hue transformed 5

The Image Histogram A histogram lists the number of image pixels for each value number of pixels n(p) pixel value p The histogram reveals more insight about image contrast and brightness: dark image bright image image with low contrast n(p) n(p) n(p) p p p 6

Histogram Processing Image contrast and brightness may be improved by modifying the histogram The contrast stretching operation requires the user to manipulate the image s histogram Histogram equalization is an automatic procedure to spread out the value distribution k np ( org () j ) The discrete histogram equalization equation is: p new ( k) = -------------------------- p n max j = 0 total For example, the equalization transformation for a dark image would be: 255 n(p) dark image p new T(p) n(p) high-contrast image p p org Note: the bars do not change in height, they are just shifted to different positions p 7

Histogram Processing - Examples before equalization after equalization before and after - guess which 8

Discrete Convolution Instead of global transformations, we can also modify the image based on local information: - smoothing (examples: noise removal, preparation for image reduction) - edge enhancement (examples: de-blurring, sharpening, preparation for feature extraction) We use discrete convolution for these operations: - place a weight matrix or mask at each pixel location - this mask weighs the pixel s neighborhood and determines the output pixel s value i p i,j w 0,0 w,0 w 0, w, w 0,2 w,2 for each i, j temp = 0 for each k, l org temp += p i + k, j + l w k, l w 2,0 w 2, w 2,2 new p ij, = temp j image mask new p i, j = 2 2 org p i + k, j + l k = 0l = 0 w kl, Important: Do not replace the computed values into original image, but write to an output image 9

Image Smoothing Smoothing mask: - averages the pixel neighborhood - each pixel s value is replaced by its local average - can be used to remove high frequency noise - larger masks smooth more and cut more noise /9 - always make sure that sum of all mask elements equals.0, else image changes brightness - a blurry image results - jagged edges are replaced by blur (for example, see circle) Median Filter: - special filter that deals better with spike and spot noise - in contrast to the smoothing masks, it preserves edges and image sharpness - instead of adding all neighborhood pixels, it sorts them and picks the median as output pixel - images are generally less blurry than with convolution-based smoothing 0

Image Sharpening This operation enhances the edges, it is the opposite of smoothing It has little effect in smooth areas with no edges Note that an edge means that there is a high local derivative or gradient Sharpening masks implement some sort of image differentiation: f = f ----- x f ----- y In most cases we are only interested in the magnitude: f = mag( f) = f ----- x 2 + ----- f y 2 -- 2

Image Sharpening - The Sobel Mask 0 2 0 0 2 0 0 - -2 dy dx - -2-0 - dy Sobel dx The Sobel filter comes in a pair of two masks: - one mask computes an image for the x- derivative (dx), the other for the y-derivative (dy) Note that the dy-masks do some smoothing in the x-direction (dx-mask smoothes in y) - this decreases the sensitivity to noise (sharpening tends to magnify high frequency noise) Note that pixel values below zero will occur at edges with negative gradients We get two images, img dx and img dy, their pixels are combined by: -- 2 2 2 img new = img dx + img dy or img new = img dx + img dy 2

More Image Processing Techniques Image subtraction: compute the difference between two images - example: X-ray angiography to enhance perfused vessels - = perfused non-perfused (mask) Image averaging: contrast-enhanced - Averaging of a series of noisy images of the same object removes noise and leaves object 3