IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38234


Ignore:
Timestamp:
May 6, 2015, 6:15:15 AM (11 years ago)
Author:
eugene
Message:

add mslice

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

Legend:

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

    r38062 r38234  
    9191$(SRC)/mget.$(ARCH).o           \
    9292$(SRC)/mget3d.$(ARCH).o         \
     93$(SRC)/mslice.$(ARCH).o         \
    9394$(SRC)/minterpolate.$(ARCH).o   \
    9495$(SRC)/medimage.$(ARCH).o       \
  • trunk/Ohana/src/opihi/cmd.data/init.c

    r38062 r38234  
    8282int mget             PROTO((int, char **));
    8383int mget3d           PROTO((int, char **));
     84int mslice           PROTO((int, char **));
    8485int minterp          PROTO((int, char **));
    8586int medimage_command PROTO((int, char **));
     
    248249  {1, "mget",         mget,             "extract a vector from an image"},
    249250  {1, "mget3d",       mget3d,           "extract a vector from a 3D image"},
     251  {1, "mslice",       mslice,           "extract an image plane from a 3D image"},
    250252  {1, "imget",        mget,             "extract a vector from an image"},
    251253  {1, "minterp",      minterp,          "interpolate image pixels"},
  • trunk/Ohana/src/opihi/cmd.data/rd.c

    r38062 r38234  
    170170  if (plane >= 0) {
    171171    // we are requesting a specific plane (-1 : all data)
    172     int tooFar = Nz ? (plane >= Nz) : (plane > Nz);
     172    int tooFar = (Nz > 0) ? (plane >= Nz) : (plane > 0);
    173173    if (tooFar) {
    174174      gprint (GP_ERR, "-plane is too large: %d total planes\n", Nz);
Note: See TracChangeset for help on using the changeset viewer.