MatlabCode_LeDecolor
%% The Code is created based on the method described in the following paper:
% [1] Q. Liu, G. Shao, Y. Wang, J. Gao, H. Leung, “Log-Euclidean Metrics for Contrast Preserving Decolorization”
% IEEE Trans. Image Process., pp, 2017.
% Author: Q. Liu, G. Shao, Y. Wang, J. Gao, H. Leung
% Date : 22/10/2016
% Version : 1.0
% The code and the algorithm are for non-comercial use only.
% Copyright 2016, Department of Electronic Information Engineering, Nanchang University.
% The current version is not optimized.
% LeDecolor - Log-Euclidean Metrics for Contrast Preserving Decolorization
% gIm = LeDecolor_v1(Im, gamma) performs contrast preserving decolorization
% on color image Im, with controling parameter gamma
%
% Paras:
% @Im : Input image (double), only color images are acceptable.
% @gamma : Controlling parameter defined in [1]. 0.2 by default.
%
% Example
% ==========
% Im = im2double(imread('6.png'));
% gIm = LeDecolor_v1(Im); % Default Parameters (gamma = 0.2)
% figure, imshow(Im,[]), figure, imshow(gIm,[]);
clear all;
clc;
close all;
Im = im2double(imread('6.png'));
gIm = LeDecolor_v1(Im,0.2); % Default Parameters (gamma = 0.2)
gIm = (gIm- min(gIm(:)))/(max(gIm(:)) - min(gIm(:)));
figure(22);imshow(Im,[]);
figure(23);imshow(gIm,[]);
引用格式
Qiegen Liu (2024). MatlabCode_LeDecolor (https://www.mathworks.com/matlabcentral/fileexchange/64142-matlabcode_ledecolor), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!MatlabCode_LeDecolor/
版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |