boost::gil::read_and_convert_image
read_and_convert_image overloads
Synopses
Reads and color‐converts an image. Image memory is allocated.
template<
typename Reader,
typename Image>
void
read_and_convert_image(
Reader& reader,
Image& img)
requires mp11::mp_and
<
detail::is_reader<Reader>,
is_format_tag<typename Reader::format_tag_t>
>::value;
Reads and color‐converts an image. Image memory is allocated. Default color converter is used.
template<
typename Device,
typename Image,
typename FormatTag>
void
read_and_convert_image(
Device& device,
Image& img,
FormatTag const& tag)
requires mp11::mp_and
<
detail::is_read_device<FormatTag, Device>,
is_format_tag<FormatTag>
>::value;
Reads and color‐converts an image. Image memory is allocated. Default color converter is used.
template<
typename Device,
typename Image,
typename FormatTag>
void
read_and_convert_image(
Device& device,
Image& img,
image_read_settings<FormatTag> const& settings)
requires mp11::mp_and
<
detail::is_read_device<FormatTag, Device>,
is_format_tag<FormatTag>
>::value;
Reads and color‐converts an image. Image memory is allocated. Default color converter is used.
template<
typename String,
typename Image,
typename FormatTag>
void
read_and_convert_image(
String const& file_name,
Image& img,
FormatTag const& tag)
requires mp11::mp_and
<
is_format_tag<FormatTag>,
detail::is_supported_path_spec<String>
>::value;
Reads and color‐converts an image. Image memory is allocated. Default color converter is used.
template<
typename String,
typename Image,
typename FormatTag>
void
read_and_convert_image(
String const& file_name,
Image& img,
image_read_settings<FormatTag> const& settings)
requires mp11::mp_and
<
is_format_tag<FormatTag>,
detail::is_supported_path_spec<String>
>::value;
Reads and color‐converts an image. Image memory is allocated.
template<
typename Device,
typename Image,
typename ColorConverter,
typename FormatTag>
void
read_and_convert_image(
Device& device,
Image& img,
ColorConverter const& cc,
FormatTag const& tag)
requires mp11::mp_and
<
detail::is_read_device<FormatTag, Device>,
is_format_tag<FormatTag>
>::value;
Reads and color‐converts an image. Image memory is allocated.
template<
typename Device,
typename Image,
typename ColorConverter,
typename FormatTag>
void
read_and_convert_image(
Device& device,
Image& img,
image_read_settings<FormatTag> const& settings,
ColorConverter const& cc)
requires mp11::mp_and
<
detail::is_read_device<FormatTag, Device>,
is_format_tag<FormatTag>
>::value;
Reads and color‐converts an image. Image memory is allocated.
template<
typename String,
typename Image,
typename ColorConverter,
typename FormatTag>
void
read_and_convert_image(
String const& file_name,
Image& img,
ColorConverter const& cc,
FormatTag const& tag)
requires mp11::mp_and
<
is_format_tag<FormatTag>,
detail::is_supported_path_spec<String>
>::value;
Reads and color‐converts an image. Image memory is allocated.
template<
typename String,
typename Image,
typename ColorConverter,
typename FormatTag>
void
read_and_convert_image(
String const& file_name,
Image& img,
image_read_settings<FormatTag> const& settings,
ColorConverter const& cc)
requires mp11::mp_and
<
is_format_tag<FormatTag>,
detail::is_supported_path_spec<String>
>::value;
Parameters
Name |
Description |
reader |
An image reader. |
img |
The image in which the data is read into. |
settings |
Specifies read settings depending on the image format. |
cc |
Color converter function object. |
device |
It's a device. Must satisfy is_input_device metafunction or is_adaptable_input_device. |
tag |
Defines the image format. Must satisfy is_format_tag metafunction. |
file_name |
File name. Must satisfy is_supported_path_spec metafunction. |
Created with MrDocs