-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcspslice.h
More file actions
59 lines (50 loc) · 1.15 KB
/
cspslice.h
File metadata and controls
59 lines (50 loc) · 1.15 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#pragma once
#include <vector>
#include <valarray>
#include "ccomplex.h"
#include "cdevice.cuh"
#include "regions.h"
#include "cmemory.h"
class spslice {
public:
spslice() {};
~spslice() {};
Complex* p_data = NULL;
rectangle region;
long memsize;
int wavelength; // nm
long2 getDimensions();
long getNumberOfElements();
virtual void clear() {};
virtual void crop(rectangle) {};
virtual void grow(rectangle) {};
};
class hcube;
class dspslice;
class hspslice : public spslice, public hmemory<Complex> {
public:
hcube* datacube;
hspslice() {};
hspslice(hcube*, std::valarray<double>, rectangle, int);
hspslice(hcube*, std::valarray<Complex>, rectangle, int);
hspslice(hcube*, dspslice*);
~hspslice();
void clear();
void crop(rectangle);
hspslice* deepcopy();
void grow(rectangle);
};
class dcube;
class dspslice : public spslice, public dmemory<Complex> {
public:
dcube* datacube;
dspslice() {};
dspslice(dcube*, std::valarray<double>, rectangle, int);
dspslice(dcube*, std::valarray<Complex>, rectangle, int);
dspslice(dcube*, hspslice*);
~dspslice();
void clear();
void crop(rectangle);
dspslice* deepcopy();
void grow(rectangle);
};