当前位置:网站首页>[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
边栏推荐
- What is the C-end and what is the b-end? Let me tell you
- 关于mobx
- 深圳中国专利奖申报流程介绍,补贴100万
- CSRF attack
- 項目_基於網絡爬蟲的疫情數據可視化分析
- I was so excited about the college entrance examination in 2022
- 对象存储 S3 在分布式文件系统中的应用
- SAS判别分析(Bayes准则和proc discrim过程)
- Shenzhen Nanshan District specialized, special and new enterprise application conditions, with a subsidy of 100000-500000 yuan
- Inventory management and strategy mode
猜你喜欢

ZABBIX offline installation

Direct insert sort and shell sort

Merge sort and cardinality sort

Summary of pytorch classification problems

IRS application release 16: H5 application design guide

Conda安装Pytorch后numpy出现问题

Why can't Google search page infinite?

The emperors of the Ming Dynasty

How to use user-defined annotation for parameter verification

中间件_Redis_06_Redis的事务
随机推荐
Conda安装Pytorch后numpy出现问题
dma_ buf_ export
SAS cluster analysis (system cluster, dynamic cluster fastclus, variable cluster varclus)
数字ic设计自学ing
中国专利奖奖金多少,补贴100万
Introduction to China patent award policy support, with a subsidy of 1million yuan
Brief description of custom annotations
北京昌平区高新技术企业培育支持标准,补贴10万
项目_基于网络爬虫的疫情数据可视化分析
Project_ Visual analysis of epidemic data based on Web Crawler
北京中国专利奖政策支持介绍,补贴100万
SAS discriminant analysis (Bayes criterion and proc discrim process)
Summary of SAS final review knowledge points (notes on Application of multivariate statistics experiment)
对多线程的理解
明朝的那些皇帝
中间件_Redis_06_Redis的事务
北京密云区高新技术企业培育支持标准,补贴10万
Introduction to the policy support of Shenzhen China Patent Award, with a subsidy of 1million yuan
项目_基于网络爬虫的疫情数据可视化分析
Some tips for programmers to deal with stress
