Digital Image Processing(M):2.2.1 imadjust和stretchlim
来源:互联网 发布:穷人和富人的思维 知乎 编辑:程序博客网 时间:2024/06/05 06:45
灰度变换:
g = imadjust(f, [low_in high_in], [low_out high_out], gamma)
将low_in至high_in的值映射到low_out和high_out;low_in以下和low_out以上都会被截去。这四个参数都在[0 1]之间。
如果f是uint8,则imadjust通过乘255来实现。
stretchlim可以生成一个二元素向量,该向量有一个低限和一个高限组成。LOW_HIGH = stretchlim(f)
MATLAB:
function f = Image_Negatives()
f = imread('Fig0203(a).tif');
imshow(f);
%负片图像
g1 = imadjust(f, [0 1], [1 0]);
figure;
imshow(g1);
%将[0.5 0.75]扩展至[0 1]
g2 = imadjust(f, [0.5 0.75], [0 1]);
figure;
imshow(g2);
%gamma为2
g3 = imadjust(f, [], [],2);
figure, imshow(g3);
%使用stretclim来对比度拉伸
g4 = imadjust(f, stretchlim(f), []);
figure, imshow(g4);
g5 = imadjust(f, stretchlim(f), [1 0]);
figure, imshow(g5);
f:
g1: = 255-f
g2:
g3:
阅读全文
0 0
- Digital Image Processing(M):2.2.1 imadjust和stretchlim
- 灰度变换--imadjust和stretchlim
- 图像处理-灰度变换函数imadjust和stretchlim
- Digital Image Processing
- 灰度变换:imadjust and stretchlim
- Digital Image Processing : MSc Course
- Filter and Digital Image Processing
- Digital Image Processing: PIKS Scientific Inside
- Fundamentals of Three-Dimensional Digital Image Processing
- Digital Image Processing Second Edition 图片 Gonzalez
- Digital Image Processing---【形态学图像处理】
- Digital Image Processing with Application to Digital Cinema
- Digital Image Processing(3nd editioin)-Fourier Transform
- MATLAB Fundamentals of Digital Image and Video Processing
- Digital Image Processing Using MATLAB 之笔记一
- My understand of Euclidean distance in digital image processing
- 图像处理学习笔记之MATLAB中imhist、imadjust、stretchlim函数实现
- Digital Audio Signal Processing
- docker --helpmi帮助说明
- 探索Vue之简单双向绑定
- MYSQL函数及导出、导入数据库;执行SQL脚本
- 在浏览器中禁止拖动元素打开新界面
- SharedPreferences调用导致的ANR分析
- Digital Image Processing(M):2.2.1 imadjust和stretchlim
- 第五周(2) 后台代码解耦与客户端具体功能设计
- linux开启对外端口
- Android 布局属性大全(未整理)
- 数组旋转
- Java多线程简单实例
- [android 创建Fragment示例传递参数时的注意事项]
- WEB项目中MVC与MVVM的思考
- Tensorflow: Math基础