|
From: <kin...@us...> - 2025-08-30 01:39:31
|
Revision: 7338
http://sourceforge.net/p/teem/code/7338
Author: kindlmann
Date: 2025-08-30 01:39:30 +0000 (Sat, 30 Aug 2025)
Log Message:
-----------
some DWI-related code can now be accessed with TEEM_LEVMAR; but it has not been tested ...
Modified Paths:
--------------
teem/trunk/src/ten/tenDwiGage.c
Modified: teem/trunk/src/ten/tenDwiGage.c
===================================================================
--- teem/trunk/src/ten/tenDwiGage.c 2025-08-30 01:38:13 UTC (rev 7337)
+++ teem/trunk/src/ten/tenDwiGage.c 2025-08-30 01:39:30 UTC (rev 7338)
@@ -244,7 +244,8 @@
** n: number of observations: number of DWI's in our case
** k: number of parameters: number of tensor components in our case
*/
-#if 0
+#if TEEM_LEVMAR
+#if 0 /* not used anymore? */
static double
_tenComputeAIC(double residual, int n, int k) {
double AIC = 0;
@@ -262,6 +263,7 @@
return AIC;
}
+#endif
/* Form a 2D tensor from the parameters */
static void
@@ -277,9 +279,8 @@
TEN_T_SET(ten, 1.0, d1, d3, 0, d2, 0, lam3);
return;
}
-#endif
+
/* The main callback function that is iterated during levmar */
-
/* vector pp of parameters is as follows:
** pp[0]: principal eigenvalue
** pp[1]: fraction of 1st tensor
@@ -286,7 +287,6 @@
** pp[2]: phi for 1st tensor
** pp[3]: phi for 2nd tensor
*/
-#if 0
static void
_tenLevmarPeledCB(double *pp, double *xx, int mm, int nn, void *_pvlData) {
/* static const char me[] = "_tenLevmarPeledCB"; */
@@ -320,7 +320,8 @@
}
return;
}
-#endif
+#endif /* #if TEEM_LEVMAR */
+
static void
_tenDwiGageAnswer(gageContext *ctx, gagePerVolume *pvl) {
static const char me[] = "_tenDwiGageAnswer";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|