Skip to content

Commit

Permalink
add pics/
Browse files Browse the repository at this point in the history
  • Loading branch information
kangvcar committed Jul 6, 2021
1 parent 47c0119 commit 2450336
Show file tree
Hide file tree
Showing 12 changed files with 273 additions and 1,348 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
images/
.ipynb_checkpoints/
app/
app2/
images/
result/
Binary file removed Logo.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ pywavelets = "*"
scikit-image = "*"
pyqt5 = "*"
pyqtgraph = "*"
gooey = "*"
flake8 = "*"
yapf = "*"
pyinstaller = "*"

[dev-packages]

Expand Down
300 changes: 258 additions & 42 deletions Pipfile.lock

Large diffs are not rendered by default.

Binary file removed gui.jpg
Binary file not shown.
10 changes: 5 additions & 5 deletions kk.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from matplotlib import pyplot as plt
from pywt import dwt2, idwt2
# 定义需要处理的图像
pic1 = 'image1.jpg'
pic2 = 'image2.jpg'
pic3 = 'image3.jpg'
pic1 = './images/image1.jpg'
pic2 = './images/image2.jpg'
pic3 = './images/image3.jpg'


def imgShift(pic):
Expand All @@ -27,10 +27,10 @@ def imgShift(pic):
dst = cv.warpAffine(image, M, (cols, rows))
ax1 = plt.subplot(1, 2, 1)
plt.imshow(image)
ax1.set_title("原图")
ax1.set_title("source")
ax2 = plt.subplot(1, 2, 2)
plt.imshow(dst)
ax2.set_title("平移后")
ax2.set_title("deal")
plt.savefig('./result/' + 'imgshift' + pic, format='jpg')


Expand Down

0 comments on commit 2450336

Please sign in to comment.