diff --git a/.gitignore b/.gitignore index 259148f..727ce2b 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,9 @@ *.exe *.out *.app + +# CMake +build/ + +# MacOS / Linux +.DS_Store \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..653c7cc --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,33 @@ +cmake_minimum_required(VERSION 3.0) + +# project name +project(hdrplus) + +# set c++ standard +set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD_REQUIRED True) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3") + +# Arm / X86 optimize flag +if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm*") + message(STATUS "ARM processor detected, will attempt to use NEON.") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=neon") +else() + message(STATUS "Assuming AVX2 instructions available.") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mavx2") +endif() + +if(NOT APPLE) + # The clang compiler (on osx) is somehow much more strict + # than the compilers on ubuntu and so this does not seem + # possible on OSX just yet. + add_definitions( -Werror ) +endif() + +# dependency opencv +find_package( OpenCV REQUIRED ) +include_directories( ${OpenCV_INCLUDE_DIRS}) + +# executable +add_executable( demo bin/demo.cpp ) +target_link_libraries( demo ${OpenCV_LIBS} ) diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 390b998..e06bf7b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ -# HDR- -HDR+ Paper reimplementation, UC Berkeley Spring 2022 CS184/284A Final Project +# HDR+ +> HDR+ Paper reimplementation +> UC Berkeley Spring 2022 CS184/284A Final Project diff --git a/bin/demo.cpp b/bin/demo.cpp new file mode 100644 index 0000000..ec1de1c --- /dev/null +++ b/bin/demo.cpp @@ -0,0 +1 @@ +#include "hdrplus/hdrplus.h" \ No newline at end of file diff --git a/include/hdrplus/align.h b/include/hdrplus/align.h new file mode 100644 index 0000000..e9dbd2d --- /dev/null +++ b/include/hdrplus/align.h @@ -0,0 +1,8 @@ +#pragma once + +#include // all opencv header + +namespace hdrplus +{ + +} // namespace hdrplus diff --git a/include/hdrplus/bayer_image.h b/include/hdrplus/bayer_image.h new file mode 100644 index 0000000..e9dbd2d --- /dev/null +++ b/include/hdrplus/bayer_image.h @@ -0,0 +1,8 @@ +#pragma once + +#include // all opencv header + +namespace hdrplus +{ + +} // namespace hdrplus diff --git a/include/hdrplus/burst.h b/include/hdrplus/burst.h new file mode 100644 index 0000000..e9dbd2d --- /dev/null +++ b/include/hdrplus/burst.h @@ -0,0 +1,8 @@ +#pragma once + +#include // all opencv header + +namespace hdrplus +{ + +} // namespace hdrplus diff --git a/include/hdrplus/finish.h b/include/hdrplus/finish.h new file mode 100644 index 0000000..e9dbd2d --- /dev/null +++ b/include/hdrplus/finish.h @@ -0,0 +1,8 @@ +#pragma once + +#include // all opencv header + +namespace hdrplus +{ + +} // namespace hdrplus diff --git a/include/hdrplus/hdrplus.h b/include/hdrplus/hdrplus.h new file mode 100644 index 0000000..e9dbd2d --- /dev/null +++ b/include/hdrplus/hdrplus.h @@ -0,0 +1,8 @@ +#pragma once + +#include // all opencv header + +namespace hdrplus +{ + +} // namespace hdrplus diff --git a/include/hdrplus/merge.h b/include/hdrplus/merge.h new file mode 100644 index 0000000..e9dbd2d --- /dev/null +++ b/include/hdrplus/merge.h @@ -0,0 +1,8 @@ +#pragma once + +#include // all opencv header + +namespace hdrplus +{ + +} // namespace hdrplus diff --git a/src/align.cpp b/src/align.cpp new file mode 100644 index 0000000..26a81fa --- /dev/null +++ b/src/align.cpp @@ -0,0 +1,7 @@ +#include // all opencv header +#include "hdrplus/align.h" + +namespace hdrplus +{ + +} // namespace hdrplus diff --git a/src/bayer_image.cpp b/src/bayer_image.cpp new file mode 100644 index 0000000..be65eca --- /dev/null +++ b/src/bayer_image.cpp @@ -0,0 +1,7 @@ +#include // all opencv header +#include "hdrplus/bayer_image.h" + +namespace hdrplus +{ + +} // namespace hdrplus diff --git a/src/burst.cpp b/src/burst.cpp new file mode 100644 index 0000000..1ba7cb1 --- /dev/null +++ b/src/burst.cpp @@ -0,0 +1,7 @@ +#include // all opencv header +#include "hdrplus/burst.h" + +namespace hdrplus +{ + +} // namespace hdrplus diff --git a/src/finish.cpp b/src/finish.cpp new file mode 100644 index 0000000..b6d3244 --- /dev/null +++ b/src/finish.cpp @@ -0,0 +1,7 @@ +#include // all opencv header +#include "hdrplus/finish.h" + +namespace hdrplus +{ + +} // namespace hdrplus diff --git a/src/hdrplus.cpp b/src/hdrplus.cpp new file mode 100644 index 0000000..59d9d82 --- /dev/null +++ b/src/hdrplus.cpp @@ -0,0 +1,7 @@ +#include // all opencv header +#include "hdrplus/hdrplus.h" + +namespace hdrplus +{ + +} // namespace hdrplus diff --git a/src/merge.cpp b/src/merge.cpp new file mode 100644 index 0000000..c1195ef --- /dev/null +++ b/src/merge.cpp @@ -0,0 +1,7 @@ +#include // all opencv header +#include "hdrplus/merge.h" + +namespace hdrplus +{ + +} // namespace hdrplus