-
Notifications
You must be signed in to change notification settings - Fork 8
/
ImageRenderer3.h
28 lines (25 loc) · 886 Bytes
/
ImageRenderer3.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include "ImageRenderer.h"
/**
* A perspective-shift and refocus algorithm for rendering images from light
* fields. It is derived from equation 5 from "Light field photography with a
* hand-held plenoptic camera" by Ng et al. (2005).
*
* This algorithms works by shifting, weighing and adding the individual
* sub-aperture images. The aperture function is still present in the equation,
* meaning each sub-aperture image is multiplied by a weight before adding all
* sub-aperture images up. A bivariate normal distribution was chosen as
* aperture function. The normal distribution is centered on the sub-aperture.
*
* @author Kai Puth <[email protected]>
* @version 0.1
* @since 2014-06-20
*/
class ImageRenderer3 :
public ImageRenderer
{
public:
ImageRenderer3(void);
~ImageRenderer3(void);
oclMat renderImage() const;
};