当前位置:网站首页>数字图像理论知识(一)(个人浅析)
数字图像理论知识(一)(个人浅析)
2022-07-28 18:00:00 【山河不见老】
目录
一、数字图像的表示
一幅图像可以被定义为一个二维函数 f ( x , y ) f(x,y) f(x,y),其中x和y是空间坐标,f是在任意坐标点处的振幅,代表图像在该点的亮度。灰度是用来表示黑白图像亮度的一个术语,而彩色图像是由单个二维图像组合形成。例如,RGB彩色系统中,一副彩色图像是由三幅独立的分量图像(红、绿、蓝)组成。因此许多图像处理技术适用于黑白和彩色图像,对二者而言是通用的。
1.1.1 坐标
图像关于x和y坐标以及振幅连续。要将这样的一幅图像转换成数字形式,就要求数字化坐标和振幅。将坐标值数字化称为采样;将振幅数字化称为量化。因此当f的x和y分量和振幅都是有限且离散的量时,称该图像为数字图像。
取样和量化后的结果时一个实数矩阵。设对一幅图像取样后得到了有M行N列的图像。我们称这幅图像的大小为MxN。坐标值(x,y)是离散量。
**注意:x的范围是从0M-1的整数,y的范围是从0N-1的整数。**图2.1(a)显示了这种定义。
而工具箱使用的是(r,c)来表示行和列,且系统的原点在(1,1)处,故r从1到M,c是从1到N的整数。如图2.1(b)所示
1.1.2 由图像的矩阵表示
由图2.1(a)所示的坐标系统可以得到如下数字化图像函数的表示:


1.2读取图像、






2.3 显示图像

2.4 保存图像







2.4.2 imwrite第二种用法





2.5 数据类型

2.6 图像类型

2.6.1 亮度图像

2.6.2 二值图像

2.7 数据类与图像类型间的转换
2.7.1 数据类间的转换
2.8 数组索引

2.8.1向量索引




2.8.2 矩阵索引








边栏推荐
- App自动化测试是怎么实现H5测试的
- Nokia expands its 5g agreement with BT and will become its largest wireless access device supplier
- Redis notes
- 在矩池云快速安装torch-sparse、torch-geometric等包
- Redis笔记
- WPF implements MessageBox message prompt box with mask
- editor.md中markdown编辑器的实现
- MATLAB实现的图像分割之边缘检测和连接
- MIR专题征稿 | 常识知识与推理:表示、获取与应用 (10月31日截稿)
- [network] cross area network communication learning classification and calculation of IPv4 address
猜你喜欢

How does app automated testing achieve H5 testing

Overcome the "fear of looking at teeth", and we use technology to change the industry

Rust Getting Started Guide (modules and engineering structures)

克服“看牙恐惧”,我们用技术改变行业

What parameters should be passed in calling integer or character array functions

shared_ PTR and make_ Use of shared

文章翻译软件-批量免费翻译软件支持各大翻译接口
![[wechat applet development] page navigation and parameter transmission](/img/10/76b6592fa9e71073831887c4fb6da9.png)
[wechat applet development] page navigation and parameter transmission

利用STM32的HAL库驱动1.54寸 TFT屏(240*240 ST7789V)

OpenOCD如何通过stlink直接下载程序到stm32板子(已解决)
随机推荐
Netcoreapi operation excel table
Nokia expands its 5g agreement with BT and will become its largest wireless access device supplier
这个客制化键盘,秀翻我了~
Scrapy Spider源码分析
Concurrent programming, do you really understand?
High beam software has obtained Alibaba cloud product ecological integration certification, and is working with Alibaba cloud to build new cooperation
leetcode day1 分数排名
架构基本概念和架构本质
My second blog - C language
Cloud computing notes part.2 - Application Management
WPF implements MessageBox message prompt box with mask
Integration and implementation of login click graphic verification code in personal blog system
MySQL8 Status Variables: Internal Temporary Tables and Files
Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 2)
App自动化测试是怎么实现H5测试的
亚马逊推出Amazon One手掌支付系统,非接触式掌静脉识别市场有望爆发
Redis notes
Common APIs in string
[notes] Apocalypse: list of practical experience and reflection of product managers
Cell review: single cell methods in human microbiome research