Split the image into two parts.
조회 수: 3 (최근 30일)
이전 댓글 표시
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)
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!