TestImageFile.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * NICE-Core - efficient algebra and computer vision methods
  3. * - libimage - An image/template for new NICE libraries
  4. * See file License for license information.
  5. */
  6. #ifndef _TESTIMAGEFILE_IMAGE_H
  7. #define _TESTIMAGEFILE_IMAGE_H
  8. #include <cppunit/extensions/HelperMacros.h>
  9. #include <core/image/ImageFile.h>
  10. /**
  11. * CppUnit-Testcase.
  12. * Test template...
  13. */
  14. class TestImageFile : public CppUnit::TestFixture
  15. {
  16. CPPUNIT_TEST_SUITE( TestImageFile );
  17. CPPUNIT_TEST( testFloatPXM );
  18. CPPUNIT_TEST( testFloatImage );
  19. CPPUNIT_TEST( testColorImage );
  20. CPPUNIT_TEST( testGrayImage );
  21. CPPUNIT_TEST( testJPG_IO );
  22. CPPUNIT_TEST( testInvalidFileName );
  23. CPPUNIT_TEST_SUITE_END();
  24. private:
  25. public:
  26. void setUp();
  27. void tearDown();
  28. /**
  29. * Constructor / Destructor testing
  30. */
  31. void testConstructor();
  32. /**
  33. * Operator testing
  34. */
  35. void testOperators();
  36. /**
  37. * Test read and write
  38. */
  39. void testFloatPXM();
  40. void testFloatImage();
  41. void testColorImage();
  42. void testGrayImage();
  43. /**
  44. * Test JPEG Input and Output
  45. */
  46. void testJPG_IO();
  47. /**
  48. * Test for correct detection of file names without appropriate endings
  49. */
  50. void testInvalidFileName();
  51. };
  52. #endif // _TESTIMAGEFILE_IMAGE_H