Issue
I have separated the RGB channels from Image to perform individual operations on one. Now I need to add them together. Please Suggest something.
Solution
You can just make a copy of the original image and then replace the channels of the copy with your RGB produced.
For Example:
img_cpy =img.copy()
img_cpy[:,:,0]=r
img_cpy[:,:,1]=g
img_cpy[:,:,2]=b
Make sure the shapes do match.
Answered By - Amit Rautray
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.