当前位置:网站首页>[geometric vision] 4.2 piecewise linear transformation
[geometric vision] 4.2 piecewise linear transformation
2022-06-11 01:32: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
边栏推荐
- 关于mobx
- Understanding of multithreading
- 简述自定义注解
- IRS应用发布之十五:应用安全自测指南
- SAS主成分分析(求相关阵,特征值,单位特征向量,主成分表达式,贡献率和累计贡献率以及进行数据解释)
- About mobx
- SAS聚类分析(系统聚类cluster,动态聚类fastclus,变量聚类varclus)
- Oracle relational tables with XY field values are synchronized to PG database and converted to geometric fields
- HandlerMethodArgumentResolver(参数解析器)的作用+使用小案例
- Pd虚拟机安装系统提示 “网络初始化失败 操作失败 ”的解决方案
猜你喜欢

项目_基于网络爬虫的疫情数据可视化分析

SAS discriminant analysis (Bayes criterion and proc discrim process)
![[VBA Script] extract the information and pending status of all annotations in the word document](/img/dc/0db51d092cde019cef4113796e4882.png)
[VBA Script] extract the information and pending status of all annotations in the word document

对多线程的理解

什么是C端 什么是B端 这里告诉你

Yanrong looks at how to realize the optimal storage solution of data Lake in a hybrid cloud environment

【VBA脚本】提取word文档中所有批注的信息和待解决状态

Project_ Visual analysis of epidemic data based on Web Crawler

Multi interest recall model practice | acquisition technology

nodejs中使用mySql数据库
随机推荐
北京密云区高新技术企业培育支持标准,补贴10万
Docking of express bird system
Sealem finance builds Web3 decentralized financial platform infrastructure
项目_基于网络爬虫的疫情数据可视化分析
Set up a flag -- Reconstruct promise
立个flag--重构promise
Using completabilefuture
使用 CompletableFuture
How to write this with data and proc without SQL
Beijing Tongzhou District high tech enterprise cultivation support standard, with a subsidy of 100000 yuan
async await
I was so excited about the college entrance examination in 2022
項目_基於網絡爬蟲的疫情數據可視化分析
NVIDIA Jetson's PWM Fan custom control
Array simulation [queue] and [ring queue]_ code implementation
Yunna provincial administrative unit fixed assets management system
Yanrong looks at how to realize the optimal storage solution of data Lake in a hybrid cloud environment
用data和proc怎么写出这个,不用sql
焱融看|混合云环境下,如何实现数据湖最优存储解决方案
The file "setup" does not exist. What should I do?
