boost::gil::read_image
Reads an image without conversion. Image memory is allocated.
Synopses
Declared in <boost/gil/io/read_image.hpp>
Reads an image without conversion. Image memory is allocated.
template<
typename Reader,
typename Image>
void
read_image(
Reader reader,
Image& img)
requires mp11::mp_and
<
detail::is_reader<Reader>,
is_format_tag<typename Reader::format_tag_t>,
is_read_supported
<
typename get_pixel_type<typename Image::view_t>::type,
typename Reader::format_tag_t
>
>::value;
template<
typename Reader,
typename... Images>
void
read_image(
Reader& reader,
any_image<Images...>& images)
requires mp11::mp_and
<
detail::is_dynamic_image_reader<Reader>,
is_format_tag<typename Reader::format_tag_t>
>::value;
Reads an image without conversion. Image memory is allocated.
template<
typename Device,
typename Image,
typename FormatTag>
void
read_image(
Device& file,
Image& img,
FormatTag const& tag)
requires mp11::mp_and
<
detail::is_read_device<FormatTag, Device>,
is_format_tag<FormatTag>,
is_read_supported
<
typename get_pixel_type<typename Image::view_t>::type,
FormatTag
>
>::value;
Reads an image without conversion. Image memory is allocated.
template<
typename Device,
typename Image,
typename FormatTag>
void
read_image(
Device& file,
Image& img,
image_read_settings<FormatTag> const& settings)
requires mp11::mp_and
<
detail::is_read_device<FormatTag, Device>,
is_format_tag<FormatTag>,
is_read_supported
<
typename get_pixel_type<typename Image::view_t>::type,
FormatTag
>
>::value;
Reads an image without conversion. Image memory is allocated.
template<
typename Device,
typename... Images,
typename FormatTag>
void
read_image(
Device& file,
any_image<Images...>& images,
FormatTag const& tag)
requires mp11::mp_and
<
detail::is_read_device<FormatTag, Device>,
is_format_tag<FormatTag>
>::value;
Reads an image without conversion. Image memory is allocated.
template<
typename Device,
typename... Images,
typename FormatTag>
void
read_image(
Device& file,
any_image<Images...>& images,
image_read_settings<FormatTag> const& settings)
requires mp11::mp_and
<
detail::is_read_device<FormatTag, Device>,
is_format_tag<FormatTag>
>::value;
Reads an image without conversion. Image memory is allocated.
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;
Reads an image without conversion. Image memory is allocated.
template<
typename String,
typename Image,
typename FormatTag>
void
read_image(
String const& file_name,
Image& img,
image_read_settings<FormatTag> const& settings)
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;
Reads an image without conversion. Image memory is allocated.
template<
typename String,
typename... Images,
typename FormatTag>
void
read_image(
String const& file_name,
any_image<Images...>& images,
FormatTag const& tag)
requires mp11::mp_and
<
detail::is_supported_path_spec<String>,
is_format_tag<FormatTag>
>::value;
Reads an image without conversion. Image memory is allocated.
template<
typename String,
typename... Images,
typename FormatTag>
void
read_image(
String const& file_name,
any_image<Images...>& images,
image_read_settings<FormatTag> const& settings)
requires mp11::mp_and
<
detail::is_supported_path_spec<String>,
is_format_tag<FormatTag>
>::value;
Parameters
Name |
Description |
reader |
An image reader. |
img |
The image in which the data is read into. Must satisfy is_read_supported metafunction. |
file |
It's a device. Must satisfy is_input_device metafunction. |
tag |
Defines the image format. Must satisfy is_format_tag metafunction. |
settings |
Specifies read settings depending on the image format. |
images |
Dynamic image (mp11::mp_list). See boost::gil::dynamic_image extension. |
file_name |
File name. Must satisfy is_supported_path_spec metafunction. |
Created with MrDocs