IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5875


Ignore:
Timestamp:
Jan 3, 2006, 2:06:01 PM (21 years ago)
Author:
Paul Price
Message:

Fixing up psBinaryOp example (cast).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r5874 r5875  
    1 %%% $Id: psLibSDRS.tex,v 1.366 2006-01-04 00:02:05 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.367 2006-01-04 00:06:01 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    56035603A = someCoolImage(); // Initialise A
    56045604
    5605 B = psBinaryOp (NULL, A, "^", psScalarAlloc(2, PS_TYPE_S16));
     5605B = (psImage*)psBinaryOp (NULL, A, "^", psScalarAlloc(2, PS_TYPE_S16));
     5606// Note, have to cast the output to a psImage for proper compilation
    56065607psUnaryOp(B, B, "sin");
    56075608\end{verbatim}
Note: See TracChangeset for help on using the changeset viewer.