[go: up one dir, main page]

CN108876711B - Sketch generation method, server and system based on image feature points - Google Patents

Sketch generation method, server and system based on image feature points Download PDF

Info

Publication number
CN108876711B
CN108876711B CN201810635109.0A CN201810635109A CN108876711B CN 108876711 B CN108876711 B CN 108876711B CN 201810635109 A CN201810635109 A CN 201810635109A CN 108876711 B CN108876711 B CN 108876711B
Authority
CN
China
Prior art keywords
image
feature points
wavelet
edge
sketch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201810635109.0A
Other languages
Chinese (zh)
Other versions
CN108876711A (en
Inventor
王吉华
徐真
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Normal University
Original Assignee
Shandong Normal University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Normal University filed Critical Shandong Normal University
Priority to CN201810635109.0A priority Critical patent/CN108876711B/en
Publication of CN108876711A publication Critical patent/CN108876711A/en
Application granted granted Critical
Publication of CN108876711B publication Critical patent/CN108876711B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a sketch generation method, a server and a system based on image feature points. The sketch generation method based on the image feature points comprises the following steps: carrying out preprocessing operation on the obtained entity image; extracting feature points of the edges of the preprocessed entity images based on a wavelet self-adaptive Harris detection operator; and (3) fitting the contour of the extracted characteristic points of the edge of the entity image by adopting a segmented spline interpolation method to obtain a smooth and closed curve contour and generate a corresponding sketch. The method can improve the design efficiency and meet the use requirements of common designers.

Description

一种基于图像特征点的草图生成方法、服务器及系统A sketch generation method, server and system based on image feature points

技术领域technical field

本发明属于三维模型造型设计领域,尤其涉及一种基于图像特征点的草图生成方法、服务器及系统。The invention belongs to the field of three-dimensional model modeling and design, and in particular relates to a sketch generation method, server and system based on image feature points.

背景技术Background technique

随着科技水平的不断进步,人们对于三维模型的兴趣度逐步提高,三维建模已成为计算机研究领域中的一个热点话题。不论是在3D游戏设计、机械制造、智能家居还是在医疗等多领域中都会涉及到不同程度的三维模型。然而,随着客户需求不断提高,模型的设计效率也不断加快,在三维模型设计过程中草图的绘制是其中重要的一个环节,伴随生活步伐的加快,要求的模型也变得相对复杂,因而需要绘制的草图效率更高。With the continuous advancement of science and technology, people's interest in 3D models has gradually increased, and 3D modeling has become a hot topic in the field of computer research. Whether it is in 3D game design, machinery manufacturing, smart home, or medical treatment, 3D models will be involved in different degrees. However, with the continuous improvement of customer demand, the efficiency of model design is also accelerating. In the process of 3D model design, the drawing of sketches is an important link. Sketches are drawn more efficiently.

针对这方面的研究已有很多,比如:Peng等通过信息熵分析并构建草图的描述符,对手绘草图模型进行分析,刘凯、孙正兴等人提出一种生成三维复杂曲面的交互方法,支持用户通过修改手绘草图构建三维模型的形状,以及相关人员通过基于霍夫变换法和随机圆检测法(RCD)的轮廓几何特征识别方法的约束机制来完成草图的绘制等。There have been many researches in this area. For example, Peng et al. analyzed the hand-drawn sketch model through information entropy analysis and constructed a sketch descriptor. Liu Kai, Sun Zhengxing and others proposed an interactive method for generating three-dimensional complex surfaces, which supports users The shape of the 3D model is constructed by modifying the hand-drawn sketch, and the relevant personnel complete the drawing of the sketch through the constraint mechanism of the outline geometric feature recognition method based on the Hough transform method and the random circle detection method (RCD).

但是仍然存在以下几点问题:But there are still the following problems:

1)通过信息熵分析绘制草图描述符,结构较为单一,在草图设计过程中,线条及其轮廓绘制处理工作量较大,在关键点选择、线条的弯曲程度、平滑度的处理以及复杂图形的绘制方面,草绘方式的效率较低;1) The sketch descriptor is drawn through information entropy analysis, and the structure is relatively simple. In terms of drawing, the sketching method is less efficient;

2)尽管通过霍夫变换法和随机圆检测法可以对几何特征轮廓进行识别,但是识别的都是直线和圆弧的基本特征。而针对于弯曲的线框模型来说不具有适用性。比如:对带有弯曲拐点的图形以及凹凸不平的图形来说,霍夫变换法和随机圆检测法只能检测到图形中的直线和随机的线条,检测结果并不是很理想。而本发明直接在图像上处理,用基于小波自适应Harris检测算子直接在图像提取图像边缘点进一步对拐点、特征点进行提取,检测结果更为明确。2) Although the geometric feature outline can be identified by the Hough transform method and the random circle detection method, the basic features of straight lines and arcs are all recognized. It is not suitable for curved wireframe models. For example: for graphics with curved inflection points and uneven graphics, the Hough transform method and random circle detection method can only detect straight lines and random lines in the graphics, and the detection results are not very ideal. However, the present invention directly processes on the image, uses wavelet-based adaptive Harris detection operator to directly extract image edge points to further extract inflection points and feature points, and the detection result is more definite.

3)主流的草图绘制软件涉及的工具较多,普通用户在短时间内难以进行相关模型的绘制工作。3) The mainstream sketching software involves many tools, and it is difficult for ordinary users to draw related models in a short time.

综上所述,在实际设计过程中,随着客户的需求逐步提高,如何加快草图的绘制效率,提高模型的设计工作是设计师需要解决的重点问题。To sum up, in the actual design process, as the needs of customers gradually increase, how to speed up the drawing efficiency of sketches and improve the design work of models is the key problem that designers need to solve.

发明内容Contents of the invention

为了解决现有技术的不足,本发明的第一目的是提供了一种基于图像特征点的草图生成方法,其降低了时间复杂度,提高了绘制效率。In order to solve the deficiencies of the prior art, the first object of the present invention is to provide a sketch generation method based on image feature points, which reduces time complexity and improves drawing efficiency.

本发明的一种基于图像特征点的草图生成方法,包括:A method for generating sketches based on image feature points of the present invention, comprising:

对获取的实体图像进行预处理操作;Perform preprocessing operations on the acquired entity images;

基于小波自适应Harris检测算子来提取预处理后的实体图像边缘的特征点;Based on the wavelet adaptive Harris detection operator to extract the feature points of the edge of the preprocessed solid image;

采用分段样条插值法对提取的实体图像边缘的特征点进行轮廓的拟合,得到光滑封闭的曲线轮廓,生成相应草图。The feature points on the edge of the extracted solid image are fitted with the segmented spline interpolation method to obtain a smooth and closed curve profile, and the corresponding sketch is generated.

进一步的,对获取的实体图像进行预处理操作包括降噪处理以及实体图像的边界跟踪。Further, the preprocessing operation on the acquired entity image includes noise reduction processing and boundary tracking of the entity image.

由于图像在传输过程中可能会出现噪声污染使图像质量下降的现象,因此,首要的工作是对图像进行降噪处理。Since the image may be degraded by noise pollution during the transmission process, the first task is to denoise the image.

进一步的,依次采用中值滤波去噪方法和膨胀运算方法对获取的实体图像降噪。Further, the acquired entity image is denoised by sequentially adopting the median filter denoising method and the dilation operation method.

这样能够在去除图像的噪声的同时,保证图像的清晰度。In this way, the clarity of the image can be guaranteed while the noise of the image is removed.

进一步的,基于小波自适应Harris检测算子来提取预处理后的实体图像边缘的特征点的具体过程包括:Further, the specific process of extracting the feature points of the edge of the preprocessed entity image based on the wavelet adaptive Harris detection operator includes:

将预处理后的实体图像转化为二值图像;Convert the preprocessed entity image into a binary image;

计算二值图像在预设尺度上的水平和垂直方向分量,构造小波系数的模值和幅角;Calculate the horizontal and vertical components of the binary image on the preset scale, and construct the modulus and argument of the wavelet coefficient;

依据构造的小波系数的模值和幅角,计算二值图像在水平和垂直方向梯度;Calculate the gradient of the binary image in the horizontal and vertical directions according to the modulus and argument of the constructed wavelet coefficients;

依据二值图像在水平和垂直方向梯度,利用高斯函数对特征点高斯加权,同时加入欧氏距离,计算点与点之间的差值,生成一个矩阵元素值序列;According to the gradient of the binary image in the horizontal and vertical directions, use the Gaussian function to Gaussian weight the feature points, and add the Euclidean distance at the same time, calculate the difference between the points, and generate a matrix element value sequence;

在所述矩阵元素值序列中,通过计算每个图像像素的Harris响应值来进一步确定角点,通过基于小波自适应的Harris检测算子对提取图像边缘的特征点。In the matrix element value sequence, the corner point is further determined by calculating the Harris response value of each image pixel, and the feature point of the edge of the image is extracted by a wavelet-based adaptive Harris detection operator pair.

本发明的第二目的是提供一种基于图像特征点的草图生成服务器,其降低了时间复杂度,提高了绘制效率。The second object of the present invention is to provide a sketch generation server based on image feature points, which reduces time complexity and improves drawing efficiency.

本发明的一种基于图像特征点的草图生成服务器,包括:A kind of sketch generation server based on image feature points of the present invention comprises:

预处理模块,其被配置为:对获取的实体图像进行预处理操作;A preprocessing module, which is configured to: perform a preprocessing operation on the acquired entity image;

边缘特征点提取模块,其被配置为:基于小波自适应Harris检测算子来提取预处理后的实体图像边缘的特征点;The edge feature point extraction module is configured to: extract the feature points of the edge of the preprocessed entity image based on the wavelet adaptive Harris detection operator;

边缘特征点拟合模块,其被配置为:采用分段样条插值法对提取的实体图像边缘的特征点进行轮廓的拟合,得到光滑封闭的曲线轮廓,生成相应草图。The edge feature point fitting module is configured to: use a segmented spline interpolation method to fit the outline of the extracted feature points on the edge of the solid image to obtain a smooth and closed curve outline, and generate a corresponding sketch.

进一步的,在所述预处理模块中,对获取的实体图像进行预处理操作包括降噪处理以及实体图像的边界跟踪。Further, in the preprocessing module, performing preprocessing operations on the acquired entity image includes noise reduction processing and boundary tracking of the entity image.

进一步的,在所述预处理模块中,依次采用中值滤波去噪方法和膨胀运算方法对获取的实体图像降噪。Further, in the preprocessing module, the acquired entity image is denoised by sequentially adopting a median filter denoising method and an expansion operation method.

进一步的,所述边缘特征点提取模块,包括:Further, the edge feature point extraction module includes:

二值图像转化子模块,其被配置为:将预处理后的实体图像转化为二值图像;The binary image conversion submodule is configured to: convert the preprocessed entity image into a binary image;

小波系数的模值和幅角构造子模块,其被配置为:计算二值图像在预设尺度上的水平和垂直方向分量,构造小波系数的模值和幅角;The modulus and argument construction submodule of the wavelet coefficient is configured to: calculate the horizontal and vertical components of the binary image on a preset scale, and construct the modulus and argument of the wavelet coefficient;

水平和垂直方向梯度计算子模块,其被配置为:依据构造的小波系数的模值和幅角,计算二值图像在水平和垂直方向梯度;The horizontal and vertical direction gradient calculation sub-module is configured to: calculate the binary image gradient in the horizontal and vertical directions according to the modulus and argument of the constructed wavelet coefficients;

矩阵元素值序列生成子模块,其被配置为:依据二值图像在水平和垂直方向梯度,利用高斯函数对特征点高斯加权,同时加入欧氏距离,计算点与点之间的差值,生成一个矩阵元素值序列;The matrix element value sequence generation sub-module is configured to: use the Gaussian function to Gaussian weight the feature points according to the gradient of the binary image in the horizontal and vertical directions, and add the Euclidean distance at the same time, calculate the difference between the points, and generate a sequence of matrix element values;

特征点提取子模块,其被配置为:在所述矩阵元素值序列中,通过计算每个图像像素的Harris响应值来进一步确定角点,通过基于小波自适应的Harris检测算子对提取图像边缘的特征点。The feature point extraction submodule is configured to: in the matrix element value sequence, further determine the corner point by calculating the Harris response value of each image pixel, and extract the image edge by using a Harris detection operator based on wavelet adaptation feature points.

本发明的第三目的是提供一种基于图像特征点的草图生成系统,其降低了时间复杂度,提高了绘制效率。The third object of the present invention is to provide a sketch generation system based on image feature points, which reduces time complexity and improves drawing efficiency.

本发明的一种基于图像特征点的草图生成系统,包括上述所述的基于图像特征点的草图生成服务器。A sketch generation system based on image feature points according to the present invention includes the aforementioned sketch generation server based on image feature points.

与现有技术相比,本发明的有益效果是:Compared with prior art, the beneficial effect of the present invention is:

(1)本发明根据实体图像提取特征点,通过采用欧氏距离差控制Harris角点检测算子,结合分段样条插值算法勾勒出轮廓边缘,进而完成草图的设计,降低了时间复杂度,提高了绘制效率。(1) The present invention extracts feature points according to the solid image, controls the Harris corner detection operator by using the Euclidean distance difference, and outlines the contour edge in combination with the segmental spline interpolation algorithm, and then completes the design of the sketch, reducing the time complexity, Improved drawing efficiency.

(2)本发明从图像的角度出发,依据角点检测算法对图像关键点检测处理,经分段样条插值拟合完成草图生成工作,具有很好的草图绘制效果,能够提高设计效率,满足普通设计人员的使用。(2) From the perspective of the image, the present invention detects and processes the key points of the image according to the corner point detection algorithm, and completes the sketch generation work through the segmented spline interpolation fitting, which has a good sketch drawing effect, can improve the design efficiency, and satisfies the Common designer use.

附图说明Description of drawings

构成本申请的一部分的说明书附图用来提供对本申请的进一步理解,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。The accompanying drawings constituting a part of the present application are used to provide further understanding of the present application, and the schematic embodiments and descriptions of the present application are used to explain the present application, and do not constitute improper limitations to the present application.

图1是本发明的一种基于图像特征点的草图生成方法流程图。FIG. 1 is a flow chart of a sketch generation method based on image feature points in the present invention.

图2(a)是结构元素A。Fig. 2(a) is structural element A.

图2(b)是被处理的对象X。Figure 2(b) is the processed object X.

图2(c)是被处理的对象X膨胀运算后的结果。Figure 2(c) is the result of the processed object X after the dilation operation.

图3(a)是膨胀运算原始图。Figure 3(a) is the original graph of the dilation operation.

图3(b)是1次膨胀运算结果图。Figure 3(b) is a diagram of the results of one expansion operation.

图3(c)是2次膨胀运算结果图。Figure 3(c) is a graph of the results of the second expansion operation.

图3(d)是3次膨胀运算结果图。Figure 3(d) is a diagram of the results of three expansion operations.

图4(a)是花的初始轮廓。Figure 4(a) is the initial outline of the flower.

图4(b)是猴子的初始轮廓。Figure 4(b) is the initial outline of the monkey.

图5(a)是花的初始轮廓特征点。Figure 5(a) is the initial contour feature points of the flower.

图5(b)是猴子的初始轮廓特征点。Figure 5(b) is the initial contour feature points of the monkey.

图6(a)是B样条拟合示意图。Figure 6(a) is a schematic diagram of B-spline fitting.

图6(b)是最小二乘法拟合示意图。Figure 6(b) is a schematic diagram of least squares fitting.

图6(c)是三次分段样条插值拟合示意图。Fig. 6(c) is a schematic diagram of cubic sub-spline interpolation fitting.

图7(a)是三次分段样条插值拟合得到花的草图。Figure 7(a) is a sketch of the flower obtained by cubic sub-spline interpolation fitting.

图7(b)是三次分段样条插值拟合得到猴子的草图。Figure 7(b) is the sketch of the monkey obtained by cubic sub-spline interpolation fitting.

图8是本发明的一种基于图像特征点的草图生成服务器结构示意图。FIG. 8 is a schematic structural diagram of a sketch generation server based on image feature points in the present invention.

具体实施方式Detailed ways

应该指出,以下详细说明都是例示性的,旨在对本申请提供进一步的说明。除非另有指明,本文使用的所有技术和科学术语具有与本申请所属技术领域的普通技术人员通常理解的相同含义。It should be pointed out that the following detailed description is exemplary and intended to provide further explanation to the present application. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.

需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本申请的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步骤、操作、器件、组件和/或它们的组合。It should be noted that the terminology used here is only for describing specific implementations, and is not intended to limit the exemplary implementations according to the present application. As used herein, unless the context clearly dictates otherwise, the singular is intended to include the plural, and it should also be understood that when the terms "comprising" and/or "comprising" are used in this specification, they mean There are features, steps, operations, means, components and/or combinations thereof.

图1是本发明的一种基于图像特征点的草图生成方法流程图。FIG. 1 is a flow chart of a sketch generation method based on image feature points in the present invention.

如图1所示,本发明的一种基于图像特征点的草图生成方法,包括:As shown in Figure 1, a kind of sketch generation method based on image feature point of the present invention comprises:

S1:对获取的实体图像进行预处理操作。S1: Perform a preprocessing operation on the acquired entity image.

对获取的实体图像进行预处理操作包括降噪处理以及实体图像的边界跟踪。The preprocessing operation on the acquired entity image includes noise reduction processing and boundary tracking of the entity image.

由于图像在传输过程中可能会出现噪声污染使图像质量下降的现象,因此,首要的工作是对图像进行降噪处理。Since the image may be degraded by noise pollution during the transmission process, the first task is to denoise the image.

依次采用中值滤波去噪方法和膨胀运算方法对获取的实体图像降噪。The obtained solid image is denoised by using the median filter denoising method and the dilation operation method in turn.

这样能够在去除图像的噪声的同时,保证图像的清晰度。In this way, the clarity of the image can be guaranteed while the noise of the image is removed.

如图2(a)-图2(c)所示,膨胀运算方法包括:As shown in Figure 2(a)-Figure 2(c), the expansion operation method includes:

把如图2(a)所示的结构元素A平移a后得到Aa,若Aa击中X;Translate the structural element A shown in Figure 2(a) by a to get Aa, if Aa hits X;

如图2(b),记录点a,点a为图中阴影部分的点。As shown in Figure 2(b), record point a, which is the shaded point in the figure.

满足上述条件的点a组成的集合称X被A膨胀的结果。用公式表示为:D(X)={a|Aa↑X}=X A,如图2(c)所示,其中,X是被处理的对象,A是结构元素,对于任意一个在阴影部分的点a,Aa击中X,阴影部分为X被A膨胀的结果。The set of points a that satisfy the above conditions is called the result of X being expanded by A. Expressed as: D(X)={a|Aa↑X}=X A, as shown in Figure 2(c), where X is the object to be processed, A is the structural element, for any one in the shaded part At point a, Aa hits X, and the shaded part is the result of X being expanded by A.

通过膨胀运算的结果对比图,如图3(a)-图3(d)所示,将上述跟踪到的边界点进行中值滤波处理通过膨胀运算进行边界扩张,消除包含在图像目标区域中的细微噪声。The results of the expansion operation are compared, as shown in Figure 3(a)-Figure 3(d), the boundary points tracked above are subjected to median filtering processing and the boundary expansion is performed through the expansion operation to eliminate the pixels contained in the image target area fine noise.

S2:基于小波自适应Harris检测算子来提取预处理后的实体图像边缘的特征点。S2: Based on the wavelet adaptive Harris detection operator, the feature points of the edge of the preprocessed solid image are extracted.

基于小波自适应Harris检测算子来提取预处理后的实体图像边缘的特征点的具体过程包括:The specific process of extracting the feature points of the edge of the preprocessed solid image based on the wavelet adaptive Harris detection operator includes:

步骤S21:需要构造小波函数。设Φ(x,y)是一个二维平滑函数,那么沿着x和y方向的一阶导数定义为两个基本小波

Figure BDA0001701277320000061
Step S21: It is necessary to construct a wavelet function. Let Φ(x,y) be a two-dimensional smooth function, then the first-order derivatives along the x and y directions are defined as two basic wavelets
Figure BDA0001701277320000061

步骤S22:将两个方向上的基本小波与图像的卷积作为小波水平和垂直方向上的分量,则任意二维图像函数f(x,y)有两个小波变换分量,沿x水平方向的分量为:

Figure BDA0001701277320000062
Step S22: take the convolution of the basic wavelet and the image in two directions as the components in the horizontal and vertical directions of the wavelet, then any two-dimensional image function f(x, y) has two wavelet transform components. Servings are:
Figure BDA0001701277320000062

沿y垂直方向的分量为:

Figure BDA0001701277320000063
The component along the y-vertical direction is:
Figure BDA0001701277320000063

其中wt1和wt2为图像沿着x和y方向上的梯度值,这里b为常数。Where wt 1 and wt 2 are the gradient values of the image along the x and y directions, where b is a constant.

步骤S23:根据小波方向尺度j计算图像模值(公式1)和幅角(公式2),沿着梯度模量的局部最大值方向,进行角点检测。Step S23: Calculate the image modulus (formula 1) and argument (formula 2) according to the wavelet direction scale j, and perform corner detection along the direction of the local maximum value of the gradient modulus.

Figure BDA0001701277320000064
Figure BDA0001701277320000064

Figure BDA0001701277320000065
Figure BDA0001701277320000065

其中,

Figure BDA0001701277320000067
Figure BDA0001701277320000068
分别指的是在不同方向梯度上的模值。in,
Figure BDA0001701277320000067
and
Figure BDA0001701277320000068
Respectively refer to the modulus value on the gradient in different directions.

具体地,基于小波自适应Harris检测算子来提取预处理后的实体图像边缘的特征点的具体过程包括:Specifically, the specific process of extracting the feature points of the edge of the preprocessed solid image based on the wavelet adaptive Harris detection operator includes:

将预处理后的实体图像转化为二值图像;Convert the preprocessed entity image into a binary image;

计算二值图像在尺度i的水平和垂直方向分量,构造小波系数的模值和幅角;Calculate the horizontal and vertical components of the binary image at scale i, and construct the modulus and argument of the wavelet coefficients;

依据构造的小波系数的模值和幅角,计算二值图像在水平和垂直方向梯度;Calculate the gradient of the binary image in the horizontal and vertical directions according to the modulus and argument of the constructed wavelet coefficients;

Figure BDA0001701277320000066
Figure BDA0001701277320000066

其中,在公式(3)中,定义Vm,n是高斯窗口在(m,n)处的系数,A和B分别是沿着m和n方向的水平垂直分量;(m,n)表示高斯窗口的水平和垂直分量坐标系数。Among them, in formula (3), V m,n is defined as the coefficient of the Gaussian window at (m,n), and A and B are the horizontal and vertical components along the m and n directions respectively; (m,n) means Gaussian Coordinate coefficients for the window's horizontal and vertical components.

依据确定水平垂直分量,利用高斯函数对特征点高斯加权,同时加入欧氏距离,进行点与点之间的差值(用d表示,其中

Figure BDA0001701277320000071
生成矩阵X元素值序列;Based on the determination of the horizontal and vertical components, use the Gaussian function to Gaussian weight the feature points, and add the Euclidean distance at the same time, and perform the difference between points (denoted by d, where
Figure BDA0001701277320000071
Generates a sequence of matrix X element values;

Figure BDA0001701277320000072
Figure BDA0001701277320000072

在矩阵X中,通过计算每个图像像素的Harris响应值K来进一步确定角点,通过基于小波自适应的Harris检测算子对图像检测。In the matrix X, the corner point is further determined by calculating the Harris response value K of each image pixel, and the image is detected by the Harris detection operator based on wavelet adaptation.

K(m,n)=det[X(m,n)]-Y·tr2[X(m,n)] (4)K(m,n)=det[X(m,n)]-Y·tr 2 [X(m,n)] (4)

公式(4)中,det[X(m,n)]表示的是X矩阵的行列式的值,而tr2[X(m,n)]表示为矩阵X的迹;

Figure BDA0001701277320000073
为矩阵X的特征值;Y取推荐值0.05;In the formula (4), det[X(m,n)] represents the value of the determinant of the X matrix, and tr 2 [X(m,n)] represents the trace of the matrix X;
Figure BDA0001701277320000073
is the eigenvalue of the matrix X; the recommended value of Y is 0.05;

其中,通过X特征值的大小对图像点进行划分,当

Figure BDA0001701277320000074
Figure BDA0001701277320000075
都比较突出时,即值比较大时确定为角点;而当
Figure BDA0001701277320000076
Figure BDA0001701277320000077
值小于预设阈值时,不认为是角点;当其中
Figure BDA0001701277320000078
或者是
Figure BDA0001701277320000079
时,确定为边缘。Among them, the image points are divided by the size of the X feature value, when
Figure BDA0001701277320000074
and
Figure BDA0001701277320000075
are relatively prominent, that is, when the value is relatively large, it is determined as a corner point; and when
Figure BDA0001701277320000076
and
Figure BDA0001701277320000077
When the value is less than the preset threshold, it is not considered as a corner; when
Figure BDA0001701277320000078
or
Figure BDA0001701277320000079
, it is determined as an edge.

S3:采用分段样条插值法对提取的实体图像边缘的特征点进行轮廓的拟合,得到光滑封闭的曲线轮廓,生成相应草图。S3: Using the segmental spline interpolation method to fit the outline of the feature points on the edge of the extracted solid image, obtain a smooth and closed curve outline, and generate a corresponding sketch.

例如:采用三次样条插值处理:For example: using cubic spline interpolation processing:

步骤S31:经上述检测到实体图像的轮廓特征点后,通过三次样条函数拟合轮廓特征点。Step S31: After detecting the contour feature points of the solid image, fitting the contour feature points by cubic spline function.

步骤S32:将上述经检测和提取得到的数据点导入到origin中分段处理,按照数据点的坐标位置对x进行排序,将其结果放到数组c中,依次迭代处理,直到所有关键点有序。Step S32: Import the above detected and extracted data points into origin for segment processing, sort x according to the coordinate positions of the data points, put the results into the array c, and iteratively process until all the key points have sequence.

步骤S33:依据数组c的长度n,生成一个n*1的矩阵。Step S33: Generate an n*1 matrix according to the length n of the array c.

根据三次样条插值公式,

Figure BDA00017012773200000710
插值拟合,要使h0=0则j=1;因此,将y和x转变为与h有关的函数插值点;其中,hj表示样条插值上的特征点;hj-1表示hj前的插值点;xj-1,yj-1分别表示在hj-1插值点的横纵坐标;xj,yj分别表示hj插值点的横纵坐标。According to the cubic spline interpolation formula,
Figure BDA00017012773200000710
Interpolation fitting, to make h 0 =0 then j=1; therefore, transform y and x into function interpolation points related to h; where, h j represents the feature point on the spline interpolation; h j-1 represents h The interpolation point before j ; x j-1 and y j-1 represent the horizontal and vertical coordinates of the interpolation point at h j-1 respectively; x j and y j represent the horizontal and vertical coordinates of the interpolation point of h j respectively.

步骤S34:根据关键点和平滑度,依次调用数组c中的数据点,通过三次分段样条插值法进行拟合操作,拟合出平滑的样条曲线,最终得到完整的草图轮廓,交于设计师审核处理。Step S34: According to the key points and smoothness, sequentially call the data points in the array c, perform the fitting operation through the cubic sub-spline interpolation method, fit a smooth spline curve, and finally obtain the complete outline of the sketch, and intersect in Designer review process.

下面给出一个实际应用例:A practical application example is given below:

利用花和猴子的照片为例来说明草图绘制的过程及本发明的优越性。Utilize the photograph of flower and monkey as example to illustrate the process of drafting and the superiority of the present invention.

步骤一:在客户给定的两张图像上进行处理,为了方便对图像进行去噪和增强等功能的处理,分别将两幅实例图转化为灰度图像。采用边界跟踪算法,在灰度图像中找到跟踪的起始点,并由该点出发在八邻域内进行边界跟踪,经膨胀运算和坐标化后,记录其位置坐标。Step 1: Process on the two images given by the customer. In order to facilitate the processing of image denoising and enhancement, the two example images are converted into grayscale images. Using the boundary tracking algorithm, find the starting point of the tracking in the gray image, and start from this point to track the boundary in the eight neighborhoods, and record its position coordinates after expansion operation and coordinates.

步骤二:为进行比较和分析,进行等距离隔点采样预处理,并记录点的位置坐标和采样点的个数,如图4(a)所示,其中花的初始轮廓点个数为3804个,响应时间为2.632207s;而如图4(b)所示的猴子的初始轮廓点个数为2295个,响应时间为1.229416s。Step 2: For comparison and analysis, carry out sampling preprocessing at equidistant intervals, and record the position coordinates of the points and the number of sampling points, as shown in Figure 4(a), where the number of initial contour points of flowers is 3804 , the response time is 2.632207s; while the number of initial contour points of the monkey shown in Figure 4(b) is 2295, and the response time is 1.229416s.

步骤三:通过在传统Harris算法中加入小波函数和欧氏距离差,本发明能够保证图像轮廓局部特征完整的情况下,短时间内获得图像特征点如图5(a)-图5(b)所示。Step 3: By adding wavelet function and Euclidean distance difference to the traditional Harris algorithm, the present invention can ensure that the local features of the image contour are complete, and obtain image feature points in a short time as shown in Figure 5(a)-Figure 5(b) shown.

步骤四:三次分段样条插值处理。Step 4: Cubic segmental spline interpolation processing.

分别利用B样条拟合、最小二乘法拟合以及三次分段样条插值拟合的结果,如图6(a)-图6(c)所示。The results of B-spline fitting, least squares fitting and cubic piecewise spline interpolation fitting are shown in Figure 6(a)-Figure 6(c).

以三次分段样条插值拟合,最终构造的花草图见图7(a),猴子的草图如图7(b)所示。Fitting with cubic sub-spline interpolation, the final sketch of the flower is shown in Figure 7(a), and the sketch of the monkey is shown in Figure 7(b).

在本实例中,以花和猴子的图片为例,选取了几种角点检测算法,并对其进行了比较,详细的比较结果见表1和表2所示,实验结果表明本发明具有一定的优越性。In this example, taking the pictures of flowers and monkeys as an example, several corner detection algorithms are selected and compared. The detailed comparison results are shown in Table 1 and Table 2. The experimental results show that the present invention has certain advantages. superiority.

表1花检测结果Table 1 Flower detection results

原始图像The original image Moravec算法Moravec algorithm Fast算法Fast Algorithm 本文算法Algorithm 初始采样点initial sampling point 38043804 1717 524524 270270 响应时间Response time 2.632207s2.632207s 7.430317s7.430317s 2.915905s2.915905s 1.028065s1.028065s

表2猴子检测结果Table 2 monkey detection results

原始图像The original image Moravec算法Moravec algorithm Fast算法Fast Algorithm 本文算法Algorithm 初始采样点initial sampling point 22952295 4040 762762 351351 响应时间Response time 1.229416s1.229416s 2.225066s2.225066s 1.291240s1.291240s 1.404667s1.404667s

从表中可以看出,本发明提出的基于小波的Harris角点检测花的实例图关键点个数为270个,响应时间为1.028065s;基于小波的Harris角点检测实例猴子图关键点个数为351个,响应时间为1.404667s。在用时上,可以在较少的时间内获得准确的特征点,对于设计人员手工方式绘制草图来说,节省了时间,提高了效率。As can be seen from the table, the Harris corner point detection example figure key point number based on wavelet that the present invention proposes is 270, and the response time is 1.028065s; The Harris corner point detection example monkey figure key point number based on wavelet There are 351, and the response time is 1.404667s. In terms of time, accurate feature points can be obtained in less time, which saves time and improves efficiency for designers to draw sketches manually.

本发明还提供了一种基于图像特征点的草图生成服务器,其降低了时间复杂度,提高了绘制效率。The invention also provides a sketch generation server based on image feature points, which reduces time complexity and improves drawing efficiency.

如图8所示,本发明的一种基于图像特征点的草图生成服务器,包括:As shown in Figure 8, a kind of sketch generation server based on image feature points of the present invention includes:

(1)预处理模块,其被配置为:对获取的实体图像进行预处理操作。(1) A preprocessing module, which is configured to: perform a preprocessing operation on the acquired entity image.

具体地,在所述预处理模块中,对获取的实体图像进行预处理操作包括降噪处理以及实体图像的边界跟踪。Specifically, in the preprocessing module, performing preprocessing operations on the acquired entity image includes noise reduction processing and boundary tracking of the entity image.

具体地,在所述预处理模块中,依次采用中值滤波去噪方法和膨胀运算方法对获取的实体图像降噪。Specifically, in the preprocessing module, the acquired entity image is denoised by sequentially adopting a median filter denoising method and an expansion operation method.

(2)边缘特征点提取模块,其被配置为:基于小波自适应Harris检测算子来提取预处理后的实体图像边缘的特征点。(2) An edge feature point extraction module, which is configured to: extract feature points of the edge of the preprocessed entity image based on a wavelet adaptive Harris detection operator.

具体地,所述边缘特征点提取模块,包括:Specifically, the edge feature point extraction module includes:

二值图像转化子模块,其被配置为:将预处理后的实体图像转化为二值图像;The binary image conversion submodule is configured to: convert the preprocessed entity image into a binary image;

小波系数的模值和幅角构造子模块,其被配置为:计算二值图像在预设尺度上的水平和垂直方向分量,构造小波系数的模值和幅角;The modulus and argument construction submodule of the wavelet coefficient is configured to: calculate the horizontal and vertical components of the binary image on a preset scale, and construct the modulus and argument of the wavelet coefficient;

水平和垂直方向梯度计算子模块,其被配置为:依据构造的小波系数的模值和幅角,计算二值图像在水平和垂直方向梯度;The horizontal and vertical direction gradient calculation sub-module is configured to: calculate the binary image gradient in the horizontal and vertical directions according to the modulus and argument of the constructed wavelet coefficients;

矩阵元素值序列生成子模块,其被配置为:依据二值图像在水平和垂直方向梯度,利用高斯函数对特征点高斯加权,同时加入欧氏距离,计算点与点之间的差值,生成一个矩阵元素值序列;The matrix element value sequence generation sub-module is configured to: use the Gaussian function to Gaussian weight the feature points according to the gradient of the binary image in the horizontal and vertical directions, and add the Euclidean distance at the same time, calculate the difference between the points, and generate a sequence of matrix element values;

特征点提取子模块,其被配置为:在所述矩阵元素值序列中,通过计算每个图像像素的Harris响应值来进一步确定角点,通过基于小波自适应的Harris检测算子对提取图像边缘的特征点。The feature point extraction submodule is configured to: in the matrix element value sequence, further determine the corner point by calculating the Harris response value of each image pixel, and extract the image edge by using a Harris detection operator based on wavelet adaptation feature points.

(3)边缘特征点拟合模块,其被配置为:采用分段样条插值法对提取的实体图像边缘的特征点进行轮廓的拟合,得到光滑封闭的曲线轮廓,生成相应草图。(3) The edge feature point fitting module is configured to: use the segmented spline interpolation method to fit the outline of the extracted feature points on the edge of the solid image, obtain a smooth and closed curve outline, and generate a corresponding sketch.

本发明根据实体图像提取特征点,通过采用欧氏距离差控制Harris角点检测算子,结合分段样条插值算法勾勒出轮廓边缘,进而完成草图的设计,降低了时间复杂度,提高了绘制效率。The invention extracts feature points according to the solid image, controls the Harris corner detection operator by using the Euclidean distance difference, and combines the segmental spline interpolation algorithm to outline the outline edge, and then completes the design of the sketch, reduces the time complexity, and improves the drawing efficiency.

本发明从图像的角度出发,依据角点检测算法对图像关键点检测处理,经分段样条插值拟合完成草图生成工作,具有很好的草图绘制效果,能够提高设计效率,满足普通设计人员的使用。From the perspective of image, the present invention detects and processes the key points of the image according to the corner point detection algorithm, and completes the sketch generation work through segmental spline interpolation fitting, which has a good sketch drawing effect, can improve design efficiency, and satisfies ordinary designers usage of.

本发明还提供了一种基于图像特征点的草图生成系统,其降低了时间复杂度,提高了绘制效率。The invention also provides a sketch generation system based on image feature points, which reduces time complexity and improves drawing efficiency.

本发明的一种基于图像特征点的草图生成系统,包括如图8所示的基于图像特征点的草图生成服务器。A sketch generation system based on image feature points according to the present invention includes a sketch generation server based on image feature points as shown in FIG. 8 .

本发明根据实体图像提取特征点,通过采用欧氏距离差控制Harris角点检测算子,结合分段样条插值算法勾勒出轮廓边缘,进而完成草图的设计,降低了时间复杂度,提高了绘制效率。The invention extracts feature points according to the solid image, controls the Harris corner detection operator by using the Euclidean distance difference, and combines the segmental spline interpolation algorithm to outline the outline edge, and then completes the design of the sketch, reduces the time complexity, and improves the drawing efficiency.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(RandomAccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.

上述虽然结合附图对本发明的具体实施方式进行了描述,但并非对本发明保护范围的限制,所属领域技术人员应该明白,在本发明的技术方案的基础上,本领域技术人员不需要付出创造性劳动即可做出的各种修改或变形仍在本发明的保护范围以内。Although the specific implementation of the present invention has been described above in conjunction with the accompanying drawings, it does not limit the protection scope of the present invention. Those skilled in the art should understand that on the basis of the technical solution of the present invention, those skilled in the art do not need to pay creative work Various modifications or variations that can be made are still within the protection scope of the present invention.

Claims (8)

1.一种基于图像特征点的草图生成方法,其特征在于,包括:1. A sketch generation method based on image feature points, characterized in that, comprising: 对获取的实体图像进行预处理操作;Perform preprocessing operations on the acquired entity images; 基于小波自适应Harris检测算子来提取预处理后的实体图像边缘的特征点;Based on the wavelet adaptive Harris detection operator to extract the feature points of the edge of the preprocessed solid image; 采用分段样条插值法对提取的实体图像边缘的特征点进行轮廓的拟合,得到光滑封闭的曲线轮廓,生成相应草图;Using the segmented spline interpolation method to fit the outline of the feature points on the edge of the extracted solid image, obtain a smooth and closed curve outline, and generate a corresponding sketch; 基于小波自适应Harris检测算子来提取预处理后的实体图像边缘的特征点的具体过程包括:The specific process of extracting the feature points of the edge of the preprocessed solid image based on the wavelet adaptive Harris detection operator includes: 将预处理后的实体图像转化为二值图像;Convert the preprocessed entity image into a binary image; 计算二值图像在预设尺度上的水平和垂直方向分量,构造小波系数的模值和幅角;Calculate the horizontal and vertical components of the binary image on the preset scale, and construct the modulus and argument of the wavelet coefficient; 依据构造的小波系数的模值和幅角,计算二值图像在水平和垂直方向梯度;Calculate the gradient of the binary image in the horizontal and vertical directions according to the modulus and argument of the constructed wavelet coefficients; 依据二值图像在水平和垂直方向梯度,利用高斯函数对特征点高斯加权,同时加入欧氏距离,计算点与点之间的差值,生成一个矩阵元素值序列;According to the gradient of the binary image in the horizontal and vertical directions, use the Gaussian function to Gaussian weight the feature points, and add the Euclidean distance at the same time, calculate the difference between the points, and generate a matrix element value sequence; 在所述矩阵元素值序列中,通过计算每个图像像素的Harris响应值来进一步确定角点,通过基于小波自适应的Harris检测算子对提取图像边缘的特征点。In the matrix element value sequence, the corner point is further determined by calculating the Harris response value of each image pixel, and the feature point of the edge of the image is extracted by a wavelet-based adaptive Harris detection operator pair. 2.如权利要求1所述的一种基于图像特征点的草图生成方法,其特征在于,对获取的实体图像进行预处理操作包括降噪处理以及实体图像的边界跟踪。2. A sketch generation method based on image feature points as claimed in claim 1, wherein the preprocessing operation on the acquired entity image includes noise reduction processing and boundary tracking of the entity image. 3.如权利要求2所述的一种基于图像特征点的草图生成方法,其特征在于,依次采用中值滤波去噪方法和膨胀运算方法对获取的实体图像降噪。3. A method for generating sketches based on image feature points as claimed in claim 2, characterized in that, the acquired entity image is denoised by sequentially adopting a median filter denoising method and an expansion operation method. 4.一种基于图像特征点的草图生成服务器,其特征在于,包括:4. A sketch generation server based on image feature points, characterized in that, comprising: 预处理模块,其被配置为:对获取的实体图像进行预处理操作;A preprocessing module, which is configured to: perform a preprocessing operation on the acquired entity image; 边缘特征点提取模块,其被配置为:基于小波自适应Harris检测算子来提取预处理后的实体图像边缘的特征点;The edge feature point extraction module is configured to: extract the feature points of the edge of the preprocessed entity image based on the wavelet adaptive Harris detection operator; 边缘特征点拟合模块,其被配置为:采用分段样条插值法对提取的实体图像边缘的特征点进行轮廓的拟合,得到光滑封闭的曲线轮廓,生成相应草图;The edge feature point fitting module is configured to: use the segmented spline interpolation method to perform contour fitting on the feature points of the extracted solid image edge, obtain a smooth and closed curve contour, and generate a corresponding sketch; 基于小波自适应Harris检测算子来提取预处理后的实体图像边缘的特征点的具体过程包括:The specific process of extracting the feature points of the edge of the preprocessed solid image based on the wavelet adaptive Harris detection operator includes: 将预处理后的实体图像转化为二值图像;Convert the preprocessed entity image into a binary image; 计算二值图像在预设尺度上的水平和垂直方向分量,构造小波系数的模值和幅角;Calculate the horizontal and vertical components of the binary image on the preset scale, and construct the modulus and argument of the wavelet coefficient; 依据构造的小波系数的模值和幅角,计算二值图像在水平和垂直方向梯度;Calculate the gradient of the binary image in the horizontal and vertical directions according to the modulus and argument of the constructed wavelet coefficients; 依据二值图像在水平和垂直方向梯度,利用高斯函数对特征点高斯加权,同时加入欧氏距离,计算点与点之间的差值,生成一个矩阵元素值序列;According to the gradient of the binary image in the horizontal and vertical directions, use the Gaussian function to Gaussian weight the feature points, and add the Euclidean distance at the same time, calculate the difference between the points, and generate a matrix element value sequence; 在所述矩阵元素值序列中,通过计算每个图像像素的Harris响应值来进一步确定角点,通过基于小波自适应的Harris检测算子对提取图像边缘的特征点。In the matrix element value sequence, the corner point is further determined by calculating the Harris response value of each image pixel, and the feature point of the edge of the image is extracted by a wavelet-based adaptive Harris detection operator pair. 5.如权利要求4所述的一种基于图像特征点的草图生成服务器,其特征在于,在所述预处理模块中,对获取的实体图像进行预处理操作包括降噪处理以及实体图像的边界跟踪。5. a kind of sketch generation server based on image feature point as claimed in claim 4, is characterized in that, in described preprocessing module, carrying out preprocessing operation to the entity image that obtains comprises denoising processing and the boundary of entity image track. 6.如权利要求5所述的一种基于图像特征点的草图生成服务器,其特征在于,在所述预处理模块中,依次采用中值滤波去噪方法和膨胀运算方法对获取的实体图像降噪。6. a kind of sketch generation server based on image feature point as claimed in claim 5, it is characterized in that, in described preprocessing module, adopt median filter denoising method and dilation operation method successively to reduce the entity image that obtains noise. 7.如权利要求4所述的一种基于图像特征点的草图生成服务器,其特征在于,所述边缘特征点提取模块,包括:7. a kind of sketch generation server based on image feature point as claimed in claim 4, is characterized in that, described edge feature point extraction module comprises: 二值图像转化子模块,其被配置为:将预处理后的实体图像转化为二值图像;The binary image conversion submodule is configured to: convert the preprocessed entity image into a binary image; 小波系数的模值和幅角构造子模块,其被配置为:计算二值图像在预设尺度上的水平和垂直方向分量,构造小波系数的模值和幅角;The modulus and argument construction submodule of the wavelet coefficient is configured to: calculate the horizontal and vertical components of the binary image on a preset scale, and construct the modulus and argument of the wavelet coefficient; 水平和垂直方向梯度计算子模块,其被配置为:依据构造的小波系数的模值和幅角,计算二值图像在水平和垂直方向梯度;The horizontal and vertical direction gradient calculation sub-module is configured to: calculate the binary image gradient in the horizontal and vertical directions according to the modulus and argument of the constructed wavelet coefficients; 矩阵元素值序列生成子模块,其被配置为:依据二值图像在水平和垂直方向梯度,利用高斯函数对特征点高斯加权,同时加入欧氏距离,计算点与点之间的差值,生成一个矩阵元素值序列;The matrix element value sequence generation sub-module is configured to: use the Gaussian function to Gaussian weight the feature points according to the gradient of the binary image in the horizontal and vertical directions, and add the Euclidean distance at the same time, calculate the difference between the points, and generate a sequence of matrix element values; 特征点提取子模块,其被配置为:在所述矩阵元素值序列中,通过计算每个图像像素的Harris响应值来进一步确定角点,通过基于小波自适应的Harris检测算子对提取图像边缘的特征点。The feature point extraction submodule is configured to: in the matrix element value sequence, further determine the corner point by calculating the Harris response value of each image pixel, and extract the image edge by using a Harris detection operator based on wavelet adaptation feature points. 8.一种基于图像特征点的草图生成系统,其特征在于,包括如权利要求4-7中任一项所述的基于图像特征点的草图生成服务器。8. A sketch generation system based on image feature points, comprising the sketch generation server based on image feature points according to any one of claims 4-7.
CN201810635109.0A 2018-06-20 2018-06-20 Sketch generation method, server and system based on image feature points Expired - Fee Related CN108876711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810635109.0A CN108876711B (en) 2018-06-20 2018-06-20 Sketch generation method, server and system based on image feature points

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810635109.0A CN108876711B (en) 2018-06-20 2018-06-20 Sketch generation method, server and system based on image feature points

Publications (2)

Publication Number Publication Date
CN108876711A CN108876711A (en) 2018-11-23
CN108876711B true CN108876711B (en) 2023-01-31

Family

ID=64339627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810635109.0A Expired - Fee Related CN108876711B (en) 2018-06-20 2018-06-20 Sketch generation method, server and system based on image feature points

Country Status (1)

Country Link
CN (1) CN108876711B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112529016A (en) * 2020-12-21 2021-03-19 浙江欣奕华智能科技有限公司 Method and device for extracting feature points in image
CN112862851B (en) * 2021-01-18 2021-10-15 网娱互动科技(北京)股份有限公司 Automatic image matting method and system based on image recognition technology
CN118864907B (en) * 2024-09-24 2025-01-21 江西有色地质矿产勘查开发院 A remote sensing image matching method for complex environments

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718552A (en) * 2016-01-19 2016-06-29 北京服装学院 Clothing freehand sketch based clothing image retrieval method
CN106846340A (en) * 2017-02-17 2017-06-13 大连理工大学 A kind of striation boundary extraction method based on on-fixed characteristic point
CN107368792A (en) * 2017-06-29 2017-11-21 广州智慧城市发展研究院 A kind of finger vein identification method and system based on wave filter and Bone Edge
CN108009550A (en) * 2017-11-09 2018-05-08 深圳大学 High spectrum image feature detection method and device based on curve of spectrum fitting

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870516B (en) * 2012-12-18 2019-10-25 北京三星通信技术研究有限公司 Image retrieval method, real-time drawing prompt method and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718552A (en) * 2016-01-19 2016-06-29 北京服装学院 Clothing freehand sketch based clothing image retrieval method
CN106846340A (en) * 2017-02-17 2017-06-13 大连理工大学 A kind of striation boundary extraction method based on on-fixed characteristic point
CN107368792A (en) * 2017-06-29 2017-11-21 广州智慧城市发展研究院 A kind of finger vein identification method and system based on wave filter and Bone Edge
CN108009550A (en) * 2017-11-09 2018-05-08 深圳大学 High spectrum image feature detection method and device based on curve of spectrum fitting

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于图像的3D造型交互设计方法研究;徐真;《中国优秀博硕士学位论文全文数据库(硕士) 信息科技辑 2019 年 第01期》;20181216;全文 *

Also Published As

Publication number Publication date
CN108876711A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN109544677B (en) Indoor scene main structure reconstruction method and system based on depth image key frame
CN110688947B (en) Method for synchronously realizing human face three-dimensional point cloud feature point positioning and human face segmentation
CN104834922B (en) Gesture identification method based on hybrid neural networks
Wang et al. Surface feature based mesh segmentation
CN108876711B (en) Sketch generation method, server and system based on image feature points
CN109766866B (en) Face characteristic point real-time detection method and detection system based on three-dimensional reconstruction
CN109509163B (en) A method and system for multi-focus image fusion based on FGF
CN102682428A (en) Fingerprint image computer automatic mending method based on direction fields
CN108305268B (en) Image segmentation method and device
CN107749987A (en) A kind of digital video digital image stabilization method based on block motion estimation
CN104217422A (en) Sonar image detection method of self-adaption narrow-band level set
CN110827408A (en) A real-time 3D reconstruction method based on depth sensor
CN107392244A (en) The image aesthetic feeling Enhancement Method returned based on deep neural network with cascade
CN117011175A (en) Mine three-dimensional model point cloud data combined filtering method and medium
CN107967675A (en) A kind of structuring point cloud denoising method based on adaptive projection Moving Least Squares
CN112381140B (en) A machine learning recognition method for wear particle images based on new characteristic parameters
Zhao et al. NormalNet: Learning-based mesh normal denoising via local partition normalization
CN117237428A (en) A data registration method, device and medium for three-dimensional point cloud
CN108510591A (en) A kind of improvement Poisson curve reestablishing method based on non-local mean and bilateral filtering
CN115409950A (en) Optimization method for surface rendering triangular mesh
CN107038708A (en) Application of the image recognition algorithm in paper-cut effect
CN107862749B (en) A method for removing geometric details of point cloud
CN106023097A (en) Iterative-method-based flow field image preprocessing algorithm
CN113112417A (en) Spray workpiece modeling method based on three-dimensional point cloud
CN116777935B (en) Method and system for automatically segmenting the entire prostate gland based on deep learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20230131

CF01 Termination of patent right due to non-payment of annual fee