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

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

Info

Publication number
CN112085656A
CN112085656A CN202010893436.3A CN202010893436A CN112085656A CN 112085656 A CN112085656 A CN 112085656A CN 202010893436 A CN202010893436 A CN 202010893436A CN 112085656 A CN112085656 A CN 112085656A
Authority
CN
China
Prior art keywords
grid
image
extension
ocean
data
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.)
Granted
Application number
CN202010893436.3A
Other languages
Chinese (zh)
Other versions
CN112085656B (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

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/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 invention provides an ocean 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; 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 an extended grid; and respectively carrying out image interpolation processing on the image corresponding to each extension grid, and carrying out land image capping on the ocean data image subjected to the image interpolation processing. According to the invention, the image interpolation processing is respectively carried out on the image corresponding to each extended grid, the pixel value of each extended grid can be set, and the land image capping is carried out on the ocean data image after the image interpolation processing, so that the coastline existing in the extended grid can be segmented, the sawtooth phenomenon in the extended grid is prevented, and the display effect of the ocean mode data is improved.

Description

Ocean mode data shoreline extension method and system, mobile terminal and storage medium
Technical Field
The invention relates to the technical field of data extension, in particular to an ocean mode data shoreline extension method and system, a mobile terminal and a storage medium.
Background
Marine environments refer to the vast continuum of the ocean and oceans of the general water space on earth. Including seawater, dissolved and suspended matter in seawater, seabed sediments and marine life, is a living cradle and a treasure house for human beings. The intelligent ocean engineering is an organic combination of ocean industrialization and ocean informatization, and the industrial big data and internet big data technology is used to realize ocean resource sharing and ocean activity cooperation, mine new requirements, create new value and achieve the purpose of intelligent ocean.
In the process of building an intelligent ocean project, a large amount of ocean mode data can be generated, and the ocean mode data is deeply mined, so that the core value of the whole project is further formed by the application service capability and the realization of data asset value-added circulation.
In the existing ocean mode data display process, data grids such as ocean currents, ocean temperatures and ocean waves are not matched with a 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 invention aims to provide a method, a system, a mobile terminal and a storage medium for extending a shoreline of ocean mode data, and aims to solve the problem that a displayed image generates a sawtooth phenomenon because data grids such as ocean currents, ocean temperatures and ocean waves are not matched with the shoreline in the existing ocean mode data display process.
The embodiment of the invention is realized in such a way that a marine mode data shoreline extension method comprises the steps of obtaining a marine data image of marine mode data, and drawing an extension grid in the marine data image;
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;
and respectively carrying out image interpolation processing on the image corresponding to each extension grid in the ocean data image, and carrying out land image capping on the ocean data image after 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 grid according to the image resolution;
drawing the extended grids in the marine data image according to the grid number;
the calculation formula for calculating the grid number of the extension grid according to the image resolution is as follows:
N=A/B
wherein N is the number of the grids, A is a horizontal pixel or a vertical pixel of the ocean data image, and B is a horizontal pixel or a vertical pixel preset for the extended grid.
Further, the step of performing longitudinal grid extension on the grid in the marine data image according to the transverse grid extension result to obtain the extended grid includes:
if the fact that the grids on the upper side and the lower side of any extension grid in the transverse grid extension result are all oceans is detected, extending towards the grids on the upper end and the lower end respectively by taking the extension grid as a starting point to obtain the extension grid;
and stopping the extension of the grid if the extended grid is detected not to be the sea.
Still further, the step of performing image interpolation processing on the image corresponding to each extended grid in the ocean 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 the pixel value corresponding to the extension grid according to the pixel value of the pixel point after low-pass filtering or median filtering.
Furthermore, after the step of setting the pixel value corresponding to the extended grid according to the pixel value of the pixel after the low-pass filtering or the median filtering, the method further includes:
calculating a pixel difference value between the pixel points in the extended grid before and after filtering;
and if the pixel difference value is larger than the difference value threshold value, smoothing the pixel point corresponding to the pixel difference value.
Further, the step of performing land image capping on the ocean data image after image interpolation processing comprises:
acquiring spatial data corresponding to the ocean mode data, and acquiring a land display image in the spatial data;
carrying out land image capping on the ocean data image subjected to image interpolation processing according to the land display image;
the step of carrying out land image capping on the ocean data image subjected to image interpolation processing according to the land display image comprises the following steps:
comparing the land display image with the ocean data image, and setting an overlapped area image 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 invention to provide an ocean mode data shoreline extension system, including:
the extended grid drawing module is used for acquiring a marine data image of marine mode data and drawing an extended grid in the marine data image;
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 the extension grids;
and the image interpolation processing module is used for respectively carrying out image interpolation processing on the image corresponding to each extended grid in the ocean data image and carrying out land image capping on the ocean data image after the image interpolation processing.
Still further, the grid extension module is further configured to:
if the fact that the grids on the upper side and the lower side of any extension grid in the transverse grid extension result are all oceans is detected, extending towards the grids on the upper end and the lower end respectively by taking the extension grid as a starting point to obtain the extension grid;
and stopping the extension of the grid if the extended grid is detected not to be the sea.
Another object of an embodiment of the present invention is to provide a mobile terminal, including a storage device and a processor, where the storage device is used to store a computer program, and the processor runs the computer program to make the mobile terminal execute the marine mode data shoreline extension method.
Another object of an embodiment of the present invention is to provide a storage medium, which stores a computer program used in the mobile terminal, wherein the computer program, when executed by a processor, implements the steps of the marine pattern data shoreline extension method.
According to the embodiment of the invention, the horizontal grid extension is carried out according to the line number of the grid in the ocean data image, and the longitudinal grid extension is carried out on the grid in the ocean data image according to the horizontal grid extension result, so that the grid extension is carried out in a mode of taking a main line as an auxiliary line, the accuracy of ocean mode data shoreline extension is improved, the pixel value of each extension grid can be effectively set by respectively carrying out image interpolation processing on the image corresponding to each extension grid, the effect of carrying out color filling on the extension grid is achieved, the land image capping is carried out on the ocean data image after the image interpolation processing, the shoreline existing in the extension grid can be effectively segmented, the sawtooth phenomenon in the extension grid is prevented, and the display effect of the ocean mode data is improved.
Drawings
Fig. 1 is a flowchart of a marine mode data shoreline extension method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a marine mode data shoreline extension method provided by a second embodiment of the invention;
fig. 3 is a flowchart of a marine mode data shoreline extension method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an ocean mode data shoreline extension system provided by a fourth embodiment of the invention;
fig. 5 is a schematic structural diagram of an ocean mode data shoreline extension system provided by a fifth embodiment of the invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Referring to fig. 1, a flowchart of a marine mode data shoreline extension method according to a first embodiment of the present invention includes the steps of:
step S1, obtaining a marine data image of marine mode data, and drawing an extension grid in the marine data image;
the size and shape of the extended grid can be set according to requirements, for example, the shape of the extended grid can be square, circular, or triangular, and the size of the extended grid can be 1 × 1 pixel grid, 2 × 2 pixel grid, or 4 × 4 pixel grid.
In this step, if the data volume of the marine mode data is greater than the data volume threshold, data thinning is performed on the marine mode data, the data volume threshold can be set according to requirements, specifically, when the marine mode data is processed, a lot of repeated data often exist in the marine mode data, inconvenience is brought to further data processing, and marine data images to be expressed by redundant data are not smooth or meet standards.
Optionally, in this step, the marine model data may be thinned by using a step method, a Douglas-Peuker (Douglas-Peuker) algorithm, or a vertical distance limit.
Step S2, 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 the extended grids;
the method comprises the steps of carrying out horizontal grid extension according to line numbers of grids in the ocean data image, and carrying out longitudinal grid extension on the grids in the ocean data image according to a horizontal grid extension result, so that the grids are extended in a mode of using a main row and a main column as auxiliary rows, and accuracy of ocean mode data shoreline extension is improved.
Specifically, in this step, the step of performing longitudinal grid extension on the grid in the marine data image according to the result of the transverse grid extension to obtain the extended grid includes:
if the fact that the grids on the upper side and the lower side of any extension grid in the transverse grid extension result are all oceans is detected, extending towards the grids on the upper end and the lower end respectively by taking the extension grid as a starting point to obtain the extension grid;
and stopping the extension of the grid if the extended grid is detected not to be the sea.
Step S3, performing image interpolation processing on the image corresponding to each extended grid in the ocean data image, and performing land image capping on the ocean data image after 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 carrying out color filling on the extension grids is achieved;
optionally, in this step, an image interpolation process may be performed on an image corresponding to the extended mesh by using algorithms such as Nearest-neighbor interpolation (Nearest-neighbor), Bilinear interpolation (Bilinear), bicubic, lanczos, directional interpolation (Edge-directed interpolation), example-based interpolation, or depth learning, so as to achieve an effect of performing pixel value setting on each extended mesh.
Furthermore, 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 land and ocean can be effectively segmented based on land segmentation, the phenomenon that data grids such as ocean currents, ocean temperatures and ocean waves are not matched with the coastline is prevented, and the display effect of ocean mode data is improved.
In the embodiment, horizontal grid extension is performed according to the line number of the grid in the ocean data image, longitudinal grid extension is performed on the grid in the ocean data image according to the horizontal grid extension result, the grid is extended in a mode of using a main line and a main line as an auxiliary line, accuracy of ocean mode data shoreline extension is improved, image interpolation processing is performed on images corresponding to each extension grid respectively, pixel values can be effectively set on each extension grid, the effect of filling colors in the extension grid is achieved, land image capping is performed on the ocean data image after the image interpolation processing, the shoreline existing in the extension grid can be effectively segmented, the sawtooth phenomenon in the extension grid is prevented, and the display effect of the 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 invention is shown, including 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, performing mesh extension on the extension mesh in the marine data image;
the extended grids can be subjected to grid extension in a mode of taking a row as a main mode and a column as an auxiliary mode in the ocean data image, and the extended grids are subjected to grid extension in the ocean data image, so that the extended effect of the extended grids is achieved.
Optionally, in this step, the extension grid may be subjected to grid extension based on a preset extension rule, and the preset extension rule may be set according to a requirement, 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 the like.
Step S30, judging whether the expanded grid image in the ocean data image meets a preset expansion condition;
the preset extension condition is used for judging whether the extended grid image is a land or not, and if the extended grid image meets the preset extension condition, judging that the extended grid image is not the land; and if the extended grid image does not meet the preset extension condition, judging that the extended grid image is the land.
Step S40, if the extended mesh image satisfies the preset extension condition, setting the extended mesh image as the extension mesh;
in this embodiment, the area corresponding to the extended grid is a coastline formed between the ocean or the ocean and the land, and if the extended grid image satisfies the preset extension condition, it is determined that the extended grid image is the coastline formed between the ocean or the ocean and the land, and therefore, the extended grid image is set as the extended grid.
Step S50, respectively carrying out image interpolation processing on the image corresponding to each extended grid in the ocean data image, and carrying out land image capping on the ocean data image after the image interpolation processing;
in the embodiment, the grid extension is performed on the extension grid in the ocean data image, whether the grid image after extension in the ocean data image meets the design of the preset extension condition is judged, whether the grid image after extension is land is judged, if the grid image after extension is not land is detected, the grid image after extension is set as the extension grid, image interpolation processing is performed on the image corresponding to each extension grid, pixel values can be effectively set on each extension grid, the effect of color filling on the extension grid is achieved, land image capping is performed on the ocean data image after image interpolation processing, the coastline existing in the extension grid can be effectively segmented, the sawtooth phenomenon in the extension 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 invention includes the steps of:
step S11, acquiring a marine data image of marine mode data, and acquiring the image resolution of the marine data image;
step S21, calculating the grid number of the extended grid according to the image resolution, and drawing the extended grid in the ocean data image according to the grid number;
wherein, the calculation formula for calculating the grid number of the extension grid according to the image resolution is as follows:
N=A/B
wherein N is the number of the grids, A is a horizontal pixel or a vertical pixel of the ocean data image, and B is a horizontal pixel or a vertical pixel preset for the extended grid.
Optionally, in this step, the step of drawing the extended grid in the marine data image according to the number of grids includes:
acquiring an extension direction set for the ocean data image, and acquiring an image start boundary of a start direction of the extension direction in the ocean data image, wherein the extension 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 performing grid extension on the extension grid according to the extension direction, judging whether the extended grid image in the ocean data image meets a preset extension condition, wherein the preset extension condition is used for judging whether the extended grid image is land, and if the extended grid image meets the preset extension condition, judging that the extended grid image is not land; if the extended grid image does not meet the preset extension condition, judging that the extended grid image is land;
optionally, if no ocean area exists in the expanded grid image, determining that the expanded grid image does not satisfy the preset expansion condition;
step S41, if there is an ocean region in the expanded grid image, determining that the expanded grid image satisfies the preset expansion condition;
step S51, if the expanded grid image in the ocean data image meets the preset expansion condition, setting the expanded grid image as the expansion grid;
the area corresponding to the extended grid is a coastline formed between the sea or the sea and the land, and if the extended grid image meets a preset extension condition, the extended grid image is determined to be the coastline formed between the sea or the sea and the land, so that the extended grid image is set as the extended grid;
step S61, low-pass filtering or median filtering is respectively carried out on the pixel points in the image corresponding to each extended grid;
the method comprises the following steps of performing low-pass filtering or median filtering on pixel points in images corresponding to extension grids in a linear filter mode, and performing low-pass filtering or median filtering on the pixel points in the images corresponding to the extension grids respectively to achieve the convolution effect on the images corresponding to the extension grids;
specifically, in this step, the anchor point of the kernel in the linear filter is placed on the pixel at the specified position in the extended grid, and meanwhile, other values in the kernel in the linear filter coincide with the pixels in the neighborhood of the pixel, the values in the kernel are multiplied by the corresponding pixel values, the products are added, the obtained result is placed on the pixel corresponding to the anchor point, and the above process is repeated for all the pixels on the image corresponding to the extended grid, so as to achieve the effect of low-pass filtering or median filtering on the pixel point.
Step S71, setting pixel values corresponding to the extended 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 performing pixel value setting on the extended grid corresponding to the pixel value of the pixel point after low-pass filtering or median filtering, the method further includes:
calculating a pixel difference value between the pixel points in the extended grid before and after filtering;
if the pixel difference value is larger than the difference value threshold value, smoothing the pixel point corresponding to the pixel difference value;
if the pixel difference value is larger than the difference threshold value, the pixel point corresponding to the pixel difference value is judged to have burrs, and therefore the burrs on the pixel point are removed through the design of carrying out smoothing treatment on the pixel point corresponding to the pixel difference value, the sawtooth phenomenon is prevented, and the display effect of the ocean data image is improved.
Step S81, land display images in the spatial data are obtained, and land image capping is carried out on the ocean data images after image interpolation processing according to the land display images;
optionally, in this step, the step of performing land image capping on the marine data image after image interpolation processing according to the land display image includes:
comparing the land display image with the ocean data image, and setting an overlapped area image 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 the embodiment, the grid extension is performed on the extension grid in the ocean data image, whether the grid image after extension in the ocean data image meets the design of the preset extension condition is judged, whether the grid image after extension is land is judged, if the grid image after extension is not land is detected, the grid image after extension is set as the extension grid, image interpolation processing is performed on the image corresponding to each extension grid, pixel values can be effectively set on each extension grid, the effect of color filling on the extension grid is achieved, land image capping is performed on the ocean data image after image interpolation processing, the coastline existing in the extension grid can be effectively segmented, the sawtooth phenomenon in the extension grid is prevented, and the display effect of ocean mode data is improved.
Example four
Referring to fig. 4, a schematic structural diagram of an ocean mode data shoreline extension system 100 according to a fourth embodiment of the present invention is shown, including: an extended grid drawing module 10, a grid extension module 11 and an image interpolation processing module 13, wherein:
and the extended grid drawing module 10 is configured to acquire an ocean data image of the ocean mode data and draw an extended grid in the ocean data image.
Wherein the extended grid drawing module 10 is further configured to: acquiring the image resolution of the ocean data image, and calculating the grid number of the extension grid according to the image resolution;
drawing the extended grids in the marine data image according to the grid number;
the calculation formula for calculating the grid number of the extension grid according to the image resolution is as follows:
N=A/B
wherein N is the number of the grids, A is a horizontal pixel or a vertical pixel of the ocean data image, and B is a horizontal pixel or a vertical pixel preset for the extended grid.
And the grid extension module 11 is configured to perform transverse grid extension according to the line number of the grid in the ocean data image, and perform longitudinal grid extension on the grid in the ocean data image according to the transverse grid extension result to obtain the extension grid.
Wherein the grid extension module 11 is further configured to: if the fact that the grids on the upper side and the lower side of any extension grid in the transverse grid extension result are all oceans is detected, extending towards the grids on the upper end and the lower end respectively by taking the extension grid as a starting point to obtain the extension grid;
and stopping the extension of the grid if the extended grid is detected not to be the sea.
And the image interpolation processing module 13 is configured to perform image interpolation processing on the image corresponding to each extended 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 the pixel value corresponding to the extension grid according to the pixel value of the pixel point after low-pass filtering or median filtering.
Optionally, the image interpolation processing module 13 is further configured to: calculating a pixel difference value between the pixel points in the extended grid before and after filtering;
and if the pixel difference value is larger than the 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;
carrying out 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: comparing the land display image with the ocean data image, and setting an overlapped area image 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 the embodiment, horizontal grid extension is performed according to the line number of the grid in the ocean data image, longitudinal grid extension is performed on the grid in the ocean data image according to the horizontal grid extension result, the grid is extended in a mode of using a main line and a main line as an auxiliary line, accuracy of ocean mode data shoreline extension is improved, image interpolation processing is performed on images corresponding to each extension grid respectively, pixel values can be effectively set on each extension grid, the effect of filling colors in the extension grid is achieved, land image capping is performed on the ocean data image after the image interpolation processing, the shoreline existing in the extension grid can be effectively segmented, the sawtooth phenomenon in the extension grid is prevented, and the display effect of the ocean mode data is improved.
EXAMPLE five
Referring to fig. 5, a schematic structural diagram of an ocean mode data shoreline extension system 100A according to a fifth embodiment of the present invention is shown, including: an extended grid drawing module 10, a grid extension module 11, an extended grid setting module 12 and an image interpolation processing module 13, wherein:
and the extended grid drawing module 10 is configured to acquire an ocean data image of the ocean mode data and draw an extended grid in the ocean data image.
Optionally, the extended grid drawing module 10 is further configured to: acquiring an extension direction set for the ocean data image, and acquiring an image starting boundary of a starting direction of the extension direction in the ocean data image;
and drawing the extension grids in the image starting boundary according to the grid quantity.
And the grid extending 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 grid extension module 11 is further configured to: if the extended grid image has the ocean area, judging that the extended grid image meets the preset extension condition;
and if the extended grid image does not have the ocean area, judging that the extended grid image does not meet the preset extension condition.
And an extension grid setting module 12, configured to set the extended grid image as the extension grid if the extended grid image meets the preset extension condition.
And the image interpolation processing module 13 is configured to perform image interpolation processing on the image corresponding to each extended grid in the ocean data image, and perform land image capping on the ocean data image after the image interpolation processing.
In the embodiment, the grid extension is performed on the extension grid in the ocean data image, whether the grid image after extension in the ocean data image meets the design of the preset extension condition is judged, whether the grid image after extension is land is judged, if the grid image after extension is not land is detected, the grid image after extension is set as the extension grid, image interpolation processing is performed on the image corresponding to each extension grid, pixel values can be effectively set on each extension grid, the effect of color filling on the extension grid is achieved, land image capping is performed on the ocean data image after image interpolation processing, the coastline existing in the extension grid can be effectively segmented, the sawtooth phenomenon in the extension 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 invention includes a storage device and a processor, where the storage device is used to store a computer program, and the processor runs the computer program to make the mobile terminal 101 execute the marine mode data shoreline extension method, and the mobile terminal 101 may be a robot.
The present embodiment also provides a storage medium on which a computer program used in the above-mentioned mobile terminal 101 is stored, which when executed, includes the steps of:
acquiring a marine data image of marine mode data, and drawing an extension grid in the marine data image;
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;
and respectively carrying out image interpolation processing on the image corresponding to each extension grid in the ocean data image, and carrying out land image capping on the ocean data image after the image interpolation processing. The storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is used as an example, in practical applications, the above-mentioned function distribution may be performed by different functional units or modules according to needs, that is, the internal structure of the storage device is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit, and the integrated unit may be implemented in a form of hardware, or may be implemented in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of 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 configuration shown in fig. 4 is not intended to be limiting of the marine mode data shoreline extension system of the present invention and may include more or fewer components than shown, or some components in combination, or a different arrangement of components, and that the marine mode data shoreline extension method of fig. 1 may also be implemented using more or fewer components than shown in fig. 4, or some components in combination, or a different arrangement of components. The units, modules, etc. referred to herein are a series of computer programs that can be executed by a processor (not shown) in the current marine mode data shoreline extension system and that can perform a specific function, and each of the computer programs can be stored in a storage device (not shown) of the current marine mode data shoreline extension system.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A method of marine mode data shoreline extension, the method comprising:
acquiring a marine data image of marine mode data, and drawing an extension grid in the marine data image;
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 extended grids
And respectively carrying out image interpolation processing on the image corresponding to each extension grid in the ocean data image, and carrying out land image capping on the ocean data image after the image interpolation processing.
2. The marine mode data shoreline extension method of 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 grid according to the image resolution;
drawing the extended grids in the marine data image according to the grid number;
the calculation formula for calculating the grid number of the extension grid according to the image resolution is as follows:
N=A/B
wherein N is the number of the grids, A is a horizontal pixel or a vertical pixel of the ocean data image, and B is a horizontal pixel or a vertical pixel preset for the extended grid.
3. The marine pattern data shoreline extension method of claim 1, wherein the step of performing vertical grid extension on the grid in the marine data image according to the horizontal grid extension result to obtain the extended grid comprises:
if the fact that the grids on the upper side and the lower side of any extension grid in the transverse grid extension result are all oceans is detected, extending towards the grids on the upper end and the lower end respectively by taking the extension grid as a starting point to obtain the extension grid;
and stopping the extension of the grid if the extended grid is detected not to be the sea.
4. The marine mode data shoreline extension method of claim 1, wherein the step of separately interpolating images corresponding to each extension grid in the marine data image comprises:
respectively carrying out low-pass filtering or median filtering on pixel points in the image corresponding to each extension grid;
and setting the pixel value corresponding to the extension grid according to the pixel value of the pixel point after low-pass filtering or median filtering.
5. The ocean mode data shoreline extension method of claim 4, wherein after the step of performing pixel value setting on the extended grid corresponding to the pixel values of the pixels after low-pass filtering or median filtering, the method further comprises:
calculating a pixel difference value between the pixel points in the extended grid before and after filtering;
and if the pixel difference value is larger than the difference value threshold value, smoothing the pixel point corresponding to the pixel difference value.
6. The marine mode data shoreline extension method of claim 1, wherein the step of land image capping the marine data image after image interpolation comprises:
acquiring spatial data corresponding to the ocean mode data, and acquiring a land display image in the spatial data;
carrying out land image capping on the ocean data image subjected to image interpolation processing according to the land display image;
the step of carrying out land image capping on the ocean data image subjected to image interpolation processing according to the land display image comprises the following steps:
comparing the land display image with the ocean data image, and setting an overlapped area image 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.
7. An ocean mode data shoreline extension system, the system comprising:
the extended grid drawing module is used for acquiring a marine data image of marine mode data and drawing an extended grid in the marine data image;
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 the extension grids;
and the image interpolation processing module is used for respectively carrying out image interpolation processing on the image corresponding to each extended grid in the ocean data image and carrying out land image capping on the ocean data image after the image interpolation processing.
8. The marine mode data shoreline extension system of claim 7, wherein the grid extension module is further to:
if the fact that the grids on the upper side and the lower side of any extension grid in the transverse grid extension result are all oceans is detected, extending towards the grids on the upper end and the lower end respectively by taking the extension grid as a starting point to obtain the extension grid;
and stopping the extension of the grid if the extended grid is detected not to be the sea.
9. A mobile terminal, characterized in that it comprises a storage device for storing a computer program and a processor running the computer program to make the mobile terminal execute the marine mode data shore line extension method according to any one of claims 1 to 6.
10. A storage medium, characterized in that it stores a computer program for use in a mobile terminal according to claim 9, which computer program, when executed by a processor, implements the steps of the marine mode data shoreline extension method according to any one of claims 1 to 7.
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 true CN112085656A (en) 2020-12-15
CN112085656B 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图像海陆分割算法", 雷达科学与技术, no. 04 *
王小龙;张杰;初佳兰;: "基于光学遥感的海岛潮间带和湿地信息提取――以东沙岛(礁)为例", 海洋科学进展, no. 04 *

Also Published As

Publication number Publication date
CN112085656B (en) 2023-12-05

Similar Documents

Publication Publication Date Title
WO2016116045A1 (en) Method and apparatus for generating digital terrain model data of electronic maps
KR101617059B1 (en) Method and system for image resizing based on interpolation enhanced seam operations
GB2544590B (en) Image synthesis utilizing an active mask
CN111476718B (en) Image amplification method and device, storage medium and terminal equipment
CN109584366B (en) Terrain rendering method, device, equipment and readable storage medium
CN103605506A (en) Graphical user interface resource display method and terminal
CN111260675B (en) High-precision extraction method and system for image real boundary
CN108197596B (en) Gesture recognition method and device
CN111915690B (en) Thermodynamic diagram data shrinkage editing method based on vector tiles
CN115375868B (en) Map display method, remote sensing map display method, computing device and storage medium
CN110660121B (en) Three-dimensional font rendering method, medium, device and apparatus
CN106663317B (en) Morphological processing method and digital image processing device for digital image
US20220164559A1 (en) Narrow-strip 2-dimensional bar codes, methods, apparatuses, and devices for generating and identifying narrow-strip 2-dimensional bar codes
CN103310461B (en) Based on the image edge extraction method of block Kalman filtering
CN112085656B (en) Ocean mode data shoreline extension method, system, mobile terminal and storage medium
CN112634172B (en) 3D printing method and device for generating three-dimensional model by using two-dimensional image
CN108009214B (en) ArcGIS-based vector data parallel processing method and system
CN112419459B (en) Method, apparatus, computer device and storage medium for baking model AO mapping
WO2022017133A1 (en) Method and apparatus for processing point cloud data
CN109829019B (en) Data conversion method and device of vector data and electronic equipment
CN109859118B (en) Method and system for removing cloud coverage area through effective mosaic polygon optimization based on quadtree
CN117114971B (en) Pixel map-to-vector map conversion method and system
Moore The case for approximate Distance Transforms
CN112632208B (en) Traffic flow trajectory deformation method and device
CN104978712A (en) Image processing method and device

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