summaryrefslogtreecommitdiffstats
path: root/main_func
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2017-08-04 16:12:27 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2017-10-11 15:32:34 +0100
commit846e09d5c27736a4af80af7f9a3adcda3c6d4bf0 (patch)
tree2071a110ed3e2fe99b31baf373b62ab635a145c6 /main_func
parenta16f24574d727cc486c51f0dcf581aeeb8a71381 (diff)
downloadregularization-846e09d5c27736a4af80af7f9a3adcda3c6d4bf0.tar.gz
regularization-846e09d5c27736a4af80af7f9a3adcda3c6d4bf0.tar.bz2
regularization-846e09d5c27736a4af80af7f9a3adcda3c6d4bf0.tar.xz
regularization-846e09d5c27736a4af80af7f9a3adcda3c6d4bf0.zip
fix typo and add include "matrix.h"
Diffstat (limited to 'main_func')
-rw-r--r--main_func/regularizers_CPU/FGP_TV.c3
-rw-r--r--main_func/regularizers_CPU/LLT_model.c10
-rw-r--r--main_func/regularizers_CPU/SplitBregman_TV.c3
-rw-r--r--main_func/regularizers_CPU/SplitBregman_TV_core.c12
4 files changed, 13 insertions, 15 deletions
diff --git a/main_func/regularizers_CPU/FGP_TV.c b/main_func/regularizers_CPU/FGP_TV.c
index cfe5b9e..66442c9 100644
--- a/main_func/regularizers_CPU/FGP_TV.c
+++ b/main_func/regularizers_CPU/FGP_TV.c
@@ -3,7 +3,7 @@ This work is part of the Core Imaging Library developed by
Visual Analytics and Imaging System Group of the Science Technology
Facilities Council, STFC
-Copyright 2017 Daniil Kazanteev
+Copyright 2017 Daniil Kazantsev
Copyright 2017 Srikanth Nagella, Edoardo Pasca
Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +16,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
+#include "matrix.h"
#include "mex.h"
#include "FGP_TV_core.h"
diff --git a/main_func/regularizers_CPU/LLT_model.c b/main_func/regularizers_CPU/LLT_model.c
index 47146a5..0050654 100644
--- a/main_func/regularizers_CPU/LLT_model.c
+++ b/main_func/regularizers_CPU/LLT_model.c
@@ -3,7 +3,7 @@ This work is part of the Core Imaging Library developed by
Visual Analytics and Imaging System Group of the Science Technology
Facilities Council, STFC
-Copyright 2017 Daniil Kazanteev
+Copyright 2017 Daniil Kazantsev
Copyright 2017 Srikanth Nagella, Edoardo Pasca
Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,12 +18,19 @@ limitations under the License.
*/
#include "mex.h"
+#include "matrix.h"
#include "LLT_model_core.h"
/* C-OMP implementation of Lysaker, Lundervold and Tai (LLT) model of higher order regularization penalty
*
* Input Parameters:
* 1. U0 - origanal noise image/volume
+=======
+/* C-OMP implementation of Lysaker, Lundervold and Tai (LLT) model of higher order regularization penalty
+*
+* Input Parameters:
+* 1. U0 - original noise image/volume
+>>>>>>> fix typo and add include "matrix.h"
* 2. lambda - regularization parameter
* 3. tau - time-step for explicit scheme
* 4. iter - iterations number
@@ -46,7 +53,6 @@ limitations under the License.
* 28.11.16/Harwell
*/
-
void mexFunction(
int nlhs, mxArray *plhs[],
int nrhs, const mxArray *prhs[])
diff --git a/main_func/regularizers_CPU/SplitBregman_TV.c b/main_func/regularizers_CPU/SplitBregman_TV.c
index 0dc638d..38f6a9d 100644
--- a/main_func/regularizers_CPU/SplitBregman_TV.c
+++ b/main_func/regularizers_CPU/SplitBregman_TV.c
@@ -3,7 +3,7 @@ This work is part of the Core Imaging Library developed by
Visual Analytics and Imaging System Group of the Science Technology
Facilities Council, STFC
-Copyright 2017 Daniil Kazanteev
+Copyright 2017 Daniil Kazantsev
Copyright 2017 Srikanth Nagella, Edoardo Pasca
Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,6 +18,7 @@ limitations under the License.
*/
#include "mex.h"
+#include <matrix.h>
#include "SplitBregman_TV_core.h"
/* C-OMP implementation of Split Bregman - TV denoising-regularization model (2D/3D)
diff --git a/main_func/regularizers_CPU/SplitBregman_TV_core.c b/main_func/regularizers_CPU/SplitBregman_TV_core.c
index 283dd43..4109a4b 100644
--- a/main_func/regularizers_CPU/SplitBregman_TV_core.c
+++ b/main_func/regularizers_CPU/SplitBregman_TV_core.c
@@ -3,7 +3,7 @@ This work is part of the Core Imaging Library developed by
Visual Analytics and Imaging System Group of the Science Technology
Facilities Council, STFC
-Copyright 2017 Daniil Kazanteev
+Copyright 2017 Daniil Kazantsev
Copyright 2017 Srikanth Nagella, Edoardo Pasca
Licensed under the Apache License, Version 2.0 (the "License");
@@ -257,13 +257,3 @@ float updBxByBz3D(float *U, float *Dx, float *Dy, float *Dz, float *Bx, float *B
}}}
return 1;
}
-/* General Functions */
-/*****************************************************************/
-/* Copy Image */
-float copyIm(float *A, float *B, int dimX, int dimY, int dimZ)
-{
- int j;
-#pragma omp parallel for shared(A, B) private(j)
- for(j=0; j<dimX*dimY*dimZ; j++) B[j] = A[j];
- return *B;
-} \ No newline at end of file