What’s in a sum? Simon Dawes CMHAS. www.itslifejim.btinternet.co.uk Should you stack frames using Mean, Median or Sum?

Slides:



Advertisements
Similar presentations
Using the TI 83 Plus Calculator
Advertisements

By Kevin Saunders.  tml tml.
Statistical Analysis with Excel
Lecture 4 Linear Filters and Convolution
Image processing. Image operations Operations on an image –Linear filtering –Non-linear filtering –Transformations –Noise removal –Segmentation.
Measure of Center A measure of center is a value at the center or middle of the data set Surprising, huh?
Focused Reducts Janusz A. Starzyk and Dale Nelson.
Image Enhancement.
Hand Movement Recognition By: Tokman Niv Levenbroun Guy Instructor: Todtfeld Ari.
Mean and Median Math .
September 25, 2014Computer Vision Lecture 6: Spatial Filtering 1 Computing Object Orientation We compute the orientation of an object as the orientation.
Image Filtering. Problem! Noise is a problem, even in images! Gaussian NoiseSalt and Pepper Noise.
Different sources of noise in EM-CCD cameras
Interpolation, extrapolation, etc. Prof. Ramin Zabih
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Means & Medians Chapter 5. Parameter - ► Fixed value about a population ► Typical unknown.
Statistical Analysis with Excel (PREVIEW). Spreadsheet Programs First developed in 70s –VisiCalc Dan Bricklin and Bob Frankston –Operated on Apple II.
Multimedia Data Introduction to Image Processing Dr Sandra I. Woolley Electronic, Electrical.
Computational Biology, Part 23 Biological Imaging III G. Steven Vanni Robert F. Murphy Copyright  1998, All rights reserved.
Recap Script M-file Editor/Debugger Window Cell Mode Chapter 3 “Built in MATLAB Function” Using Built-in Functions Using the HELP Feature Window HELP.
Mean, Median, Mode & Range. Mean A number that represents the centre, or average, of a set of numbers; to find the mean, add the numbers in the set, then.
D ATA A NALYSIS Histogram Second Generation Third Generation First Generation.
Simon Dawes Artemis 285. Kit Assembly The Completed Camera.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
DO YOU KNOW WHAT I MEAN? Aim: To be able to find the mean and mode from a frequency table. All: Will be able to read values from a frequency table. Most:
Lights, Camera, Action: Video Systems For Recording, Streaming and Multi-Site Twitter - dukedejong Duke DeJong Church Relations Director.
A n = c 1 a n-1 + c2an-2 + … + c d a n-d d= degree and t= the number of training data (notes) The assumption is that the notes in the piece are generated.
Digital Image Processing Lecture 10: Image Restoration
M M M R.
Mean: The AVERAGE values of a set of numbers. The mean is found by ADDING all of the values, then DIVIDING by the number of values in the set of data.
Figure ground segregation in video via averaging and color distribution Introduction to Computational and Biological Vision 2013 Dror Zenati.
Math Skills in Science Scientific Inquiry #4. Vocabulary Mean Mean Median Median Mode Mode.
CSC508 Convolution Operators. CSC508 Convolution Arguably the most fundamental operation of computer vision It’s a neighborhood operator –Similar to the.
Measures of Central Tendency Mean, Median, Mode, and Range.
7.3 Measures of Central Tendency and Dispersion. Mean – the arithmetic average is the sum of all values in the data set divided by the number of values.
The number which appears most often in a set of numbers. Example: in {6, 3, 9, 6, 6, 5, 9, 3} the Mode is 6 (it occurs most often). Mode : The middle number.
Prime and Composite Numbers Factors What is a prime number? Is this number prime?
: Chapter 5: Image Filtering 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Measures of Central Tendency Mean, Median, Mode, Range Standard VII-5.
Mean, Median, and Mode Lesson 7-1. Mean The mean of a set of data is the average. Add up all of the data. Divide the sum by the number of data items you.
September 26, 2013Computer Vision Lecture 8: Edge Detection II 1Gradient In the one-dimensional case, a step edge corresponds to a local peak in the first.
1 Math Review: mean, median, mode, range. 2 Average Number of s  x x x x x x x___x___x_____x__________ s sent today  What is the.
Central Tendency and Variability Chapter 4. Variability In reality – all of statistics can be summed into one statement: – Variability matters. – (and.
Astroschool: Image Calibration February 20 th,
Digital Image Processing Lecture 10: Image Restoration
Linear Filters and Edges Chapters 7 and 8
How to describe a graph Otherwise called CUSS
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
Partial Products Algorithm for Multiplication
Summary descriptive statistics: means and standard deviations:
Real-Time Human Pose Recognition in Parts from Single Depth Image
Other Algorithms Follow Up
Means & Medians Chapter 4.
Means & Medians Chapter 4.
Computer Vision Lecture 9: Edge Detection II
Means & Medians Chapter 5.
11.1 Measures of Center and Variation
Image Processing, Lecture #8
Summary descriptive statistics: means and standard deviations:
Image Processing, Lecture #8
Means & Medians Chapter 4.
Means & Medians Chapter 5.
Intensity Transformation
Means & Medians.
Mean.
Standard Deviation Mean - the average of a set of data
Means & Medians Chapter 4.
Mean, Median, and Mode Lesson 7-1.
Mr. Peter Richard Complex Numbers Using the TI 83 Plus Calculator
Presentation transcript:

What’s in a sum? Simon Dawes CMHAS

Should you stack frames using Mean, Median or Sum?

Objective: To capture an image that closely represents reality by taking multiple images and stacking them to reduce noise. To understand when to perform a sum, average or median stack

Stacking basics Stacking is performed after the images are aligned Stacking is a ‘pixel math’ operation, i.e we perform a mathematical function on related pixels in each frame The most common stacking options are sum, average and median. Because adjacent pixels are not included in the function we can safely consider a single pixel A AA A

Our ‘perfect’ image 1x1 pixel image Without noise, we can expect this image to have a value of 1000 We have taken 12 frames of the same image, but our image contains… Random noise due to the instrumentation A cosmic ray

Average Stack Average stack simply takes the average of all the pixels ( )/12 = 1103 This is 110% of the value we were expecting, primarily because the 2222 value (cosmic ray) has a large influence over the result. In real life, with a 1 Mega pixel camera it would be impractical to remove the frames with cosmic rays

Sum Stack Sum stack is simpler than the average stack as we simply add up all the pixel values ( ) = At first light this looks useless, 13 times higher than the value we are after, but in reality, all we have done is increase the range of values in the image. The sum stack contains no more or less information than the average stack, it is simply 13 times larger

Let’s recap… Mean stacked images contain the same information as sum stacked images

Yes but… Mean stacked images… require processing (we have to add and divide) require more processing (we have to add and divide) May lose information because the number of decimal places will be truncated Are convenient if you wish to keep the same scale as the original image

Median Stacking Median (mid point) A reminder… Take a list of values… 12,23,11,17,18 Place them in order… 11,12,17,18,23 The middle value is the median = 17

Median Stack Place the values in order… 987,990,991,995,1005,1006,1007,1007,1007,1011,1012,2222 find the middle value.. find the middle value.. 987,990,991,995,1005,1006,1007,1007,1007,1011,1012, 2222 = This is 0.6% larger than the desired value compared to 10% of the sum and average stack. It’s easy to see what is happening… The ‘cosmic ray’ value is not close to the signal value so is unlikely to be towards the middle of the range of values, effectively it’s ignored. The same will work with aircraft and satellite trails

So you should always use a median stack? Not necessarily… Median stacks only work if the frames are of the same exposure time Median stacks require a lot of processing so with a large CCD array and a large number of files can take a long time to process.

More advanced stacking options Sigma Clip & SD Mask Combine the best features of the Median and Average modes, but require more intensive calculations. Both algorithms work by calculating the mean value of each pixel across all of the input images, as well as the standard deviation of those pixel values. When using the Sigma-Clip algorithm, the pixel value that deviates the most from the mean will be discarded, provided that the deviation is greater than the number of standard deviations given by the Sigma Factor, and a new mean will be calculated without the discarded value. SD-Mask calculates the mean, median, and standard deviation for each pixel. A trigger level is calculated based on the Sigma Factor entered by the user, multiplied by the standard deviation averaged over many pixels. For any pixel where the standard deviation exceeds this trigger level (i.e. a noisy pixel), then the median value is saved in the output image; otherwise the mean is used.

In summary It is preferential to use a Median stack if the exposure times are the same. If the exposure times are different use a sum stack. The mean stack should be used rarely, and only if you don’t want to change the range of values in your image. Other more complex stacking algorithms can be used that try to identify and eliminate the noise before calculating the new pixel value.