Codes » MainDisplay.py
| 1 |
import cv2 as cv |
|---|---|
| 2 |
from CalculateDisplayImage import CalculateDisplayImage |
| 3 |
|
| 4 |
CDI = CalculateDisplayImage() |
| 5 |
|
| 6 |
##
|
| 7 |
# @brief
|
| 8 |
#
|
| 9 |
# This class displays blended images.
|
| 10 |
# This class is made by Vaibhav, Doxygened by Xu Minghao.
|
| 11 |
#
|
| 12 |
|
| 13 |
|
| 14 |
class MainDisplay(object): |
| 15 |
|
| 16 |
##
|
| 17 |
# @brief
|
| 18 |
# Display the blended images.
|
| 19 |
# @param img is the image blended with masks.
|
| 20 |
def display(img): |
| 21 |
cv.imshow('img', img) |
| 22 |
cv.waitKey(0) |
| 23 |
cv.destroyAllWindows() |
| 24 |
|
| 25 |
# The constructor.
|
| 26 |
def __init__(self): |
| 27 |
pass
|
| 28 |
|
| 29 |
## A class variable.
|
| 30 |
# To store the blended images.
|
| 31 |
res = CDI.getDisplayImage(CDI.calculate()) |
| 32 |
|
| 33 |
display(res[0]) |
| 34 |
# display(res[1])
|
- « Previous
- 1
- 2
- 3
- 4
- Next »