This project simulates the behavior of an image sensor, including capturing light, adding noise, applying a color filter array (CFA), simulating optical diffraction, and demosaicing the image.
ImageSensorSimulation/
├── CMakeLists.txt
├── conanfile.txt
├── include/
│ └── ImageSensor.h
│ └── CFAPattern.h
├── src/
│ └── CMakeLists.txt
│ └── ImageSensor.cpp
│ └── CFAPattern.cpp
├── app/
│ └── CMakeLists.txt
│ └── main.cpp
└── build/ (created during the build process)
- CMake 3.10 or higher
- Conan package manager
- A C++ compiler (e.g., g++, clang++)
Install Conan using pip:
pip install conan
If you do not already have a Conan profile configured, you can run:
conan profile detect --force
Create a build
directory in the top-level directory. Change directory to this build
directory and build the missing dependencies.
mkdir build
cd build
conan install --build missing ..
Configure your build environment by typing
cmake ..
Build the project with your preferred compiler
make
OR
ninja
- C++ compiler that supports C++17 dialect/ISO standard
- OpenCV 4
- CLI11