STIR  6.2.0
local_helping_functions.h
1 
2 
3 #include "stir/Array.h"
5 
6 /* Here there are helping function used locally in ModifiedInverseAverigingImageFilter.cxx
7 
8 */
9 
10 START_NAMESPACE_STIR
11 
12 // Complex multiplication
13 void mulitply_complex_arrays(Array<1, float>& out_array, const Array<1, float>& array_nom, const Array<1, float>& array_denom);
14 
15 // Complex division
16 void divide_complex_arrays(Array<1, float>& out_array, const Array<1, float>& array_nom, const Array<1, float>& array_denom);
17 
18 // two argument implementation
19 
20 void mulitply_complex_arrays(Array<1, float>& array_nom, const Array<1, float>& array_denom);
21 void divide_complex_arrays(Array<1, float>& array_nom, const Array<1, float>& array_denom);
22 
23 // convert 3D arra into 1D array
24 void convert_array_3D_into_1D_array(Array<1, float>& out_array, const Array<3, float>& in_array);
25 // convert 1d array into 3d array
26 void convert_array_1D_into_3D_array(Array<3, float>& out_array, const Array<1, float>& in_array);
27 // create 3d kernel
28 void create_kernel_3d(Array<3, float>& kernel_3d, const VectorWithOffset<float>& kernel_1d);
29 void create_kernel_2d(Array<2, float>& kernel_2d, const VectorWithOffset<float>& kernel_1d);
30 // padd filter coefficients and make them symmetric
31 void padd_filter_coefficients_3D_and_make_them_symmetric(
32  VectorWithOffset<VectorWithOffset<VectorWithOffset<float>>>& padded_filter_coefficients_3D,
33  VectorWithOffset<VectorWithOffset<VectorWithOffset<float>>>& filter_coefficients);
34 
35 void convert_array_2D_into_1D_array(Array<1, float>& out_array, Array<2, float>& in_array);
36 
37 void convert_array_1D_into_2D_array(Array<2, float>& out_array, Array<1, float>& in_array);
38 
39 void precompute_filter_coefficients_for_second_apporach(VoxelsOnCartesianGrid<float>& precomputed_coefficients,
40  const VoxelsOnCartesianGrid<float>& input_image,
41  VoxelsOnCartesianGrid<float>& sensitivity_image,
42  VoxelsOnCartesianGrid<float>& normalised_bck);
43 
44 END_NAMESPACE_STIR
defines the Array class for multi-dimensional (numeric) arrays
defines the stir::VoxelsOnCartesianGrid class