• Keine Ergebnisse gefunden

4. Streak Finder 32

4.3. Characterization

The value ofns sets the position of the streaks and depends on the choice of coordinate system. As only the absolute of the Fourier componenents is considered, we may assume without loss of generality, that ns= 0, which results in

t(k) =A

The resulting value of ˇS is

Sˇ= 1

By taking into account, that intensity values are always real and non-negative, the definition of the Fourier transform implies, that ˜If(0) ≥ I˜f(n). This implies for a renormalized Streak Finder, that dividing ˇS by the number NSF of considered Fourier modes (here NSF = 6) results in a renormalized anisotropy paramter S which fulfills 0≤S≤1.

Until here,NSF = 6 was chosen, but this is not necessarily the only possible choice. NSF

allows to adapt for different signal shapes:

SNSF := 1

SmallerNSF can account for broader peaks and higher numbers of NSF allow a more accurate sampling of peaks with a small full width at half maximum.

4.3. Characterization of the Streak Finder

In this section, regions of insensitive pixels in the Streak Finder ROI will play a major role, therefore the following nomenclature is introduced: If qr,max exceeds the detector

CHAPTER 4. STREAK FINDER 4.3. CHARACTERIZATION

size, empty regions will occur in the ROI, this case shall be calledrectangular detector.

Otherwise, round detector will be used, see also Fig. 4.2. Test data were generated to test and characterize the Streak Finder. The constructed intensity distribution has the form of a two dimensional Gaussian distribution

Itest(x, y) = A

where σ denotes the distribution width, µ the

ROI ROI

qr,max qr,max

rectangular

detector round detector

Figure 4.2.: On the definition of nomenclature for ROIs larger or smaller than the detector.

centre of the distributions andA an amplitude to the distribution function. The constant B allows to add a constant background. The two directions are indexed for the components in parallel and perpendicular direction with respect to the main orientation of the streak. The data are first gen-erated and then rotated with the matlab function imrotate to match the desired orientation angle.

A mask can be applied to simulate dead regions in the data as found in diffraction images from the Pilatus detector. The empty circle around the

beam centre corresponds to the inner radius of the ROI that is considered.

Optimal conditions A first test was made without the intermodule gaps of the Pilatus detector or dead regions from the sides. The transformed and reweighted intensity distribution is shown in Fig. 4.3 a). The streak orientation was varied and the resulting anisotropy parameter and streak angle plotted vs. the simulated streak orientation.

The angle was determined accurately (within the discretisation of the sampling rate of χ, given by the number N of angular segments, here N = 360) and the anisotropy parameter shows variations on the order of 10−3 of its value. This proves the correct functioning of the algorithm. The slight variation could be due to few empty pixels, that result from the coordinate transformation at lowqr or numerical residues. Secondly, the contributions of the areas without intensity information c) resulting from the sides of the detector are simulated, the output of the Streak Finder algorithm is presented in d). The resulting shape of the anisotropy parameter curve is found to be characteristic for strongly anisotropic intensity distributions with a decay alongq (see following paragraph).

CHAPTER 4. STREAK FINDER 4.3. CHARACTERIZATION

0 streak orientation 135χ

1

0 streak orientation 135χS 1

Figure 4.3.: Test data without intermodule gaps from a) a round and c) a reactangular detector.

The resulting anisotropy parameterS and angular deviation ∆χS are shown in b) for the round detector and d) for the rectangular one with respect to the streak orientation. The test data had a background ofB= 2, streak widths ofσk= 100 andσ= 15 and an intensity ofA= 106.

CHAPTER 4. STREAK FINDER 4.3. CHARACTERIZATION

Figure 4.4.: Characterization of Streak Finder algorithm with respect to the aspect ratio AR = σσ

k of the intensity distribution. Test data (a,b) with σk = 100px and varyingσ[1. . .99px] are processed in the Streak Finder algorithm, the resulting anisotropy parameter and deviation of the actual orientation are plotted as a function of the aspect ratio (c). The small images below a) and b) are the reweighted intensity distributions obtained from the data. The angle of the main axis was fixed atχ = 30, with a background B = 2 and fixed streak intensity A= 106.

Distribution width A distribution withσk= 100pxand varyingσ∈[1px,99px] was processed with the Streak Finder algorithm. The background is set toB = 2 and the amplitude to A= 106. Fig. 4.4 (a+b) shows two of the resulting test datasets with the exemplary aspect ratios AR = σσ

k of (a) AR = 0.01 and (b) AR= 0.6. All test data were generated with a fixed streak orientation of χs = 30. The resulting anisotropy parameter and angular deviation ∆χs (i. e., the difference between the calculated angle and the actual angle defined in the test data) are shown in Fig. 4.4 (c). The anisotropy parameter decays in a slope from S= 0.42 to≈0. The angle deviates from the chosen angle by no more than ∆χs≤6.

Orientation and background Fig. 4.5 (c-f) illustrate the behaviour ofS and ∆χs with varyingχs and for different background levels. An example of the intensity distribution put to test is shown in a) with the corresponding transformed and reweighted intensity distribution in b).

Compared with Fig. 4.3, the overal trend is retained, only the insensitive detector regions add some high frequency features. The anisotropy parameter graphs of different

CHAPTER 4. STREAK FINDER 4.3. CHARACTERIZATION

0 orientation angle χ135 -1

0 orientation angle χ135 1

0 orientation angle χ135 -1

Figure 4.5.: Characterization of the Streak Finder algorithm for different background levels.

Test distributions (A= 106, σk= 100, σ= 5, a) and b) show the case forB = 2) are fed into the Streak Finder algorithm with different background levelsB. The resultingS and ∆χS are shown in c)-f).

0 orientation angle χ135 -1

Figure 4.6.: A box shaped distribution that is 1000 inside and 0.01 outside the 5px wide streak is tested and the result plotted in c).