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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -