From: bhavin on
hi
I have an image,A (2060 x 2600 pixels). I want to increase or decrease it brightness and save the new image,A'.
The colormap transfomrtion I need to use is

gamma = 1-b b>0
1/(1+b) if b<0


I tried using 'brighten' function to alter the brithness of the colormap. But then how to I save the new image. I tried saving it from the figure itself but the size of new image,A' is reduced to 815 x 601 pixels and it had a boundary line around it. I need them to be the same size.

Please help