CN112085656B - Ocean mode data shoreline extension method, system, mobile terminal and storage medium - Google Patents

Ocean mode data shoreline extension method, system, mobile terminal and storage medium Download PDF

Info

Publication number
CN112085656B
CN112085656B CN202010893436.3A CN202010893436A CN112085656B CN 112085656 B CN112085656 B CN 112085656B CN 202010893436 A CN202010893436 A CN 202010893436A CN 112085656 B CN112085656 B CN 112085656B
Authority
CN
China
Prior art keywords
image
extension
grid
data
ocean
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
Application number
CN202010893436.3A
Other languages
Chinese (zh)
Other versions
CN112085656A (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.)
Xiamen Lanhit Information Technology Co ltd
Original Assignee
Xiamen Lanhit Information Technology Co ltd
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 Xiamen Lanhit Information Technology Co ltd filed Critical Xiamen Lanhit Information Technology Co ltd
Priority to CN202010893436.3A priority Critical patent/CN112085656B/en
Publication of CN112085656A publication Critical patent/CN112085656A/en
Application granted granted Critical
Publication of CN112085656B publication Critical patent/CN112085656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4023Scaling of whole images or parts thereof, e.g. expanding or contracting based on decimating pixels or lines of pixels; based on inserting pixels or lines of pixels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • G06T2207/20032Median filtering

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a marine mode data shoreline extension method, a system, a mobile terminal and a storage medium, wherein the method comprises the following steps: acquiring a marine data image of marine mode data, and drawing an extension grid in the marine data image; performing transverse grid extension according to the line numbers of the grids in the ocean data image, and performing longitudinal grid extension on the grids in the ocean data image according to the transverse grid extension result to obtain extension grids; and respectively carrying out image interpolation processing on the images corresponding to each extension grid, and carrying out land image capping on the ocean data images subjected to the image interpolation processing. According to the application, the pixel value of each extension grid can be set by respectively carrying out image interpolation processing on the image corresponding to each extension grid, and the coastline existing in the extension grid can be segmented by carrying out land image capping on the ocean data image subjected to the image interpolation processing, so that the saw tooth phenomenon in the extension grid is prevented, and the display effect of ocean mode data is improved.

Description

Ocean mode data shoreline extension method, system, mobile terminal and storage medium
Technical Field
The application relates to the technical field of data extension, in particular to a marine mode data shoreline extension method, a marine mode data shoreline extension system, a mobile terminal and a storage medium.
Background
Marine environment refers to the vast continuum of the sea and the general body of water in the ocean. Including seawater, substances dissolved and suspended in seawater, submarine sediments and marine organisms, are sources of living cradles and mankind. The intelligent ocean engineering is an organic combination of ocean industrialization and ocean informatization, and utilizes the technology of industrial big data and Internet big data to realize ocean resource sharing and ocean activity coordination, so as to mine new demands and create new values, thereby achieving the purpose of intelligent ocean.
In the construction of the intelligent ocean engineering, a large amount of ocean mode data is generated, and the ocean mode data is deeply mined, so that the application service capability is further formed, and the realization of the value-added circulation of data assets is the core value of the whole engineering.
In the existing ocean mode data display process, the data grids such as ocean currents, ocean temperatures and ocean waves are not matched with the shoreline, so that the display of the ocean mode data can generate a sawtooth phenomenon, and the display effect of the ocean mode data is reduced.
Disclosure of Invention
The embodiment of the application aims to provide a marine mode data shoreline extension method, a marine mode data shoreline extension system, a mobile terminal and a storage medium, and aims to solve the problem that a displayed image generates saw-tooth phenomenon due to mismatching of a data grid such as ocean current, ocean temperature, ocean wave and the like with the shoreline in the existing marine mode data display process.
The embodiment of the application is realized in such a way that a marine mode data shoreline extension method comprises the steps of acquiring a marine data image of marine mode data and drawing an extension grid in the marine data image;
performing transverse grid extension according to the line numbers of grids in the ocean data image, and performing longitudinal grid extension on the grids in the ocean data image according to the transverse grid extension result to obtain extension grids;
and respectively carrying out image interpolation processing on the images corresponding to each extension grid in the ocean data images, and carrying out land image capping on the ocean data images subjected to the image interpolation processing.
Still further, the step of drawing an extended grid in the marine data image comprises:
acquiring the image resolution of the ocean data image, and calculating the grid number of the extension grids according to the image resolution;
drawing the extended grid in the marine data image according to the grid number;
the calculation formula adopted for calculating the grid number of the extension grids according to the image resolution is as follows:
N=A/B
where N is the number of grids, a is a horizontal or vertical pixel of the marine data image, and B is a horizontal or vertical pixel preset for the extended grid.
Further, the step of performing longitudinal grid extension on the grid in the ocean data image according to the transverse grid extension result to obtain the extension grid includes:
if the grids on the upper and lower sides of any one of the extension grids in the transverse grid extension results are detected to be ocean, respectively extending the grids on the upper and lower ends with the extension grids as starting points to obtain the extension grids;
if the extended grid is detected not to be ocean, the extending of the grid is stopped.
Still further, the step of performing image interpolation processing on the image corresponding to each of the extension grids in the ocean data image includes:
respectively carrying out low-pass filtering or median filtering on pixel points in the image corresponding to each extension grid;
and setting pixel values corresponding to the extension grids according to the pixel values of the pixel points after low-pass filtering or median filtering.
Further, after the step of setting the pixel value of the pixel point corresponding to the extension grid according to the pixel value of the pixel point after the low-pass filtering or the median filtering, the method further includes:
calculating pixel difference values between before and after filtering of pixel points in the extension grid;
and if the pixel difference value is larger than a difference value threshold value, smoothing the pixel point corresponding to the pixel difference value.
Further, the step of performing land image overlaying on the image interpolation processed marine data image includes:
acquiring spatial data corresponding to the ocean mode data, and acquiring a land display image in the spatial data;
performing land image capping on the ocean data image subjected to image interpolation processing according to the land display image;
the step of performing land image capping on the ocean data image after the image interpolation processing according to the land display image comprises the following steps:
performing image comparison on the land display image and the ocean data image, and setting an area image overlapped between the land display image and the ocean data image as an image to be covered;
and performing color coverage on the image to be covered in the ocean data image according to a preset color.
It is another object of an embodiment of the present application to provide a marine mode data shoreline extension system, the system comprising:
the extending grid drawing module is used for obtaining ocean data images of ocean mode data and drawing extending grids in the ocean data images;
the grid extension module is used for carrying out transverse grid extension according to the line numbers of the grids in the ocean data image, and carrying out longitudinal grid extension on the grids in the ocean data image according to the transverse grid extension result to obtain extension grids;
and the image interpolation processing module is used for respectively carrying out image interpolation processing on the images corresponding to each extension grid in the ocean data images and carrying out land image capping on the ocean data images after the image interpolation processing.
Still further, the mesh extension module is further configured to:
if the grids on the upper and lower sides of any one of the extension grids in the transverse grid extension results are detected to be ocean, respectively extending the grids on the upper and lower ends with the extension grids as starting points to obtain the extension grids;
if the extended grid is detected not to be ocean, the extending of the grid is stopped.
Another object of an embodiment of the present application is to provide a mobile terminal, including a storage device and a processor, where the storage device is configured to store a computer program, and the processor is configured to run the computer program to cause the mobile terminal to execute the above-mentioned marine mode data shoreline extension method.
Another object of an embodiment of the present application is to provide a storage medium storing a computer program used in the above-mentioned mobile terminal, which when executed by a processor, implements the steps of the above-mentioned marine mode data shoreline extension method.
According to the embodiment of the application, the grids in the ocean data image are subjected to transverse grid extension according to the line numbers of the grids in the ocean data image, and the grids in the ocean data image are subjected to longitudinal grid extension according to the transverse grid extension result, so that the grids are extended in a mode of taking a main row of the behaviors as an auxiliary row, the accuracy of extending the ocean mode data shoreline is improved, the pixel value of each extending grid can be effectively set by respectively carrying out image interpolation processing on the images corresponding to each extending grid, the effect of filling the extending grid with colors is achieved, and the shoreline existing in the extending grid can be effectively segmented by carrying out land image capping on the ocean data image after the image interpolation processing, so that the saw-tooth phenomenon in the extending grid is prevented, and the display effect of the ocean mode data is improved.
Drawings
FIG. 1 is a flow chart of a marine mode data shoreline extension method provided by a first embodiment of the present application;
FIG. 2 is a flow chart of a marine mode data shoreline extension method provided by a second embodiment of the present application;
FIG. 3 is a flow chart of a marine mode data shoreline extension method provided by a third embodiment of the present application;
fig. 4 is a schematic structural view of a marine mode data shoreline extension system according to a fourth embodiment of the present application;
fig. 5 is a schematic structural view of a marine mode data shoreline extension system according to a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In order to illustrate the technical scheme of the application, the following description is made by specific examples.
Example 1
Referring to fig. 1, a flowchart of a marine mode data shoreline extension method according to a first embodiment of the present application includes the steps of:
step S1, acquiring a marine data image of marine mode data, and drawing an extension grid in the marine data image;
the grid size and shape of the extension grid can be set according to requirements, for example, the shape of the extension grid can be square, round or triangle, and the grid size of the extension grid can be 1x1 pixel grid, 2x2 pixel grid or 4x4 pixel grid.
In the step, if the data volume of the ocean mode data is larger than the data volume threshold, the ocean mode data is subjected to data thinning, parameter values can be set according to requirements, particularly, when the ocean mode data is processed, many repeated data are often generated in the ocean mode data, many inconveniences are brought to further data processing, and the ocean data image to be expressed by the redundant data is not smooth or accords with the standard, so that the number of data points is reduced to the greatest extent under the condition that the ocean data image is unchanged by carrying out data thinning on the ocean mode data.
Alternatively, in this step, the ocean pattern data may be thinned using a step length method, a Douglas-Peuker (Douglas-Peuker) algorithm, or a sag limit.
Step S2, performing transverse grid extension according to the line numbers of grids in the ocean data image, and performing longitudinal grid extension on the grids in the ocean data image according to the transverse grid extension result to obtain extension grids;
the grid in the ocean data image is longitudinally grid-expanded according to the transverse grid expansion result, so that the grid is expanded in a mode of taking a main row of the behavior as an auxiliary row, and the accuracy of ocean mode data shoreline expansion is improved.
Specifically, in the step, the step of performing longitudinal grid extension on the grid in the ocean data image according to the transverse grid extension result to obtain the extension grid includes:
if the grids on the upper and lower sides of any one of the extension grids in the transverse grid extension results are detected to be ocean, respectively extending the grids on the upper and lower ends with the extension grids as starting points to obtain the extension grids;
if the extended grid is detected not to be ocean, the extending of the grid is stopped.
And step S3, respectively carrying out image interpolation processing on the images corresponding to each extension grid in the ocean data images, and carrying out land image capping on the ocean data images subjected to the image interpolation processing.
The image interpolation processing is carried out on the image corresponding to each extension grid, so that the pixel value of each extension grid can be effectively set, and the effect of color filling of the extension grids is achieved;
optionally, in this step, an image interpolation process may be performed on the image corresponding to the extension grid by using algorithms such as Nearest-neighbor interpolation (Nearest-neighbor), bilinear interpolation (Bilinear), bicubic interpolation (bicubic), lanczos interpolation, directional interpolation (Edge-directed interpolation), example-based interpolation or deep learning, so as to achieve the effect of setting a pixel value for each extension grid.
Further, in the step, land image capping is performed on the ocean data image after image interpolation processing, so that land can be effectively segmented in the ocean data image, a coastline between the land and the ocean can be effectively segmented based on land segmentation, the phenomenon of mismatching between a data grid such as ocean current, ocean temperature and ocean wave and the coastline is prevented, and the display effect of ocean mode data is improved.
In this embodiment, the horizontal grid extension is performed according to the line number of the grid in the ocean data image, and the longitudinal grid extension is performed on the grid in the ocean data image according to the horizontal grid extension result, so that the grid extension is performed in a mode of taking the main row of the behavior as the auxiliary, the accuracy of ocean mode data shoreline extension is improved, the pixel value of each extension grid can be effectively set by performing image interpolation processing on the image corresponding to each extension grid, so as to achieve the effect of color filling of the extension grid, and the coastline existing in the extension grid can be effectively segmented by performing land image capping on the ocean data image after the image interpolation processing, so that the saw tooth phenomenon in the extension grid is prevented, and the display effect of ocean mode data is improved.Example two
Referring to fig. 2, a flowchart of a marine mode data shoreline extension method according to a second embodiment of the present application includes the steps of:
step S10, obtaining a marine data image of marine mode data, and drawing an extension grid in the marine data image;
step S20, grid extension is carried out on the extension grids in the ocean data image;
the extending grid can be extended in the ocean data image in a mode of taking a main behavior and a secondary behavior as auxiliary behaviors, and the extending effect on the extending grid is achieved through the design of extending the extending grid in the ocean data image.
Optionally, in this step, the grid extension may be performed on the extension grid based on a preset extension rule, where the preset extension rule may be set according to requirements, for example, the preset extension rule may be set to perform grid extension of the extension grid in a preset extension direction, perform grid extension of the extension grid in a preset extension distance, and so on.
Step S30, judging whether the grid image after extension in the ocean data image meets a preset extension condition or not;
the method comprises the steps of determining whether an extended grid image is land or not according to preset extension conditions, and if the extended grid image meets the preset extension conditions, determining that the extended grid image is not land; if the expanded grid image does not meet the preset expansion condition, judging that the expanded grid image is land.
Step S40, if the extended grid image meets the preset extension condition, setting the extended grid image as the extended grid;
in this embodiment, the area corresponding to the extended grid is a sea or a coastline formed between the sea and the land, and if the extended grid image satisfies the preset extension condition, the extended grid image is determined to be a sea or a coastline formed between the sea and the land, so the extended grid image is set as an extended grid.
Step S50, respectively carrying out image interpolation processing on the images corresponding to each extension grid in the ocean data images, and carrying out land image capping on the ocean data images subjected to the image interpolation processing;
according to the embodiment, the extending grids are extended in the ocean data image, whether the extending grid image in the ocean data image meets the design of the preset extending condition is judged, whether the extending grid image is land or not is judged, if the extending grid image is detected to be not land, the extending grid image is set as the extending grid, the image interpolation processing is carried out on the image corresponding to each extending grid respectively, the pixel value of each extending grid can be effectively set, the effect of color filling of the extending grid is achieved, the land map image gland is carried out on the ocean data image after the image interpolation processing, the coastline existing in the extending grid can be effectively segmented, the saw tooth phenomenon in the extending grid is prevented, and the display effect of ocean mode data is improved.
Example III
Referring to fig. 3, a flowchart of a marine mode data shoreline extension method according to a third embodiment of the present application includes the steps of:
step S11, obtaining a marine data image of marine mode data, and obtaining the image resolution of the marine data image;
step S21, calculating the grid number of the extension grids according to the image resolution, and drawing the extension grids in the ocean data image according to the grid number;
the calculation formula adopted for calculating the grid number of the extension grids according to the image resolution is as follows:
N=A/B
where N is the number of grids, a is a horizontal or vertical pixel of the marine data image, and B is a horizontal or vertical pixel preset for the extended grid.
Optionally, in this step, the step of drawing the extended mesh in the marine data image according to the mesh number includes:
acquiring an extending direction set for the ocean data image, and acquiring an image starting boundary of a starting direction of the extending direction in the ocean data image, wherein the extending direction can be set according to requirements;
and drawing the extension grids in the image starting boundary according to the grid quantity.
Step S31, carrying out grid extension on the extension grid according to the extension direction;
after grid extension is carried out on the extension grids according to the extension direction, judging whether an extended grid image in the ocean data image meets a preset extension condition or not, wherein the preset extension condition is used for judging whether the extended grid image is land or not, and if the extended grid image meets the preset extension condition, judging that the extended grid image is not land; if the expanded grid image does not meet the preset expansion condition, judging that the expanded grid image is land;
optionally, if the extended grid image does not have the ocean area, determining that the extended grid image does not meet the preset extension condition;
step S41, judging that the expanded grid image meets the preset expansion condition if the ocean area exists in the expanded grid image;
step S51, if the expanded grid image in the ocean data image meets a preset expansion condition, setting the expanded grid image as the expansion grid;
the area corresponding to the extended grid is a sea or a coastline formed between the sea and the land, and if the extended grid image meets the preset extension condition, the extended grid image is judged to be the sea or the coastline formed between the sea and the land, so that the extended grid image is set as an extended grid;
step S61, respectively carrying out low-pass filtering or median filtering on the pixel points in the image corresponding to each extension grid;
the method comprises the steps that a linear filter mode can be adopted to conduct low-pass filtering or median filtering on pixel points in the corresponding image of the extension grid, and the effect of convolving the corresponding image of the extension grid is achieved through the design of conducting low-pass filtering or median filtering on the pixel points in the corresponding image of each extension grid;
specifically, in the step, the anchor point of the kernel in the linear filter is placed on the pixel of the appointed position in the extension grid, meanwhile, other values in the kernel in the linear filter coincide with each pixel of the neighborhood of the pixel, each value in the kernel is multiplied with a corresponding pixel value, the products are added, the obtained result is placed on the pixel corresponding to the anchor point, and the process is repeated on all the pixels on the image corresponding to the extension grid, so that the effect of low-pass filtering or median filtering on the pixel point is achieved.
Step S71, setting pixel values corresponding to the extension grids according to the pixel values of the pixel points after low-pass filtering or median filtering, and acquiring spatial data corresponding to the ocean mode data;
optionally, in this step, after the step of setting the pixel value corresponding to the extension grid according to the pixel value of the pixel point after the low-pass filtering or the median filtering, the method further includes:
calculating pixel difference values between before and after filtering of pixel points in the extension grid;
if the pixel difference value is larger than a difference value threshold value, smoothing the pixel point corresponding to the pixel difference value;
if the pixel difference value is larger than the difference value threshold value, the pixel point corresponding to the pixel difference value is judged to have burrs, so that burrs on the pixel point are removed through the design of smoothing the pixel point corresponding to the pixel difference value, the occurrence of a sawtooth phenomenon is prevented, and the display effect of the ocean data image is improved.
Step S81, acquiring a land display image in the space data, and carrying out land image capping on the ocean data image subjected to image interpolation processing according to the land display image;
optionally, in this step, the step of performing land image capping on the marine data image after the image interpolation processing according to the land display image includes:
performing image comparison on the land display image and the ocean data image, and setting an area image overlapped between the land display image and the ocean data image as an image to be covered;
and performing color coverage on the image to be covered in the ocean data image according to a preset color.
According to the embodiment, the extending grids are extended in the ocean data image, whether the extending grid image in the ocean data image meets the design of the preset extending condition is judged, whether the extending grid image is land or not is judged, if the extending grid image is detected to be not land, the extending grid image is set as the extending grid, the image interpolation processing is carried out on the image corresponding to each extending grid respectively, the pixel value of each extending grid can be effectively set, the effect of color filling of the extending grid is achieved, the land map image gland is carried out on the ocean data image after the image interpolation processing, the coastline existing in the extending grid can be effectively segmented, the saw tooth phenomenon in the extending grid is prevented, and the display effect of ocean mode data is improved.
Example IV
Referring to fig. 4, a schematic structural diagram of a marine mode data shoreline extension system 100 according to a fourth embodiment of the present application includes: an extension mesh drawing module 10, a mesh extension module 11, and an image interpolation processing module 13, wherein:
the extension grid drawing module 10 is used for acquiring a marine data image of marine mode data and drawing an extension grid in the marine data image.
Wherein, the extension mesh drawing module 10 is further configured to: acquiring the image resolution of the ocean data image, and calculating the grid number of the extension grids according to the image resolution;
drawing the extended grid in the marine data image according to the grid number;
the calculation formula adopted for calculating the grid number of the extension grids according to the image resolution is as follows:
N=A/B
where N is the number of grids, a is a horizontal or vertical pixel of the marine data image, and B is a horizontal or vertical pixel preset for the extended grid.
And the grid extension module 11 is used for carrying out transverse grid extension according to the line numbers of the grids in the ocean data image, and carrying out longitudinal grid extension on the grids in the ocean data image according to the transverse grid extension result to obtain the extension grids.
Wherein, the grid extension module 11 is further configured to: if the grids on the upper and lower sides of any one of the extension grids in the transverse grid extension results are detected to be ocean, respectively extending the grids on the upper and lower ends with the extension grids as starting points to obtain the extension grids;
if the extended grid is detected not to be ocean, the extending of the grid is stopped.
The image interpolation processing module 13 is configured to perform image interpolation processing on the image corresponding to each extension grid in the ocean data image, and perform land image capping on the ocean data image after the image interpolation processing.
Wherein, the image interpolation processing module 13 is further configured to: respectively carrying out low-pass filtering or median filtering on pixel points in the image corresponding to each extension grid;
and setting pixel values corresponding to the extension grids according to the pixel values of the pixel points after low-pass filtering or median filtering.
Optionally, the image interpolation processing module 13 is further configured to: calculating pixel difference values between before and after filtering of pixel points in the extension grid;
and if the pixel difference value is larger than a difference value threshold value, smoothing the pixel point corresponding to the pixel difference value.
Optionally, the image interpolation processing module 13 is further configured to: acquiring spatial data corresponding to the ocean mode data, and acquiring a land display image in the spatial data;
performing land image capping on the ocean data image subjected to image interpolation processing according to the land display image;
optionally, the image interpolation processing module 13 is further configured to: performing image comparison on the land display image and the ocean data image, and setting an area image overlapped between the land display image and the ocean data image as an image to be covered;
and performing color coverage on the image to be covered in the ocean data image according to a preset color.
In this embodiment, the horizontal grid extension is performed according to the line number of the grid in the ocean data image, and the longitudinal grid extension is performed on the grid in the ocean data image according to the horizontal grid extension result, so that the grid extension is performed in a mode of taking the main row of the behavior as the auxiliary, the accuracy of ocean mode data shoreline extension is improved, the pixel value of each extension grid can be effectively set by performing image interpolation processing on the image corresponding to each extension grid, so as to achieve the effect of color filling of the extension grid, and the coastline existing in the extension grid can be effectively segmented by performing land image capping on the ocean data image after the image interpolation processing, so that the saw tooth phenomenon in the extension grid is prevented, and the display effect of ocean mode data is improved.
Example five
Referring to fig. 5, a schematic structural diagram of a marine mode data shoreline extension system 100A according to a fifth embodiment of the present application includes: an extended mesh drawing module 10, a mesh extending module 11, an extended mesh setting module 12, and an image interpolation processing module 13, wherein:
the extension grid drawing module 10 is used for acquiring a marine data image of marine mode data and drawing an extension grid in the marine data image.
Optionally, the extended mesh drawing module 10 is further configured to: acquiring an extending direction set for the ocean data image, and acquiring an image starting boundary of a starting direction of the extending direction in the ocean data image;
and drawing the extension grids in the image starting boundary according to the grid quantity.
The grid extension module 11 is configured to perform grid extension on the extended grid in the ocean data image, and determine whether the extended grid image in the ocean data image meets a preset extension condition, where the preset extension condition is used to determine whether the extended grid image is land.
Wherein, the grid extension module 11 is further configured to: and carrying out grid extension on the extension grid according to the extension direction.
Optionally, the mesh extension module 11 is further configured to: if the ocean area exists in the expanded grid image, judging that the expanded grid image meets the preset expansion condition;
and if the marine area does not exist in the expanded grid image, judging that the expanded grid image does not meet the preset expansion condition.
And the extended grid setting module 12 is configured to set the extended grid image as the extended grid if the extended grid image meets the preset extension condition.
The image interpolation processing module 13 is configured to perform image interpolation processing on the image corresponding to each extension grid in the ocean data image, and perform land image capping on the ocean data image after the image interpolation processing.
According to the embodiment, the extending grids are extended in the ocean data image, whether the extending grid image in the ocean data image meets the design of the preset extending condition is judged, whether the extending grid image is land or not is judged, if the extending grid image is detected to be not land, the extending grid image is set as the extending grid, the image interpolation processing is carried out on the image corresponding to each extending grid respectively, the pixel value of each extending grid can be effectively set, the effect of color filling of the extending grid is achieved, the land map image gland is carried out on the ocean data image after the image interpolation processing, the coastline existing in the extending grid can be effectively segmented, the saw tooth phenomenon in the extending grid is prevented, and the display effect of ocean mode data is improved.
Example six
Referring to fig. 6, a mobile terminal 101 according to a sixth embodiment of the present application includes a storage device and a processor, where the storage device is configured to store a computer program, and the processor is configured to run the computer program to enable the mobile terminal 101 to execute the above-mentioned ocean mode data shoreline extension method, and the mobile terminal 101 may be a robot.
The present embodiment also provides a storage medium having stored thereon a computer program for use in the above-described mobile terminal 101, which when executed, comprises the steps of:
acquiring a marine data image of marine mode data, and drawing an extension grid in the marine data image;
performing transverse grid extension according to the line numbers of grids in the ocean data image, and performing longitudinal grid extension on the grids in the ocean data image according to the transverse grid extension result to obtain extension grids;
and respectively carrying out image interpolation processing on the images corresponding to each extension grid in the ocean data images, and carrying out land image capping on the ocean data images subjected to the image interpolation processing. The storage medium includes: ROM/RAM, magnetic disks, optical disks, etc.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional units or modules according to needs, i.e. the internal structure of the storage device is divided into different functional units or modules, so as to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application.
Those skilled in the art will appreciate that the constituent structures shown in fig. 4 do not constitute a limitation of the marine mode data shoreline extension system of the present application and may include more or fewer components than shown, or may be combined with certain components, or may be arranged differently, while the marine mode data shoreline extension method of fig. 1 may also be implemented using more or fewer components shown in fig. 4, or may be combined with certain components, or may be arranged differently. The units, modules, etc. referred to in the present application refer to a series of computer programs capable of being executed by a processor (not shown) in the current marine mode data shoreline extension system and performing specific functions, which may all be stored in a storage device (not shown) of the current marine mode data shoreline extension system.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the application.

Claims (7)

1. A method of marine mode data shoreline extension, the method comprising:
acquiring a marine data image of marine mode data, and drawing extension grids in an image initial boundary according to the number of grids in the marine data image;
performing transverse grid extension according to the line numbers of grids in the ocean data image, and performing longitudinal grid extension on the grids in the ocean data image according to the transverse grid extension result to obtain extension grids;
the step of performing longitudinal grid extension on the grids in the ocean data image according to the transverse grid extension result to obtain extension grids comprises the following steps:
if the grids on the upper and lower sides of any one of the extension grids in the transverse grid extension results are detected to be ocean, respectively extending the grids on the upper and lower ends with the extension grids as starting points to obtain the extension grids;
stopping extending the grid if the extended grid is detected to be not ocean;
respectively carrying out image interpolation processing on the images corresponding to each extension grid in the ocean data images, and carrying out land image capping on the ocean data images subjected to the image interpolation processing;
the step of land image capping the ocean data image after the image interpolation processing comprises the following steps:
acquiring spatial data corresponding to the ocean mode data, and acquiring a land display image in the spatial data;
performing land image capping on the ocean data image subjected to image interpolation processing according to the land display image;
the step of performing land image capping on the ocean data image after the image interpolation processing according to the land display image comprises the following steps:
performing image comparison on the land display image and the ocean data image, and setting an area image overlapped between the land display image and the ocean data image as an image to be covered;
and performing color coverage on the image to be covered in the ocean data image according to a preset color.
2. A marine mode data shoreline extension method as in claim 1, wherein the step of drawing an extension grid in the marine data image comprises:
acquiring the image resolution of the ocean data image, and calculating the grid number of the extension grids according to the image resolution;
drawing the extended grid in the marine data image according to the grid number;
the calculation formula adopted for calculating the grid number of the extension grids according to the image resolution is as follows:
N=A/B
where N is the number of grids, a is a horizontal or vertical pixel of the marine data image, and B is a horizontal or vertical pixel preset for the extended grid.
3. A marine mode data shoreline extension method as in claim 1, wherein the step of performing image interpolation processing on the images corresponding to each of the extension grids in the marine data image respectively comprises:
respectively carrying out low-pass filtering or median filtering on pixel points in the image corresponding to each extension grid;
and setting pixel values corresponding to the extension grids according to the pixel values of the pixel points after low-pass filtering or median filtering.
4. A marine mode data shoreline extension method as claimed in claim 3, wherein after the step of setting pixel values for the extension grid in accordance with the pixel values for the pixel points after low pass filtering or median filtering, the method further comprises:
calculating pixel difference values between before and after filtering of pixel points in the extension grid;
and if the pixel difference value is larger than a difference value threshold value, smoothing the pixel point corresponding to the pixel difference value.
5. A marine mode data shoreline extension system for performing the method of claim 1, the system comprising:
the extending grid drawing module is used for obtaining ocean data images of ocean mode data and drawing extending grids in the ocean data images;
the grid extension module is used for carrying out transverse grid extension according to the line numbers of the grids in the ocean data image, and carrying out longitudinal grid extension on the grids in the ocean data image according to the transverse grid extension result to obtain extension grids;
and the image interpolation processing module is used for respectively carrying out image interpolation processing on the images corresponding to each extension grid in the ocean data images and carrying out land image capping on the ocean data images after the image interpolation processing.
6. A mobile terminal comprising a storage device for storing a computer program and a processor that runs the computer program to cause the mobile terminal to perform a marine mode data shoreline extension method according to any of claims 1 to 4.
7. A storage medium storing a computer program for use in a mobile terminal according to claim 6, which when executed by a processor carries out the steps of the marine mode data shoreline extension method according to any of claims 1 to 4.
CN202010893436.3A 2020-08-31 2020-08-31 Ocean mode data shoreline extension method, system, mobile terminal and storage medium Active CN112085656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010893436.3A CN112085656B (en) 2020-08-31 2020-08-31 Ocean mode data shoreline extension method, system, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010893436.3A CN112085656B (en) 2020-08-31 2020-08-31 Ocean mode data shoreline extension method, system, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112085656A CN112085656A (en) 2020-12-15
CN112085656B true CN112085656B (en) 2023-12-05

Family

ID=73729656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010893436.3A Active CN112085656B (en) 2020-08-31 2020-08-31 Ocean mode data shoreline extension method, system, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112085656B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101513591B1 (en) * 2014-08-26 2015-04-21 (주)비엔티솔루션 System for providing real time ocean spatial data using web 3d
CN105303526A (en) * 2015-09-17 2016-02-03 哈尔滨工业大学 Ship target detection method based on coastline data and spectral analysis
CN105488787A (en) * 2015-11-24 2016-04-13 江苏科技大学 Geometric active contour model-based coastline detection method for remote sensing image
CN105513041A (en) * 2015-10-28 2016-04-20 深圳大学 Large-scale remote sensing image sea-land segmentation method and system
CN106408624A (en) * 2016-09-30 2017-02-15 浙江大学 Coastline data rapid and automatic superposition method applied to multi-projection remote sensing images
CN108376247A (en) * 2018-02-05 2018-08-07 北方工业大学 Strategic coarse-fine combined sea-land separation method applied to optical remote sensing ship detection

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101513591B1 (en) * 2014-08-26 2015-04-21 (주)비엔티솔루션 System for providing real time ocean spatial data using web 3d
CN105303526A (en) * 2015-09-17 2016-02-03 哈尔滨工业大学 Ship target detection method based on coastline data and spectral analysis
CN105513041A (en) * 2015-10-28 2016-04-20 深圳大学 Large-scale remote sensing image sea-land segmentation method and system
WO2017071160A1 (en) * 2015-10-28 2017-05-04 深圳大学 Sea-land segmentation method and system for large-size remote-sensing image
CN105488787A (en) * 2015-11-24 2016-04-13 江苏科技大学 Geometric active contour model-based coastline detection method for remote sensing image
CN106408624A (en) * 2016-09-30 2017-02-15 浙江大学 Coastline data rapid and automatic superposition method applied to multi-projection remote sensing images
CN108376247A (en) * 2018-02-05 2018-08-07 北方工业大学 Strategic coarse-fine combined sea-land separation method applied to optical remote sensing ship detection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于SLIC超像素分割的SAR图像海陆分割算法;李智;曲长文;周强;刘晨;;雷达科学与技术(04);全文 *
基于光学遥感的海岛潮间带和湿地信息提取――以东沙岛(礁)为例;王小龙;张杰;初佳兰;;海洋科学进展(04);全文 *

Also Published As

Publication number Publication date
CN112085656A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN109541634B (en) Path planning method and device and mobile device
JP5451767B2 (en) Image resizing method and system based on interpolation enhanced seam operation
WO2016116045A1 (en) Method and apparatus for generating digital terrain model data of electronic maps
CN109584366B (en) Terrain rendering method, device, equipment and readable storage medium
CN110399762A (en) A kind of method and device of the lane detection based on monocular image
CN103605506A (en) Graphical user interface resource display method and terminal
CN115375868B (en) Map display method, remote sensing map display method, computing device and storage medium
CN114004754A (en) Scene depth completion system and method based on deep learning
CN108197596B (en) Gesture recognition method and device
CN109993693B (en) Method and apparatus for interpolating an image
CN110660121B (en) Three-dimensional font rendering method, medium, device and apparatus
CN113221895A (en) Small target detection method, device, equipment and medium
CN106663317B (en) Morphological processing method and digital image processing device for digital image
CN113642589B (en) Image feature extraction method and device, computer equipment and readable storage medium
CN112085656B (en) Ocean mode data shoreline extension method, system, mobile terminal and storage medium
CN112115226B (en) Map rendering method and map rendering device
CN110427944A (en) Acquisition methods, device, equipment and the storage medium of car plate detection data
CN115690193A (en) Rasterization method for depth information of non-uniformly distributed sea map
CN112419459B (en) Method, apparatus, computer device and storage medium for baking model AO mapping
CN114817619A (en) Map generation method, system, medium, and apparatus based on grid re-projection
CN115240150A (en) Lane departure warning method, system, device and medium based on monocular camera
CN109859118B (en) Method and system for removing cloud coverage area through effective mosaic polygon optimization based on quadtree
CN114778458A (en) Remote sensing monitoring method and device for marine plankton and readable storage medium
CN109829019B (en) Data conversion method and device of vector data and electronic equipment
Shindo et al. Reduction of resolution for binary images by an octal grid graph representation model

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Marine model data shoreline extension method, system, mobile terminal, and storage medium

Granted publication date: 20231205

Pledgee: Xiamen Jimei Sub branch of Agricultural Bank of China Co.,Ltd.

Pledgor: XIAMEN LANHIT INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2024980019513