• 大小: 37KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-03
  • 语言: 其他
  • 标签:

资源简介

亮度代表了图像的明暗程度,颜色代表了图像的色度,它包含了色调和饱和度。这个代码可以自动对这三个参数进行调整。

资源截图

代码片段和文件信息

%AUTOLEVEL 
%-->Automatically adjusts brightness and color of images to optimum levels.

function autolevel
warning off
%--------------------------------------------------------------------------
[FileNamePathName] = uigetfile(‘*.jpg‘‘Select any image‘);
if PathName~=0
    y= [PathNameFileName];
    input_image=imread(y);
    %----------------------------------------------------------------------
    [m1 n1 r1]=size(input_image);
    if r1~=3
        error(‘AUTOLEVEL IS ONLY FOR COLORED IMAGES‘);
    else
        a=rgb2ntsc(input_image);
        %------------------------------------------------------------------
        my_limit=0.5;
        mean_adjustment=my_limit-mean(mean(a(::1)));
        %------------------------------------------------------------------
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3031  2008-10-23 18:55  Image-Auto-Adjustment\autolevel.m

     文件      43265  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do.htm

     文件        102  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\00th.png

     文件        102  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\20th.png

     文件        105  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\50th.png

     文件         96  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\90th.png

     文件        646  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\blue_band_536x5.gif

     文件         57  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\bullet.gif

     文件       6751  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\Captcha.htm

     文件      10514  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\cmnty1.css

     文件         70  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\doc.gif

     文件         97  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\dots_rnav.gif

     文件        152  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\dots_rnav_top.gif

     文件         64  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\exclamation.gif

     文件        145  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\fullstar.gif

     文件        145  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\fullstar_grey.gif

     文件        117  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\ltblue_top_nav_trans.gif

     文件        155  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\mail_brdr.gif

     文件       2569  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\mlc_logo.gif

     文件         64  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\question.gif

     文件         43  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\s25424848434516.gif

     文件       3444  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\site3.css

     文件         43  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\spacer.gif

     文件         66  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\submitfile.gif

     文件      39399  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\s_code.js

     文件        260  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files\xmlicon_30x12.gif

     文件        136  2008-10-22 18:47  Image-Auto-Adjustment\新建 文本文档.txt

     目录          0  2008-08-10 21:10  Image-Auto-Adjustment\loadFile.do_files

     目录          0  2008-10-23 18:30  Image-Auto-Adjustment

----------- ---------  ---------- -----  ----

............此处省略2个文件信息

评论

共有 条评论

相关资源