MatlabCode_LeDecolo​r

MatlabCode_LeDecolor(Log-Euclidean Metrics for Contrast Preserving Decolorization)

Al momento, stai seguendo questo contributo

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

Cita come

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

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0.0.0