IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41963


Ignore:
Timestamp:
Dec 21, 2021, 1:52:49 PM (5 years ago)
Author:
eugene
Message:

add imcollapse and imresample functions; improve the usage info

Location:
branches/eam_branches/ipp-20211108/Ohana/src/opihi/cmd.data
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/Ohana/src/opihi/cmd.data/Makefile

    r41891 r41963  
    7878$(SRC)/imsmooth.2d.$(ARCH).o    \
    7979$(SRC)/imconvolve.$(ARCH).o     \
     80$(SRC)/imresample.$(ARCH).o     \
     81$(SRC)/imcollapse.$(ARCH).o     \
    8082$(SRC)/integrate.$(ARCH).o      \
    8183$(SRC)/interpolate.$(ARCH).o    \
  • branches/eam_branches/ipp-20211108/Ohana/src/opihi/cmd.data/cut.c

    r41341 r41963  
    9696  if (argc != 9) {
    9797    gprint (GP_ERR, "USAGE: cut <buffer> <X vector> <Y vector> <X|Y> sx sy nx ny\n");
     98    gprint (GP_ERR, "  extract a vector in the X or Y direction based on the pixel values in window\n");
    9899    return (FALSE);
    99100  }
  • branches/eam_branches/ipp-20211108/Ohana/src/opihi/cmd.data/imcut.c

    r33662 r41963  
    99  float *V;
    1010
    11   if (argc != 8) {
    12     gprint (GP_ERR, "USAGE: cut <buffer> <X vector> <Y vector> xs ys xe ye\n");
    13     return (FALSE);
    14   }
     11  if (argc != 8) goto usage;
    1512
    1613  if ((buf  = SelectBuffer (argv[1], OLDBUFFER, TRUE)) == NULL) goto missed;
     
    5148
    5249 usage:
    53   gprint (GP_ERR, "USAGE: circstats <buffer> x y radius\n");
     50  gprint (GP_ERR, "USAGE: imcut <buffer> <X vector> <Y vector> xs ys xe ye\n");
     51  gprint (GP_ERR, " extract pixels along the line from (xs,ys) to (xe,ye)\n");
     52  gprint (GP_ERR, " (see also imvector)\n");
    5453  return (FALSE);
    5554
  • branches/eam_branches/ipp-20211108/Ohana/src/opihi/cmd.data/init.c

    r41891 r41963  
    1818int clear            PROTO((int, char **));
    1919int clip             PROTO((int, char **));
    20 int imclip           PROTO((int, char **));
    2120int close_device     PROTO((int, char **));
    2221int concat           PROTO((int, char **));
     
    6160int hermitian2d      PROTO((int, char **));
    6261int idxread          PROTO((int, char **));
     62int imclip           PROTO((int, char **));
    6363int imcut            PROTO((int, char **));
    6464int imhist           PROTO((int, char **));
     
    6868int imsmooth_2d      PROTO((int, char **));
    6969int imconvolve       PROTO((int, char **));
     70int imresample       PROTO((int, char **));
     71int imcollapse       PROTO((int, char **));
    7072int integrate        PROTO((int, char **));
    7173int interpolate      PROTO((int, char **));
     
    266268  {1, "imclip",       imclip,           "clip values in an image to be within a range"},
    267269  {1, "imcut",        imcut,            "linear image cut between arbitrary coords"},
     270  {1, "imresample",   imresample,       "extract arbitrary window from image"},
     271  {1, "imcollapse",   imcollapse,       "collapse to histogram along axis"},
    268272  {1, "imhistogram",  imhist,           "histogram of an image region"},
    269273  {1, "impeaks",      impeaks,          "find peaks in an image (return vectors)"},
  • branches/eam_branches/ipp-20211108/Ohana/src/opihi/cmd.data/medacc.c

    r20936 r41963  
    1010  if ((argc != 6) && (argc != 7)) {
    1111    gprint (GP_ERR, "USAGE: medacc <value> <vector> <key> start end [delta]\n");
     12    gprint (GP_ERR, "  value and key are vectors of the same length\n");
     13    gprint (GP_ERR, "  the output vector bins correspond to values ranging from start to end in steps of delta (default 1)\n");
     14    gprint (GP_ERR, "  for a given output bin, all input values for which the key matches the output bin are averaged\n");
     15
    1216    return (FALSE);
    1317  }
Note: See TracChangeset for help on using the changeset viewer.