I have two images. The first one is original RGB image and the second one is the Chromaticity image of original image. I want to know how to re-integrate the Chromaticity image onto the original image, so that the original image becomes shadow free.
The objective is to remove shadow from the aerial images. So far, I have an obtained the Chromaticity image (without shadow). How should i proceed to produce shadow-free iamge.
I = im2double(imread('C:\Users\DIVYA MEENA\Desktop\ele2.jpg'));
L1 = chromaticity(I);
subplot(121); imagesc(I); title('Original image');
function [rgb] = chromaticity(RGB)
R = RGB(:,:,1);
G = RGB(:,:,2);
B = RGB(:,:,3);
V = R+G+B;
r = R./V;
g = G./V;
b = B./V;
rgb = cat(3,r,g,b);