IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 18, 2005, 11:44:40 AM (21 years ago)
Author:
drobbin
Message:

folded in code from bug 481. Tests still to be written.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImagePixelManip.h

    r4589 r4815  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-07-21 01:40:10 $
     10 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-08-18 21:44:40 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    8787    const char *op                     ///< the operation to perform for overlay
    8888);
     89/** Sets the bits inside the region, ignoring pixels outside.
     90 *
     91 *  The pixels are set by combining the existing pixel value and the given maskValue
     92 *  with a logical operation.  The allowed operations are =, AND, OR, and XOR.
     93 */
     94void psImageMaskRegion(
     95    psImage *image,                    ///< the image to set
     96    psRegion *region,                  ///< the specified region
     97    bool logical_and,                  ///< the logical operation
     98    int maskValue                      ///< the specified bits
     99);
     100
     101/** Sets the bits outside the region, ignoring pixels inside.
     102 *
     103 *  The pixels are set by combining the existing pixel value and the given maskValue
     104 *  with a logical operation.  The allowed operations are =, AND, OR, and XOR.
     105 */
     106void psImageKeepRegion(
     107    psImage *image,                    ///< the image to set
     108    psRegion *region,                  ///< the specified region
     109    bool logical_and,                  ///< the logical operation
     110    int maskValue                      ///< the specified bits
     111);
     112
     113/** Sets the bits inside the circle, ignoring the pixels outside.
     114 *
     115 *  The pixel values are set by combining the existing pixel value and the given maskValue
     116 *  with a logical operation.  The allowed operations are =, AND, OR, and XOR.
     117 */
     118void psImageMaskCircle(
     119    psImage *image,                    ///< the image to set
     120    double x,                          ///< the x coordinate of the circle's center
     121    double y,                          ///< the y coordinate of the circle's center
     122    double radius,                     ///< the radius of the specified circle
     123    bool logical_and,                  ///< the logical operation
     124    int maskValue                      ///< the specified bits
     125);
     126
     127/** Sets the bits outside the circle, ignoring the pixels inside.
     128 *
     129 *  The pixel values are set by combining the existing pixel value and the given maskValue
     130 *  with a logical operation.  The allowed operations are =, AND, OR, and XOR.
     131 */
     132void psImageKeepCircle(
     133    psImage *image,                    ///< the image to set
     134    double x,                          ///< the x coordinate of the circle's center
     135    double y,                          ///< the y coordinate of the circle's center
     136    double radius,                     ///< the radius of the specified circle
     137    bool logical_and,                  ///< the logical operation
     138    int maskValue                      ///< the specified bits
     139);
    89140
    90141#endif // #ifndef PS_IMAGE_PIXEL_MANIP_H
Note: See TracChangeset for help on using the changeset viewer.