CN114897986A - Color processing method, device, electronic equipment and storage medium - Google Patents

Color processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114897986A
CN114897986A CN202210576079.7A CN202210576079A CN114897986A CN 114897986 A CN114897986 A CN 114897986A CN 202210576079 A CN202210576079 A CN 202210576079A CN 114897986 A CN114897986 A CN 114897986A
Authority
CN
China
Prior art keywords
image
processed
geographic
geographic image
color
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.)
Pending
Application number
CN202210576079.7A
Other languages
Chinese (zh)
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.)
Zhejiang Institute Of Surveying And Mapping Science And Technology
Original Assignee
Zhejiang Institute Of Surveying And Mapping Science And Technology
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 Zhejiang Institute Of Surveying And Mapping Science And Technology filed Critical Zhejiang Institute Of Surveying And Mapping Science And Technology
Priority to CN202210576079.7A priority Critical patent/CN114897986A/en
Publication of CN114897986A publication Critical patent/CN114897986A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • G06T7/75Determining position or orientation of objects or cameras using feature-based methods involving models
    • 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/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/44Secrecy systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

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

Abstract

The application relates to a color processing method, a color processing device, an electronic device and a storage medium. The color processing method comprises the following steps: determining a geographic image to be processed and a target area to which the geographic image to be processed belongs; determining the position coordinates of each pixel point in the geographic image to be processed by combining the space-three encryption result of the geographic image to be processed and the digital elevation model of the target area; and based on the position coordinates of each pixel point in the geographic image to be processed, performing color mapping on the geographic image to be processed by using a preset color template image corresponding to the target area. According to the scheme, the geographic image without geographic position reference can be richer in color after color processing, stronger in layering and more real in visual effect.

Description

Color processing method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a color processing method and apparatus, an electronic device, and a storage medium.
Background
The geographic image can clearly and intuitively show the topographic features, urban planning features and the like of a certain area. Therefore, quality optimization of the generated geographic images has been a goal pursued by the related industries. Color adjustment of geographic images is one of the most important optimization directions.
In the related art, a method based on a standard color template is often used to perform color adjustment on a geographic image. The method comprises the steps of carrying out artificial color adjustment according to natural colors of ground objects to generate a standard color reference template, and carrying out parameter transformation on a geographic image to be processed through calculating a model expressed by color parameters such as brightness, saturation and contrast of an image in the standard color reference template so as to keep the geographic image consistent with the color parameters such as brightness, saturation and contrast of the image in the standard color reference template.
However, this approach is not suitable for color adjustment of geographical images of large areas. The large area generally corresponds to a plurality of geographic images, wherein the ground features contained in the geographic images are not completely the same, but the geographic images are subjected to color processing based on the same standard color reference template, so that the geographic images obtained by processing are single in color, lack in gradation and poor in color processing effect.
Disclosure of Invention
The application provides a color processing method, a color processing device, an electronic device and a storage medium, and aims to provide a more optimized color processing method and improve the color processing efficiency of a geographic image.
In a first aspect, the present application provides a color processing method, including:
determining a geographic image to be processed and a target area to which the geographic image to be processed belongs;
determining the position coordinates of each pixel point in the geographic image to be processed by combining the space-three encryption result of the geographic image to be processed and the digital elevation model of the target area;
and based on the position coordinates of each pixel point in the geographic image to be processed, performing color mapping on the geographic image to be processed by using a preset color template image corresponding to the target area.
By the method, the position coordinates of each pixel point in the geographic image to be processed can be determined by combining the space-three encryption result with the digital elevation model, the pixels in the preset color template image corresponding to the target area can be corresponding to the pixels with the same coordinates in the geographic image to be processed based on the position coordinates, and then the geographic image to be processed can be subjected to color mapping by referring to the template with the same position, so that real color mapping is realized. Compared with the mapping method based on the universal template in the prior art, the method can ensure that the effect after color mapping is more real. Because the position coordinates contain elevation information, in the process of color mapping, images with different heights can be mapped differently, so that the geographic images after color mapping have stronger hierarchy.
And the preset color template images corresponding to the target areas to which the images belong can be used for different images to be processed, namely, the images to be processed in different target areas can use different preset color template images, so that the colors of the processed geographic images can be richer.
Optionally, the determining, by combining the space-three encryption result of the geographic image to be processed and the digital elevation model of the target area, the position coordinate of each pixel point in the geographic image to be processed includes:
determining position coordinates of a plurality of standard points, image point coordinates of each pixel point in the geographic image to be processed and external orientation elements based on the space-three encryption result of the geographic image to be processed;
aiming at each standard point, combining the external orientation element and the image point coordinates of the standard point, enabling the standard point to correspond to the digital elevation model of the target area, and determining the position coordinates of the standard point;
and aiming at each pixel point in the geographic image to be processed, combining the exterior orientation element and the pixel point coordinate of the pixel point, enabling the pixel point to correspond to the digital elevation model of the target area, and determining the position coordinate of the pixel point based on the position coordinate of the corresponding point of the standard point on the digital elevation model.
By utilizing the space-three encryption results and combining the digital elevation model, the accurate coordinate position of the geographic image to be processed can be obtained.
Optionally, the performing, based on the position coordinate of each pixel point in the geographic image to be processed, color mapping on the geographic image to be processed by using a preset color template image corresponding to the target area includes:
determining a plurality of regions to be mapped in the geographic image to be processed;
for each region to be mapped, determining a mapping region corresponding to the region to be mapped in the preset color template image based on the position coordinates of each pixel point in the region to be mapped;
and aiming at each region to be mapped, adjusting the color parameter of each pixel point in the region to be mapped by using the color parameter of each pixel point in the mapping region.
The purpose of accurately corresponding the geographic image to be processed and the preset color template is achieved by determining the mapping area corresponding to the mapping area to be mapped of the geographic image to be processed in the preset color template image, and the geographic image to be processed is adjusted in color parameters based on the mapping area.
Optionally, the method further includes:
performing resolution reduction sampling on the geographic image to be processed to generate a low-resolution geographic image;
based on the space-time-space-time encryption and elevation model, carrying out mosaic splicing on the low-resolution geographic image and a pre-stored low-resolution spliced image to generate a measuring area spliced image;
and carrying out color consistency adjustment on the spliced images of the measuring areas to generate a preset color template image corresponding to the target area.
The geographical image to be processed and the pre-stored low-resolution spliced image are subjected to mosaic splicing, the spliced image of the measuring area which can be originally is larger and more comprehensive, and after color consistency adjustment is carried out on the spliced image, the generated preset color template image corresponding to the target area is more comprehensive, so that the spliced image is convenient to use next time.
Optionally, based on the space-three encryption results and the digital elevation model of the target area, the low-resolution geographic image and the pre-stored low-resolution stitched image are subjected to mosaic stitching to generate a survey area stitched image, including:
performing orthorectification on the low-resolution geographic image based on the space-three encryption result and the digital elevation model of the target area to generate an orthorectified image of the low-resolution geographic image;
and performing mosaic splicing on the orthographic image of the low-resolution geographic image and a pre-stored low-resolution spliced image to generate a measuring area spliced image.
Optionally, the performing color consistency adjustment on the measurement area spliced image to generate a preset color template image corresponding to the target area includes:
and according to the color of the pre-stored low-resolution spliced image, performing color adjustment on the part, corresponding to the low-resolution geographic image, of the measuring area spliced image so as to enable the colors of the measuring area spliced image to be consistent.
And only aiming at the part of the spliced image of the measuring area corresponding to the low-resolution geographic image, the color adjustment is carried out, so that the workload can be reduced, and the processing efficiency can be improved.
Optionally, the method further includes:
acquiring an original geographic image;
and carrying out noise reduction processing on the original geographic image to generate the geographic image to be processed.
The original geographic image is subjected to noise reduction processing, so that the subsequent geographic image processing is simpler, clearer and more accurate.
In a second aspect, the present application provides a color processing apparatus comprising:
the image determining module is used for determining a geographic image to be processed and a target area to which the geographic image to be processed belongs;
the position coordinate determination module is used for determining the position coordinate of each pixel point in the geographic image to be processed by combining the space-three encryption result of the geographic image to be processed and the digital elevation model of the target area;
and the color mapping module is used for performing color mapping on the geographic image to be processed by utilizing a preset color template image corresponding to the target area based on the position coordinate of each pixel point in the geographic image to be processed.
Optionally, the position coordinate determination module is specifically configured to:
determining position coordinates of a plurality of standard points, image point coordinates of each pixel point in the geographic image to be processed and external orientation elements based on the space-three encryption result of the geographic image to be processed;
aiming at each standard point, combining the external orientation element and the image point coordinates of the standard point, enabling the standard point to correspond to the digital elevation model of the target area, and determining the position coordinates of the standard point;
and aiming at each pixel point in the geographic image to be processed, combining the exterior orientation element and the pixel point coordinate of the pixel point, enabling the pixel point to correspond to the digital elevation model of the target area, and determining the position coordinate of the pixel point based on the position coordinate of the corresponding point of the standard point on the digital elevation model.
Optionally, the color mapping module is specifically configured to:
determining a plurality of regions to be mapped in the geographic image to be processed;
for each region to be mapped, determining a mapping region corresponding to the region to be mapped in the preset color template image based on the position coordinates of each pixel point in the region to be mapped;
and aiming at each region to be mapped, adjusting the color parameter of each pixel point in the region to be mapped by using the color parameter of each pixel point in the mapping region.
Optionally, the apparatus further includes a preset color template image generation module, configured to:
performing resolution reduction sampling on the geographic image to be processed to generate a low-resolution geographic image;
based on the space-time-space-time encryption and elevation model, carrying out mosaic splicing on the low-resolution geographic image and a pre-stored low-resolution spliced image to generate a measuring area spliced image;
and carrying out color consistency adjustment on the spliced images of the measuring areas to generate a preset color template image corresponding to the target area.
Optionally, the preset color template image generation module is based on the space-three encryption and elevation model, and the low-resolution geographic image and the pre-stored low-resolution spliced image are subjected to mosaic splicing, and when the survey area spliced image is generated, the preset color template image generation module is specifically used for:
performing orthorectification on the low-resolution geographic image based on the space-three encryption result and the digital elevation model of the target area to generate an orthorectified image of the low-resolution geographic image;
and performing mosaic splicing on the orthographic image of the low-resolution geographic image and a pre-stored low-resolution spliced image to generate a measuring area spliced image.
Optionally, the preset color template image generation module is specifically configured to perform color consistency adjustment on the measurement area spliced image to generate a preset color template image corresponding to the target area:
and according to the color of the pre-stored low-resolution spliced image, performing color adjustment on the part, corresponding to the low-resolution geographic image, of the measuring area spliced image so as to enable the colors of the measuring area spliced image to be consistent.
Optionally, the apparatus further includes a noise reduction processing module, configured to:
acquiring an original geographic image;
and carrying out noise reduction processing on the original geographic image to generate the geographic image to be processed.
In a third aspect, the present application provides an electronic device, comprising: a memory having stored thereon a computer program which can be loaded by the processor and which performs the method according to any of the first aspects.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program capable of being loaded by a processor and performing the method according to any of the first aspects.
The application provides a color processing method, a color processing device, an electronic device and a storage medium. By the method, the position coordinates of each pixel point in the geographic image to be processed can be determined by combining the space-three encryption result with the digital elevation model, the pixels in the preset color template image corresponding to the target area can be corresponding to the pixels with the same coordinates in the geographic image to be processed based on the position coordinates, and then the geographic image to be processed can be subjected to color mapping by referring to the template with the same position, so that real color mapping is realized. Compared with the mapping method based on the universal template in the prior art, the method can ensure that the effect after color mapping is more real. Because the position coordinates contain elevation information, in the process of color mapping, images with different heights can be mapped differently, so that the geographic images after color mapping have stronger hierarchy.
And the preset color template images corresponding to the target areas to which the images belong can be used for different images to be processed, namely the images to be processed of different target areas can use different preset color template images, so that the colors of the processed geographic images can be richer.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
FIG. 2 is a flowchart illustrating a color processing method according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of another color processing method according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a color processing apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a color processing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The embodiments of the present application will be described in further detail with reference to the drawings attached hereto.
Fig. 1 is a schematic view of an application scenario provided by the present application, in which a geographic image without geographic position reference needs to be color-processed, and the processing process is affected by factors such as no geographic position reference, too large geographic image, too high resolution, and the like, and in order to ensure accuracy, efficiency, and aesthetics of the color processing of the geographic image, the method provided by the present application is applied to process the geographic image. Specifically, the color processing method of the present application may be deployed in a server. When a geographic image processing requirement exists, the server executes the method, and color processing is carried out on the geographic image to be processed, so that the processed geographic image is accurate and attractive.
The following embodiments may be referred to for implementation of specific processing at the server.
Fig. 2 is a flowchart of a color processing method according to an embodiment of the present application. When the method of the embodiment is used for the color processing of the geographic image, the color adjustment is performed on the geographic image, and the method can be applied to the server in the scene and can also be applied to other electronic equipment with computing capability. As shown in fig. 2, the method of the present embodiment includes:
s201, determining a geographic image to be processed and a target area to which the geographic image to be processed belongs.
The geographic image to be processed comprises an aerial image and a satellite image. The source of the geographic image to be processed can be an image cached locally or in a cloud, and can also be an image which is acquired in real time and needs to be processed in real time. The geographic image to be processed is a geographic image that has not been cropped.
The target area to which the geographic image to be processed belongs may be an administrative area, for example, if the geographic image to be processed is an aerial image of a certain city, the target area may be a provincial area to which the geographic image belongs; the target area to which the geographical image to be processed belongs may also be a bearing area, for example: the geographical image to be processed is an aerial image of a certain city in the middle area of China, and the target area can be the middle area of China; the target area to which the geographic image to be processed belongs may also be an economic area, for example, if the geographic image to be processed is an aerial image in beijing, then the target area may be the kyojin ji area. Due to the diversity of the division criteria of the regions, the target region to which the geographic image to be processed belongs is only explained here, and is not limited.
In some scenarios, the geographic image input by the user may be determined as the geographic image to be processed, and specifically, when the server deployed with the method identifies one or more geographic images input by the user, the method of the present embodiment may be performed. And if a plurality of geographic images to be processed are uploaded, the geographic images can be processed one by one according to the uploading sequence. For example, a user captures a plurality of geographical images at the same time period for a plurality of areas, and these geographical images have no influence on each other, and therefore, the processing may be performed one by one in the upload order.
In some embodiments, after the user inputs a plurality of geographic images, one or more geographic images to be processed may be selected from the plurality of geographic images to be processed according to the requirement for preferential processing, that is, the server determines the geographic image selected by the user as the image to be processed, and then performs the method of the present embodiment. For example, a user takes multiple geographic images at different time intervals for a certain area, wherein there may be some geographic images affected by weather or unstable shooting equipment, which causes the geographic images to have blur and ghost, and therefore, the geographic images with blur and ghost can be screened out, and the rest of the geographic images are determined as the geographic images to be processed.
In other scenarios, the geographic image viewed by the user in real time may be determined as the geographic image to be processed, and when the server recognizes that the user opens a certain geographic image, the method of the embodiment is automatically executed to process the viewed image. For example, when a user opens a map with feature colors in a certain area, the user does not cache the maps of all positions and all scale sizes in advance, so that when the user views the geographic images in the maps in real time, the geographic images viewed by the user in real time can be determined as the geographic images to be processed, and the method of the embodiment is automatically executed.
In some embodiments, the original geographic image is relatively noisy because the original geographic image is often affected by interference of the imaging device with external environmental noise during the digitization and transmission processes. For example, when a geographical image is photographed, there is a large amount of fog or rain in the geographical image, and the accuracy of color adjustment is not good for subsequent picture processing using the geographical image. Therefore, the noise reduction processing can be performed on the original image, and the original image after noise reduction is taken as the geographic image to be processed, and the specific process includes: and acquiring an original geographic image, and performing noise reduction processing on the original geographic image to generate the geographic image to be processed.
Specifically, denoising processing can be performed on the geographic image to be recognized according to the characteristics of noise, interference is eliminated, and the accuracy of recognition processing is improved. For example, because the analog signal of the electronic device is affected, gaussian noise exists in the analog signal, and at this time, the analog signal can be processed by using a gaussian filter, so as to achieve the purpose of effectively suppressing noise and smoothing an image.
S202, determining the position coordinates of each pixel point in the geographic image to be processed by combining the space-three encryption results of the geographic image to be processed and the digital elevation model of the target area.
The space-three encryption is to solve the coordinates of unknown points in the geographic image area to be processed by using a photogrammetric analysis method and determine external orientation elements of all images in the geographic image area to be processed.
The space-three encryption result refers to a set of coordinates of unknown points in the geographic image to be processed and a set of exterior orientation elements of all images in the geographic image area to be processed, which are determined by a space-three encryption technology.
Specifically, the initial geographic image to be processed is rough, available coordinate points in the geographic image to be processed can be increased through a space-three encryption technology, and then the position coordinates of each available coordinate point in the geographic image to be processed are determined by combining the digital elevation model of the target area and the external orientation elements, namely the coordinate position of each pixel point in the geographic image to be processed is determined.
In some embodiments, there may be multiple digital elevation models in the target area, and all the digital elevation models may be subjected to accuracy evaluation, and the digital elevation model with the highest accuracy is found and used as the digital elevation model of the target area in this embodiment.
In some implementations, the digital elevation model of the target area may be a grid digital elevation model, for example, a high-precision 2-meter grid digital elevation model, which has a simple structure and a high precision, and the precision may be adjusted in real time according to a grid matrix.
In other embodiments, the accuracy of the digital elevation model of the target area may be grasped in advance due to different accuracies of the digital elevation model of the target area, and the null-triplet encryption result may be adjusted according to the accuracy of the digital elevation model of the target area, so that the accuracy of the digital elevation model of the target area is matched with the null-triplet encryption result, thereby avoiding a poor processing effect caused by inconsistent data before and after the separation of the digital elevation model and the null-triplet encryption result.
S203, based on the position coordinates of each pixel point in the geographic image to be processed, performing color mapping on the geographic image to be processed by using a preset color template image corresponding to the target area.
And finding corresponding pixel points in a preset color template image corresponding to the target area according to the obtained position coordinates of each pixel point in the geographic image to be processed, and performing parameter transformation on the geographic image to be processed according to parameters, such as brightness, saturation, contrast and the like, of the corresponding pixel points of the preset color template image corresponding to the target area to complete color mapping of the geographic image to be processed.
And the preset color template image corresponding to the target area at least comprises a part corresponding to the geographical image to be processed.
In some embodiments, the preset color template image corresponding to the target region may be gradually constructed during the process of performing color processing on the geographic image to be processed corresponding to the target region. Specifically, taking a color processing process of one to-be-processed geographic image as an example, the generating process of the preset color template image corresponding to the target area includes: and performing resolution reduction sampling on the geographic image to be processed to generate a low-resolution geographic image, embedding and splicing the low-resolution geographic image and a prestored low-resolution spliced image based on a space-three encryption and elevation model to generate a measuring area spliced image, performing color consistency adjustment on the measuring area spliced image, and generating a preset color template image corresponding to the target area.
The pre-stored low-resolution spliced image is a preset color template image corresponding to the target area generated before the geographic image to be processed is subjected to color processing. It can be understood that, each time the color processing process is performed on the geographic image to be processed, the preset color template image corresponding to the target area is updated.
Specifically, first, the geographical image to be processed is subjected to resolution reduction sampling, and a low-resolution geographical image is generated. In some embodiments, because the resolution of the to-be-processed image is very high, or the measurement area of the to-be-processed image is large, the preset color template formed by mosaic and splicing of the to-be-processed geographic image is directly used, so that the amount of generated data is large when the geographic image is subjected to color processing, the processing difficulty is high, the processing efficiency is low, the processed large data amount cannot realize visualization of the processing process, and the quality of the processing effect cannot be grasped, therefore, resolution reduction sampling can be performed on the to-be-processed geographic image, and a low-resolution geographic image is generated. And secondly, carrying out mosaic splicing on the obtained low-resolution geographic image and a pre-stored low-resolution spliced image by using the space-three encryption and elevation model to generate a measuring area spliced image. And finally, carrying out color consistency adjustment on the spliced images of the measuring areas to generate a preset color template image corresponding to the target area.
In some embodiments, the process of performing color consistency adjustment on the region-segmented image may include: and according to the color of the pre-stored low-resolution spliced image, performing color adjustment on the part, corresponding to the low-resolution geographic image, of the measuring area spliced image so as to enable the colors of the measuring area spliced image to be consistent.
Due to some characteristics of the region-to-region stitched images, for example, the range of the region-to-region stitched images is large, or the volume of the region-to-region stitched images is large, color consistency adjustment is directly performed on all the region-to-region stitched images, which results in more time consumption and larger data volume. According to the generation process of the preset color template image corresponding to the target area, the generated measuring area spliced image can be subjected to color consistency adjustment after each mosaic splicing, so that on the basis, the color of the low-resolution spliced image can be pre-stored, the part of the low-resolution geographic image subjected to the mosaic splicing is subjected to color adjustment, the measuring area spliced image with consistent color is obtained, and the more accurate preset color template image corresponding to the target area can be conveniently and subsequently generated.
In some implementations, the process of color consistency adjustment can be implemented by the relevant staff using some image processing software; in other implementation manners, the process of color consistency adjustment may also be integrated into a software program or a partial function in a software program, and automatically executed by the execution main body of the method of this embodiment, so as to implement the process of color consistency adjustment.
By the method, the position coordinates of each pixel point in the geographic image to be processed can be determined by combining the space-three encryption result with the digital elevation model, the pixels in the preset color template image corresponding to the target area can be corresponding to the pixels with the same coordinates in the geographic image to be processed based on the position coordinates, and then the geographic image to be processed can be subjected to color mapping by referring to the template with the same position, so that real color mapping is realized. Compared with the mapping method based on the universal template in the prior art, the method can ensure that the effect after color mapping is more real. Because the position coordinates contain elevation information, in the process of color mapping, images with different heights can be mapped differently, so that the geographic images after color mapping have stronger hierarchy.
And the preset color template images corresponding to the target areas to which the images belong can be used for different images to be processed, namely, the images to be processed in different target areas can use different preset color template images, so that the colors of the processed geographic images can be richer.
In some embodiments, in the process of determining the position coordinates of each pixel point in the geographic image to be processed, the method includes: determining position coordinates of a plurality of standard points, image point coordinates of each pixel point in the geographic image to be processed and external orientation elements based on the space-three encryption result of the geographic image to be processed; for each standard point, combining the exterior orientation element and the image point coordinates of the standard point, corresponding the standard point to a digital elevation model of the target area, and determining the position coordinates of the corresponding point of the standard point on the digital elevation model; aiming at each pixel point in the geographic image to be processed, combining the exterior orientation element and the pixel point coordinate of the pixel point, and enabling the pixel point to correspond to the digital elevation model of the target area; and determining the position coordinates of the pixel points based on the position coordinates of the corresponding points of the standard points on the digital elevation model.
The exterior orientation element comprises the position and the angle of a shooting device of the geographic image to be processed during imaging.
Specifically, some geographic images to be processed have a difference from an actual scene due to an imaging principle, and at this time, the geographic images to be processed need to be subjected to space-three encryption, position coordinates of a plurality of standard points, image point coordinates of each pixel point and an exterior orientation element in the geographic images to be processed can be determined through a space-three encryption result, then the image point coordinates of the standard points are corresponded to the digital elevation model according to the exterior orientation element, so as to determine the position coordinates of corresponding points of the standard points on the digital elevation model, and finally each pixel point is corresponded to the digital elevation model according to the image point coordinates of each pixel point in the space-three encryption result and combining the exterior orientation element and the image point coordinates of the pixel point, because the position coordinates of the corresponding points of the standard points on the digital elevation model and the image point coordinates of the pixel point are determined, therefore, according to the relationship between the coordinates of the image points, the position coordinates of each pixel point can be determined based on the position coordinates of the corresponding point of the standard point on the digital elevation model.
In some embodiments, in order to make the feature range of the preset color template image corresponding to the target region more accurate, the process of generating the survey area stitched image includes: and performing orthorectification on the low-resolution geographic image based on the space-three encryption result and the digital elevation model of the target area to generate an orthographic image of the low-resolution geographic image, and performing mosaic splicing on the orthographic image of the low-resolution geographic image and a prestored low-resolution spliced image to generate a measuring area spliced image.
Specifically, based on the space-time-three-encryption result and the digital elevation model of the target area, the obtained low-resolution geographic image may be subjected to orthorectification, and the process of orthorectification may refer to the process of determining the position coordinates of each pixel point in the geographic image to be processed in the above embodiment.
In some embodiments, the above process of color mapping the geographic image to be processed includes: determining a plurality of to-be-mapped areas in the geographic image to be processed, determining a mapping area corresponding to each to-be-mapped area in the preset color template image based on the position coordinates of each pixel point in each to-be-mapped area, and adjusting the color parameter of each pixel point in each to-be-mapped area by using the color parameter of each pixel point in each mapping area.
Specifically, the geographic image to be processed may be divided into a plurality of regions to be mapped, and a corresponding mapping region in the preset color template image is determined for the position coordinates of each pixel point in each of the regions to be mapped, so that the color parameter of each pixel point in the region to be mapped is adjusted by using the color parameter of each pixel point in the mapping region.
In some implementation manners, after determining the mapping region corresponding to the region to be mapped in the preset color template image, a model of color parameter expression of each pixel point in the mapping region, such as a brightness model, a saturation model, a contrast model, and the like, may be calculated, and the parameter of each mapping region of the geographic image to be processed is subjected to parameter transformation to complete color mapping of the geographic image to be processed.
In some specific embodiments, as shown in fig. 3, on one hand, the original aerial photo is subjected to noise reduction such as haze removal to obtain an aerial photo (to-be-processed geographic image) subjected to noise reduction, then the to-be-processed geographic image is subjected to resolution sampling to obtain a down-sampled aerial photo (low-resolution geographic image), the low-resolution geographic image is subjected to ortho-rectification to obtain a low-resolution geographic image, the low-resolution geographic image is subjected to mosaic stitching with a pre-stored low-resolution image to obtain a survey area stitched image, and the survey area stitched image is subjected to color consistency adjustment to generate a preset color template image corresponding to the target area. On the other hand, after the server determines the geographic image to be processed and the target area to which the geographic image to be processed belongs, the position coordinates of each pixel point in the geographic image to be processed are determined by using the space-three encryption result and the digital elevation model, and the geographic image to be processed is subjected to color mapping according to the position coordinates of each pixel point in the geographic image to be processed by using the preset color template image corresponding to the target area, so that the aerial photo after color mapping is obtained.
Fig. 4 is a schematic structural diagram of a color processing apparatus according to an embodiment of the present application, and as shown in fig. 4, a data transmission apparatus 400 of the present embodiment includes: an image determination module 401, a position coordinate determination module 402 and a color mapping module 403.
An image determining module 401, configured to determine a geographic image to be processed and a target area to which the geographic image to be processed belongs;
a position coordinate determining module 402, configured to determine a position coordinate of each pixel point in the geographic image to be processed, in combination with the space-three encryption result of the geographic image to be processed and the digital elevation model of the target area;
and a color mapping module 403, configured to perform color mapping on the geographic image to be processed by using a preset color template image corresponding to the target area based on the position coordinate of each pixel point in the geographic image to be processed.
Optionally, the position coordinate determining module 402 is specifically configured to:
determining position coordinates of a plurality of standard points, image point coordinates of each pixel point in the geographic image to be processed and external orientation elements based on the space-three encryption result of the geographic image to be processed;
for each standard point, combining the exterior orientation element and the image point coordinates of the standard point, corresponding the standard point to a digital elevation model of the target area, and determining the position coordinates of the corresponding point of the standard point on the digital elevation model;
and aiming at each pixel point in the geographic image to be processed, combining the exterior orientation element and the pixel point coordinate of the pixel point, enabling the pixel point to correspond to the digital elevation model of the target area, and determining the position coordinate of the pixel point based on the position coordinate of the corresponding point of the standard point on the digital elevation model.
Optionally, the color mapping module 403 is specifically configured to:
determining a plurality of regions to be mapped in the geographic image to be processed;
for each region to be mapped, determining a mapping region corresponding to the region to be mapped in the preset color template image based on the position coordinates of each pixel point in the region to be mapped;
and aiming at each region to be mapped, adjusting the color parameter of each pixel point in the region to be mapped by using the color parameter of each pixel point in the mapping region.
Optionally, the apparatus further includes a preset color template image generating module 404, configured to:
performing resolution reduction sampling on the geographic image to be processed to generate a low-resolution geographic image;
based on the space-time-space-time encryption and elevation model, carrying out mosaic splicing on the low-resolution geographic image and a pre-stored low-resolution spliced image to generate a measuring area spliced image;
and carrying out color consistency adjustment on the spliced images of the measuring areas to generate a preset color template image corresponding to the target area.
Optionally, the preset color template image generation module 404 is configured to mosaic and splice the low-resolution geographic image and a pre-stored low-resolution spliced image based on a space-three encryption and elevation model, and when generating a survey area spliced image, specifically configured to:
performing orthorectification on the low-resolution geographic image based on the space-three encryption result and the digital elevation model of the target area to generate an orthorectified image of the low-resolution geographic image;
and performing mosaic splicing on the orthographic image of the low-resolution geographic image and a pre-stored low-resolution spliced image to generate a measuring area spliced image.
Optionally, the preset color template image generating module 404 is specifically configured to, when performing color consistency adjustment on the measurement area spliced image to generate the preset color template image corresponding to the target area:
and according to the color of the pre-stored low-resolution spliced image, performing color adjustment on the part, corresponding to the low-resolution geographic image, of the measuring area spliced image so as to enable the colors of the measuring area spliced image to be consistent.
Optionally, the apparatus further includes a noise reduction processing module 405, configured to:
acquiring an original geographic image;
and carrying out noise reduction processing on the original geographic image to generate the geographic image to be processed.
The apparatus of this embodiment may be configured to perform the method of any of the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 5, an electronic device 500 according to the embodiment may include: a memory 501 and a processor 502.
The memory 501 has stored thereon a computer program that can be loaded by the processor 502 and executed to perform the method in the above-described embodiments.
The processor 502 is coupled to the memory 501, such as via a bus.
Optionally, the electronic device 500 may also include a transceiver. It should be noted that the transceiver in practical application is not limited to one, and the structure of the electronic device 500 is not limited to the embodiment of the present application.
The Processor 502 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 602 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
A bus may include a path that transfers information between the above components. The bus may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The Memory 501 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 501 is used for storing application program codes for executing the scheme of the application, and the processor 502 is used for controlling the execution. The processor 502 is configured to execute application program code stored in the memory 501 to implement the content shown in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. But also a server, etc. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
The electronic device of this embodiment may be configured to perform the method of any of the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
The present application also provides a computer readable storage medium storing a computer program that can be loaded by a processor and executed to perform the method as in the above embodiments.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.

Claims (10)

1. A color processing method, comprising:
determining a geographic image to be processed and a target area to which the geographic image to be processed belongs;
determining the position coordinates of each pixel point in the geographic image to be processed by combining the space-three encryption result of the geographic image to be processed and the digital elevation model of the target area;
and based on the position coordinates of each pixel point in the geographic image to be processed, performing color mapping on the geographic image to be processed by using a preset color template image corresponding to the target area.
2. The method according to claim 1, wherein the determining the position coordinates of each pixel point in the geographic image to be processed in combination with the space-three encryption result of the geographic image to be processed and the digital elevation model of the target area comprises:
determining position coordinates of a plurality of standard points, image point coordinates of each pixel point in the geographic image to be processed and external orientation elements based on the space-three encryption result of the geographic image to be processed;
aiming at each standard point, combining the external orientation element and the image point coordinates of the standard point, enabling the standard point to correspond to the digital elevation model of the target area, and determining the position coordinates of the standard point;
and aiming at each pixel point in the geographic image to be processed, combining the exterior orientation element and the pixel point coordinate of the pixel point, enabling the pixel point to correspond to the digital elevation model of the target area, and determining the position coordinate of the pixel point based on the position coordinate of the corresponding point of the standard point on the digital elevation model.
3. The method according to claim 1 or 2, wherein the performing color mapping on the geographic image to be processed by using a preset color template image corresponding to the target area based on the position coordinates of each pixel point in the geographic image to be processed comprises:
determining a plurality of regions to be mapped in the geographic image to be processed;
for each region to be mapped, determining a mapping region corresponding to the region to be mapped in the preset color template image based on the position coordinates of each pixel point in the region to be mapped;
and aiming at each region to be mapped, adjusting the color parameter of each pixel point in the region to be mapped by using the color parameter of each pixel point in the mapping region.
4. The method of any one of claims 1, 2, and 4, further comprising:
performing resolution reduction sampling on the geographic image to be processed to generate a low-resolution geographic image;
based on the space-time-three encryption result and the digital elevation model of the target area, carrying out mosaic splicing on the low-resolution geographic image and a pre-stored low-resolution spliced image to generate a measuring area spliced image;
and carrying out color consistency adjustment on the spliced images of the measuring areas to generate a preset color template image corresponding to the target area.
5. The method according to claim 4, wherein the mosaic stitching of the low-resolution geographic image and a pre-stored low-resolution stitched image based on the space-three encryption result and the digital elevation model of the target area to generate a survey area stitched image comprises:
performing orthorectification on the low-resolution geographic image based on the space-three encryption result and the digital elevation model of the target area to generate an orthorectified image of the low-resolution geographic image;
and performing mosaic splicing on the orthographic image of the low-resolution geographic image and a pre-stored low-resolution spliced image to generate a measuring area spliced image.
6. The method according to claim 5, wherein the performing color consistency adjustment on the region-to-region stitched image to generate a preset color template image corresponding to the target region comprises:
and according to the color of the pre-stored low-resolution spliced image, performing color adjustment on the part, corresponding to the low-resolution geographic image, of the measuring area spliced image so as to enable the colors of the measuring area spliced image to be consistent.
7. The method of any one of claims 1, 2, 4, and 6, further comprising:
acquiring an original geographic image;
and carrying out noise reduction processing on the original geographic image to generate the geographic image to be processed.
8. A color processing apparatus, comprising:
the image determining module is used for determining a geographic image to be processed and a target area to which the geographic image to be processed belongs;
the position coordinate determination module is used for determining the position coordinate of each pixel point in the geographic image to be processed by combining the space-three encryption result of the geographic image to be processed and the digital elevation model of the target area;
and the color mapping module is used for performing color mapping on the geographic image to be processed by utilizing a preset color template image corresponding to the target area based on the position coordinate of each pixel point in the geographic image to be processed.
9. An electronic device, comprising: a memory and a processor;
the memory to store program instructions;
the processor, which is used to call and execute the program instructions in the memory, executes the method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium; the computer program, when executed by a processor, implements the method of any one of claims 1-7.
CN202210576079.7A 2022-05-25 2022-05-25 Color processing method, device, electronic equipment and storage medium Pending CN114897986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210576079.7A CN114897986A (en) 2022-05-25 2022-05-25 Color processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210576079.7A CN114897986A (en) 2022-05-25 2022-05-25 Color processing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114897986A true CN114897986A (en) 2022-08-12

Family

ID=82725743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210576079.7A Pending CN114897986A (en) 2022-05-25 2022-05-25 Color processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114897986A (en)

Similar Documents

Publication Publication Date Title
CN108665536B (en) Three-dimensional and live-action data visualization method and device and computer readable storage medium
US10169896B2 (en) Rebuilding images based on historical image data
CN109520500B (en) Accurate positioning and street view library acquisition method based on terminal shooting image matching
CN108305291B (en) Monocular vision positioning and attitude determination method utilizing wall advertisement containing positioning two-dimensional code
AU2011362799A1 (en) 3D streets
US20090232415A1 (en) Platform for the production of seamless orthographic imagery
CN107851331A (en) The threedimensional model of smooth object is to mitigate artifact
CN111429548B (en) Digital map generation method and system
CN115457212A (en) Tree image processing method and device, terminal equipment and storage medium
CN115830135A (en) Image processing method and device and electronic equipment
CN113516697B (en) Image registration method, device, electronic equipment and computer readable storage medium
CN116385622B (en) Cloud image processing method, cloud image processing device, computer and readable storage medium
CN117522963A (en) Corner positioning method and device of checkerboard, storage medium and electronic equipment
CN110378948B (en) 3D model reconstruction method and device and electronic equipment
US11557059B2 (en) System and method for determining position of multi-dimensional object from satellite images
CN115883969A (en) Unmanned aerial vehicle shooting method, device, equipment and medium
CN114897986A (en) Color processing method, device, electronic equipment and storage medium
US10460427B2 (en) Converting imagery and charts to polar projection
US9852542B1 (en) Methods and apparatus related to georeferenced pose of 3D models
CN113284081B (en) Depth map super-resolution optimization method and device, processing equipment and storage medium
CN113034555B (en) Feature fine matching method based on minimum spanning tree and application
CN114882194A (en) Method and device for processing room point cloud data, electronic equipment and storage medium
CN110196638B (en) Mobile terminal augmented reality method and system based on target detection and space projection
CN113744361A (en) Three-dimensional high-precision map construction method and device based on trinocular vision
CN112767477A (en) Positioning method, positioning device, storage medium and electronic equipment

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