#include <bfxpixop.h>
Inheritance diagram for BfxColourThresholdPixelOp:
Protected Member Functions | |
virtual BOOL | IsPixelReallyInRegion (INT32 x, INT32 y) |
To be overriden by derived classes. | |
Private Member Functions | |
CC_DECLARE_DYNCREATE (BfxColourThresholdPixelOp) |
Definition at line 440 of file bfxpixop.h.
|
|
|
To be overriden by derived classes.
Reimplemented from BfxPixelOp. Definition at line 853 of file bfxpixop.cpp. 00854 { 00855 INT32 BE; 00856 INT32 AE; 00857 DWORD Pixel = y*Width+x; 00858 00859 AluPix32 TheColour; 00860 *(DWORD *)(void *)(&TheColour)=Colour; // Yuck 00861 00862 AE = ( IntegerSquare( ((INT32)(TheColour.R)) - ((INT32)(((AluPix32 *) pT)[Pixel].R))) 00863 + IntegerSquare( ((INT32)(TheColour.G)) - ((INT32)(((AluPix32 *) pT)[Pixel].G))) 00864 + IntegerSquare( ((INT32)(TheColour.B)) - ((INT32)(((AluPix32 *) pT)[Pixel].B))) ); 00865 00866 BE = (IntegerSquare( ((INT32)(((AluPix32 *) pB)[Pixel].R)) - ((INT32)(((AluPix32 *) pT)[Pixel].R))) 00867 + IntegerSquare( ((INT32)(((AluPix32 *) pB)[Pixel].G)) - ((INT32)(((AluPix32 *) pT)[Pixel].G))) 00868 + IntegerSquare( ((INT32)(((AluPix32 *) pB)[Pixel].B)) - ((INT32)(((AluPix32 *) pT)[Pixel].B))) ); 00869 00870 return ((AE<Value) && (BE>=Value)); 00871 }
|