MatlabCode_LeDecolo​r

MatlabCode_LeDecolor(Log-Euclidean Metrics for Contrast Preserving Decolorization)
102 Downloads
Updated 16 Aug 2017

View License

%% 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,[]);

Cite As

Qiegen Liu (2026). MatlabCode_LeDecolor (https://se.mathworks.com/matlabcentral/fileexchange/64142-matlabcode_ledecolor), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Delaunay Triangulation in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0