필터 지우기
필터 지우기

How i save the output of this code please help..

조회 수: 1 (최근 30일)
Kamran shahani
Kamran shahani 2016년 11월 20일
댓글: Walter Roberson 2016년 11월 20일
%improve underwater image
%tic;
srcFiles = dir('C:\Users\Kamran\Documents\MATLAB\images\*.jpg'); % the folder in which ur images exists
for i = 1 : length(srcFiles)
filename = strcat('C:\Users\Kamran\Documents\MATLAB\images\',srcFiles(i).name);
I1 = imread(filename);
figure, imshow(I1);
end
% imshow(Il), title('original');
RGB=I1;
cform2lab=makecform('srgb2lab');
LAB= applycform(RGB, cform2lab);
%image onvert in to L*A*B color space
L=LAB(:,:,1);
LAB(:,:,1)=adapthisteq(L,'cliplimit', 0.02, 'Distribution', 'rayleigh');
cform2srgb=makecform('lab2srgb');
% convert back to RGB
J=applycform(LAB, cform2srgb);
%t=toc,
imshow(RGB), title('BEFOR CLAHE');
figure, imshow(J), title('AFETR CLAHE');
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 11월 20일
Are you sure that you want to read all of the images and display them all as figures, but then only process the very last image and none of the others??

댓글을 달려면 로그인하십시오.

답변 (1개)

KSSV
KSSV 2016년 11월 20일
You can save J after clahe into a image. Doc imwrite
  댓글 수: 2
Kamran shahani
Kamran shahani 2016년 11월 20일
i dont understand can u write for me and post
Walter Roberson
Walter Roberson 2016년 11월 20일
imwrite(J, 'YourOutput.png');

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by