-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGradientImage.h
More file actions
53 lines (42 loc) · 791 Bytes
/
GradientImage.h
File metadata and controls
53 lines (42 loc) · 791 Bytes
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
//
// GradientImage.hpp
// MorphPlot
//
// Created by Christian Brunschen on 21/02/2016.
// Copyright 2016 Christian Brunschen. All rights reserved.
//
//
#ifndef __GradientImage_h__
#define __GradientImage_h__
#include "Image.h"
namespace Images {
#if 0
}
#endif
namespace Gradient {
#if 0
}
#endif
struct XY {
public:
double x_;
double y_;
XY(double x = 0.0, double y = 0.0) : x_(x), y_(y) { }
double &x() { return x_; }
const double x() const { return x_; }
void setX(double x) { x_ = x; }
double &y() { return y_; }
const double y() const { return y_; }
void setY(double y) { y_ = y; }
};
#if 0
{
#endif
} // namespace Gradient
class GradientImage : public Image<Gradient::XY> {
};
#if 0
{
#endif
} // namespace Images
#endif /* __GradientImage_h__ */