-
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
-
Weightbased-adaptive-image
基于形态学的权重自适应图像去噪;通过串并联的滤波降噪对比图,说明并联降噪的优越性(Heavy adaptive image denoising based on morphology right noise filtering by series-parallel comparison chart, show the advantages of parallel noise reduction)
- 2020-11-29 19:19:28下载
- 积分:1
-
A2FactSheet
安霸处理器芯片简介,用于图像处理的高性能处理器(ANba proceesor brief)
- 2011-12-10 12:08:46下载
- 积分:1
-
ml1
使用matlab实现的,基础单变量以及多变量梯度下降算法,和信号分类以及信号归一化部分算法,是机器学习领域最基本的代码,希望大家多多交流(matlab implementation of basic univariate and multivariate gradient descent and signal classification algorithms, machine learning basic code, hope that more exchanges)
- 2013-10-29 15:34:24下载
- 积分:1
-
colorhist
统计颜色直方图的matlab程序,解压缩后可以直接在MATLAB环境中运行(Color histogram statistics of the matlab program, unzip it directly in the MATLAB environment)
- 2008-05-13 23:05:29下载
- 积分:1
-
新建文件夹
在ycbcr颜色空间分割火焰,并找到火焰质心(Split the flame in the YCbCr color space and find the center of mass of the flame.)
- 2018-06-06 14:47:07下载
- 积分:1
-
LDPCdwt
说明: ldpc码在数字水印方面的研究,可加强对ldpc码的理解(the research about ldpc applied digital watermark,it can decrease ber and improve robutness)
- 2009-08-04 18:56:31下载
- 积分:1
-
meanshiftSegment
基于MeanShift算法将图像进行平滑处理去噪并分割(MeanShift algorithm based on smoothing the image de-noising and segmentation)
- 2010-03-15 09:17:52下载
- 积分:1
-
KMeansBMPSeg
模式识别经典方法之一 K均值算法(KMeans)进行图像分割 有完善的图形界面 可以通过柱状图的形式动态展示聚类程序(One of the classical method of pattern recognition K means algorithm (KMeans) for image segmentation has improved graphical interface can be dynamically displayed in the form of histogram clustering procedure)
- 2010-05-22 13:33:13下载
- 积分:1
-
adaptiveBievalueProcessOfImage
自适应门限二值化图像处理,自己最近完成的,还可以用,文件也加了两张图的效果,需要的可以试一试(Adaptive threshold binarization image processing, recently completed its own, but also can be used, the document also increase the effectiveness of the two plans, the needs may try it)
- 2008-12-24 13:27:17下载
- 积分:1