Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxAddSat.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxAddSat (HxImageRep im1, HxImageRep im2)
 Saturated addition. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxAddSat HxImageRep    im1,
HxImageRep    im2
 

Saturated addition.

The function computes the saturated addition of all corresponding pixels in the input images via a binary pixel operation.

00130 {
00131     // call HxImageRep member function to do the image processing
00132 //  std::cout << im1.signature() << std::endl;
00133 //  std::cout << im2.signature() << std::endl;
00134 
00135     int val = HxPixMax(im1).HxScalarIntValue().x();
00136     if(abs(val-255) < 10)
00137         val = 255;
00138     if(abs(val-65535) < 10)
00139         val = 65535;
00140 
00141     
00142     HxTagList tl;
00143     HxAddTag(tl,"maxSat", val );
00144 
00145 
00146     return im1.binaryPixOp(im2, "addSat", tl);
00147 }


Generated on Tue Feb 3 14:18:45 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001