IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40545


Ignore:
Timestamp:
Oct 19, 2018, 10:16:47 PM (8 years ago)
Author:
eugene
Message:

create mprint (print a subregion of an image) and enable vprint as alias for print_vectors

Location:
trunk/Ohana/src/opihi/cmd.data
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/Makefile

    r40522 r40545  
    113113$(SRC)/ps.$(ARCH).o             \
    114114$(SRC)/print_vectors.$(ARCH).o  \
     115$(SRC)/mprint.$(ARCH).o         \
    115116$(SRC)/queuedelete.$(ARCH).o    \
    116117$(SRC)/queuedrop.$(ARCH).o      \
  • trunk/Ohana/src/opihi/cmd.data/init.c

    r40522 r40545  
    8989int medimage_command PROTO((int, char **));
    9090int mset             PROTO((int, char **));
     91int mprint           PROTO((int, char **));
    9192int needles          PROTO((int, char **));
    9293int nnet_command     PROTO((int, char **));
     
    99100int point            PROTO((int, char **));
    100101int ps               PROTO((int, char **));
    101 int print_vectors    PROTO((int, char **));
     102int vprint           PROTO((int, char **));
    102103int queuelist        PROTO((int, char **));
    103104int queueload        PROTO((int, char **));
     
    274275  {1, "mset",         mset,             "insert a vector in an image"},
    275276  {1, "imset",        mset,             "insert a vector in an image"},
     277  {1, "mprint",       mprint,           "print a region of an image"},
    276278  {1, "needles",      needles,          "plot vectors needles"},
    277279  {1, "nnet",         nnet_command,     "Neural Network commands"},
     
    285287  {1, "ppm",          jpeg,             "convert display graphic to PPM"},
    286288  {1, "ps",           ps,               "convert display to PostScript"},
    287   {1, "print_vectors", print_vectors,   "print a set of vectors"},
     289  {1, "print_vectors", vprint,          "print a set of vectors"},
     290  {1, "vprint",       vprint,           "print a set of vectors"},
    288291  {1, "queuedelete",  queuedelete,      "delete a queue"},
    289292  {1, "queuedrop",    queuedrop,        "drop values from queue matching a key"},
  • trunk/Ohana/src/opihi/cmd.data/print_vectors.c

    r40291 r40545  
    11# include "data.h"
    22
    3 int print_vectors (int argc, char **argv) {
     3int vprint (int argc, char **argv) {
    44
    55  Vector **vec;
     
    2121
    2222  if (argc < 2) {
    23     gprint (GP_ERR, "USAGE: print_vectors (vector)[,vector,...]\n");
     23    gprint (GP_ERR, "USAGE: vprint (vector)[,vector,...] [-s start] [-e end]\n");
    2424    return (FALSE);
    2525  }
Note: See TracChangeset for help on using the changeset viewer.