-
GeometricVersion3
课程设计
几何图形(满分50 分)
版本1:满分10 分
设计抽象类GeometricObject 及其子类Triangle 和Circle。
GeometricObject 类设计要求如下:
■ 一个名为color 的Color 类型的私有数据域,表示对象的颜色。
■ 一个名为filled 的Boolean 类型的私有数据域,表示对象是否填充颜色。
■ 一个名为dateCreated 的Date 类型的私有数据域,表示对象的创建日期。
■ 一个无参构造方法。
■ 一个能创建特定color 和filled 的有参构造方法。
■ 相关数据域的访问器和修改器。
■ 两个个名为draw 和erase 的抽象方法。
■ 一个名为getArea 的抽象方法。
■ 一个名为getPerimeter 的抽象方法。
■ 重写toString 方法。
Triangle 类设计要求如下:
■ 三个名为side1、side2 和 side3 的double 类型的私有数据域表示三角形的三条边。它
们的默认值是1.0。要求三个数据域保留2 位小数。
■ 一个无参的构造方法创建默认三角形。
■ 一个能创建带指定side1、side2 和 side3 的有参构造方法。
■ 所有三个数据域的访问器和修改器方法。
■ 父类抽象方法的实现。
■ 重写toString 方法。
Circle 类(Curriculum Design
Geometry (out of 50)
Version 1: 10 points
Design an abstract class and its subclasses GeometricObject Triangle and Circle.
GeometricObject class design requirements are as follows:
■ a named color of the Color type private data field that indicates the object s color.
■ a Boolean type called filled private data field that indicates whether the object fill color.
■ Date type named dateCreated private data field, which means that the object was created.
■ a no-argument constructor.
■ one can create a specific color and filled in with arg constructor.
■ Related data field accessor and modifier.
■ two months called draw and erase the abstract methods.
■ an abstract method named getArea.
■ an abstract method named getPerimeter.
■ overridden toString method.
Triangle class design requirements are as follows:
■ three named side1, side2 and a double side3 private data field indicates the type of triangle with three sides. It
Our default value is 1.0. Requires)
- 2020-12-10 08:59:18下载
- 积分:1
-
TVMMcode
说明: 国外一个博士写的图像复原的源码 ,基于自适应的正则化的全变分图像复原,源码内有作者的主页,相应文章可以下载。代码测试,可用,效果不错 ,做这方面的同志可以下来看看 (Dr. written by a foreign source image restoration based on adaptive regularization total variation image restoration, source inside of the home page, the corresponding articles can be downloaded. Code test, available, good results, so this could be down to see Comrade)
- 2010-05-04 13:35:52下载
- 积分:1
-
demo
北航图像处理demo,目前集成了从色彩转换、彩色图像处理、灰度图像处理、二值图像处理、阈值分割、边缘检测、数学形态学方法、等多个组件(Northern image processing demo, now integrated from the color conversion, color image processing, gray-scale image processing, binary image processing, thresholding, edge detection, mathematical morphology, and many other components)
- 2014-05-21 19:46:11下载
- 积分:1
-
GUI_ImageAnalyzerV1.0
REWIND Project中图像篡改检测工具源代码(Matlab GUI for digital image forensic provided by REWIND Porject)
- 2016-04-18 11:22:31下载
- 积分:1
-
WaterMark_embed_and_pick
图像的嵌入与提取:VC++中在一个图像A中嵌入一图像B,并能把图像B提取出来。(Image embedding and extraction: VC++ in an image embedded in an image A, B, and B images can be extracted.)
- 2011-08-31 20:09:58下载
- 积分:1
-
tuxianzhuanzi
利用c++实现图像转置源代码,像素变换的一种方式(use Image home to the source code, pixel transform the way)
- 2006-06-11 17:09:19下载
- 积分:1
-
fish_full
实现鱼眼图 圆形视场和全视场的校正、分为2幅图像、4幅图像、任意角度、任意位置的校正、全景图拼接等(Fish eye diagram of a circular field of view and full field calibration is divided into two images, four images at any angle, any position of the correction, and panoramic stitching.)
- 2012-07-11 11:01:10下载
- 积分:1
-
DCT-matlab
全套的DCT域数字水印源代码matlab(A full set of digital watermarking of DCT-domain source code matlab)
- 2008-04-30 00:32:21下载
- 积分:1
-
Lagrange
对lagrange函数公式进行代码化,可以对一组数进行插值算法,可以输出最后的y值(The lagrange function formula code, a number of groups interpolation algorithm, you can output the final value of y)
- 2012-10-23 13:53:57下载
- 积分:1
-
k_uiniform
k均值算法的matlab程序,可直接运行。(k-means algorithm matlab procedures, can be directly run.)
- 2008-06-14 15:08:56下载
- 积分:1