Rgb.txt

  • Uploaded by: asca
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Rgb.txt as PDF for free.

More details

  • Words: 32
  • Pages: 1
import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('Nama Picture.jpg') cv2.imshow("Original",img) B,G,R = cv2.split(img) zeros = np.zeros(img.shape[:2], dtype="uint8") cv2.imshow("Red",cv2.merge([zeros,zeros,R])) cv2.imshow("Green",cv2.merge([zeros,G,zeros])) cv2.imshow("Blue",cv2.merge([B,zeros,zeros])) plt.imshow(img) plt.xticks([]),plt.yticks([]) plt.show() cv2.waitKey(0) cv2.destroyAllWindows()

More Documents from "asca"

Rgb.txt
June 2020 5
Micro Econom I A
October 2019 18