Add 3
This commit is contained in:
1 parent
06ff05090b
commit
3f76e3503f
8 files changed
+82
No files matched your search
@@ -29,15 +29,19 @@ if __name__ == "__main__":
|
||||
plt.subplot(241)
|
||||
plt.imshow(im1, cmap="gray")
|
||||
plt.title("darker")
|
||||
plt.axis("off")
|
||||
plt.subplot(242)
|
||||
plt.imshow(im2, cmap="gray")
|
||||
plt.title("brighter")
|
||||
plt.axis("off")
|
||||
plt.subplot(243)
|
||||
plt.imshow(im3, cmap="gray")
|
||||
plt.title("lower contrast")
|
||||
plt.axis("off")
|
||||
plt.subplot(244)
|
||||
plt.imshow(im4, cmap="gray")
|
||||
plt.title("equalized")
|
||||
plt.axis("off")
|
||||
plt.subplot(245)
|
||||
plt.hist(im1.flatten(), 256, [0, 256]) # type: ignore
|
||||
plt.subplot(246)
|
||||
|
||||
@@ -17,10 +17,13 @@ if __name__ == "__main__":
|
||||
plt.subplot(131)
|
||||
plt.imshow(im, cmap="gray")
|
||||
plt.title("original")
|
||||
plt.axis("off")
|
||||
plt.subplot(132)
|
||||
plt.imshow(im1, cmap="gray")
|
||||
plt.title("gamma = 0.5")
|
||||
plt.axis("off")
|
||||
plt.subplot(133)
|
||||
plt.imshow(im2, cmap="gray")
|
||||
plt.title("gamma = 1.5")
|
||||
plt.axis("off")
|
||||
plt.show()
|
||||
@@ -16,13 +16,17 @@ if __name__ == "__main__":
|
||||
plt.subplot(221)
|
||||
plt.imshow(ImgSmoothed1, cmap="gray")
|
||||
plt.title("smoothed1")
|
||||
plt.axis("off")
|
||||
plt.subplot(222)
|
||||
plt.imshow(ImgSmoothed2, cmap="gray")
|
||||
plt.title("smoothed2")
|
||||
plt.axis("off")
|
||||
plt.subplot(223)
|
||||
plt.imshow(ImgSmoothed3, cmap="gray")
|
||||
plt.title("smoothed3")
|
||||
plt.axis("off")
|
||||
plt.subplot(224)
|
||||
plt.imshow(ImgSharp, cmap="gray")
|
||||
plt.title("sharp")
|
||||
plt.axis("off")
|
||||
plt.show()
|
||||
@@ -46,25 +46,33 @@ if __name__ == "__main__":
|
||||
plt.subplot(241)
|
||||
plt.imshow(im1, cmap="gray")
|
||||
plt.title("salt and pepper")
|
||||
plt.axis("off")
|
||||
plt.subplot(242)
|
||||
plt.imshow(im11, cmap="gray")
|
||||
plt.title("blur")
|
||||
plt.axis("off")
|
||||
plt.subplot(243)
|
||||
plt.imshow(im12, cmap="gray")
|
||||
plt.title("median")
|
||||
plt.axis("off")
|
||||
plt.subplot(244)
|
||||
plt.imshow(im13, cmap="gray")
|
||||
plt.title("gaussian")
|
||||
plt.axis("off")
|
||||
plt.subplot(245)
|
||||
plt.imshow(im2, cmap="gray")
|
||||
plt.title("gaussian noise")
|
||||
plt.axis("off")
|
||||
plt.subplot(246)
|
||||
plt.imshow(im21, cmap="gray")
|
||||
plt.title("blur")
|
||||
plt.axis("off")
|
||||
plt.subplot(247)
|
||||
plt.imshow(im22, cmap="gray")
|
||||
plt.title("median")
|
||||
plt.axis("off")
|
||||
plt.subplot(248)
|
||||
plt.imshow(im23, cmap="gray")
|
||||
plt.title("gaussian")
|
||||
plt.axis("off")
|
||||
plt.show()
|
||||
@@ -12,10 +12,13 @@ if __name__ == "__main__":
|
||||
plt.subplot(131)
|
||||
plt.imshow(img, cmap="gray")
|
||||
plt.title("original")
|
||||
plt.axis("off")
|
||||
plt.subplot(132)
|
||||
plt.imshow(ImgLplc, cmap="gray")
|
||||
plt.title("laplacian")
|
||||
plt.axis("off")
|
||||
plt.subplot(133)
|
||||
plt.imshow(ImgLplcEnhance, cmap="gray")
|
||||
plt.title("laplacian enhanced")
|
||||
plt.axis("off")
|
||||
plt.show()
|
||||
Reference in new issue
Block a user