This commit is contained in:
louiscklaw
2025-01-31 22:56:58 +08:00
parent 57c7fd9332
commit b1cd1d4662
26 changed files with 6436 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import cv2
import numpy as np
# Load the image
img = cv2.imread("image_508.jpg")
# Set the G channel to zero
img[:, :, 1] = 0
# Display the modified image
cv2.imshow("Image without G channel", img)
cv2.waitKey(0)
cv2.destroyAllWindows()