00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkJPEGImageIO_h
00018 #define __itkJPEGImageIO_h
00019
00020 #ifdef _MSC_VER
00021 #pragma warning ( disable : 4786 )
00022 #endif
00023
00024 #include "itkImageIOBase.h"
00025
00026 namespace itk
00027 {
00028
00036 class ITK_EXPORT JPEGImageIO : public ImageIOBase
00037 {
00038 public:
00040 typedef JPEGImageIO Self;
00041 typedef ImageIOBase Superclass;
00042 typedef SmartPointer<Self> Pointer;
00043
00045 itkNewMacro(Self);
00046
00048 itkTypeMacro(JPEGImageIO, ImageIOBase);
00049
00051 itkSetMacro(Quality, int);
00052 itkGetMacro(Quality, int);
00053
00055 itkSetMacro(Progressive, bool);
00056 itkGetMacro(Progressive, bool);
00057
00058
00059
00062 virtual bool CanReadFile(const char*);
00063
00065 virtual void ReadImageInformation();
00066
00068 virtual void Read(void* buffer);
00069
00071 virtual void ReadVolume(void* buffer);
00072
00073
00074
00077 virtual bool CanWriteFile(const char*);
00078
00081 virtual void WriteImageInformation();
00082
00085 virtual void Write(const void* buffer);
00086
00087 protected:
00088 JPEGImageIO();
00089 ~JPEGImageIO();
00090 void PrintSelf(std::ostream& os, Indent indent) const;
00091
00092 void WriteSlice(std::string& fileName, const void* buffer);
00093
00096 int m_Quality;
00098 bool m_Progressive;
00099
00100 private:
00101 JPEGImageIO(const Self&);
00102 void operator=(const Self&);
00103
00104
00105 };
00106
00107 }
00108
00109 #endif // __itkJPEGImageIO_h
00110