boost::gil::lanczos_at

a single step of lanczos downscaling

Synopsis

template<typename ImageView>
void
lanczos_at(
    ImageView input_view,
    ImageView output_view,
    ImageView::x_coord_t source_x,
    ImageView::y_coord_t source_y,
    ImageView::x_coord_t target_x,
    ImageView::y_coord_t target_y,
    std::ptrdiff_t a);

Description

These algorithms are used to improve image quality after image resizing is made.

These algorithms provide best results when used for downscaling. Using for upscaling will probably provide less than good results.

Use this algorithm to scale down source image into a smaller image with reasonable quality. Do note that having a look at the output once is a good idea, since it might have ringing artifacts.

Created with MrDocs