-
Notifications
You must be signed in to change notification settings - Fork 8
/
ImageRenderer.h
37 lines (32 loc) · 900 Bytes
/
ImageRenderer.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
29
30
31
32
33
34
35
36
#pragma once
#include <opencv2/ocl/ocl.hpp>
#include "LightFieldPicture.h"
/**
* The abstract base class for any algorithm which can render an image from a
* light field.
*
* Rendering is based on the pinhole camera model. Not every algorithm uses
* every camera parameter.
*
* @author Kai Puth <[email protected]>
* @version 0.1
* @since 2014-06-20
*/
class ImageRenderer
{
protected:
LightFieldPicture lightfield;
float alpha;
Vec2i pinholePosition;
public:
ImageRenderer(void);
~ImageRenderer(void);
// mutators (and accessors) for parameters
LightFieldPicture getLightfield() const;
virtual void setLightfield(const LightFieldPicture& lightfield);
float getAlpha() const;
virtual void setAlpha(float alpha);
Vec2i getPinholePosition() const;
virtual void setPinholePosition(Vec2i pinholePosition);
virtual oclMat renderImage() const =0;
};