Login
Remember
Register
Ask a Question
How to Merge RGB band using python
0
votes
asked
Oct 2, 2023
in
Python Imaging Library
by
sharadyadav1986
How to Merge RGB band using python
merge-gb
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 2, 2023
by
sharadyadav1986
need to convert each channel into a luminosity channel. So instead of this:
red = Image.open("red.TIF")
you need to do this:
red = Image.open("red.TIF").convert('L')
rinse and repeat for G and B and you're done!
...