contrib/oxl/oxp/ByteConvertImage.h

Go to the documentation of this file.
00001 // This is oxl/oxp/ByteConvertImage.h
00002 #ifndef ByteConvertImage_h_
00003 #define ByteConvertImage_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \author   Andrew W. Fitzgibbon, Oxford RRG, 22 Dec 98
00010 //
00011 //-----------------------------------------------------------------------------
00012 
00013 #include <vcl_iosfwd.h>
00014 
00015 #include <vil1/vil1_memory_image_of.h>
00016 #include <vxl_config.h>
00017 
00018 class ByteConvertImage : public vil1_memory_image_of<vxl_byte>
00019 {
00020   bool ignore_zero_;
00021   float min_;
00022   float max_;
00023   void filter(vil1_memory_image_of<float> const&);
00024   void filter(vil1_memory_image_of<double> const&);
00025  public:
00026   typedef vil1_memory_image_of<vxl_byte> base;
00027 
00028   ByteConvertImage(vil1_memory_image_of<float> const& in, bool ignore_zero = false);
00029   ByteConvertImage(vil1_memory_image_of<float> const& in, float min, float max);
00030   ByteConvertImage(vil1_memory_image_of<double> const& in, bool ignore_zero = false);
00031   ByteConvertImage(vil1_memory_image_of<double> const& in, float min, float max);
00032 
00033   void print(vcl_ostream&) const;
00034 };
00035 
00036 #endif // ByteConvertImage_h_

Generated on Tue Dec 2 05:14:28 2008 for contrib/oxl/oxp by  doxygen 1.5.1