image thumbnail
from image bright control by sanjay agarwal
increase and decrease the brightness of an image

image_process.m
%% Add Two Images Together
% This code reads two JPG images,displays them,
% adds them together,then displays the result.

%% Load image data
% Reads in two JPG files with the ! imread ! command.
street1=imread('water.jpg');
street2=imread('winter.jpg');
size(street1)

%% Display image 1
%Here we display *image 1*
image(street1);
axis equal;axis off;

%% Display image 2
image(street2);
axis equal;axis off;

%% Scale and display image
%%
% 
% * Scale 
% * Display

duller =2.4 * street2;
image(duller);
axis equal; axis off;

%% Add the images
%
% $$C =I_1 +0.4I_2$$

combined=street1 + duller;
duller =2 * combined;
image(combined);
axis equal;axis off;


Contact us at files@mathworks.com