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.
|
|
|
#include "hdrplus/align.h"
|
|
|
|
#include "hdrplus/bayer_image.h"
|
|
|
|
#include "hdrplus/burst.h"
|
|
|
|
#include <cstdio>
|
|
|
|
|
|
|
|
void test_align_one_level(int argc, char** argv)
|
|
|
|
{
|
|
|
|
if ( argc != 3 )
|
|
|
|
{
|
|
|
|
printf("Usage ./test_align BUTST_PATH REF_PATH");
|
|
|
|
}
|
|
|
|
|
|
|
|
printf("Burst img dir %s\n", argv[1]);
|
|
|
|
printf("Ref img path %s\n", argv[2]);
|
|
|
|
|
|
|
|
hdrplus::burst burst_images( argv[1], argv[2] );
|
|
|
|
std::vector<std::vector<std::vector<std::pair<int, int>>>> alignments;
|
|
|
|
|
|
|
|
hdrplus::align align_module;
|
|
|
|
align_module.process( burst_images, alignments );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
test_align_one_level(argc, argv);
|
|
|
|
}
|