tl
This commit is contained in:
1 parent
653bd3bac1
commit
708dfbe251
11 files changed
+11
No files matched your search
@@ -7,4 +7,5 @@ img_BGR = cv.imread(r"img\iris.jpg")
|
||||
img_RGB = cv.cvtColor(img_BGR, cv.COLOR_BGR2RGB)
|
||||
plt.imshow(img_RGB)
|
||||
plt.axis("off")
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
@@ -34,4 +34,5 @@ if __name__ == "__main__":
|
||||
image_hist0 = histogram(image0)
|
||||
plt.subplot(1, 2, 2)
|
||||
plt.bar(range(256), image_hist0)
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
@@ -50,4 +50,5 @@ if __name__ == "__main__":
|
||||
plt.hist(im3.flatten(), 256, [0, 256]) # type: ignore
|
||||
plt.subplot(248)
|
||||
plt.hist(im4.flatten(), 256, [0, 256]) # type: ignore
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
@@ -26,4 +26,5 @@ if __name__ == "__main__":
|
||||
plt.imshow(im2, cmap="gray")
|
||||
plt.title("gamma = 1.5")
|
||||
plt.axis("off")
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
@@ -29,4 +29,5 @@ if __name__ == "__main__":
|
||||
plt.imshow(ImgSharp, cmap="gray")
|
||||
plt.title("sharp")
|
||||
plt.axis("off")
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
@@ -75,4 +75,5 @@ if __name__ == "__main__":
|
||||
plt.imshow(im23, cmap="gray")
|
||||
plt.title("gaussian")
|
||||
plt.axis("off")
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
@@ -21,4 +21,5 @@ if __name__ == "__main__":
|
||||
plt.imshow(ImgLplcEnhance, cmap="gray")
|
||||
plt.title("laplacian enhanced")
|
||||
plt.axis("off")
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
@@ -55,4 +55,5 @@ plt.subplot(2, 4, 8)
|
||||
plt.title("重构图像(NumPy)")
|
||||
plt.imshow(ifft21, cmap="gray")
|
||||
plt.axis("off")
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
@@ -57,4 +57,5 @@ if __name__ == "__main__":
|
||||
plt.imshow(img1, cmap="gray")
|
||||
plt.title("ILPF滤波后重构图像")
|
||||
plt.axis("off")
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
@@ -47,4 +47,5 @@ if __name__ == "__main__":
|
||||
plt.imshow(img1, cmap="gray")
|
||||
plt.title("重构图像")
|
||||
plt.axis("off")
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
Reference in new issue
Block a user