How to integrate two images

5 ビュー (過去 30 日間)
S DIVYA MEENA
S DIVYA MEENA 2019 年 10 月 12 日
コメント済み: S DIVYA MEENA 2019 年 10 月 16 日
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); %find image chromaticity
subplot(121); imagesc(I); title('Original image');
subplot(122); imagesc(L1);
title('Chromaticity image');
function [rgb] = chromaticity(RGB)
R = RGB(:,:,1); % extract the red channel
G = RGB(:,:,2); % extract the green channel
B = RGB(:,:,3); % extract the blue channel
V = R+G+B; % calculate summation of the 3 channels
r = R./V; % calculate the red channel chromaticity
g = G./V; % calculate the green channel chromaticity
b = B./V; % calculate the blue channel chromaticity
rgb = cat(3,r,g,b); %calculate the overall chromaticity
end
  2 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 10 月 12 日
編集済み: KALYAN ACHARJYA 2019 年 10 月 12 日
I have read about adapthisteq(I) to enhance the sharpness for gray images to remove shadow. Can you share related reference which you have been followed?
Please wait for @Walter's or @Image Analyst's comments / Answer?
S DIVYA MEENA
S DIVYA MEENA 2019 年 10 月 13 日
Thanks for the advice. However, i dint get expected rresults with adapthisteq(I). i have attached the reference paper that im following. kindly have a look.

サインインしてコメントする。

回答 (1 件)

Rajani Mishra
Rajani Mishra 2019 年 10 月 16 日
  1 件のコメント
S DIVYA MEENA
S DIVYA MEENA 2019 年 10 月 16 日
Thanks a lot for the links. I did try those. But it din't solve my problem, as my images are taken from aerial. Even after preprocessing, those techniques were not able to remove shadow.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with Image Processing Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by