登录
首页 » Others » 实验一 信息熵与图像熵计算

实验一 信息熵与图像熵计算

于 2020-11-30 发布
0 367
下载积分: 1 下载次数: 3

代码说明:

一、实验目的:1.复习MATLAB 的基本命令,熟悉MATLAB 下的基本函数。 2.复习信息熵基本定义, 能够自学图像熵定义和基本概念。 二、实验内容与原理:实验内容:1.能够写出MATLAB 源代码,求信源的信息熵。 2.根据图像熵基本知识,综合设计出MATLAB 程序,求出给定图像的图像熵。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 稀疏自码深度学习的Matlab实现
    稀疏自编码深度学习的Matlab实现,sparse Auto coding,Matlab codetrain, m/7% CS294A/CS294W Programming Assignment Starter CodeInstructions%%%This file contains code that helps you get started ontheprogramming assignment. You will need to complete thecode in sampleIMAgEsml sparseAutoencoder Cost m and computeNumericalGradientml For the purpose of completing the assignment, you domot need tochange the code in this filecurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencodtrain.m∥%%========%6% STEP 0: Here we provide the relevant parameters valuesthat willl allow your sparse autoencoder to get good filters; youdo not need to9 change the parameters belowvisibleSize =8*8; number of input unitshiddensize 25number of hidden unitssparsity Param =0.01; desired average activation ofthe hidden units7 (This was denoted by the greek alpharho, which looks like a lower-case pcurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod4/57train.,m∥in the lecture notes)1 ambda=0.0001%o weight decay parameterbeta 3%o weight of sparsity penalty term%%==:79 STEP 1: Implement sampleIMAGESAfter implementing sampleIMAGES, the display_networkcommand shouldfo display a random sample of 200 patches from the datasetpatches sampleIMAgES;display_network(patches(:, randi(size(patches, 2), 204, 1)), 8)%为产生一个204维的列向量,每一维的值为0~10000curer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod5/57train.m/v%中的随机数,说明是随机取204个 patch来显示%o Obtain random parameters thetatheta= initializeParameters ( hiddenSize, visibleSize)%%=============三三三三====================================97 STEP 2: Implement sparseAutoencoder CostYou can implement all of the components (squared errorcost, weight decay termsparsity penalty) in the cost function at once, butit may be easier to do%o it step-by-step and run gradient checking (see STEP3 after each stepWecurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod6/57train. m vb suggest implementing the sparseAutoencoder Cost functionusing the following steps(a) Implement forward propagation in your neural networland implement the%squared error term of the cost function. Implementbackpropagation tocompute the derivatives. Then (using lambda=beta=(run gradient Checking%to verify that the calculations corresponding tothe squared error costterm are correctcurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod7/57train. m vl(b) Add in the weight decay term (in both the cost funcand the derivativecalculations), then re-run Gradient Checking toverify correctnessl (c) Add in the sparsity penalty term, then re-run gradiChecking toverify correctnessFeel free to change the training settings when debuggingyour%o code. (For example, reducing the training set sizecurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod8/57train m vl/number of hidden units may make your code run fasterand setting betaand/or lambda to zero may be helpful for debuggingHowever, in yourfinal submission of the visualized weights, please useparameters web gave in Step 0 abovecoS七grad]sparseAutoencoderCost(theta, visibleSize,hiddensize, lambda,sparsityParam, beta,patches)二〓二二二二二二二〓二〓二〓二〓=二====〓=curer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod9/57train.m vlll96% STeP 3: Gradient CheckingHint: If you are debugging your code, performing gradienchecking on smaller modelsand smaller training sets (e. g, using only 10 trainingexamples and 1-2 hiddenunits) may speed things upl First, lets make sure your numerical gradient computationis correct for a%o simple function. After you have implemented computeNumerun the followingcheckNumericalGradientocurer:YiBinYUyuyibintony@163.com,WuYiUniversityDeep Learning, MATLAB Code for Sparse Autoencode10/57
    2020-12-05下载
    积分:1
  • STM32F103 模糊自整定位置式PID控制电机速度
    本代码是基于STM32F103ZET6和编码器直流电机编写的,模糊自整定位置PID控制电机转动速度的程序。并且是基于正点原子代码格式编写的,相对于普通位置式PID来说控制效果更好,是很好的算法优化。对于初学者有重要的参考研究意义。本代码工程书写规范,带有注释,分程序块编写。本人测试可靠可用,绝对良心。
    2020-12-05下载
    积分:1
  • 基于matlab的cdma通信系统的仿真
    基于matlab的cdma通信系统的仿真,本科毕业论文。
    2020-11-28下载
    积分:1
  • 具有多普勒频移的线性调频信号
    知道带宽、采样频率、T使用MATLAB仿真线性调频信号即LFM,同时具有多普勒频移时,匹配滤波后的波形变化。
    2020-12-10下载
    积分:1
  • 雷达信号脉冲描述字的测量
    matlab语言,学习可用,主要是雷达信号分析时计算信号的脉冲描述字
    2020-12-11下载
    积分:1
  • MATLAB SIMULINK通信系统建模仿真实例讲解 中DS_CDMA通信系统 代码
    MATLAB SIMULINK通信系统建模仿真实例讲解 中DS_CDMA通信系统 代码
    2020-12-01下载
    积分:1
  • 电压环LLC124kh,谐振变换器matlab仿真文件。
    【实例简介】电压环LLC124kh,谐振变换器matlab仿真文件。
    2021-11-01 00:33:12下载
    积分:1
  • crapto1gui软件
    是用该软件,在知道UID,tag challenge和reader challenge以及reader response,tag response可方便计算key
    2020-12-11下载
    积分:1
  • 基于51单片机的遥控小车设计(小车和遥控器)
    功能描述:通过nrf24l01无线控制小车,包括加速,减速,刹车,转向。优点:模块化好,易于裁剪
    2020-12-11下载
    积分:1
  • 在VB上直接使用VBA
    【实例简介】在VB上直接使用VBA控制word、excel其实很简单,但是很多新手包括本人刚开始的时候也是碰了一鼻子灰,看书全都是在讲VBA的,但在VB上怎么用这些指令? 仅供新手参考,高手勿鄙视。
    2021-11-14 00:41:09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载