int rva_aboutMain(int argc, const char **argv, const char *me, hestParm *hparm) { char buff[AIR_STRLEN_LARGE], fmt[AIR_STRLEN_MED]; char par1[] = "\t\t\t\t" "\"reva\" is very much under construction.\n"; char par2[] = "\t\t\t\t" "Users should remain cautious.\n"; AIR_UNUSED(argc); AIR_UNUSED(argv); AIR_UNUSED(me); fprintf(stderr, "\n"); sprintf(buff, "--- reva: Brevais Lattice Hacking ---"); sprintf(fmt, "%%%ds\n", (int)((hparm->columns-strlen(buff))/2 + strlen(buff) - 1)); fprintf(stderr, fmt, buff); airTeemVersionSprint(buff); sprintf(fmt, "%%%ds\n", (int)((hparm->columns-strlen(buff))/2 + strlen(buff) - 1)); fprintf(stderr, fmt, buff); fprintf(stderr, "\n"); _hestPrintStr(stderr, 1, 0, 78, par1, AIR_FALSE); _hestPrintStr(stderr, 1, 0, 78, par2, AIR_FALSE); return 0; }
int tend_aboutMain(int argc, const char **argv, const char *me, hestParm *hparm) { char buff[AIR_STRLEN_LARGE], fmt[AIR_STRLEN_MED]; char par1[] = "\t\t\t\t" "\"tend\" is a command-line interface to much of the functionality " "in \"ten\", a C library for diffusion image processing. Ten is one " "library in the \"Teem\" collection of libraries. More information " "about Teem is at <http://teem.sf.net>. A checkout of Teem source " "is available via:\n " "svn co http://svn.code.sf.net/p/teem/code/teem/trunk teem\n "; /* "svn co http://teem.svn.sf.net/svnroot/teem/teem/trunk teem\n "; */ char par2[] = "\t\t\t\t" "Long-term maintenance of this software depends on funding, and " "funding depends on being able to document who is using it for what. " "If tend or Ten has helped in your research, including for simple one-off " "experiments or mundane data hacking, the developers of Teem would love " "to know. There are multiple ways of communicating this. " "In your publications, consider adding a line such as this " "in the Acknowledgments: " "\"Data processing performed with the tend tool, " "part of the Teem toolkit available at " "http://teem.sf.net\". " "Alternatively, please email [email protected] and briefly describe " "how Teem software has helped in your work. " "Please also consider joining the teem-users mailing list: " "<http://lists.sourceforge.net/lists/listinfo/teem-users>. This is " "the primary forum for feedback, questions, and feature requests.\n "; char par3[] = "\t\t\t\t" "Like \"unu\", another Teem command-line binary, it is often useful " "to chain together invocations of tend with pipes, as in the " "following, which estimates tensors from DWIs, takes a slice of the " "tensor volume, computes the standard RGB colormap of the principal " "eigenvector, and then quantizes it to an 8-bit PNG:\n"; char par4[] = "\ttend estim -i dwi.nhdr -B kvp -knownB0 true \\\n " " | tend slice -a 2 -p 30 \\\n " " | tend evecrgb -c 0 -a cl2 -gam 1.2 \\\n " " | unu quantize -b 8 -min 0 -max 1 -o z30-rgb.png\n"; AIR_UNUSED(argc); AIR_UNUSED(argv); AIR_UNUSED(me); fprintf(stdout, "\n"); sprintf(buff, "--- %s ---", tendTitle); sprintf(fmt, "%%%ds\n", (int)((hparm->columns-strlen(buff))/2 + strlen(buff) - 1)); fprintf(stdout, fmt, buff); airTeemVersionSprint(buff); sprintf(fmt, "%%%ds\n", (int)((hparm->columns-strlen(buff))/2 + strlen(buff) - 1)); fprintf(stdout, fmt, buff); fprintf(stdout, "\n"); _hestPrintStr(stdout, 1, 0, 78, par1, AIR_FALSE); _hestPrintStr(stdout, 1, 0, 78, par2, AIR_FALSE); _hestPrintStr(stdout, 1, 0, 78, par3, AIR_FALSE); _hestPrintStr(stdout, 2, 0, 78, par4, AIR_FALSE); return 0; }