1 | <anchor url='http://download.mantidproject.org/algorithm_screenshots/ScreenShotImages/RadiusSum_dlg.png'><img width=400px src='http://download.mantidproject.org/algorithm_screenshots/ScreenShotImages/RadiusSum_dlg.png' style='position:relative; z-index:1000; padding-left:5px; float:right;'></anchor> |
---|
2 | |
---|
3 | == Summary == |
---|
4 | |
---|
5 | Sum of all the counts inside a ring against the scattering angle for each Radius. |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | == Usage == |
---|
10 | |
---|
11 | OutputWorkspace = RadiusSum(InputWorkspace,[Centre],[MinRadius],[MaxRadius], |
---|
12 | [NumBins],[NormalizeByRadius],[NormalizationOrder]) |
---|
13 | |
---|
14 | <br clear=all> |
---|
15 | |
---|
16 | == Properties == |
---|
17 | |
---|
18 | {| border="1" cellpadding="5" cellspacing="0" |
---|
19 | !Order |
---|
20 | !Name |
---|
21 | !Direction |
---|
22 | !Type |
---|
23 | !Default |
---|
24 | !Description |
---|
25 | |- |
---|
26 | |1 |
---|
27 | |InputWorkspace |
---|
28 | |Input |
---|
29 | |[[MatrixWorkspace]] |
---|
30 | |Mandatory |
---|
31 | |An input workspace. |
---|
32 | |- |
---|
33 | |2 |
---|
34 | |OutputWorkspace |
---|
35 | |Output |
---|
36 | |[[MatrixWorkspace]] |
---|
37 | |Mandatory |
---|
38 | |An output workspace. |
---|
39 | |- |
---|
40 | |3 |
---|
41 | |Centre |
---|
42 | |Input |
---|
43 | |dbl list |
---|
44 | | 0,0,0 |
---|
45 | |Coordinate of the centre of the ring |
---|
46 | |- |
---|
47 | |4 |
---|
48 | |MinRadius |
---|
49 | |Input |
---|
50 | |number |
---|
51 | | 0 |
---|
52 | |Lenght of the inner ring. Default=0 |
---|
53 | |- |
---|
54 | |5 |
---|
55 | |MaxRadius |
---|
56 | |Input |
---|
57 | |number |
---|
58 | | Optional |
---|
59 | |Lenght of the outer ring. Default=ImageSize. |
---|
60 | |- |
---|
61 | |6 |
---|
62 | |NumBins |
---|
63 | |Input |
---|
64 | |number |
---|
65 | | 100 |
---|
66 | |Number of slice bins for the output. Default=100 |
---|
67 | |- |
---|
68 | |colspan=6 align=center|'''Normalization''' |
---|
69 | |- |
---|
70 | |7 |
---|
71 | |NormalizeByRadius |
---|
72 | |Input |
---|
73 | |boolean |
---|
74 | | False |
---|
75 | |Divide the sum of each ring by the radius powered by Normalization Order |
---|
76 | |- |
---|
77 | |8 |
---|
78 | |NormalizationOrder |
---|
79 | |Input |
---|
80 | |number |
---|
81 | | 1 |
---|
82 | |If 2, the normalization will be divided by the quadratic value of the ring for each radius. |
---|
83 | |- |
---|
84 | |} |
---|
85 | |
---|
86 | == Description == |
---|
87 | |
---|
88 | RadiusSum sums the counts in rings against radius. |
---|
89 | |
---|
90 | Below, there is an example of the execution of the RadiusSum to a Workspace2D where the position of the pixels are not associated to detector positions, but it is derived from the Axes. |
---|
91 | |
---|
92 | [[File:ExecuteRadiusSum.png | 800px]] |
---|
93 | |
---|
94 | The image below shows a visual interpretation for the inputs of the algorithm |
---|
95 | |
---|
96 | [[File:RadiusSumInputs.png | 300px]] |
---|
97 | |
---|
98 | |
---|
99 | The Algorithm create '''NumBins''' rings around the '''Centre''' point each one with <math> width = BinSize </math> for <math>BinSize=\frac{MaxRadius-MinRadius}{NumBins}</math>. |
---|
100 | |
---|
101 | The algorithm applies a rudimentary calculation to define the bin for each that each pixel or detector in the [[Workspace2D]], but taking its center point. If the center point belongs to one bin, it is considered that the whole pixel belongs to the bin. The picture below, shows what does this means. An ideal solution for RadiusSum is the left image, while the right image is what is current implemented. |
---|
102 | |
---|
103 | [[File:RadiusSumSolutions.png | 300px]] |
---|
104 | |
---|
105 | Although the images were applied to an image [[Workspace2D]], the image below shows that it is possible to apply this algorithm to Workspaces attached to instruments. |
---|
106 | |
---|
107 | [[File:RadiusSumInstrument.png | 800 px]] |
---|
108 | |
---|
109 | |
---|
110 | [[Category:Algorithms]] |
---|
111 | [[Category:Transforms]] |
---|
112 | {{AlgorithmLinks|RadiusSum}} |
---|