ImageOutputStream.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * NICE-Core - efficient algebra and computer vision methods
  3. * - libimage - An image library
  4. * See file License for license information.
  5. */
  6. #ifndef _IMAGEOUTPUTSTREAM_IMAGE_H
  7. #define _IMAGEOUTPUTSTREAM_IMAGE_H
  8. #include "core/image/ColorImageT.h"
  9. namespace NICE {
  10. /**
  11. * Base class for writing sequences of ColorImages.
  12. * Usually the images will be written to disk.
  13. *
  14. * @author Ferid Bajramovic (ferid [dot] bajramovic [at] informatik [dot] uni-jena [dot] de)
  15. *
  16. * @note
  17. * This class is HIGHLY experimental and might change in the future.
  18. */
  19. class ImageOutputStream {
  20. public:
  21. //! Destructor
  22. virtual ~ImageOutputStream();
  23. /**
  24. * Write the next ColorImage.
  25. * @param image Next ColorImage to write
  26. */
  27. virtual void writeColorImage(const ColorImage& image) = 0;
  28. /**
  29. * Write the next Image.
  30. * @param image Next Image to write
  31. */
  32. virtual void writeGrayImage(const Image& image) = 0;
  33. // the following methods probably aren't needed in general
  34. /**
  35. * Close the writer.
  36. * Usually no more writing will be possible after closing.
  37. */
  38. //virtual void close() = 0;
  39. /**
  40. * Insert \c frames missing/empty frames.
  41. * @param frames Number of empty/missing frames
  42. */
  43. //virtual void insertMissingFrames(int frames) = 0;
  44. };
  45. } // namespace
  46. #endif // _IMAGEOUTPUTSTREAM_IMAGE_H