资源简介
matlab 实现暗通道去雾算法 根据cvpr论文改编
代码片段和文件信息
function [JI JH JA] = color_histeq(I);
% function J = color_histeq(I);
% Perform a type of color histogram equalization
% Method is from Matlab‘s Contrast Enhancement Technique Website
srgb2lab = makecform(‘srgb2lab‘);
lab2srgb = makecform(‘lab2srgb‘);
I = applycform(I srgb2lab); % convert to L*a*b* color space
% the values of luminosity can span a range from 0 to 100; scale them
% to [0 1] range (appropriate for MATLAB(R) intensity images of class
% double before applying the three contrast enhancement techniques
max_luminosity = 100;
IL = I(::1)/max_luminosity;
% replace the luminosity layer with the processed data and then convert
% the image back to the RGB colorspace
% perform imadjust processing to luminosity layer
JI = I;
JI(::1) = imadjust(IL)*max_lumin
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1474 2010-03-18 04:30 color_histeq.m
文件 1248 2010-12-18 20:41 dark_channel.asv
文件 1346 2010-12-18 20:44 dark_channel.m
文件 582 2010-03-18 04:30 hazefree.m
文件 1055 2010-11-07 10:30 HazeRemovalREADME.m
文件 3652 2010-12-27 12:06 matLap.asv
文件 3653 2010-03-18 04:30 matLap.m
文件 477 2010-03-18 04:30 refine_t.m
文件 2557 2010-12-23 20:35 trans.asv
文件 2557 2010-12-23 20:39 trans.m
评论
共有 条评论