CN108492345B - Data block dividing method based on scale transformation - Google Patents
Data block dividing method based on scale transformation Download PDFInfo
- Publication number
- CN108492345B CN108492345B CN201810069242.4A CN201810069242A CN108492345B CN 108492345 B CN108492345 B CN 108492345B CN 201810069242 A CN201810069242 A CN 201810069242A CN 108492345 B CN108492345 B CN 108492345B
- Authority
- CN
- China
- Prior art keywords
- data
- curve
- points
- original
- dividing
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/203—Drawing of straight lines or curves
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Geometry (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a data block dividing method based on scale transformation, which is characterized in that data is divided into blocks according to the integral idea of big data processing, then the data is divided based on the scale transformation method, and further data trend analysis can be carried out on the basis, so that the problem that when the data volume is large, and the data is difficult to divide due to the fact that detailed data points are too much concerned is solved; the invention also has the advantages of simple operation, accurate and rapid division result.
Description
Technical Field
The invention belongs to the technical field of data processing methods, and particularly relates to a data block dividing method based on scale transformation.
Background
Along with the development of big data, the technical field of data processing is also continuously developed, and how to better divide data blocks when the data volume is too large becomes a main problem to be solved. When the data volume is too large, if the data curve is enlarged to a certain size, the difficulty of data division is increased because the detail data is over-concerned; if the image size is continuously reduced, the distribution of points on the curve is very dense, so that the rough trend of the curve can be easily seen, the data block can be divided more conveniently and accurately by a computer, the data block can be divided based on the whole idea, and therefore, for the problem, the data block is divided by using a method based on scale transformation.
Disclosure of Invention
The invention aims to provide a data block dividing method based on scale transformation, which solves the problem that when the data volume is too large, the data division is directly performed on a curve with certain difficulty.
The technical scheme adopted by the invention is that the data block dividing method based on scale transformation is implemented according to the following steps:
step 1, drawing a data curve, reducing the data curve in equal proportion, marking middle position points of a plurality of pixel point vertical coordinates corresponding to the same horizontal coordinate on the data curve, and sequentially connecting the middle position points to obtain a smooth data curve;
step 2, dividing the smooth data curve in the step 1 into a plurality of smooth curve segments by using a data trend analysis method, mapping the boundary point of each smooth curve segment to the original data curve, and dividing the original data curve into a plurality of curve segments;
step 3, randomly selecting a certain curve segment obtained in the step 2, and comparing the data volume in the curve segment with the required data volume;
if the number of the data points in the curve segment is larger than the required data number, re-executing the step 1 and the step 2;
and if the number of the data points in the curve segment is less than the required number of the data, terminating the division of the data block.
The specific process of the step 1 is as follows:
step 1.1, drawing data X ═ X1,x2,...,xn]A graph, wherein n represents the number of data points, and the border and all labels of the graph are removed and stored in a picture format;
step 1.2, recording the picture size k of the curve obtained in step 1.11*k2Then the picture size is reduced to the original pictureAnd saved as figure1.jpg, noting that the current picture size is m1*m2Wherein, in the step (A),
step 1.3, carrying out graying and binarization processing on the figure1.jpg in the step 1.2, finding out the positions of all pixel values of '0' (representing 'black'), and forming a new curve graph;
step 1.4, in the new curve chart obtained in the step 1.3, corresponding to a plurality of pixel points of the ordinate under the same abscissa, finding out the pixel point of which the ordinate is in the middle position;
and step 1.5, sequentially connecting the pixel points at the middle position obtained in the step 1.4 to obtain a new smooth data curve.
The step 2 specifically comprises the following steps:
step 2.1, the smooth data curve obtained in the step 1 is segmented by adopting the existing data trend analysis method to obtain a plurality of data blocks, and the boundary point of each data block is determined;
step 2.2, determining all boundary points of each data block obtained in step 2.1, and generating the following vectors:
X′=[x1′,x2′,...,xn′]T (1);
in the formula (1), X' represents a set of all boundary points, and Xn' is the entire boundary point of each data block;
step 2.3, mapping the boundary points obtained in the step 2.2 with the original data one by one, mapping the original data according to the following position proportion relation,
in the formula (2), xnBoundary points, k, divided for the original data1Length of the original graph, m1Is the length of figure1.jpg in step 1.2;
and 2.4, dividing inflection points of the original data, namely boundary points for dividing an original data curve, according to the original data obtained in the step 2.3, so that the original data are divided into a plurality of data blocks to obtain the integral data dividing result.
The data block dividing method based on scale transformation has the beneficial effects that: the data are divided into blocks according to the overall idea of big data processing, and then are divided based on a scale transformation method, so that data trend analysis can be performed on the basis, and the problem that when the data volume is large and the data are difficult to divide due to the fact that detailed data points are too much concerned is solved;
the data block dividing method based on scale transformation also has the advantages of simple operation, accurate and quick dividing result.
Drawings
FIG. 1 is a general flow chart of a method for data block partitioning based on scale transformation according to the present invention;
FIG. 2 is a graph of raw data in a data block division method based on scale transformation according to the present invention;
FIG. 3 is an isometric view of FIG. 2;
FIG. 4 is a grayscale diagram of FIG. 3;
FIG. 5 is a binary diagram of FIG. 4;
FIG. 6 is a graph of a smoothed data graph in a data block division method based on scale transformation according to the present invention;
FIG. 7 is a graph showing a large amount of data to be divided in a data block division method based on scale transformation according to the present invention;
fig. 8 is a graph showing a small amount of divided data in a data block division method based on scale transformation according to the present invention.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
The invention relates to a data block dividing method based on scale transformation, which is implemented according to the following steps as shown in figure 1:
step 1, drawing a data curve, reducing the data curve in equal proportion, marking middle position points of a plurality of pixel point vertical coordinates corresponding to the same horizontal coordinate on the data curve, and sequentially connecting the middle position points to obtain a smooth data curve;
step 1.1, drawing data X ═ X1,x2,...,xn]A graph, as shown in fig. 2, wherein n represents the number of data points, and the border and all labels of the graph are removed and stored in a picture format;
step 1.2, recording the picture size k of the curve obtained in step 1.11*k2Then, as shown in FIG. 3, the picture is reduced to the original picture sizeAnd saved as figure1.jpg, noting that the current picture size is m1*m2Wherein, in the step (A),
step 1.3, as shown in fig. 4 and 5, graying and binarizing the fig. 1.jpg of step 1.2, to find out the positions of all pixel values of '0' (representing 'black'), and form a new graph;
step 1.4, in the new curve chart obtained in the step 1.3, corresponding to a plurality of pixel points of the ordinate under the same abscissa, finding out the pixel point of which the ordinate is in the middle position;
step 1.5, as shown in fig. 6, sequentially connecting the pixel points at the intermediate position obtained in step 1.4 to obtain a new smooth data curve.
Step 2, dividing the smooth data curve in the step 1 into a plurality of smooth curve segments by using a data trend analysis method, mapping the boundary point of each smooth curve segment to the original data curve, and dividing the original data curve into a plurality of curve segments;
step 2.1, the smooth data curve obtained in the step 1 is segmented by adopting the existing data trend analysis method to obtain a plurality of data blocks, and the boundary point of each data block is determined;
step 2.2, determining all boundary points of each data block obtained in step 2.1, and generating the following vectors:
X′=[x1′,x2′,...,xn′]T (1);
in the formula (1), X' represents a set of all boundary points, and Xn' is the entire boundary point of each data block;
step 2.3, mapping the boundary points obtained in the step 2.2 with the original data one by one, mapping the original data according to the following position proportion relation,
in the formula (2), xnBoundary points, k, divided for the original data1Length of the original graph, m1Is the length of figure1.jpg in step 1.2;
and 2.4, dividing inflection points of the original data, namely boundary points for dividing an original data curve, according to the original data obtained in the step 2.3, so that the original data are divided into a plurality of data blocks to obtain the integral data dividing result.
Step 3, randomly selecting a certain curve segment obtained in the step 2, and comparing the data volume in the curve segment with the required data volume;
as shown in fig. 7, if the number of data points in the curve segment is greater than the required number of data points, step 1 and step 2 are executed again;
as shown in fig. 8, if the number of data points in the curve segment is less than the required number of data points, the division of the data block is terminated.
Through the mode, the data block division method based on the scale transformation, disclosed by the invention, is used for carrying out block division on data according to the overall idea of big data processing, then carrying out data division on the data based on the scale transformation method, further carrying out data trend analysis on the basis, and solving the problem that when the data volume is large, and the data is difficult to divide due to the fact that the data points are too much concerned; the invention also has the advantages of simple operation, accurate and rapid division result.
Claims (2)
1. A data block dividing method based on scale transformation is characterized by comprising the following steps:
step 1, drawing a data curve, reducing the data curve in equal proportion, marking middle position points of vertical coordinates of a plurality of pixel points corresponding to the same horizontal coordinate on the data curve, and sequentially connecting the middle position points to obtain a smooth data curve;
the specific process of the step 1 is as follows:
step 1.1, drawing data X ═ X1,x2,...,xn]A graph, wherein n represents the number of data points, and the border and all labels of the graph are removed and stored in a picture format;
step 1.2, recording the picture size k of the curve obtained in step 1.11*k2Then the picture size is reduced to the original pictureAnd saved as figure1.jpg, noting that the current picture size is m1*m2Wherein, in the step (A),
step 1.3, carrying out graying and binarization processing on the figure1.jpg in the step 1.2, finding out the positions of all pixel values of '0' (representing 'black'), and forming a new curve graph;
step 1.4, in the new curve chart obtained in the step 1.3, corresponding to a plurality of pixel points of the ordinate under the same abscissa, finding out the pixel point of which the ordinate is in the middle position;
step 1.5, sequentially connecting the pixel points at the middle position obtained in the step 1.4 to obtain a new smooth data curve;
step 2, dividing the smooth data curve in the step 1 into a plurality of smooth curve segments by using a data trend analysis method, mapping the boundary point of each smooth curve segment to the original data curve, and dividing the original data curve into a plurality of curve segments;
step 3, randomly selecting a certain curve segment obtained in the step 2, and comparing the data volume in the curve segment with the required data volume;
if the number of the data points in the curve segment is larger than the required data number, re-executing the step 1 and the step 2;
and if the number of the data points in the curve segment is less than the required number of the data, terminating the division of the data block.
2. The method for dividing data blocks based on scale transformation as claimed in claim 1, wherein the step 2 specifically comprises the following steps:
step 2.1, the smooth data curve obtained in the step 1 is segmented by adopting the existing data trend analysis method to obtain a plurality of data blocks, and the boundary point of each data block is determined;
step 2.2, determining all boundary points of each data block obtained in step 2.1, and generating the following vectors:
X′=[x1′,x2′,...,xn′]T (1);
in the formula (1), X' represents a set of all boundary points, and Xn' is the entire boundary point of each data block;
step 2.3, mapping the boundary points obtained in the step 2.2 with the original data one by one, mapping the original data according to the following position proportion relation,
in the formula (2), xnBoundary points, k, divided for the original data1Length of the original graph, m1Is the length of figure1.jpg in step 1.2;
and 2.4, dividing inflection points of the original data, namely boundary points for dividing an original data curve, according to the original data obtained in the step 2.3, so that the original data are divided into a plurality of data blocks to obtain the integral data dividing result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810069242.4A CN108492345B (en) | 2018-01-24 | 2018-01-24 | Data block dividing method based on scale transformation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810069242.4A CN108492345B (en) | 2018-01-24 | 2018-01-24 | Data block dividing method based on scale transformation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108492345A CN108492345A (en) | 2018-09-04 |
CN108492345B true CN108492345B (en) | 2021-12-03 |
Family
ID=63343771
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810069242.4A Active CN108492345B (en) | 2018-01-24 | 2018-01-24 | Data block dividing method based on scale transformation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108492345B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110489810B (en) * | 2019-07-24 | 2022-11-25 | 上海金润联汇数字科技有限公司 | Automatic trend extraction method based on data blocks |
CN116610272A (en) * | 2023-04-23 | 2023-08-18 | 珠海芯烨电子科技有限公司 | Processing method and system for picture data of printing terminal |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104156733A (en) * | 2014-08-12 | 2014-11-19 | 中国人民解放军理工大学 | Foundation cloud form identification method based on multiscale structure characteristics |
CN105024702A (en) * | 2015-07-08 | 2015-11-04 | 西安理工大学 | Floating-point-type data lossless compression method for scientific calculation |
CN105913062A (en) * | 2016-04-26 | 2016-08-31 | 深圳前海云汉金融科技有限公司 | Big data trend curve local characteristics based matching method and terminal |
CN106067030A (en) * | 2016-05-26 | 2016-11-02 | 广西师范学院 | A kind of processing method of river characteristic categorical data |
CN106504298A (en) * | 2016-09-22 | 2017-03-15 | 珠海格力电器股份有限公司 | Curve plotting method and device |
CN107369135A (en) * | 2017-06-22 | 2017-11-21 | 广西大学 | A kind of micro imaging system three-dimensional point spread function space size choosing method based on Scale invariant features transform algorithm |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7469072B2 (en) * | 2003-07-18 | 2008-12-23 | Canon Kabushiki Kaisha | Image processing apparatus and method |
US9528935B2 (en) * | 2012-03-30 | 2016-12-27 | Haripriya Pulyassary | Water weather station for monitoring changes in water quality |
CN104899384B (en) * | 2015-06-12 | 2018-03-13 | 卢伟 | A kind of monitoring structural health conditions visualization system based on Revit |
CN106323977A (en) * | 2016-08-23 | 2017-01-11 | 刘钢 | Mobile terminal-based color-change diagnosis test paper quantitative imaging system |
CN106570624A (en) * | 2016-10-26 | 2017-04-19 | 东北电力大学 | Economy management system |
-
2018
- 2018-01-24 CN CN201810069242.4A patent/CN108492345B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104156733A (en) * | 2014-08-12 | 2014-11-19 | 中国人民解放军理工大学 | Foundation cloud form identification method based on multiscale structure characteristics |
CN105024702A (en) * | 2015-07-08 | 2015-11-04 | 西安理工大学 | Floating-point-type data lossless compression method for scientific calculation |
CN105913062A (en) * | 2016-04-26 | 2016-08-31 | 深圳前海云汉金融科技有限公司 | Big data trend curve local characteristics based matching method and terminal |
CN106067030A (en) * | 2016-05-26 | 2016-11-02 | 广西师范学院 | A kind of processing method of river characteristic categorical data |
CN106504298A (en) * | 2016-09-22 | 2017-03-15 | 珠海格力电器股份有限公司 | Curve plotting method and device |
CN107369135A (en) * | 2017-06-22 | 2017-11-21 | 广西大学 | A kind of micro imaging system three-dimensional point spread function space size choosing method based on Scale invariant features transform algorithm |
Non-Patent Citations (2)
Title |
---|
一种过程数据趋势特征提取方法;刘佳宝;《化工自动化及仪表》;20120710;第39卷(第7期);第850-853页 * |
基于尺度变换的数据转折点检测方法;母东杰;《控 制 工 程》;20180120;第 25 卷(第 1 期);第25-29页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108492345A (en) | 2018-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108986119B (en) | Image segmentation method and device, computer equipment and readable storage medium | |
CN105975939B (en) | Video detecting method and device | |
CN102567300B (en) | Picture document processing method and device | |
CN109800698A (en) | Icon detection method based on depth network | |
Chen et al. | Shadow-based Building Detection and Segmentation in High-resolution Remote Sensing Image. | |
CN108805863B (en) | Method for detecting image change by combining deep convolutional neural network with morphology | |
KR101618996B1 (en) | Sampling method and image processing apparatus for estimating homography | |
CN112508090A (en) | External package defect detection method | |
CN109977952B (en) | Candidate target detection method based on local maximum | |
CN108805128A (en) | A kind of character segmentation method and device | |
CN110866529A (en) | Character recognition method, character recognition device, electronic equipment and storage medium | |
CN108182457B (en) | Method and apparatus for generating information | |
WO2020125062A1 (en) | Image fusion method and related device | |
CN108492345B (en) | Data block dividing method based on scale transformation | |
CN103632153A (en) | Region-based image saliency map extracting method | |
CN111242957A (en) | Data processing method and device, computer storage medium and electronic equipment | |
CN111161300B (en) | Niblack image segmentation method based on improved Otsu method | |
CN111597845A (en) | Two-dimensional code detection method, device and equipment and readable storage medium | |
CN106909869A (en) | A kind of sampling grid partitioning method and device of matrix two-dimensional code | |
CN109271882B (en) | Method for extracting color-distinguished handwritten Chinese characters | |
CN106056575B (en) | A kind of image matching method based on like physical property proposed algorithm | |
CN115908363B (en) | Tumor cell statistics method, device, equipment and storage medium | |
CN115330803B (en) | Surface defect data enhancement method and device, electronic equipment and storage medium | |
JP2011087144A (en) | Telop character area detection method, telop character area detection device, and telop character area detection program | |
CN113223098B (en) | Preprocessing optimization method for image color classification |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20211119 Address after: 510000 first floor, No. 12, Jianzhong Road, Tianhe District, Guangzhou, Guangdong Applicant after: GUANGZHOU SINOBEST SOFTWARE TECHNOLOGY Co.,Ltd. Address before: 710048 No. 5 Jinhua South Road, Shaanxi, Xi'an Applicant before: XI'AN University OF TECHNOLOGY |
|
TA01 | Transfer of patent application right |