Support #1314 » img_processor.py
1 |
#!/usr/bin/env python
|
---|---|
2 |
# -*- coding: utf-8 -*-
|
3 |
# ˅
|
4 |
from config import Config |
5 |
from display_img import DisplayImg |
6 |
|
7 |
|
8 |
# ˄
|
9 |
|
10 |
|
11 |
class ImgProcessor(object): |
12 |
# ˅
|
13 |
|
14 |
# ˄
|
15 |
|
16 |
def __init__(self, g, a, config, dImg): |
17 |
|
18 |
self.__gamma = g |
19 |
|
20 |
self.__alpha = a |
21 |
|
22 |
self.__config = config |
23 |
|
24 |
self.__displayImg = dImg |
25 |
|
26 |
# ˅
|
27 |
pass
|
28 |
# ˄
|
29 |
|
30 |
def alphaBlend(self, img1, img2, alpha): |
31 |
# ˅
|
32 |
pass
|
33 |
# ˄
|
34 |
|
35 |
def alphaGamma(self, img, gamma, alpha): |
36 |
# ˅
|
37 |
pass
|
38 |
# ˄
|
39 |
|
40 |
def calculateOverlap(self, img1, img2): |
41 |
# ˅
|
42 |
pass
|
43 |
# ˄
|
44 |
|
45 |
def cropImage(self, path): |
46 |
# ˅
|
47 |
pass
|
48 |
# ˄
|
49 |
|
50 |
# ˅
|
51 |
|
52 |
# ˄
|
53 |
|
54 |
|
55 |
# ˅
|
56 |
|
57 |
# ˄
|