当前位置:网站首页>[geometric vision] 4.2 piecewise linear transformation
[geometric vision] 4.2 piecewise linear transformation
2022-06-22 22:14:00 【AMOV-ANUU】
Be confused :
Gmax Fmax abcd Selected value // It's mentioned in the code
close all;clear all; clc;
R = imread('peppers.png'); % Read in original image , Assign a value to R
J = rgb2gray(R); % Convert color image data R convert to J
[M,N]=size(J); % Get the rows and columns of the gray image (M,N) For convenient use
x =1; y =1;
%% In order to highlight the objects of interest in the image , Carry out segmented transformation on the image
%%
for x= 1:M
for y = 1:N
if(J(x,y)<= 35) % For grayscale image data J To transform , The processed results are sent back to the matrix
H(x,y)=J(x,y)*10;
elseif (J(x,y)>35 && J(x,y))
H(x,y)=(10/7)*[J(x,y)-5]+50;
elseif(J(x,y)>75)
H(x,y)=(105/180)* [J(x,y)-75]+150;
end
end
end
figure,
subplot(121),imshow(J);
subplot(122),imshow(H);
%% The three-stage transformation method actually selects an interval , Use this interval difference to multiply the addition operation
%% In this algorithm The selection range is a= 35 b= 75 And the gray value is 0 -255 Between ...
%% Take the final calculation as an example c = 350 d = 360 Gmax = 465 Fmax = 255
边栏推荐
- Lesson 030: file system: introduce a big thing | after class test questions and answers
- 6-6 图的广度遍历-邻接矩阵实现
- v-if和v-for哪个优先级更高?
- Redis usage scenario sharing (project practice)
- Lesson 014-15: string (see lesson 27-32 of the new version of little turtle) | after class test questions and answers
- Lesson 016: sequence | after class test questions and answers
- Jericho uses DP and DM for IO key detection [chapter]
- CYCA少儿形体礼仪 深圳市培训成果考核圆满落幕
- 数据科学家是不是特有前途的职业?
- liunx 安装mysql
猜你喜欢

Lesson 025: Dictionary: after class test questions and answers when the index is not easy to use

自助圖書館系統-Tkinter界面和openpyxl錶格綜合設計案例

Can the characteristics of different network structures be compared? Ant & meituan & NTU & Ali proposed a cross architecture self supervised video representation learning method CaCl, performance SOTA
How to operate redis on the IntelliJ idea database console

6月25日PMI认证考点防疫要求及考场安排

勒索病毒横行下设备该如何进行加密防护

Cvpr2022 𞓜 feature decoupling learning and dynamic fusion for re captured images

KDD'22 | 阿里: 基于EE探索的精排CTR预估

Implementation of depth traversal adjacency table in Figure 6-7

IDC發布中國數據治理報告 億信華辰第一
随机推荐
6-6 图的广度遍历-邻接矩阵实现
322.零钱兑换
Campus errand management app Shaanxi Gechuang
localStorage、sessionStorage 和 cookie 的区别大总结
Lesson 028: Documents: because I know you, I will never forget the after-school test questions and answers [no title]
6月25日PMI认证考点防疫要求及考场安排
How to carry out encryption protection for equipment under extortion virus rampant
Android kotlin SP DP to PX
Crud+ form verification for spa project development
第030讲:文件系统:介绍一个高大上的东西 | 课后测试题及答案
Oracle数据库中文字符串和英文字符串的截取不同
Jerry's dynamic switching EQ document [chapter]
第018讲:函数:灵活即强大 | 课后测试题及答案
CyCa children's physique etiquette Shenzhen training results assessment successfully concluded
安卓kotlin sp dp转px
Système de bibliothèque libre - service - cas de conception complète de l'interface tkinter et du formulaire openpyxl
Redis usage scenario sharing (project practice)
The interception of Chinese and English strings in Oracle database is different
Lesson 027: Set: in my world, you are the only after-school test question and answer
Why do you think it is common for Chinese people to earn more than 10000 yuan a month?
