⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adjust.m

📁 Index to gray conversion in matlab
💻 M
字号:

passage = imread('passage.jpg');        % read the image

% adjust the contrast according to different slopes
adjusted =  imadjust(passage,  [0.1 ; 0.3],[0.2 ; 0.4]);
adjusted1 = imadjust (passage, [0.3 ; 0.5],[0.4 ; 0.6]);
adjusted2 = imadjust (passage, [0.2 ; 0.3],[0.3 ; 0.5]);
adjusted3 = imadjust (passage, [0.1 ; 0.6],[0.3 ; 0.8]);


imshow(passage);        % show original Image
figure, imshow(adjusted); title('[0.1 ; 0.3],[0.2 ; 0.4] ');    %show adjusted images
figure, imshow(adjusted1); title('[0.3 ; 0.5],[0.4 ; 0.6]');
figure, imshow(adjusted2); title('[0.2 ; 0.3],[0.3 ; 0.5] ');
figure, imshow(adjusted3); title('[0.1 ; 0.6],[0.3 ; 0.8]');


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -