Other Algorithms Follow Up

Slides:



Advertisements
Similar presentations
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Advertisements

Spatial Filtering (Chapter 3)
Creation of a digital image from an analog signal. Analog-Digital Converter (ADC)
Motion illusion, rotating snakes. Slide credit Fei Fei Li.
Digital Image Processing
1Ellen L. Walker ImageJ Java image processing tool from NIH Reads / writes a large variety of images Many image processing operations.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
6/9/2015Digital Image Processing1. 2 Example Histogram.
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
1 Lecture 12 Neighbourhood Operations (2) TK3813 DR MASRI AYOB.
Image Enhancement.
1 Image filtering Images by Pawan SinhaPawan Sinha.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Image Filtering. Problem! Noise is a problem, even in images! Gaussian NoiseSalt and Pepper Noise.
CS448f: Image Processing For Photography and Vision Denoising.
Chapter 3 (cont).  In this section several basic concepts are introduced underlying the use of spatial filters for image processing.  Mainly spatial.
Neighborhood Operations
1 Chapter 8: Image Restoration 8.1 Introduction Image restoration concerns the removal or reduction of degradations that have occurred during the acquisition.
Spatial Filtering: Basics
Digital Image Processing Image Enhancement Part IV.
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Image processing.
Multimedia Data Introduction to Image Processing Dr Sandra I. Woolley Electronic, Electrical.
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
What’s in a sum? Simon Dawes CMHAS. Should you stack frames using Mean, Median or Sum?
Image processing Fourth lecture Image Restoration Image Restoration: Image restoration methods are used to improve the appearance of an image.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Digital Image Processing Lecture 10: Image Restoration
CSC508 Convolution Operators. CSC508 Convolution Arguably the most fundamental operation of computer vision It’s a neighborhood operator –Similar to the.
Autonomous Robots Vision © Manfred Huber 2014.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
: Chapter 5: Image Filtering 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Linear filtering. Motivation: Image denoising How can we reduce noise in a photograph?
Digital Filters. What are they?  Local operation (neighborhood operation in GIS terminology) by mask, window, or kernel (different words for the same.
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Basic Principles Photogrammetry V: Image Convolution & Moving Window:
CS262: Computer Vision Lect 06: Face Detection
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Digital Image Processing Lecture 10: Image Restoration
Image Deblurring and noise reduction in python
Image Pre-Processing in the Spatial and Frequent Domain
Digital Image Processing
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Image Analysis Image Restoration.
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Edge Detection The purpose of Edge Detection is to find jumps in the brightness function (of an image) and mark them.
Computer Vision Lecture 9: Edge Detection II
Computer Vision Lecture 16: Texture II
Image Enhancement in the Spatial Domain
Image filtering Images by Pawan Sinha.
Image filtering Images by Pawan Sinha.
Spatial operations and transformations
Technique 6: General gray-level transformations
Digital Image Processing Week IV
Image filtering
Linear Operations Using Masks
Technique 6: General gray-level transformations

Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
REDUKSI NOISE Pertemuan-8 John Adler
Digital Filters.
Image Enhancement in the Spatial Domain
Spatial operations and transformations
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Templates and Image Pyramids
Presentation transcript:

Other Algorithms Follow Up June 22, 2016 Kevin Moser

Problem Statement Large number of false positives from crfilter Need to be more discerning in selection process View various methods of removing problem cosmic rays and hot pixels Need to compare our algorithm to other past results Combine useful techniques into final code Use of histogram to look for large gaps in image Use of Laplacian filter to find sharp edges in image

Histogram Method A Fast Algorithm for Cosmic-Ray Removal from Single Images by Wojtek Pych Takes small neighborhoods Computes histograms Looks for gaps between digital counts Replaces pixels if gap is greater than threshold times standard deviation and pixels is greater than median Marks fewer false positives than crfilter

Sample 10x10 square with hot pixels

Blue Histogram

Green Histogram

Red Histogram

Problems with histogram Increases runtime because more calculation in each section of image Takes around 60 seconds for full image Will need to process at every single pixel Try to figure out how to do with convolution or similar method to improve run time

Laplacian Edge Detection Cosmic-Ray Rejection by Laplacian Edge Detection by Pieter G. van Dokkum Convolve image with Laplacian kernel to determine edges The sharp edges correspond with cosmic rays Many objects will still have sharp edges, so divide by the difference between two median blurs of the image which gives us the size of the object If it has a sharp edge but is a very small object, it is most likely a cosmic ray

Laplacian Image Gives an indication of the edges in an image Replaces center pixel value with the result of multiplying this kernel to the neighborhood and summing the results Returns high result for single hot pixel on dark background

Laplacian Edges Calculates the difference between the Laplacian and the median to remove large objects Divides by a difference between a small median kernel and a large median kernel Returns bad results currently Seems to be extremely weighted in dark areas and with noise Need to understand their noise reduction to cut back false positives Trying a second technique of crfilter weighted or thresholded by Laplacian image

Laplacian Image Calculates results using crfilter Multiplies by Laplacian image to remove false positives Or uses second threshold value for Laplacian Creates new false positives due to other noise or objects Weights by Laplacian image minus the 3x3 median image to help remove influence by large objects Need to determine how thresholding will change on wide variety of images

Pure Intensity Threshold Tries to perform a simple threshold by pixel value Observes what kind of results produced for false positives and negatives Compares to crfilter, histogram, and edges Should be extremely bad but interesting test

Intensity Thresholding

Crfilter

Histogram

Crfilter weighted with Laplacian

Attempt at Recreating Pure Laplacian Detection

Summary of Results Shows surprisingly good results for the weighted crfilter with Laplacian Indicates good method but also good test images for that method Had test images with single pixel cosmic rays Need more work with cosmic rays on various background and near edges such as the planet Need to compare how effective with larger cosmic rays

Summary of Results Demonstrates the histogram method could also be viable Returns low number of false positives across range of thresholds Improving runtime would make this technique much more promising Use crfilter for best general case Employs easy fast code that is fairly unaffected by variety of images Could use better testing method for all techniques

Graphs Create many crops from a variety of images from Peter Contain cosmic rays of different sizes and intensity compared to background Test with different methods Need a better way of showing this data and labeling all the lines

Selection of Test Images /i124E6987 /i125H8217 /iss031e152913 /i125H7665 /i125I1428 /iss031e168197

Legend Green - Average Cyan - \i124E6987 Red - \i125H7665 Black - \i125H8217 Yellow - \i125I1428 Magenta - \iss031e152913 Gray - \iss031e168197

Basic Crfilter Results

Basic Crfilter Results Shows a different intersection for red than others Demonstrates overall similar response across images with most intersection between 2.5 and 3 Displays still high percentage of false positives

Laplacian Image Multiplied with Crfilter

Separate Crfilter and Laplacian Thresholds

Basic Crfilter Results

Laplacian Results Reduces all the false positives except for gray and magenta Demonstrates issues with stars and the background noise in those images Multiplying by Laplacian spreads out the threshold values for each image Shows the secondary threshold can help with most other images Need a closer look at specific problem areas to remove false positives

Small Crop with Blue Hot Pixels and Star

Crfilter 3.2

Small Crop with Blue Hot Pixels and Star

Laplacian 50000

Small Star

Small Star (Laplacian-3x3Median)

Hot Pixel

Hot Pixel(Laplacian-3x3Median)

Noise

Noise(Laplacian-3x3Median)

Dark

Trying to Solve the Problem of False Positives Multiplying by Laplacian – 3x3Median removes noise issues but increases removal from stars Need to use Laplacian as secondary threshold value Can clip standard deviation at minimum value, help remove falsely high zscores Try to remove all values past 3 standard deviation and recalculate standard deviation see if that help Attempt Median Absolute Deviation to provide a better center mark

Comparison of Histograms Noise - red Hot Pixel - Blue

Small Crop with Blue Hot Pixels and Star

Single Laplacian Blue Channel

Two Pixel Laplacian Blue Channel

Expanded Laplacian Blue Channel

Problem with Noisy Images \iss031e152913 and \iss031e168197 have two pixels connected from cosmic rays and many false positives Looking at metadata show a very high ISO compared to other images 36,864 ISO on iss images 6,400 or 8,063 on other images

Cosmic rays and noise Similarity of hot pixels to impulse noise: random value or salt and pepper Deals with certain adaptive median filters to look for edge properties Ignore edges in pixel replacement Unsure if the two pixel pattern will trigger as edge Potential wavelet solution by looking at high frequency and replacing Can lead to effects across the entire image

Classification Could use marked hot pixels, stars and random dark areas to try and train a machine learning classification Use small image crops, histogram of gradients, laplacian, etc. as classification data Still very subjective training data Longer runtime for final output images Area with least expertise