登录
首页 » Others » 光线追踪算法实现C++实现

光线追踪算法实现C++实现

于 2020-12-04 发布
0 133
下载积分: 1 下载次数: 5

代码说明:

课程作业写的光线追踪算法 包含说明文档C++代码编写场景文件包含 球体 三角形 平面 光源 材料质 镜面 漫反射

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

发表评论

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
  • 串口调试工具
    串口调试工具,可用户微信小程序蓝牙模块的指令收发测试
    2020-12-03下载
    积分:1
  • VS实现SQL数据库的增删改查
    提供最全的SQLserver和vs的全套代码,在VS上实现SQL数据困的增删改查的实例,本实例分为五个部分...欢迎下载哦...
    2020-12-06下载
    积分:1
  • 主要窗函数介绍.doc
    【实例简介】对数字信号处理过程中所用到的有关窗函数进行了说明,这些窗函数主要有:矩形窗函数、三角窗函数、巴特利特窗函数、广义余弦窗、汉宁窗函数、海明窗函数、布莱克曼窗函数、凯塞窗函数和切比雪夫窗函数等。
    2021-11-28 00:34:31下载
    积分:1
  • STM32F407开发板集成
    本程序集成了 AD8370、AD9851、CDCE937、ADS1271的驱动程序;有FFT复数变换、FIR滤波、IIR滤波STemwin5.32机械按键状态机(支持短按、长按、持续按、组合按)PS2键盘(使用串口接收数据)
    2020-12-01下载
    积分:1
  • CST studio suite 2016破解包以及详细安装和破解说明
    CST Studio Suite 2016安装教程2 1、解压安装包,运行“Setup.exe”,点击“install CST STUDIO SUITE 2016”开始安装。 2、点击NEXT。 3、允许用户协议 4、输入任意Name。 5、选择CST2016安装目录。6、选择安装类型,一般默认即可。 7、点击install开始安装。 8、安装完毕后取消勾选,点击finish退出。 9、回到安装包,打开安装包“fix”文件夹,右键点击“license.dat”以记事本方式打开。 10、用记事本打开License.dat,将第一行中的“localhost”,(
    2020-12-08下载
    积分:1
  • 利用matlab实现语音盲分离
    本文利用了独立变量分析的算法,用 matlab实现了语音信号的盲分离。这在语音识别,以及未来机器人智能化上起着至关重要的作用
    2020-12-12下载
    积分:1
  • MFC 根据分辨率自动缩放控件 图片控件缩放 VS2010译 按钮美化
    MFC 根据分辨率自动缩放控件 图片控件缩放 VS2010编译 按钮美化
    2020-06-03下载
    积分:1
  • MATLAB 交换两幅图像的幅度谱和相位谱,并实现双谱重构
    交换两幅图像的幅度谱和相位谱,并实现双谱重构!附有源代码和实验结构图。
    2020-12-05下载
    积分:1
  • 使用cryptapi进行数字签名demo
    调用cryptapi进行数字签名
    2020-12-09下载
    积分:1
  • 696524资源总数
  • 103816会员总数
  • 64今日下载