boost::gil::read_image
Reads an image without conversion. Image memory is allocated.
Synopsis
Declared in <boost/gil/io/read_image.hpp>
template<
typename String,
typename Image,
typename FormatTag>
void
read_image(
String const& file_name,
Image& img,
FormatTag const& tag)
requires mp11::mp_and<detail::is_supported_path_spec<String>,
is_format_tag<FormatTag>,
is_read_supported
<
typename get_pixel_type<typename Image::view_t>::type,
FormatTag
>
>::value;
Parameters
Name |
Description |
file_name |
File name. Must satisfy is_supported_path_spec metafunction. |
img |
The image in which the data is read into. Must satisfy is_read_supported metafunction. |
tag |
Defines the image format. Must satisfy is_format_tag metafunction. |
Created with MrDocs