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.

21 lines
750 B
C++

#include <cstdio>
#include <string>
#include "hdrplus/burst.h"
int main( int argc, char** argv )
{
if ( argc != 3 )
{
printf("Usage: ./test_burst BURST_FOLDER_PATH(no / at end) REFERENCE_IMAGE_PATH\n");
exit(1);
}
hdrplus::burst burst_image( argv[1], argv[2] );
printf("number of image in burst %ld\n", burst_image.bayer_images.size() );
printf("grayscale image shape (h=%d, w=%d)\n", \
burst_image.bayer_images[ 0 ].grayscale_image.size().height,
burst_image.bayer_images[ 0 ].grayscale_image.size().width );
printf("grayscale image pad shape (h=%d, w=%d)\n",
burst_image.grayscale_images_pad[ 0 ].size().height, \
burst_image.grayscale_images_pad[ 0 ].size().width );
}