当前位置:网站首页>Why is it necessary to divide the variance by 255^2 when adding Gaussian noise using the imnoise function of MATLAB
Why is it necessary to divide the variance by 255^2 when adding Gaussian noise using the imnoise function of MATLAB
2022-04-23 03:38:00 【Blue area soldier】
because MATLAB For different types of image data , Normalize the variance to [0,1] Between , It can be calculated that ,uint8 Types of images , The range of variance is [0,255^2]( This means that the maximum variance of this type of image can only reach 255 The square of , You can write the calculation formula of variance and have a look , Of course, no image can achieve this value , It's just that according to the calculation formula of variance and the value range of image, the maximum can reach ), Then the variance value you want to add is 100, Namely
imnoise(I, ‘gaussian’, 0, 100/(255*255)).
And for double Types of images ,MATLAB The default value for the image is [0,1], Of course, you can be greater than 1, But more than 1 Value of imshow It's all white , Treat as a maximum . The image value is already in [0,1] Between , So you don't have to scale .
版权声明
本文为[Blue area soldier]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220602025466.html
边栏推荐
- Translation of l1-7 matrix columns in 2022 group programming ladder Simulation Competition (20 points)
- 深度学习笔记(二)——激活函数原理与实现
- Unity knowledge points (ugui 2)
- Application and definition of interface
- ROS series (I): rapid installation of ROS
- Database SQL -- simulate inserting a large amount of data, importing / exporting database scripts, timestamp conversion and database basics
- Definition format of array
- Unity basics 2
- 抽象类、接口、常用关键字
- Applet - more than two pieces of folding and expansion logic
猜你喜欢
Codeforces round 784 (Div. 4) (AK CF (XD) for the first time)
C interface
Seekbar custom style details
QT learning summary
Notes sur l'apprentissage profond (Ⅱ) - - Principe et mise en oeuvre de la fonction d'activation
Learn about I / O flow and file operations
2022 团体程序设计天梯赛 模拟赛 1-8 均是素数 (20 分)
Visual programming - drawing assignment
Basic use of Charles
STM32 advanced timer com event
随机推荐
Opencv4 QR code recognition test
Database - MySQL -- Navicat import SQL error 1067 - invalid default value for 'paydate‘
Three types of jump statements
The content of the website is prohibited from copying, pasting and saving as JS code
Wechat applet cloud database value assignment to array error
you need to be root to perform this command
Abstract classes, interfaces and common keywords
The fourth operation
Design and implementation of redis (1): understand data structures and objects
Talent Plan 学习营初体验:交流+坚持 开源协作课程学习的不二路径
Initial experience of talent plan learning camp: communication + adhering to the only way to learn open source collaborative courses
Design and implementation of redis (2): how to handle expired keys
AWS from entry to actual combat: creating accounts
2022 团体程序设计天梯赛 模拟赛 L2-3 浪漫侧影 (25 分)
Openvino only supports Intel CPUs of generation 6 and above
Concepts of objects and classes
ROS series (III): introduction to ROS architecture
Redis(17) -- Redis缓存相关问题解决
ROS series (I): rapid installation of ROS
Variables, constants, operators