00001
00018 #ifndef INC_RVC_OPRASTERTHRESHOLD_H
00019 #define INC_RVC_OPRASTERTHRESHOLD_H
00020
00021 #ifndef INC_MI32_STDDEFNS_H
00022 #include <mi32/stddefns.h>
00023 #endif
00024
00025 namespace RVC {
00026
00027 class OBJITEM;
00028 class RASTER;
00029
00030 namespace OP {
00031
00033 class RASTER_THRESHOLD {
00034 public:
00035
00037 enum FLAGS {
00038 FLAG_None = 0x00,
00039 FLAG_OutputBelowAs1 = 0x01,
00040 FLAG_OutputNullAs1 = 0x02,
00041 FLAG_KeepNulls = 0x04
00042 };
00043
00044 static ERRVALUE Process (
00045 RVC::RASTER& ObjSrcRaster,
00046 RVC::RASTER& ObjTgtRaster,
00047 double threshold,
00048 FLAGS flags = FLAG_None,
00049 const LRECT2D *pSrcRect = 0
00050 );
00051
00052 static ERRVALUE Process (
00053 const RVC::OBJITEM& ObjItemSrcRaster,
00054 RVC::OBJITEM& ObjItemTgtRaster,
00055 double threshold,
00056 FLAGS flags = FLAG_None,
00057 const LRECT2D *pSrcRect = 0
00058 );
00059
00060 };
00061
00062 #ifndef GENERATING_DOXYGEN_OUTPUT
00063 DEFINE_ENUM_OP_BITWISE(RASTER_THRESHOLD::FLAGS)
00064 #endif
00065
00066 }
00067 }
00068
00069 #endif // INC_RVC_OPRASTERTHRESHOLD_H