2 // Copyright 2013 Christian Henning
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
8 #ifndef BOOST_GIL_IO_TEST_SUBIMAGE_TEST_HPP
9 #define BOOST_GIL_IO_TEST_SUBIMAGE_TEST_HPP
11 #include <boost/gil.hpp>
14 using namespace boost;
17 template< typename Image
20 void run_subimage_test( string filename
21 , const point_t& top_left
22 , const point_t& dimension
25 Image original, subimage;
32 image_read_settings< Format > settings( top_left
42 BOOST_CHECK( equal_pixels( const_view( subimage )
43 , subimage_view( const_view( original )
51 #endif // BOOST_GIL_IO_TEST_SUBIMAGE_TEST_HPP