Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

plfilterthreshold.h

00001 /*
00002 /--------------------------------------------------------------------
00003 |
00004 |      $Id: plfilterthreshold.h,v 1.1 2001/09/16 19:03:23 uzadow Exp $
00005 |   
00006 |
00007 \--------------------------------------------------------------------
00008 */
00009 
00010 #if !defined(INCL_PLFILTERTHRESHOLD)
00011 #define INCL_PLFILTERTHRESHOLD
00012 
00013 #if _MSC_VER >= 1000
00014 #pragma once
00015 #endif // _MSC_VER >= 1000
00016 
00017 #include "plfilter.h"
00018 
00019 class PLBmp;
00020 
00021 //! Returns an 8 bpp grayscale bitmap that contains only the channel
00022 //! selected and is black wherever this channel has values <= threshold_min
00023 //! or >= threshold_max.
00024 class PLFilterThreshold : public PLFilter
00025 {
00026 public:
00027   //! 
00028         PLFilterThreshold(int threshold_min,int threshold_max, int channel);
00029   //! 
00030         virtual ~PLFilterThreshold();
00031 
00032   //! 
00033   virtual void Apply(PLBmp * pBmpSource, PLBmp * pBmpDest) const;
00034 
00035 protected:
00036         int m_threshold_min;
00037         int m_threshold_max;
00038         int m_channel;
00039 
00040 
00041 };
00042 
00043 #endif
00044 
00045 /*
00046 /--------------------------------------------------------------------
00047 |
00048 |      $Log: plfilterthreshold.h,v $
00049 |      Revision 1.1  2001/09/16 19:03:23  uzadow
00050 |      Added global name prefix PL, changed most filenames.
00051 |
00052 |      Revision 1.2  2001/01/15 15:05:31  uzadow
00053 |      Added PLBmp::ApplyFilter() and PLBmp::CreateFilteredCopy()
00054 |
00055 |      Revision 1.1  2000/09/26 14:28:47  Administrator
00056 |      Added Threshold filter
00057 |
00058 |
00059 |
00060 \--------------------------------------------------------------------
00061 */

Generated on Sun Jun 6 13:42:22 2004 for paintlib by doxygen 1.3.2