-
一个分水岭算法源代码。可用于图像分割。
一个分水岭算法的源代码。可以用于图像分割。-a watershed algorithm source code. Can be used for image segmentation.
- 2022-01-26 01:59:49下载
- 积分:1
-
B样条曲线插值程序,实现B样条曲线的经典算法
B样条曲线插值程序,实现B样条曲线的经典算法-B-spline curve interpolation procedures, B-spline curve to achieve the classic algorithm
- 2023-07-30 01:45:03下载
- 积分:1
-
DOS platform graphical treatment watercolors graphics, have practical value.
DOS平台下的图形水彩图形效果处理,有实用价值。-DOS platform graphical treatment watercolors graphics, have practical value.
- 2022-01-28 15:10:33下载
- 积分:1
-
matlab 的经典tool kit,来自麻省理工大学
matlab 的经典tool kit,来自麻省理工大学-matlab classic tool kit, from the Massachusetts Institute of Technology
- 2022-03-09 22:34:54下载
- 积分:1
-
光线跟踪
首先确定眼睛的位置和视线方向。然后确定从眼睛出发通过每个象素中心的光线方程。通过该光线求光线与场景中物体的最近交点。 若有交点,首先产生阴影测试光线,它是连接交点与光源的光线,然后计算该交点与光源间是否有阻挡物,如果没有则计算该点的Phong模型分量,若有阻挡物则不计算。若交点处的场景为反射表面,则产生反射光线,将此光线继续与场景求交。若交点处的场景具有透明性,则产生透射光线,将此光线继续与场景求交。 若无交点,则返回默认值。 最后将颜色填入相应象素中。 递归结束条件: 1.递归深度:预先设定一个递归深度值 2.光亮度值:如果反射或折射光线的光亮度贡献太小,可以忽略不计,则停止递归 本系统选择VS2008平台开发,采用MFC单文档结构作为系统的整体架构。其中,Object类为场景中物体的基类,从中派生出两个子类:Plane类和Sphere类,分别表示平面类和球面类。 Colour结构表示颜色,包含r,g,b三个颜色分量。 Material结构表示场景中物体的材质属性,包含,,三个分量,分别表示物体的漫反射系数、镜面反射系数和折射系数。 Vect结构表示场景中的点坐标。 Ray类表示光线或光源,当它表示光线时,它包含原点origin和单位方向向量dir;当它表示光源时,它还包含了光源颜色colour。 Hit类表示交点类,它包含交点处的法向量normal,交点所处的物体表面surface,交点系数t。 Scene类表示场景类,它包含物体指针数组objects,光源指针数组lights,场景物体个数nObjectCount,场景光源个数nLightCount。 CSceneLightDlg类为场景光源配置对话框,它里面显示了当前场景中的所有光源,用户可以在对话框中继续添加光源。 CSceneObjectDlg类为场景物体配置对话框,它里面显示了当前场景中的所有物体,用户可以在该对话框中继续添加物体。 CScenePictureDlg类为照片配置对话框,它里面显示当前人眼的位置、照片的大小、位置和分辨率。用户可以对该设置进行修改。 CRayTraceView类为框架的视图类,负责图片的显示。我在其中包含了一个Scene对象,光线跟踪的具体实
- 2022-03-19 03:38:04下载
- 积分:1
-
本文讨论了一个随机的
This paper addresses a stochastic-#ow network in which each arc or node has several capacities and may
fail. Given the demand d, we try to evaluate the system reliability that the maximum #ow of the network is
not less than d. A simple algorithm is proposed "rstly to generate all lower boundary points for d, and then
the system reliability can be calculated in terms of such points. One computer example is shown to illustrate
the solution procedure.-This paper addresses a stochastic-#ow network in which each arc or node has several capacities and may
fail. Given the demand d, we try to evaluate the system reliability that the maximum#ow of the network is
not less than d. A simple algorithm is proposed "rstly to generate all lower boundary points for d, and then
the system reliability can be calculated in terms of such points. One computer example is shown to illustrate
the solution procedure.
- 2022-09-22 09:45:03下载
- 积分:1
-
此源代码是关于图像平移、旋转、镜像、转置 的源代码,对VC的初学者有一定参考价值...
此源代码是关于图像平移、旋转、镜像、转置 的源代码,对VC的初学者有一定参考价值-this source code is on the image translation, rotation, mirroring, home to the source code, the right VC beginners a certain reference value
- 2022-11-05 19:50:03下载
- 积分:1
-
MARS + ASM sourced code + explanations + palette editor
MARS + ASM sourced code + explanations + palette editor-MARS+ ASM sourced code+ explanations+ palette editor
- 2023-05-14 22:45:03下载
- 积分:1
-
将小文件隐藏在BMP文件中
将小文件隐藏在BMP文件中-small BMP documents hidden in documents
- 2022-06-25 22:47:33下载
- 积分:1
-
matlab开发环境下的图像分割,效果好。分割快
matlab开发环境下的图像分割,效果好。分割快-Matlab development environment of image segmentation, good effect. Segmentation fast!
- 2023-06-24 08:05:03下载
- 积分:1