imageIO.h

Go to the documentation of this file.
00001 
00015 #ifndef _DLRCOMPUTERVISION_IMAGEIO_H_
00016 #define _DLRCOMPUTERVISION_IMAGEIO_H_
00017 
00018 
00019 #include <string>
00020 #include <dlrComputerVision/image.h>
00021 
00022 namespace dlr {
00023 
00024   namespace computerVision {
00025   
00026     Image<GRAY8>
00027     readPGM8(const std::string& fileName);
00028 
00029   
00030     Image<GRAY8>
00031     readPGM8(const std::string& fileName,
00032              std::string& commentString);
00033 
00034   
00035     Image<GRAY16>
00036     readPGM16(const std::string& fileName);
00037 
00038   
00039     Image<RGB8>
00040     readPPM8(const std::string& fileName);
00041 
00042 
00043     Image<RGB8>
00044     readPPM8(const std::string& fileName,
00045              std::string& commentString);
00046     
00047   
00048     void
00049     writePGM8(const std::string& fileName,
00050               const Image<GRAY8>& outputImage,
00051               const std::string& comment = "");
00052   
00053   
00054     void
00055     writePGM16(const std::string& fileName,
00056                const Image<GRAY16>& outputImage,
00057                const std::string& comment = "");
00058   
00059 
00060     void
00061     writePPM8(const std::string& fileName,
00062               const Image<RGB8>& outputImage,
00063               const std::string& comment = "");
00064     
00065   } // namespace computerVision
00066 
00067 } // namespace dlr
00068 
00069 
00070 #endif /* #ifndef _DLRCOMPUTERVISION_IMAGEIO_H_ */

Generated on Wed Jun 25 14:34:10 2008 for dlrComputerVision Utility Library by  doxygen 1.5.5