cmyka.cpp 692 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // Copyright 2013 Christian Henning
  3. //
  4. // Distributed under the Boost Software License, Version 1.0
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. //
  8. #include <boost/gil/extension/toolbox/color_spaces/cmyka.hpp>
  9. #include <boost/test/unit_test.hpp>
  10. using namespace boost;
  11. using namespace gil;
  12. BOOST_AUTO_TEST_SUITE( toolbox_tests )
  13. BOOST_AUTO_TEST_CASE( cmyka_test )
  14. {
  15. cmyka8_pixel_t a( 10, 20, 30, 40, 50 );
  16. rgba8_pixel_t b;
  17. cmyka8_pixel_t c;
  18. color_convert( a, b );
  19. // no rgba to cmyka conversion implemented
  20. //color_convert( b, c );
  21. //BOOST_ASSERT( at_c<0>(a) == at_c<0>(c) );
  22. }
  23. BOOST_AUTO_TEST_SUITE_END()