Changeset 40752
- Timestamp:
- May 25, 2019, 8:59:46 AM (7 years ago)
- Location:
- branches/eam_branches/ohana.20190329/src/opihi/cmd.data
- Files:
-
- 3 added
- 4 edited
-
Makefile (modified) (2 diffs)
-
init.c (modified) (4 diffs)
-
match1d.c (added)
-
test/vsigmoid.sh (added)
-
threshold.c (modified) (2 diffs)
-
vsigmoid.c (added)
-
vtransitions.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20190329/src/opihi/cmd.data/Makefile
r40733 r40752 90 90 $(SRC)/lookup.$(ARCH).o \ 91 91 $(SRC)/matrix.$(ARCH).o \ 92 $(SRC)/match1d.$(ARCH).o \ 92 93 $(SRC)/match2d.$(ARCH).o \ 93 94 $(SRC)/mkrgb.$(ARCH).o \ … … 170 171 $(SRC)/vgauss.$(ARCH).o \ 171 172 $(SRC)/vlorentz.$(ARCH).o \ 173 $(SRC)/vsigmoid.$(ARCH).o \ 172 174 $(SRC)/vellipse.$(ARCH).o \ 173 175 $(SRC)/vmaxwell.$(ARCH).o \ -
branches/eam_branches/ohana.20190329/src/opihi/cmd.data/init.c
r40733 r40752 80 80 int lookup PROTO((int, char **)); 81 81 int matrix PROTO((int, char **)); 82 int match1d PROTO((int, char **)); 82 83 int match2d PROTO((int, char **)); 83 84 int mkrgb PROTO((int, char **)); … … 157 158 int vgauss PROTO((int, char **)); 158 159 int vlorentz PROTO((int, char **)); 160 int vsigmoid PROTO((int, char **)); 159 161 int vellipse PROTO((int, char **)); 160 162 int vmaxwell PROTO((int, char **)); … … 279 281 {1, "medimage", medimage_command, "median image manipulation"}, 280 282 {1, "matrix", matrix, "matrix math operations"}, 283 {1, "match1d", match1d, "match 2 vectors and return matched indexes"}, 281 284 {1, "match2d", match2d, "match 2 pairs of X,Y vectors and return matched indexes"}, 282 285 {1, "mkrgb", mkrgb, "convert 3 images to rgb jpeg (use Kapa for better control)"}, … … 353 356 {1, "vgauss", vgauss, "fit a Gaussian to a vector"}, 354 357 {1, "vlorentz", vlorentz, "fit a Lorentzian to a vector"}, 358 {1, "vsigmoid", vsigmoid, "fit a Sigmoid to a vector"}, 355 359 {1, "vellipse", vellipse, "fit a Ellipse to a vector pair"}, 356 360 {1, "vgrid", vgrid, "generate an image from a triplet of vectors"}, -
branches/eam_branches/ohana.20190329/src/opihi/cmd.data/threshold.c
r40664 r40752 25 25 remove_argument (N, &argc, argv); 26 26 BinMax = atoi (argv[N]); 27 remove_argument (N, &argc, argv); 28 } 29 30 float ValMin = NAN; 31 float ValMax = NAN; 32 if ((N = get_argument (argc, argv, "-vrange"))) { 33 remove_argument (N, &argc, argv); 34 ValMin = atof (argv[N]); 35 remove_argument (N, &argc, argv); 36 ValMax = atof (argv[N]); 27 37 remove_argument (N, &argc, argv); 28 38 } … … 62 72 } 63 73 if (BinMax < 0) BinMax += vecx[0].Nelements; 74 } 75 76 // ValMin, ValMax not compatible with BinMin, BinMax 77 if (isfinite(ValMin)) { 78 int binTest = ohana_bisection_double (vecx[0].elements.Flt, vecx[0].Nelements, ValMin); 79 BinMin = (vecx[0].elements.Flt[binTest+1] == ValMin) ? binTest : binTest + 1; 80 // XXX dangerous: check that this does not run off the end, etc 81 } 82 if (isfinite(ValMax)) { 83 int binTest = ohana_bisection_double (vecx[0].elements.Flt, vecx[0].Nelements, ValMax); 84 BinMax = (vecx[0].elements.Flt[binTest+1] == ValMax) ? binTest : binTest + 1; 85 // XXX dangerous: check that this does not run off the end, etc 64 86 } 65 87 -
branches/eam_branches/ohana.20190329/src/opihi/cmd.data/vtransitions.c
r40665 r40752 137 137 ResetVector (outpos, OPIHI_FLT, Nout); 138 138 139 if (!QUIET) gprint (GP_LOG, "found %d transitions )\n", Nout);139 if (!QUIET) gprint (GP_LOG, "found %d transitions\n", Nout); 140 140 141 141 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
