python - Extracting individual frames from an image -
i new python , want extract r, g , b frame separately image.
for instance, variable stores image img
what want know;
how make rimg = img (:,:,1)
gimg = img (:,:,2)
bimg = img (:,:,3)
ofcource, these matlab pseudo codes , rimg, gimg , bimg variables.
numpy style :
bimg = img[:,:,0] gimg = img[:,:,1] rimg = img[:,:,2]
opencv style :
b,g,r = cv2.split(img)
Comments
Post a Comment