On Oct 20, 2009, at 6:32 AM, Bishwarup Banerjee wrote:
Dear James,
Thank you very much for your response.
I have modified the code as follows:
r1, g1, b1 = img.split()
r2, g2, b2 = img1.split()
outR = ImageMath.eval("(a + b)", a=r1, b=r2)
outG = ImageMath.eval("(a + b)", a=g1, b=g2)
outB = ImageMath.eval("(a + b)", a=b1, b=b2)
out = Image.merge("RGB", (outR, outG, outB))
But, I am getting the same error "Value Error: Needs more than one
value to unpack"
Can you suggest any remedy?
With Warm Regards,
Bishwarup
Debugging code on a mailing list is hard, and insisting on the answer
again and again isn't a good strategy for getting help. Instead, put a
try/catch around your troubled code and drop into the pdb debugger
after catching the exception to examine your variables and look for
the problem. Maybe it's in the data you're splitting, but you're going
to have to look.
Cheers,
--
Sean