defocus-modules/include/defocus/pinhole.h
Kevin Trogant ffbe68606b Initial commit
First (sort-of) working version of a pinhole camera model.

Improvement idea:
- Stretch result image to the whole size
2023-04-06 18:54:30 +02:00

13 lines
256 B
C

#ifndef DF_PINHOLE_H
#define DF_PINHOLE_H
/** @file pinhole.h
* @brief Defocus based on pinhole camera model.
*/
#include "image.h"
void df_pinhole(const df_image *in_image, float focal_length, float orig_z, float new_z, df_image *out_image);
#endif