-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFFCC.h
35 lines (31 loc) · 891 Bytes
/
FFCC.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
#import <Foundation/Foundation.h>
#import <Metal/Metal.h>
#import "Lib/Toastbox/Mac/Mat.h"
#import "Lib/Toastbox/Mac/CFA.h"
#import "Lib/Toastbox/Mac/Renderer.h"
class FFCC {
public:
using Mat64 = Toastbox::Mat<double,64,64>;
using Mat64c = Toastbox::Mat<std::complex<double>,64,64>;
using Vec2 = Toastbox::Mat<double,2,1>;
using Vec3 = Toastbox::Mat<double,3,1>;
struct Model {
struct Params {
struct {
size_t binCount = 0;
double binSize = 0;
double startingUV = 0;
double minIntensity = 0;
} histogram;
};
Params params;
Mat64c F_fft[2];
Mat64 B;
};
static Vec3 Run(
const Model& model,
Toastbox::Renderer& renderer,
const Toastbox::CFADesc& cfaDesc,
id<MTLTexture> raw
);
};