This commit is contained in:
xixu-me committed 2024-05-09 08:27:05 +08:00
1 parent 653bd3bac1
commit 708dfbe251
11 files changed
+11

No files matched your search

+1
View File
@@ -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()
+1
View File
@@ -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()
+1
View File
@@ -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()
+1
View File
@@ -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()
+1
View File
@@ -29,4 +29,5 @@ if __name__ == "__main__":
plt.imshow(ImgSharp, cmap="gray")
plt.title("sharp")
plt.axis("off")
plt.tight_layout()
plt.show()
+1
View File
@@ -75,4 +75,5 @@ if __name__ == "__main__":
plt.imshow(im23, cmap="gray")
plt.title("gaussian")
plt.axis("off")
plt.tight_layout()
plt.show()
+1
View File
@@ -21,4 +21,5 @@ if __name__ == "__main__":
plt.imshow(ImgLplcEnhance, cmap="gray")
plt.title("laplacian enhanced")
plt.axis("off")
plt.tight_layout()
plt.show()
+1
View File
@@ -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()
+1
View File
@@ -57,4 +57,5 @@ if __name__ == "__main__":
plt.imshow(img1, cmap="gray")
plt.title("ILPF滤波后重构图像")
plt.axis("off")
plt.tight_layout()
plt.show()
+1
View File
@@ -47,4 +47,5 @@ if __name__ == "__main__":
plt.imshow(img1, cmap="gray")
plt.title("重构图像")
plt.axis("off")
plt.tight_layout()
plt.show()
+1
View File
@@ -23,4 +23,5 @@ f1 = np.fft.ifftshift(fshift)
img1 = abs(np.fft.ifft2(f1))
plt.imshow(img1, cmap="gray")
plt.axis("off")
plt.tight_layout()
plt.show()