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
570 B
C++
21 lines
570 B
C++
#include <cstdio>
|
|
#include "hdrplus/bayer_image.h"
|
|
|
|
int main( int argc, char** argv )
|
|
{
|
|
if ( argc != 2 )
|
|
{
|
|
printf("Usage: ./test_bayer_image RAW_IMAGE_PATH\n");
|
|
exit( -1 );
|
|
}
|
|
|
|
hdrplus::bayer_image raw_bayer_image( argv[1] );
|
|
|
|
printf("Raw image of shape h=%d w=%d\n", \
|
|
raw_bayer_image.raw_image.size().height, \
|
|
raw_bayer_image.raw_image.size().width );
|
|
|
|
printf("Gray image of shape h=%d, w=%d\n", \
|
|
raw_bayer_image.grayscale_image.size().height, \
|
|
raw_bayer_image.grayscale_image.size().width );
|
|
} |