|
From: <kin...@us...> - 2025-09-17 09:51:28
|
Revision: 7439
http://sourceforge.net/p/teem/code/7439
Author: kindlmann
Date: 2025-09-17 09:51:26 +0000 (Wed, 17 Sep 2025)
Log Message:
-----------
using new hestOptAdd functions
Modified Paths:
--------------
teem/trunk/src/moss/test/invert.c
Modified: teem/trunk/src/moss/test/invert.c
===================================================================
--- teem/trunk/src/moss/test/invert.c 2025-09-15 17:29:45 UTC (rev 7438)
+++ teem/trunk/src/moss/test/invert.c 2025-09-17 09:51:26 UTC (rev 7439)
@@ -21,16 +21,14 @@
int
main(int argc, const char *argv[]) {
- const char *me, *info="inverts a moss transform";
- hestOpt *hopt=NULL;
+ const char *me, *info = "inverts a moss transform";
+ hestOpt *hopt = NULL;
double *mat, inv[6];
me = argv[0];
- hestOptAdd(&hopt, "t", "transform", airTypeOther, 1, 1, &mat, "identity",
- "transform(s) to apply to image",
- NULL, NULL, mossHestTransform);
- hestParseOrDie(hopt, argc-1, argv+1, NULL,
- me, info, AIR_TRUE, AIR_TRUE, AIR_TRUE);
+ hestOptAdd_1_Other(&hopt, "t", "transform", &mat, "identity",
+ "transform(s) to apply to image", mossHestTransform);
+ hestParseOrDie(hopt, argc - 1, argv + 1, NULL, me, info, AIR_TRUE, AIR_TRUE, AIR_TRUE);
fprintf(stderr, "%s: got transform:\n", me);
mossMatPrint(stderr, mat);
@@ -40,4 +38,3 @@
exit(0);
}
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|