# How to use Rescale to make a brighter image?

I want to compose three single exposures into an RGB image.

I have three 2D arrays that represent each exposure and I can combine them into a 3D array, specifying the RGB values for each pixel. My problem is that the third exposure is not bright enough, and I want to make it brighter.

If I want to make an Image brighter, I just use Lighter[image] and that sorts it. But in this case, I want to increase the brightness of only one of the three exposures, so I think I need to work with the array.

In the documentation, they state:

How do I implement it?

What I have done:

Code for reference:

Module[
{imageR = array5000/Max[array5000],
imageG = array1000/Max[array1000],
imageB = array100/Max[array100],
rgb},
rgb = Table[{imageR[[i, j]], imageG[[i, j]], imageB[[i, j]]}, {i,
pixels}, {j, pixels}];
Export["buddhaBrot.jpg", Image[rgb]]
]


The result of

Image[array5000/Max[array5000]]


is too dark, whereas I would like it to be like

Lighter@Ligther@Image[array5000/Max[array5000]]

• Wait ... if you know that you want Lighter@Ligther@Image[array5000/Max[array5000]]. ... why don't you just do that? Mar 22, 2016 at 13:38
• Also, what are array5000 etc.? Mar 22, 2016 at 13:39
• Also, you can use the arguments of ImageAdjust[image, {contrast, brightness, gamma}] Mar 22, 2016 at 13:39
• BTW ... Have you seen this mathematica.stackexchange.com/q/9342/193 ? Mar 22, 2016 at 13:39
• Perhaps you mean ImageExposureCombine
– yode
Mar 22, 2016 at 13:41

First, convert your data arrays to images with Image[].

If your imageR and imageG have good brightness, and imageB is too dark:

meanIntensity = Mean[ImageMeasurements[#, "MeanIntensity"]& /@ {imageR, imageG}]