Framing output method is cut based on virtual printing technology different scale orthography
Technical field
The present invention relates to satellite image processing technology fields, and in particular to one kind being based on virtual printing technology different scale
Orthography cuts framing output method.
Background technology
The automatic cutting framing of image mostly uses complicated remote sensing platform processing software and is handled, and general production unit is because of skill
Art condition limit, no matter software and hardware condition or economic condition, be all difficult to meet above-mentioned data processing items technical need.
Existing GIS (GIS-Geographic Information System) platform software, such as ArcGIS, Erdas etc. have been provided with more complete ground
The information processing function is managed, the registration and fusion treatment of different-format striograph are included, to being registrated the cutting of image and just determining
Position display.But in engineer application, the use difficulty of these softwares is big, and acquisition cost is high, is not suitable for small-sized production unit or a line
The actual production conditions of operations department.
Such as document:" Xu Ying, Zhao Ping, Huang Yaping, the national standard framing based on ArcGIS cut new method [J] the modern times and survey
It paints, 29 (2):43-45 " discloses a kind of based on GRIDCLIP orders progress image country mark in ArcGIS in (02 phase in 2006)
The cutting method of quasi- framing, key step include:The pretreatment of file to be cut;Determine the map sheet of national standard framing achievement
Number;Determine the coordinate range of every width national standard framing map sheet;It is cut with GRIDCLIP orders completion.
Chinese invention patent application (the title of Publication No. CN103700063A:Topographic map based on high definition satellite image
Integrated quick mapping method) a kind of method of automatic image clipping is disclosed, it mainly comprises the following steps:Yunnan snub-nosed monkey;Automatic meter
Calculate image capturing range;It reduces segmentation and according to map sheet title outputting result, this method cuts image by spatial analysis, and
Spatial analysis functions are integrated in GIS speciality platform softwares.
Chinese invention patent application (the title of Publication No. CN104021555:Huge image data based on virtual printing technology
Cut framing method) a kind of method of automatic image clipping is disclosed, first a wide range of huge image data framing output is related generally to,
It is unsuitable for the framing in particular range by large scale to middle small scale orthography to export.
Although the problems such as cutting of image may be implemented in above method, but have the disadvantage that and insufficient:
1, huge image data, which is cut, must use speciality platform software, software cost high;
2, complex disposal process, it is necessary to use high-performance computer, hardware cost is high, and general staff is difficult to grasp;
3, the orthophotoquad for usually requiring production different scale, results in waste of resources and data redundancy;
4, versatility and ease for use are poor, and general job department or small unit are difficult to realize.
Invention content
Present invention solves the technical problem that being to provide a kind of different scale orthography based on virtual printing technology
Framing output method is cut, efficient difference is realized in conjunction with common CAD data acquisition platform by virtual printing technology
The cutting of engineer's scale orthophotoquad exports.
The present invention solve above-mentioned technical problem technical solution be:
The method includes the following steps:
S1, specified image output range is needed;
S2, larger proportion ruler orthography in range is called;
Relevant parameter such as coordinate range, pixel value and print parameters etc. within the scope of S3, inverse;
S4, virtual printing export true color picture, are named with new coordinate range, generate respective coordinates file.
More specifically scheme can be,
The step S1 includes the following steps:
S11, specified image output range is needed;
Corresponding map sheet under new engineer's scale where S12, quick calculating specified range quadrangle.
The step S2 includes the following steps:
The sheet designation that S21, foundation are calculated, searches for Image Database, in case calling if existing and recording;
S22, it is such as not present, pop-up interactive window tells operating personnel not have corresponding data;
S23, the map sheet number based on S21 records are called raw video library and are correctly shown.
The step S3 includes the following steps:
If S31, exporting non-standard map sheet image according to new engineer's scale, its four angular coordinate X is obtained0、Y0、X1、Y1, wherein
X0、Y0It is the lower left corner north to longitudinal coordinate and east to lateral coordinates, X1、Y1It is the upper right corner north to longitudinal coordinate and east
To lateral coordinates, then corresponding range size is (X1-X0, Y1-Y0), the ranging from ((X of corresponding drawing1-X0)/D, (Y1-Y0)/
D), corresponding pixel value is (10000* ((X1-X0)/D, 10000* (Y1-Y0)/D), wherein D is new engineer's scale, Ke Yiwei
500,1000,2000,5000 and 10000 etc.;
If S32, according to new engineer's scale outputting standard map sheet image, the four angular coordinate X for recalling image is obtainedmin、Ymin、
Xmax、Ymax, wherein Xmin、YminTo be adjusted image lower-left angular coordinate, Xmax、YmaxTo be adjusted image upper right angular coordinate, X0=Fix
(Xmin/ (D × Lr)) × D × Lr, Y0=Fix (Ymin/ (D × Lc)) × D × Lc, X1=Fix (Xmax/ (D × Lr)) × D × Lr,
Y1=Fix (Ymax/ (D × Lc)) × D × Lc, imax=Fix (X1-X0)/D), jmax=Fix (X1-X0)/D);Wherein, Lc and Lr points
Not Wei under new engineer's scale national standard framing horizontal and vertical drawing size;imaxFor the north to national standard framing number,
jmaxFor east to national standard framing number;Fix functions are truncated functions, and effect is the integer part of access word;
The four angular coordinate of S33, the polygon for building national standard framing, polygon is (X0+ i × D × Lc, Y0+j×D×
Lr)、(X0+ (i+1) × D × Lc, Y0+j×D×Lr)、(X0+ (i+1) × D × Lc, Y0+(j+1)×D×Lr)、(X0+(i+1)×
D × Lc, Y0+ j × D × Lr), wherein the value range of i is (0~imax), the value range of j is (0~jmax);
S34, the polygonal region for the new engineer's scale national standard framing that previous step divides is set to new virtual beat
Print range;
S35, virtual printing parameter is arranged according to new engineer's scale, the parameter includes virtual printing antiquarian and printing
Engineer's scale, wherein virtual printing antiquarian include horizontal and vertical pixel number, and horizontal pixel number is Lc/ pixel sizes, longitudinal
Pixel number is Lr/ pixel sizes;Print scale ruler is D/10000.
The step S4 includes the following steps:
S41, according to print paper size, print scale ruler, in length and breadth direction pixel value carry out virtual printing, generate country
The image file of Standard division range, using lower-left angular coordinate as file name;
S42, export new orthography file and respective coordinates position file, and it is JPG such as to export format, then corresponding seat
Mark file format is JGW.
The cutting framing method is 1: 500 to 1: 5000 orthography automatic cutting framings for engineer's scale.
The present invention is by the way that virtual printing technology and common data acquisition platform to be combined, as based on PC
For frequently-used data acquisition platform in Windows7 operating systems, Microstaion V8, AutoCAD2005 complete new ratio
Image framing cuts output under ruler, completes must could being completed by specialized GIS or RS software and hardwares in the past for task, saves
The costs of use of specialized GIS or RS software and hardwares;This method has principle simple, it is easy to accomplish, it, can the characteristics of efficient stable
To greatly save the difficulty and cost of data processing.
Description of the drawings
The following further describes the present invention with reference to the drawings:
Fig. 1 is the flow diagram of the method for the present invention.
Specific implementation mode
For following specific examples to cut 1: 2000 orthophotoquad of segmentation, operation platform is that the Windows 7 on PC is grasped
It is example to make system.
As shown in Figure 1, the present invention is based on the different scale orthographies of virtual printing technology to cut framing output method,
Include the following steps:
S1, specified image output range is needed;
S2, larger proportion ruler orthography in range is called;
The relevant parameters such as coordinate range, pixel value and print parameters within the scope of S3, inverse;
S4, virtual printing export true color picture, are named with new coordinate range, generate respective coordinates file.
Step S1 is specifically included:
S11, under Microstaion V8 platforms, click changing coordinates or specified need image output range;
Corresponding map sheet under S12, the coordinate for calculating specified point or new engineer's scale where range quadrangle, specifically calculates step
Refer to step S3.
Step S2 is specifically included:
The sheet designation that S21, foundation are calculated, searches for Image Database, such as there is record in case calling;
S22, it is such as not present, pop-up interactive window tells operating personnel not have corresponding data;
S23, the map sheet number based on S21 records are called raw video library and are correctly shown.
Step S3 is specifically included:
If S31, exporting non-standard map sheet image according to new engineer's scale, its four angular coordinate X is obtained0、Y0、X1、Y1, wherein
X0、Y0It is the lower left corner north to longitudinal coordinate and east to lateral coordinates, X1、Y1It is the upper right corner north to longitudinal coordinate and east
To lateral coordinates, then corresponding range size is (X1-X0, Y1-Y0), then correspond to the ranging from ((X of drawing1-X0)/D, (Y1-Y0)/
D), corresponding pixel value is (10000* ((X1-X0)/D, 10000* (Y1-Y0)/D), wherein D is new engineer's scale, such as 500,
1000,2000,5000 and 10000;
If S32, according to new engineer's scale outputting standard map sheet image, the four angular coordinate X for recalling image is obtainedmin、Ymin、
Xmax、Ymax, wherein Xmin、YminTo be adjusted image lower-left angular coordinate, Xmax、YmaxTo be adjusted image upper right angular coordinate, imaxFor the north
To national standard framing number, jmaxFor east to national standard framing number, Lc, Lr are respectively national standard under new engineer's scale
The horizontal and vertical drawing size of framing, usual Lc are 0.5 meter or 0.4 meter, and Lr is 0.5 meter, X0=Fix (Xmin/(D×Lr))
× D × Lr, Y0=Fix (Ymin/ (D × Lc)) × D × Lc, X1=Fix (Xmax/ (D × Lr)) × D × Lr, Y1=Fix (Ymax/(D
× Lc)) × D × Lc, imax=Fix (X1-X0)/D), jmax=Fix (X1-X0)/D);Fix functions are truncated functions, and effect is to take
The integer part of number;
The four angular coordinate of S33, the polygon for building national standard framing, polygon is (X0+ i × D × Lc, Y0+j×D×
Lr)、(X0+ (i+1) × D × Lc, Y0+j×D×Lr)、(X0+ (i+1) × D × Lc, Y0+(j+1)×D×Lr)、(X0+(i+1)×
D × Lc, Y0+ j × D × Lr), wherein the value range of i is (0~imax), the value range of j is (0~jmax);
S34, the polygonal region for the new engineer's scale national standard framing that previous step divides is set to new virtual beat
Print range;
S35, virtual printing parameter is arranged according to new engineer's scale, the parameter includes virtual printing antiquarian and printing
Engineer's scale, wherein virtual printing antiquarian include horizontal and vertical pixel number, and horizontal pixel number is Lc/ pixel sizes, longitudinal
Pixel number is Lr/ pixel sizes;Print scale ruler is D/10000.
Step S4 is specifically included:
S41, according to print paper size, print scale ruler, direction in length and breadth pixel value, call Microstaion V8 flat
The virtual printing program of platform:JPG print routines carry out virtual printing to splicing image, each framing image are obtained, to each framing shadow
As naming and generating coordinate setting file corresponding with each framing image;The image file for generating national standard framing, with a left side
Lower angular coordinate is file name;
S42, export new orthography file and respective coordinates position file, and it is JPG such as to export format, then corresponding seat
Mark file format is JGW;Specially naming rule is TE-N-D/2-D/2, and wherein T is the meaning of standard picture frame framing, and E is mark
Quasi- picture frame lower left corner east is to coordinate, and N is the standard picture frame lower left corner north to coordinate, and D is framing engineer's scale.
Derived coordinate setting file name and national standard framing image are of the same name, suffix name and export image format pair
It answers, there are six elements for file content system:East is to Pixel size, rotation amount, dimensional variation amount, the north to Pixel size, a left side
Inferior horn east is to initial position, the lower left corner north to initial position.
By taking Nanning main city zone satellite 0.2m chromatic images in 2011 as an example, the orthogonal projection within the scope of city is exported
Picture, wherein Xmin=2507400, Ymin=515800, Xmax=2540800, Ymax=561080.
When framing engineer's scale D is 2000, image is board-like when being 0.5 meter × 0.5 meter, then imax=33, jmax=46, X0=
2507000, Y0=515000, X1=2540000, Y1=561000, Lc=Lr=0.5, virtual printing antiquarian be 5000 ×
5000 pixels, print scale ruler are 0.2, and national standard framing image derived from virtual printing is T515000-2507000-
1000-1000.JPG amounting to 1518 width to T561000-2540000-1000-1000.JPG.
When framing engineer's scale D is 5000, image is board-like when being 0.5 meter × 0.5 meter, then imax=15, jmax=18, X0=
2505000, Y0=515000, X1=2542500, Y1=562500, Lc=Lr=0.5, virtual printing antiquarian be 5000 ×
5000 pixels, print scale ruler are 0.5, and national standard framing image derived from virtual printing is T515000-2505000-
2500-2500.JPG amounting to 285 width to T562500-2542500-2500-2500.JPG.