#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
HxImageRep L_HXIMAGEREP | HxAddSat (HxImageRep im1, HxImageRep im2) |
Saturated addition. More... |
|
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 } |