Great. Now lets analyze this smaller image. The first thing we need to
do is set some parameters.

Now, you don’t need to know what these all do now, we will talk about
them later.

params={######################Image Analysis Parameters'numProcess':3,#number of processes to split analysis into'slow_corr':True,#Optional parameter to tell it to use slow cross corr optimization algorithm'peakWindow':12,#half width of window used to find peaks. Should be at least as wide as peaks'peakGradRatio':6.0,#This is the minimum ratio of gradient / image_grad.std() it is used in initial peak finding.'h_w_ratio_test_min':0.000,#minimum value for mean/max of window as wide as two sigma'h_w_ratio_test_max':20.0,#Max value, Measure of acceptable level of signal to noise. (0.75 is reasonably high)'corrWindow':30,#This is half width of the correlation window'fit_center_diff_max':6.0,#Maximum difference between fit center and peak'gaussWinFit':3,#size of window for initial gaussian fit (3 ish)'width_test_max':1.0,#allowable difference between width of particle image and width of croscorr peak.'p_p_fit_width':0.18,#0.18, #Max width of peak as fit by gaussian. Most direct measure of uncertainty.'minFreq':0.2,#Minimum Frequency considered'maxFreq':0.4,#Maximum frequency considered'numFreqs':int(256),#Number of frequencies used to calculate stored bessel functions'maxError':5.0e-4,#Maximum amount of relative error in curve fit allowed'minPeakHeight':0.20,#minimum allowed peak height 0.2'minCenterSpread':0.1,#minimum allowed std. of center locations for correlations 0.1'maxFitStdDev':0.4,#If we fit a gaussian to the ridge, this is the std of the fit. 0.2'min2DFitCurve':0.2,#This is the minimum acceptable curvature calculated in findConvMax 0.2'minComplexTest':0.0001,#1.75'minOverlap':4.0,#This is minimum distance between particles, if they are closer then this we deleat them'regionOfInterest':[10,-10,50,-50],#Box inscribing the region of interest (note, negative for max boundary)######################Plotting Flags #########################################'plotResult':False,#Turns on and off plotting of "result" for the image.'plotParticles':False,#Turns on plotting particle windows'plotFits':False,#Turns on ploting of Curve fits'printFits':False,#Turns on printing of curve fit information'plotPeakFind':False,#plots found peaks over image. Good to test 'peakGradRatio''printParticles':False,#Prints data about each potential particle, why fail, ext....'plotEachPeak':False,#Plots each peak window, good for discovering if peak find is missing particles or being to generous.'plot_conv_max':False,#Plots the convolution right before the maximum is found.'debug_uncertainty':False,#Pltos stuff to debug uncertainty}