Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:

Slides:



Advertisements
Similar presentations
Histogram Processing The histogram of a digital image with gray levels in the range [0, L-1] is a discrete function h(rk) = nk where rk is the kth gray.
Advertisements

Chapter 4. Elements of Statistics # brief introduction to some concepts of statistics # descriptive statistics inductive statistics(statistical inference)
Alexander Statnikov1, Douglas Hardin1,2, Constantin Aliferis1,3
1 Imaging Techniques for Flow and Motion Measurement Lecture 11 Lichuan Gui University of Mississippi 2011 Interrogation Window Shift.
3-5 Warm Up Problem of the Day Lesson Presentation
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
Discrete Event (time) Simulation Kenneth.
Instructor: Lichuan Gui
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
9. Two Functions of Two Random Variables
Digital Communication
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
Measurements in Fluid Mechanics 058:180 (ME:5180) Time & Location: 2:30P - 3:20P MWF 3315 SC Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan.
Measurements in Fluid Mechanics 058:180 (ME:5180) Time & Location: 2:30P - 3:20P MWF 3315 SC Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan.
Digital Image Processing
Applied Probability Lecture 5 Tina Kapur
Instructor: Lichuan Gui
1 Imaging Techniques for Flow and Motion Measurement Lecture 6 Lichuan Gui University of Mississippi 2011 PIV Recording Evaluation.
Imaging Techniques for Flow and Motion Measurement Lecture 13 Lichuan Gui University of Mississippi 2011 Central Difference Interrogation.
Monte Carlo Integration Robert Lin April 20, 2004.
Continuous Random Variables Chap. 12. COMP 5340/6340 Continuous Random Variables2 Preamble Continuous probability distribution are not related to specific.
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.
Lecture 4 Measurement Accuracy and Statistical Variation.
Statistical Treatment of Data Significant Figures : number of digits know with certainty + the first in doubt. Rounding off: use the same number of significant.
Measurements in Fluid Mechanics 058:180 (ME:5180) Time & Location: 2:30P - 3:20P MWF 3315 SC Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan.
Continuous Probability Distribution  A continuous random variables (RV) has infinitely many possible outcomes  Probability is conveyed for a range of.
Measurements in Fluid Mechanics 058:180 (ME:5180) Time & Location: 2:30P - 3:20P MWF 3315 SC Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan.
1 Imaging Techniques for Flow and Motion Measurement Lecture 7 Lichuan Gui University of Mississippi 2011 Correlation Interrogation & FFT Acceleration.
Measurements in Fluid Mechanics 058:180 (ME:5180) Time & Location: 2:30P - 3:20P MWF 3315 SC Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan.
Instructor: Lichuan Gui
IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu
Particle Image Velocimetry (PIV) Introduction
1 Imaging Techniques for Flow and Motion Measurement Lecture 5 Lichuan Gui University of Mississippi 2011 Imaging & Recording Techniques.
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
Monte Carlo Simulation CWR 6536 Stochastic Subsurface Hydrology.
Chapter 14 Monte Carlo Simulation Introduction Find several parameters Parameter follow the specific probability distribution Generate parameter.
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
1 Imaging Techniques for Flow and Motion Measurement Lecture 18 Lichuan Gui University of Mississippi 2011 Large-scale PIV and Stereo High-Speed Imaging.
M ATLAB L ECTURE 1 Basic Concepts of Digital Image Processing.
1 Imaging Techniques for Flow and Motion Measurement Lecture 2 Lichuan Gui University of Mississippi 2011 Digital Image & Image Processing.
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
Measurements in Fluid Mechanics 058:180 (ME:5180) Time & Location: 2:30P - 3:20P MWF 3315 SC Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan.
Measurements in Fluid Mechanics 058:180 (ME:5180) Time & Location: 2:30P - 3:20P MWF 3315 SC Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan.
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
Ch5 Image Restoration CS446 Instructor: Nada ALZaben.
Mixture of Gaussians This is a probability distribution for random variables or N-D vectors such as… –intensity of an object in a gray scale image –color.
1 Imaging Techniques for Flow and Motion Measurement Lecture 15 Lichuan Gui University of Mississippi 2011 Multi-phase Flow PIV Techniques.
1 Imaging Techniques for Flow and Motion Measurement Lecture 19 Lichuan Gui University of Mississippi 2011 Stereoscopic Particle Image Velocimetry (SPIV)
Measurements in Fluid Mechanics 058:180 (ME:5180) Time & Location: 2:30P - 3:20P MWF 3315 SC Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan.
Measurements in Fluid Mechanics 058:180 (ME:5180) Time & Location: 2:30P - 3:20P MWF 3315 SC Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan.
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
October 1, 2013Computer Vision Lecture 9: From Edges to Contours 1 Canny Edge Detector However, usually there will still be noise in the array E[i, j],
1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method.
Particle Image Velocimetry Demo Outline (For reference) ‏ Topic NumberTopic NamePage Type 1Flow of PIVAnimated page.
HMP Simulation - Introduction Deterministic vs. Stochastic Models Risk Analysis Random Variables Best Case/Worst Case Analysis What-If Analysis.
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
Imaging Techniques for Flow and Motion Measurement Lecture 14 Lichuan Gui University of Mississippi 2011 Central Difference Image Correction.
Measurements in Fluid Mechanics 058:180 (ME:5180) Time & Location: 2:30P - 3:20P MWF 3315 SC Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan.
Measurements in Fluid Mechanics 058:180 (ME:5180) Time & Location: 2:30P - 3:20P MWF 3315 SC Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan.
Introduction to Digital Image Analysis Kurt Thorn NIC.
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
Probablity Density Functions
Chapter 14 Monte Carlo Simulation
CS723 - Probability and Stochastic Processes
The Image The pixels in the image The mask The resulting image 255 X
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Presentation transcript:

Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan Gui

2 Lecture 27. Bias Error of Correlation Interrogation

3 Bias Error of Correlation Interrogation Performance of FFT-based correlation Reduced effective correlation region with increasing magnitude of (m, n) A : Effective correlation region B,C,D: Periodically Padded regions - The reliability & accuracy decrease with increasing particle image displacement (m*,n*) - The evaluated particle image displacement has smaller magnitude than that of the true value

4 Bias Error of Correlation Interrogation Bias & random errors for measuring variable X N times RMS fluctuation (random error) RMS error Individuale reading of X: Mean value 0

5 Probability density function (PDF) Bias Error of Correlation Interrogation Bias & random errors for measuring variable X N times PDF for measuring displacement 0.5 pixels   

6 Bias Error of Correlation Interrogation Correlation interrogation with Gaussian window mask f=32x32 Gui et al 2000, A digital mask technique for reducing the bias error of the correlation-based PIV interrogation algorithm. Exp. Fluids 29, 30-35

7 Bias Error of Correlation Interrogation Correlation interrogation with Gaussian window mask function [gm]=wmask(go) % INPUT: go - original evaluation sample % OUTPUT: gm - masked evaluation sample [M N]=size(go); for i=1:M for j=1:N gm(i,j)=exp(-4*((i-M/2)*(i-M/2)/(M*M/4)+(j-N/2)*(j-N/2)/(N*N/4)))*go(i,j); end Matlab function for Gaussian window mask File name: wmask.m Test image pair: - simulated single-exposed PIV recording pair of 1024  1024 pixels - given uniform particle image displacement:  x=3.5,  y=5.5 pixels

8 Class project: example of Matlab functions for PIV recording evaluation Test function “correlation.m” with simulated PIV recordings Test main program: clear; A1=imread('01.bmp'); % input image file A2=imread('02.bmp'); % input image file g1=img2xy(A1); % convert image to gray value distribution g2=img2xy(A2); % convert image to gray value distribution [C m n]=correlation(g1,g2); D=xy2img(C); % convert correlation function to image imshow(D); % display correlation function [cm vx vy]=peaksearch(C,m,n,12,0,0) % particle image displacement 01.bmp02.bmp Correlation function Vx= Vy=

Class project: corrected Matlab functions File name: correlation.m function[c m n]=correlation(g1,g2) [M N]=size(g1); % determine size of evaluation sample % determine window size for FFT - begin for k=3:12 if 2^k>=M & 2^k>=N break; end M2=2^k; N2=2^k; % determine window size for FFT - end % average gray value padding - begin gm1=mean(mean(g1)); gm2=mean(mean(g2)); for i=1:M2 for j=1:N2 if i<=M & j<=N gg1(i,j)=g1(i,j); gg2(i,j)=g2(i,j); else gg1(i,j)=gm1; gg2(i,j)=gm2; end % average gray value padding - end % compute correlation function - begin gfft1=fft2(gg2); gfft2=conj(fft2(gg1)); C=real(ifft2(gfft1.*gfft2)); % compute correlation function - end % determine coordinates in correlation plane - begin for i=1:M2 for j=1:N2 m(i,j)=i-M2/2-1; n(i,j)=j-N2/2-1; end % determine coordinates in correlation plane - end % periodical reconstruction of correlation function - begin for i=1:M2/2 C1(i,1:N2)=C(i+M2/2,1:N2); end for i=M2/2+1:M2 C1(i,1:N2)=C(i-M2/2,1:N2); end for j=1:N2/2 c(1:M2,j)=C1(1:M2,j+N2/2); end for j=N2/2+1:N2 c(1:M2,j)=C1(1:M2,j-N2/2); end % periodical reconstruction of correlation function - end

10 File name: xy2img.m function [A]=xy2img(G) % A - image % G - gray value distribution [nx ny]=size(G); Gmax=max(max(G)); Gmin=min(min(G)); for x=1:nx for y=1:ny A(ny-y+1,x)=uint8(double(G(x,y)-Gmin)/double(Gmax-Gmin)*245+5); end Class project: corrected Matlab functions % Uint8 - convert to 8-bit unsigned integer % Int8 - convert to 8-bit signed integer

11 Bias Error of Correlation Interrogation Main program to test Gaussian window mask A1=imread('lecture27-image01.bmp'); % input image file A2=imread('lecture27-image02.bmp'); % input image file G1=img2xy(A1); % convert image to gray value distribution G2=img2xy(A2); % convert image to gray value distribution Mg=64; % interrogation grid width Ng=64; % interrogation grid height M=64; % interrogation window width N=64; % interrogation window height [nx ny]=size(G1); row=ny/Mg-1; % grid row number col=nx/Mg-1; % grid column number sr=10; % search radius for i=1:col for j=1:row x=i*Mg; y=j*Mg; g1=sample(G1,M,N,x,y); % evaluation samples g2=sample(G2,M,N,x,y); g1=wmask(g1); % apply Gaussian window mask [C m n]=correlation(g1,g2); [cm vx vy]=peaksearch(C,m,n,sr,0,0); % particle image displacement U(i,j)=vx; V(i,j)=vy; X(i,j)=x; Y(i,j)=y; end quiver(X,Y,U,V); % plot vector map mean(mean(U))-3.5 % bias of x-component mean(mean(V))-5.5 % bias of y-component Unmasked: Masked: