Split the image into two parts.

7 ビュー (過去 30 日間)
odai kiwan
odai kiwan 2018 年 4 月 12 日
回答済み: Walter Roberson 2018 年 4 月 12 日
Split the image into two parts, right and left. Apply on the right part - The conversion of the logarithmic and the left exponential conversion. what's wrong with my code?
clc
clear
close all
%%Lets Start.
I = imread('2.jpg');
I = rgb2gray(I);
y = 15*log(1+double(I));
x = 1*(double(I).^1/100);
figure
imshow(uint8(y))
figure
imshow(double(x))
for i = 1:375
for j = 1:500
if (j<=250)
I(i,j) = 15*log(1+double(I(i,j)));
else
I(i,j) = 1*(double(I).^1/100);
end
end
end
figure
imshow(I)

採用された回答

Walter Roberson
Walter Roberson 2018 年 4 月 12 日
I(i,j) = 1*(double(I(i,j)).^1/100);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by