You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
899 B
C++
37 lines
899 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include <opencv2/opencv.hpp> // all opencv header
|
|
#include "hdrplus/bayer_image.h"
|
|
|
|
namespace hdrplus
|
|
{
|
|
|
|
class burst
|
|
{
|
|
public:
|
|
explicit burst( const std::string& burst_path, const std::string& reference_image_path );
|
|
~burst() = default;
|
|
|
|
// Reference image index in the array
|
|
int reference_image_idx;
|
|
|
|
// Source bayer images & grayscale unpadded image
|
|
std::vector<hdrplus::bayer_image> bayer_images;
|
|
|
|
// Image padded to tile size
|
|
// Use for alignment, merging, and finishing
|
|
std::vector<cv::Mat> grayscale_images_pad;
|
|
|
|
// number of image (including reference) in burst
|
|
int num_images;
|
|
|
|
private:
|
|
std::string reference_image_path;
|
|
std::string burst_path;
|
|
std::vector<std::string> bayer_image_paths;
|
|
};
|
|
|
|
} // namespace hdrplus
|