18 #ifndef PIC_IMAGE_RAW_VEC_HPP 19 #define PIC_IMAGE_RAW_VEC_HPP 98 std::sort(stack.begin(), stack.end(), [](
const Image *l,
const Image *r)->
bool{
115 for(
unsigned int i = 0; i < stack.size(); i++) {
116 float tmp = bLog ? logf(stack[i]->exposure) : stack[i]->exposure;
117 output.push_back(tmp);
128 if(stack.size() < 2) {
132 for (
unsigned int i = 1; i < stack.size(); i++) {
133 if (!stack[0]->isSimilarType(stack[i])) {
150 if(minInputImages < 0) {
151 n = int(imgIn.size());
153 if(imgIn.size() < minInputImages) {
160 for(
int i = 0; i < n; i ++) {
161 if(imgIn[i] == NULL) {
164 if(!imgIn[i]->isValid()) {
PIC_INLINE bool ImageVecCheck(ImageVec &imgIn, int minInputImages)
ImageVecCheck.
Definition: image_vec.hpp:147
PIC_INLINE bool ImageVecCheckSimilarType(ImageVec &stack)
ImageVecCheckSimilarType.
Definition: image_vec.hpp:126
std::vector< Image * > ImageVec
ImageVec an std::vector of pic::Image.
Definition: image_vec.hpp:29
PIC_INLINE ImageVec Quad(Image *img1, Image *img2, Image *img3, Image *img4)
Triple creates an std::vector which contains img1, img2, img3, and img4; this is for filters input...
Definition: image_vec.hpp:81
float exposure
Definition: image.hpp:79
PIC_INLINE ImageVec Double(Image *img1, Image *img2)
Double creates an std::vector which contains img1 and img2; this is for filters input.
Definition: image_vec.hpp:49
#define PIC_INLINE
Definition: base.hpp:33
PIC_INLINE void ImaveVecSortByExposureTime(ImageVec &stack)
ImaveVecSortByExposureTime.
Definition: image_vec.hpp:96
The Image class stores an image as buffer of float.
Definition: image.hpp:60
PIC_INLINE ImageVec Triple(Image *img1, Image *img2, Image *img3)
Triple creates an std::vector which contains img1, img2, and img3; this is for filters input...
Definition: image_vec.hpp:64
PIC_INLINE void ImaveVecGetExposureTimesAsArray(ImageVec &stack, std::vector< float > &output, bool bLog)
ImaveVecGetExposureTimesAsArray.
Definition: image_vec.hpp:111
PIC_INLINE ImageVec Single(Image *img)
Single creates an std::vector which contains img; this is for filters input.
Definition: image_vec.hpp:36
Definition: bilateral_separation.hpp:25