#include <bfxpixop.h>
Inheritance diagram for BfxPositivePixelOp:
Protected Member Functions | |
virtual BOOL | IsPixelReallyInRegion (INT32 x, INT32 y) |
To be overriden by derived classes. | |
Private Member Functions | |
CC_DECLARE_DYNCREATE (BfxPositivePixelOp) |
Definition at line 394 of file bfxpixop.h.
|
|
|
To be overriden by derived classes.
Reimplemented from BfxPixelOp. Definition at line 814 of file bfxpixop.cpp. 00815 { 00816 INT32 BE; 00817 INT32 AE; 00818 DWORD Pixel = y*Width+x; 00819 00820 AE = ( IntegerSquare( ((INT32)(((AluPix32 *) pA)[Pixel].R)) - ((INT32)(((AluPix32 *) pT)[Pixel].R))) 00821 + IntegerSquare( ((INT32)(((AluPix32 *) pA)[Pixel].G)) - ((INT32)(((AluPix32 *) pT)[Pixel].G))) 00822 + IntegerSquare( ((INT32)(((AluPix32 *) pA)[Pixel].B)) - ((INT32)(((AluPix32 *) pT)[Pixel].B))) ); 00823 00824 BE = (IntegerSquare( ((INT32)(((AluPix32 *) pB)[Pixel].R)) - ((INT32)(((AluPix32 *) pT)[Pixel].R))) 00825 + IntegerSquare( ((INT32)(((AluPix32 *) pB)[Pixel].G)) - ((INT32)(((AluPix32 *) pT)[Pixel].G))) 00826 + IntegerSquare( ((INT32)(((AluPix32 *) pB)[Pixel].B)) - ((INT32)(((AluPix32 *) pT)[Pixel].B))) ); 00827 00828 return ((AE<Value) && (BE>=Value)); 00829 }
|