1
+ /*-------------------------------------------------------------------------
2
+ *
3
+ * Header for CUDA functions for Steepest descend in POCS-type algorithms.
4
+ *
5
+ * This file has the required headers for POCS_TV.cu
6
+ *
7
+ * CODE by Ander Biguri
8
+ *
9
+ ---------------------------------------------------------------------------
10
+ ---------------------------------------------------------------------------
11
+ Copyright (c) 2015, University of Bath and CERN- European Organization for
12
+ Nuclear Research
13
+ All rights reserved.
14
+
15
+ Redistribution and use in source and binary forms, with or without
16
+ modification, are permitted provided that the following conditions are met:
17
+
18
+ 1. Redistributions of source code must retain the above copyright notice,
19
+ this list of conditions and the following disclaimer.
20
+
21
+ 2. Redistributions in binary form must reproduce the above copyright notice,
22
+ this list of conditions and the following disclaimer in the documentation
23
+ and/or other materials provided with the distribution.
24
+
25
+ 3. Neither the name of the copyright holder nor the names of its contributors
26
+ may be used to endorse or promote products derived from this software without
27
+ specific prior written permission.
28
+
29
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
30
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
33
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
34
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39
+ POSSIBILITY OF SUCH DAMAGE.
40
+ ---------------------------------------------------------------------------
41
+
42
+
43
+ Codes : https://github.com/CERN/TIGRE
44
+ ---------------------------------------------------------------------------
45
+ */
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+ #ifndef GD_AwTV_HPP
54
+ #define GD_AwTV_HPP
55
+ #include "TIGRE_common.hpp"
56
+ #include "GpuIds.hpp"
57
+
58
+ void aw_pocs_tv(float* img,float* dst,float alpha,const long* image_size, int maxIter,const float delta, const GpuIds& gpuids);
59
+ void checkFreeMemory(const GpuIds& gpuids, size_t *mem_GPU_global);
60
+
61
+
62
+ #endif
0 commit comments