All images are degraded

Similar documents
Lecture 6 Linear Processing. ch. 5 of Machine Vision by Wesley E. Snyder & Hairong Qi. Spring (CMU RI) : BioE 2630 (Pitt)

Lecture 14 Shape. ch. 9, sec. 1-8, of Machine Vision by Wesley E. Snyder & Hairong Qi. Spring (CMU RI) : BioE 2630 (Pitt)

Lecture 12 Level Sets & Parametric Transforms. sec & ch. 11 of Machine Vision by Wesley E. Snyder & Hairong Qi

Registration: Rigid vs. Deformable

Lecture 10 Segmentation, Part II (ch 8) Active Contours (Snakes) ch. 8 of Machine Vision by Wesley E. Snyder & Hairong Qi

Lecture 13 Theory of Registration. ch. 10 of Insight into Images edited by Terry Yoo, et al. Spring (CMU RI) : BioE 2630 (Pitt)

Lecture 15 Active Shape Models

The Pipeline. Lecture 17 ITK Pipeline. The pipeline idea. Image sources. Image to image filters. Input and output

What are advanced filters? Lecture 19 Write Your Own ITK Filters, Part2. Different output size. Details, details. Changing the input requested region

2/7/18. For more info/gory detail. Lecture 8 Registration with ITK. Transform types. What is registration? Registration in ITK

Bayesian Methods in Vision: MAP Estimation, MRFs, Optimization

Lecture 09 Segmentation (ch 8) ch. 8 of Machine Vision by Wesley E. Snyder & Hairong Qi. Dr. John Galeo3. Into connected regions

Filtering and Enhancing Images

Tracking Computer Vision Spring 2018, Lecture 24

Announcements. Edge Detection. An Isotropic Gaussian. Filters are templates. Assignment 2 on tracking due this Friday Midterm: Tuesday, May 3.

Filtering and Edge Detection. Computer Vision I. CSE252A Lecture 10. Announcement

Goals for this lecture. Lecture 4 Getting Started with ITK! Getting help. Assignments. Assignments, cont. Grading of assignments

Image Processing. Filtering. Slide 1

Combinatorial optimization and its applications in image Processing. Filip Malmberg

Computer Vision I - Basics of Image Processing Part 1


Final Review CMSC 733 Fall 2014

EE795: Computer Vision and Intelligent Systems

Fundamentals of Digital Image Processing

Mixture Models and EM

Super Resolution Using Graph-cut

AN ALGORITHM FOR BLIND RESTORATION OF BLURRED AND NOISY IMAGES

Computer Vision I. Announcements. Fourier Tansform. Efficient Implementation. Edge and Corner Detection. CSE252A Lecture 13.

Occluded Facial Expression Tracking

Regularization and Markov Random Fields (MRF) CS 664 Spring 2008

Digital Image Processing. Image Enhancement - Filtering

Linear Operations Using Masks

Image Processing Lecture 10

SURVEY ON IMAGE PROCESSING IN THE FIELD OF DE-NOISING TECHNIQUES AND EDGE DETECTION TECHNIQUES ON RADIOGRAPHIC IMAGES

Image segmentation using an annealed Hopfield neural network

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Image Restoration using Markov Random Fields

Super-resolution on Text Image Sequences

MR IMAGE SEGMENTATION

Statistical image models

Markov Random Fields and Gibbs Sampling for Image Denoising

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Filters. Advanced and Special Topics: Filters. Filters

Image Restoration. Diffusion Denoising Deconvolution Super-resolution Tomographic Reconstruction

ADVANCED IMAGE PROCESSING METHODS FOR ULTRASONIC NDE RESEARCH C. H. Chen, University of Massachusetts Dartmouth, N.

Recap. Disclaimer. Goals for this lecture. C++ vs. Python. Reference & Review Material

EE795: Computer Vision and Intelligent Systems

Computer Vision I. Announcement. Corners. Edges. Numerical Derivatives f(x) Edge and Corner Detection. CSE252A Lecture 11

Image Deconvolution.

Matching. Compare region of image to region of image. Today, simplest kind of matching. Intensities similar.

Digital Image Processing Laboratory: MAP Image Restoration

Edge Detection Lecture 03 Computer Vision

x' = c 1 x + c 2 y + c 3 xy + c 4 y' = c 5 x + c 6 y + c 7 xy + c 8

Visual Tracking (1) Tracking of Feature Points and Planar Rigid Objects

Motion and Tracking. Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE)

3D Computer Vision. Dense 3D Reconstruction II. Prof. Didier Stricker. Christiano Gava

Computer Vision I - Filtering and Feature detection

Anisotropic representations for superresolution of hyperspectral data

Variational Methods II

How does bilateral filter relates with other methods?

Peripheral drift illusion

Image Processing with Nonparametric Neighborhood Statistics

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Classification: Linear Discriminant Functions

EXAM SOLUTIONS. Image Processing and Computer Vision Course 2D1421 Monday, 13 th of March 2006,

Filtering Images in the Spatial Domain Chapter 3b G&W. Ross Whitaker (modified by Guido Gerig) School of Computing University of Utah

Image Coding with Active Appearance Models

Level-set MCMC Curve Sampling and Geometric Conditional Simulation

SEMI-BLIND IMAGE RESTORATION USING A LOCAL NEURAL APPROACH

The Immersed Interface Method

COMPUTER VISION > OPTICAL FLOW UTRECHT UNIVERSITY RONALD POPPE

Particle Filtering. CS6240 Multimedia Analysis. Leow Wee Kheng. Department of Computer Science School of Computing National University of Singapore

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

Introduction to patch-based approaches for image processing F. Tupin

Coarse-to-fine image registration

Digital Image Processing COSC 6380/4393

Lecture 4: Image Processing

Blur Space Iterative De-blurring

Research on the New Image De-Noising Methodology Based on Neural Network and HMM-Hidden Markov Models

Image processing. Reading. What is an image? Brian Curless CSE 457 Spring 2017

Norbert Schuff VA Medical Center and UCSF

Separable Kernels and Edge Detection

Image restoration. Restoration: Enhancement:

Structured Light II. Thanks to Ronen Gvili, Szymon Rusinkiewicz and Maks Ovsjanikov

Instance-based Learning

Convex Optimization MLSS 2015

Deconvolution with curvelet-domain sparsity Vishal Kumar, EOS-UBC and Felix J. Herrmann, EOS-UBC

Differential Structure in non-linear Image Embedding Functions

Digital Image Processing. Prof. P. K. Biswas. Department of Electronic & Electrical Communication Engineering

Image Restoration under Significant Additive Noise

1. Introduction. performance of numerical methods. complexity bounds. structural convex optimization. course goals and topics

WEINER FILTER AND SUB-BLOCK DECOMPOSITION BASED IMAGE RESTORATION FOR MEDICAL APPLICATIONS

Point and Spatial Processing

Digital Image Processing ERRATA. Wilhelm Burger Mark J. Burge. An algorithmic introduction using Java. Second Edition. Springer

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

Blind Image Deblurring Using Dark Channel Prior

Understanding Gridfit

Image Registration Lecture 4: First Examples

smooth coefficients H. Köstler, U. Rüde

MEDICAL IMAGE COMPUTING (CAP 5937) LECTURE 4: Pre-Processing Medical Images (II)

Transcription:

Lecture 7 Image Relaxation: Restoration and Feature Extraction ch. 6 of Machine Vision by Wesley E. Snyder & Hairong Qi Spring 2018 16-725 (CMU RI) : BioE 2630 (Pitt) Dr. John Galeotti The content of these slides by John Galeotti, 2012-2018 Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN276201000580P, and is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/3.0/ or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA. Permissions beyond the scope of this license may be available either from CMU or by emailing itk@galeotti.net. The most recent version of these slides may be accessed online via http://itk.galeotti.net/ All images are degraded Remember, all measured images are degraded Noise (always) Distortion = Blur (usually) False edges From noise Unnoticed/Missed edges From noise + blur original image plot noisy image plot 2 1

We need an un-degrader To extract clean features for segmentation, registration, etc. Restoration A-posteriori image restoration Removes degradations from images Feature extraction Iterative image feature extraction Extracts features from noisy images 3 Image relaxation The basic operation performed by: Restoration Feature extraction (of the type in ch. 6) An image relaxation process is a multistep algorithm with the properties that: The output of a step is the same form as the input (e.g., 256 2 image to 256 2 image) Allows iteration It converges to a bounded result The operation on any pixel is dependent only on those pixels in some well defined, finite neighborhood of that pixel. (optional) 4 2

Restoration: An inverse problem Assume: An ideal image, f A measured image, g A distortion operation, D Random noise, n Put it all together: g = D( f ) + n This is what we want This is what we get How do we extract f? 5 Restoration is ill-posed Even without noise Even if the distortion is linear blur Inverting linear blur = deconvolution But we want restoration to be well-posed 6 3

A well-posed problem g = D( f ) is well-posed if: For each f, a solution exists, The solution is unique, AND The solution g continuously depends on the data f Otherwise, it is ill-posed Usually because it has a large condition number: K >> 1 7 Condition number, K K» D output / D input For the linear system b = Ax K = A A -1 K Î [1, ) 8 4

K for convolved blur Why is restoration ill-posed for simple blur? Why not just linearize a blur kernel, and then take the inverse of that matrix? F = H -1 G Because H is probably singular If not, H almost certainly has a large K So small amounts of noise in G will make the computed F almost meaningless See the book for great examples 9 Regularization theory to the rescue! How to handle an ill-posed problem? Find a related well-posed problem! One whose solution approximates that of our ill-posed problem E.g., try minimizing: But unless we know something about the noise, this is the exact same problem! 10 5

Digression: Statistics Remember Bayes rule? This is the a posteriori conditional pdf This is the conditional pdf This is the a priori pdf p( f g ) = p( g f ) * p( f ) / p( g ) Just a normalization constant This is what we want! It is our discrimination function. 11 Maximum a posteriori (MAP) image processing algorithms To find the f underlying a given g: 1. Use Bayes rule to compute all p( f q g ) f q Î (the set of all possible f ) 2. Pick the f q with the maximum p( f q g ) p( g ) is useless here (it s constant across all f q ) This is equivalent to: f = argmax( f q ) p( g f q ) * p( f q ) Noise term Prior term 12 6

Probabilities of images Based on probabilities of pixels For each pixel i: p( f i g i ) µ p( g i f i ) * p( f i ) Let s simplify: Assume no blur (just noise) At this point, some people would say we are denoising the image. p( g f ) = p( g i f i ) p( f ) = p( f i ) 13 Probabilities of pixel values p( g i f i ) This could be the density of the noise Such as a Gaussian noise model = constant * e something p( f i ) This could be a Gibbs distribution If you model your image as an ND Markov field = e something See the book for more details 14 7

Put the math together Remember, we want: f = argmax( f q ) p( g f q ) * p( f q ) where f q Î (the set of all possible f ) And remember: p( g f ) = p( g i f i ) = constant * e something p( f ) = p( f i ) = e something where i Î (the set of all image pixels) But we like something better than e something, so take the log and solve for: f = argmin( f q ) ( p ( g i f i ) + p ( f i ) ) 15 Objective functions We can re-write the previous slide s final equation to use objective functions for our noise and prior terms: f = argmin(f q ) ( p ( g i f i ) + p ( f i ) ) ß f = argmin(f q ) ( H n ( f, g ) + H p ( f ) ) We can also combine these objective functions: H( f, g ) = H n ( f, g ) + H p ( f ) 16 8

Purpose of the objective functions Noise term H n ( f, g ): If we assume independent, Gaussian noise for each pixel, We tell the minimization that f should resemble g. Prior term (a.k.a. regularization term) H p ( f ): Tells the minimization what properties the image should have Often, this means brightness that is: Constant in local areas Discontinuous at boundaries 17 Minimization is a beast! Our objective function is not nice It has many local minima So gradient descent will not do well We need a more powerful optimizer: Mean field annealing (MFA) Approximates simulated annealing But it s faster! It s also based on the mean field approximation of statistical mechanics 18 9

MFA MFA is a continuation method So it implements a homotopy A homotopy is a continuous deformation of one hyper-surface into another MFA procedure: 1. Distort our complex objective function into a convex hyper-surface (N-surface) The only minima is now the global minimum 2. Gradually distort the convex N-surface back into our objective function 19 MFA: Single-Pixel Visualization merit of each possible pixel value 0.3 0.2 0.1 initial global minimum final global minimum Notice that we do not end up here or here possible values for a single pixel 0 20 40 60 80 100 Continuous deformation of a function which is initially convex to find the (near-) global minimum of a non-convex function. 20 10

Generalized objective functions for MFA Noise term: (D( f )) i denotes some distortion (e.g., blur) of image f in the vicinity of pixel I Prior term: t represents a priori knowledge about the roughness of the image, which is altered in the course of MFA (R( f )) i denotes some function of image f at pixel i The prior will seek the f which causes R( f ) to be zero (or as close to zero as possible) 21 R( f ): choices, choices Piecewise-constant images =0 if the image is constant»0 if the image is piecewise-constant (why?) The noise term will force a piecewise-constant image 22 11

R( f ): Piecewise-planer images =0 if the image is a plane»0 if the image is piecewise-planar The noise term will force a piecewise-planar image 23 Graduated nonconvexity (GNC) Similar to MFA Uses a descent method Reduces a control parameter Can be derived using MFA as its basis Weak membrane GNC is analogous to piecewiseconstant MFA But different: Its objective function treats the presence of edges explicitly Pixels labeled as edges don t count in our noise term So we must explicitly minimize the # of edge pixels 24 12

Variable conductance diffusion (VCD) Idea: Blur an image everywhere, except at features of interest such as edges 25 VCD simulates the diffusion eq. temporal derivative spatial derivative Where: t = time Ñ i f = spatial gradient of f at pixel i c i = conductivity (to blurring) 26 13

Isotropic diffusion If c i is constant across all pixels: Isotropic diffusion Not really VCD Isotropic diffusion is equivalent to convolution with a Gaussian The Gaussian s variance is defined in terms of t and c i 27 VCD c i is a function of spatial coordinates, parameterized by i Typically a property of the local image intensities Can be thought of as a factor by which space is locally compressed To smooth except at edges: Let c i be small if i is an edge pixel Little smoothing occurs because space is stretched or little heat flows Let c i be large at all other pixels More smoothing occurs in the vicinity of pixel i because space is compressed or heat flows easily 28 14

VCD A.K.A. Anisotropic diffusion With repetition, produces a nearly piecewise uniform result Like MFA and GNC formulations Equivalent to MFA w/o a noise term Edge-oriented VCD: VCD + diffuse tangential to edges when near edges Biased Anisotropic diffusion (BAD) Equivalent to MAP image restoration 29 VCD Sample Images From the Scientific Applications and Visualization Group at NIST http://math.nist.gov/mcsd/savg/software/filters/ 30 15

Various VCD Approaches: Tradeoffs and example images Mirebeau J., Fehrenbach J., Risser L., Tobji S., Anisotropic Diffusion in ITK, the Insight Journal Images copied per Creative Commons license http://www.insight-journal.org/browse/publication/953 Then click on the Download Paper link in the top-right 31 Edge Preserving Smoothing Other techniques constantly being developed (but none is perfect) E.g., A Brief Survey of Recent Edge-Preserving Smoothing Algorithms on Digital Images https://arxiv.org/abs/1503.07297 SimpleITK filters: BilateralImageFilter Various types of AnisotropicDiffusionImageFilter Various types of CurvatureFlowImageFilter 32 16