SatDump 2.0.0-alpha-520736c72
Loading...
Searching...
No Matches
image_utils.h File Reference
#include "image.h"
#include <functional>

Go to the source code of this file.

Functions

Image satdump::image::make_manyimg_composite (int count_width, int count_height, int img_cnt, std::function< Image(int cnt)> get_img_func)
 Simple function to make a "matrix" out of many image to save them in a single image. You should ensure img_cnt is never 0 and does not exceed what get_img_func can provide. Images should also be identical in size and depth!
Image satdump::image::blend_images (std::vector< Image > &images)
image::Image satdump::image::merge_images_opacity (image::Image &img1, image::Image &img2, float op)

Function Documentation

◆ make_manyimg_composite()

Image satdump::image::make_manyimg_composite ( int count_width,
int count_height,
int img_cnt,
std::function< Image(int cnt)> get_img_func )

Simple function to make a "matrix" out of many image to save them in a single image. You should ensure img_cnt is never 0 and does not exceed what get_img_func can provide. Images should also be identical in size and depth!

Parameters
count_widthMatrix width in images
count_heightMatrix height in images
img_cntnumber of images
get_img_funcfunction returns the images to put in the matrix
Returns
the image matrix