CN106940878A - A kind of display methods and device - Google Patents
A kind of display methods and device Download PDFInfo
- Publication number
- CN106940878A CN106940878A CN201710109885.2A CN201710109885A CN106940878A CN 106940878 A CN106940878 A CN 106940878A CN 201710109885 A CN201710109885 A CN 201710109885A CN 106940878 A CN106940878 A CN 106940878A
- Authority
- CN
- China
- Prior art keywords
- image
- value
- font
- fusion
- background
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
Abstract
The present invention is applied to electronic technology field, and there is provided a kind of display methods and device, it is intended to which image scaling display methods committed memory is larger in the prior art for solution, the problem of computation complexity is high.Methods described includes:The image information of the first image to be shown is obtained, the image information includes measurement content, measured value and font transparent value;According to the color-match relation between default measurement content and measured value, the corresponding font color value of measured value is determined;Zoom in and out processing to the first image according to default ratio, and according to font color value and font transparent value by the first image co-registration after scaling into background image;Fused images after display fusion.Technical scheme to the first image comprising font transparent value by only zooming in and out processing, it is not necessary to the font color value of each pixel in the first image of storage and processing, reduces EMS memory occupation amount and computation complexity, improves execution efficiency.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of display methods and device.
Background technology
There are many image scaling display methods, including arest neighbors interpolation, bilinear interpolation on image scaling field at present
Etc..But the computation complexity height of these methods is, it is necessary to larger memory space and complete execution system.
It is traditional for not any execution system and shape library, and the less singlechip equipment of memory space
Image scaling display methods can not effectively be run, and execution efficiency is low, influence display effect.
The content of the invention
The embodiment of the present invention provides a kind of display methods and device, it is intended to solve image scaling display methods in the prior art
Committed memory is larger, the problem of computation complexity is high.
In a first aspect, the embodiments of the invention provide a kind of display methods, the display methods includes:
Obtain the image information of the first image to be shown, wherein, described image information include measurement content, measured value and
Font transparent value;
According to the color-match relation between the default measurement content and the measured value, the measured value pair is determined
The font color value answered;
Processing is zoomed in and out to described first image according to default ratio, and according to the font color value and the word
Described first image after scaling is fused in background image by body transparent value;
Fused images after display fusion.
On the other hand, the embodiments of the invention provide a kind of display device, the display device includes:
Acquisition module, the image information of first image to be shown for obtaining, wherein, described image information includes measurement
Content, measured value and font transparent value;
Matching module, for according to it is default it is described measurement content and the measured value between color-match relation, really
Determine the corresponding font color value of the measured value;
Processing module, for zooming in and out processing to described first image according to default ratio, and according to the font
Described first image after scaling is fused in background image by color value and the font transparent value;
Display module, for showing the fused images after fusion.
The embodiment of the present invention obtains the image information of the first image to be shown, and the image information includes measurement content, surveyed
Value and font transparent value, according to the color-match relation between default measurement content and measured value, determine measured value correspondence
Font color value, processing is zoomed in and out to the first image according to default ratio, and transparent according to font color value and font
It is worth by the first image co-registration after scaling into background image, and shows the fused images after fusion.By only to including font
First image of transparent value zooms in and out processing, it is not necessary to the font color of each pixel in the first image of storage and processing
Value, reduces EMS memory occupation amount and computation complexity, improves execution efficiency, while determining font face according to color-match relation
Colour, can flexibly set the font color of the measured value in the first image to be shown, strengthen Consumer's Experience, and according to word
Body color value and font transparent value by the first image co-registration after scaling into background image, keep background image on the basis of
Font in first image is added in background image and shown so that the first image and background image after scaling are complete
Fusion, the display effect of original background image is not destroyed, improves Consumer's Experience.
Brief description of the drawings
Fig. 1 is a kind of flow chart for display methods that the embodiment of the present invention one is provided;
Fig. 2 is a kind of flow chart for display methods that the embodiment of the present invention two is provided;
Fig. 3 is a kind of structural representation for display device that the embodiment of the present invention three is provided;
Fig. 4 is a kind of structural representation for display device that the embodiment of the present invention four is provided.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
The realization of the present invention is described in detail below in conjunction with specific accompanying drawing.
Embodiment one:
Fig. 1 is a kind of flow chart for display methods that the embodiment of the present invention one is provided, the executive agent of the embodiment of the present invention
For singlechip equipment, the display methods of Fig. 1 examples can specifically include step S101 to step S104, and details are as follows:
S101, the image information for obtaining the first image to be shown, the image information include measurement content, measured value and word
Body transparent value.
It should be noted that singlechip equipment can be the equipment measured to specific measurement index, and will measurement
As a result it can be shown on the display screen of the singlechip equipment.
Specifically, the first image can be the measurement result for needing to be shown on the display screen of singlechip equipment
Image, measurement content that the image information of first image is measured including the use of singlechip equipment, measured value and this first
The font transparent value of numeral or word in image.
For example, singlechip equipment can be the portable, hand-held device for detecting air quality indexes concentration, for pair
The Concentration Testing of the air quality indexes such as PM2.5, PM10, CO2, HCHO and TVOC.Now, in the image information of the first image,
PM2.5, PM10, CO2, HCHO and TVOC can be included by measuring content, and measured value can be detected including the use of the singlechip equipment
Obtained PM2.5 concentration, PM10 concentration, CO2 concentration, HCHO concentration and TVOC concentration, font transparent value can be first figure
The transparency of the corresponding pixel of font shown in as in, the span of the transparency can be between 0 to 256, when transparent
Spend for 0 expression it is fully transparent, when transparency be 256 statement completely it is opaque.
S102, according to it is default measurement content and measured value between color-match relation, determine the corresponding word of measured value
Body color value.
Default color-match relation is specifically as follows the corresponding different font face of different measured value ranges of measurement content
Colour.
Specifically, according to the measured value of specific measurement content, the corresponding word of the measured value is determined from color-match relation
Body color value.
For example, working as the concentration for using singlechip equipment to air quality indexes such as PM2.5, PM10, CO2, HCHO and TVOC
It is that can pre-set color-match relation according to following form to carry out detection.
Color | Green | Yellow | It is orange | It is red | Purple | Darkviolet |
PM10 concentration | 0~75 μ g/m3 | 75~150 μ g/m3 | 150~300 μ g/m3 | 300~400 μ g/m3 | 400~500 μ g/m3 | >500μg/m3 |
Air quality | It is excellent | It is good | Slight pollution | Intermediate pollution | Serious pollution | Severe contamination |
Color | Green | Yellow | It is orange | It is red | Purple | Darkviolet |
PM2.5 concentration | 0~35 μ g/m3 | 35^75μg/m3 | 75~150 μ g/m3 | 150~200 μ g/m3 | 200~250 μ g/m3 | >250μg/m3 |
Air quality | It is excellent | It is good | Slight pollution | Intermediate pollution | Serious pollution | Severe contamination |
Color | Green | It is orange | It is red | |||
CO2 concentration | 0~800ppm | 800~1500ppm | 1500~9999ppm | |||
HCHO concentration | 0~0.05mg/m3 | 0.05~0.1mg/m3 | 0.1~5.00mg/m3 | |||
TVOC concentration | 0~0.6mg/m3 | 0.6~1.8mg/m3 | 1.8~9.99mg/m3 | |||
Air quality | It is excellent | It is good | Difference |
Assuming that the PM2.5 of singlechip equipment detection current environment concentration is 30 μ g/m3, then can according to color-match relation
To inquire measured value 30 μ g/m of the measurement content as PM2.53Corresponding font color is that yellow, i.e. font color value are yellow
RGB color value.
S103, according to default ratio processing is zoomed in and out to the first image, and it is transparent according to font color value and font
Value is by the first image co-registration after scaling into background image.
Specifically, scaling processing can reduce processing or enhanced processing, and singlechip equipment is according to default ratio pair
First image carries out scaled down or amplification.
Because the image information of the first image does not include font color value, i.e., font color value need not be preserved, only need to protect
Transparency is deposited, using font transparent value the font color shown, transparency and background color will be needed to carry out fusion can show
Show the font of random color.Therefore to the first image after scaling processing, the step S102 font color values determined and the are used
The font transparent value included in the image information of one image, to the pixel and corresponding background of the first image after scaling processing
The pixel of image carries out the fusion calculation of pixel value, by the first image co-registration after scaling into background image so that protecting
Hold and shown the color addition of the font in the first image as required into background image on the basis of background image.
Further, the scaling processing to the first image can be carried out repeatedly, often be completed once after scaling processing, with regard to carrying out
Single cell fusion processing, so as to realize the animation Zoom display effect of font in the first image.
Default ratio can be 10%, but be not limited to this, be configured the need for can specifically being applied according to display,
It is not limited herein.
Fused images after S104, display fusion.
Specifically, display is according to the fused images for carrying out obtaining after fusion treatment in step S103.
In the present embodiment, the image information of the first image to be shown is obtained, the image information includes measurement content, measurement
Value and font transparent value, according to the color-match relation between default measurement content and measured value, determine that measured value is corresponding
Font color value, processing is zoomed in and out to the first image according to default ratio, and according to font color value and font transparent value
By the first image co-registration after scaling into background image, and show the fused images after fusion.By only to saturating comprising font
First image of bright value zooms in and out processing, it is not necessary to the font color value of each pixel in the first image of storage and processing,
EMS memory occupation amount and computation complexity are reduced, execution efficiency is improved, while determining font color according to color-match relation
Value, can flexibly set the font color of the measured value in the first image to be shown, strengthen Consumer's Experience, and according to font
Color value and font transparent value into background image, incite somebody to action the first image co-registration after scaling on the basis of background image is kept
Font in first image is added in background image and shown so that the first image and background image after scaling melt completely
Close, the display effect of original background image is not destroyed, improve Consumer's Experience.
Embodiment two:
Fig. 2 is a kind of flow chart for display methods that the embodiment of the present invention two is provided, the executive agent of the embodiment of the present invention
For singlechip equipment, the display methods of Fig. 2 examples can specifically include step S201 to step S209, and details are as follows:
S201, the image information for obtaining the first image to be shown, the image information include measurement content, measured value and word
Body transparent value.
It should be noted that singlechip equipment can be the equipment measured to specific measurement index, and will measurement
As a result it can be shown on the display screen of the singlechip equipment.
Specifically, the first image can be the measurement result for needing to be shown on the display screen of singlechip equipment
Image, measurement content that the image information of first image is measured including the use of singlechip equipment, measured value and this first
The font transparent value of numeral or word in image.
For example, singlechip equipment can be the portable, hand-held device for detecting air quality indexes concentration, for pair
The Concentration Testing of the air quality indexes such as PM2.5, PM10, CO2, HCHO and TVOC.Now, in the image information of the first image,
PM2.5, PM10, CO2, HCHO and TVOC can be included by measuring content, and measured value can be detected including the use of the singlechip equipment
Obtained PM2.5 concentration, PM10 concentration, CO2 concentration, HCHO concentration and TVOC concentration, font transparent value can be first figure
The transparency of the corresponding pixel of font shown in as in, the span of the transparency can be between 0 to 256, when transparent
Spend for 0 expression it is fully transparent, when transparency be 256 statement completely it is opaque.
S202, according to it is default measurement content and measured value between color-match relation, determine the corresponding word of measured value
Body color value.
Default color-match relation is specifically as follows the corresponding different font face of different measured value ranges of measurement content
Colour.
Specifically, according to the measured value of specific measurement content, the corresponding word of the measured value is determined from color-match relation
Body color value.
For example, working as the concentration for using singlechip equipment to air quality indexes such as PM2.5, PM10, CO2, HCHO and TVOC
It is that can pre-set color-match relation according to following form to carry out detection.
Color | Green | Yellow | It is orange | It is red | Purple | Darkviolet |
PM10 concentration | 0~75 μ g/m3 | 75~150 μ g/m3 | 150~300 μ g/m3 | 300~400 μ g/m3 | 400~500 μ g/m3 | >500μg/m3 |
Air quality | It is excellent | It is good | Slight pollution | Intermediate pollution | Serious pollution | Severe contamination |
Color | Green | Yellow | It is orange | It is red | Purple | Darkviolet |
PM2.5 concentration | 0~35 μ g/m3 | 35^75μg/m3 | 75~150 μ g/m3 | 150~200 μ g/m3 | 200~250 μ g/m3 | >250μg/m3 |
Air quality | It is excellent | It is good | Slight pollution | Intermediate pollution | Serious pollution | Severe contamination |
Color | Green | It is orange | It is red | |||
CO2 concentration | 0~800ppm | 800~1500ppm | 1500~9999ppm | |||
HCHO concentration | 0~0.05mg/m3 | 0.05~0.1mg/m3 | 0.1~5.00mg/m3 | |||
TVOC concentration | 0~0.6mg/m3 | 0.6~1.8mg/m3 | 1.8~9.99mg/m3 | |||
Air quality | It is excellent | It is good | Difference |
Assuming that the PM2.5 of singlechip equipment detection current environment concentration is 30 μ g/m3, then can according to color-match relation
To inquire measured value 30 μ g/m of the measurement content as PM2.53Corresponding font color is that yellow, i.e. font color value are yellow
RGB color value.
S203, according to default ratio processing is zoomed in and out to the first image, obtain the second image, and obtain the second image
In each target pixel points target location coordinate.
Specifically, scaling processing can reduce processing or enhanced processing, and singlechip equipment is according to default ratio pair
First image carries out scaled down or amplification, obtains the second image.
Default ratio can be 10%, but be not limited to this, be configured the need for can specifically being applied according to display,
It is not limited herein.
It is possible to further calculate the target location coordinate of each target pixel points in the second image according to formula (1):
Wherein, (Sx,Sy) be each pixel in the first image position coordinates, (Dx,Dy) it is each mesh in the second image
Mark the target location coordinate of pixel, (Sx,Sy) and (Dx,Dy) where coordinate system with the top left corner pixel point of the first image
Position is the origin of coordinates, and DW and DH are respectively the width and height of the second image, SW and SH be respectively the first image width and
Highly.
S204, the background pixel value for obtaining background pixel point corresponding with target location coordinate in background image.
Specifically, the target location coordinate of each target pixel points in the second obtained image is calculated according to step S203,
The background pixel value of background pixel point corresponding with the target location coordinate is obtained from background image.
S205, according to font color value, font transparent value and background pixel value, by the second image co-registration to background image
In, calculate the fusion pixel values in fused images of the target pixel points after fusion.
Because the image information of the first image does not include font color value, i.e., font color value need not be preserved, only need to protect
Transparency is deposited, using font transparent value the font color shown, transparency and background color will be needed to carry out fusion can show
Show the font of random color.Therefore to the first image after scaling processing, the step S202 font color values determined and the are used
The font transparent value included in the image information of one image, and the background pixel value that step S204 is got, by the second image
It is fused in background image so that fold the color of the font in the second image as required on the basis of background image is kept
It is added in background image and is shown.
Specifically, the fusion pixel values in fused images of the target pixel points after fusion can be calculated according to formula (2):
Wherein, D (x, y) is fusion pixel values of the target pixel points (x, y) in fused images, and C is font color value,
Alpha (x, y) is the font transparent value of target pixel points (x, y), and S (x, y) is right with target pixel points (x, y) in background image
The background pixel value for the background pixel point answered.
Obtained fusion pixel values are calculated using formula (2), can be good at solving the aliasing problems that font edge is shown,
And the color addition of font as required is shown into background image on the basis of background image is kept.
Below by taking the realization of C language as an example, illustrate the calculating process of fusion pixel values.
Assuming that it 32 is BMP forms that the font of the second image, which is, the font color value of target pixel points is dst, object pixel
The background pixel value for selecting corresponding background image vegetarian refreshments is the fusion picture in src, fused images of the target pixel points after fusion
Element value is blend, and alpha is the font transparent value of target pixel points, performs melting for the pixel after following sentence is merged
Close pixel value.
Src_tmp=((src<<16)|src)&0x07E0F81F;
Dst_tmp=((dst<<16)|dst)&0x07E0F81F;
Blend=((((dst_tmp-src_tmp) * alpha)>>5)+src_tmp)&0x07E0F81F;
Blend=(blend>>16)|blend;
Fused images after S206, display fusion.
Specifically, obtained fusion pixel values, the fused images after display fusion are calculated according to step S205.
S207, judge whether the size of the second image reaches default scaled size.
Specifically, if the size of the second image is not up to default scaled size, step S208 is performed, step is otherwise performed
Rapid S209.
S208, by the second image recognition it is the first image, return to step S203 continues executing with.
Specifically, if the size of the second image is not up to default scaled size, the second image can be continued into
The processing of row scaling, the second image is re-recognized the process for proceeding to scale and merging for the first image, return to step S203.
Scaling processing i.e. to the first image can be carried out repeatedly, often be completed once after scaling processing, with regard to carrying out Single cell fusion processing, from
And the animation Zoom display effect of font in the first image can be realized.
When reduce processing, default scaled size can be the 10% of the size of background image, when being amplified
During processing, default scaled size can be the size of background image, but be not limited to this, specifically can be according to practical application
Need to be configured, be not limited herein.
S209, flow terminate.
Specifically, if the size of the second image reaches default scaled size, flow terminates.
It should be noted that the embodiment of the present invention can be when the size of the second image reaches default scaled size,
Flow terminates or multiple diminution processing is first carried out to the first image, and circulation performs step S203 to step S207, until
The size of second image is reached after default minification, then is amplified processing to the second image, i.e., by the second image again
It is identified as the first image and again returns to step S203 execution enhanced processings, and circulation performs step S203 to step S207 again,
Untill the size of the second image reaches default up-sizing, so as to realize the animation Zoom display of font in the first image
Effect.
The embodiment of the present invention can first carry out diminution processing to be amplified processing again, or can also first be amplified
Processing carries out diminution processing again, and its sequencing for amplifying and reducing is not limited, and either enhanced processing still reduces
Processing, it is identical with the method for fusion display that it scales processing.
In the present embodiment, the image information of the first image to be shown is obtained, the image information includes measurement content, measurement
Value and font transparent value, according to the color-match relation between default measurement content and measured value, determine that measured value is corresponding
Font color value, zooms in and out processing to the first image according to default ratio using formula (1), obtains the second image, and obtain
Take in the second image after the target location coordinate of each target pixel points, obtain corresponding with target location coordinate in background image
The background pixel value of background pixel point, then according to font color value, font transparent value and background pixel value, the second image is melted
Close in background image, calculate the fusion pixel values in fused images of the target pixel points after fusion, and show after fusion
Fused images.By only zooming in and out processing to the first image comprising font transparent value, it is not necessary to the first figure of storage and processing
The font color value of each pixel, reduces EMS memory occupation amount and computation complexity, improves execution efficiency, while root as in
Font color value is determined according to color-match relation, the font face of the measured value in the first image to be shown can be flexibly set
Color, strengthen Consumer's Experience, and according to font color value and font transparent value by the second image co-registration into background image, according to
Formula (2) calculates the fusion pixel values in fused images of the target pixel points after fusion, can be good at solving font edge
The aliasing problems of display, and on the basis of background image is kept by font color addition as required into background image
Shown so that the second image and background image are merged completely, the display effect of original background image is not destroyed, improved and use
Experience at family.Also, when the size of the second image is not up to default scaled size, the second image can be re-recognized as
One image, carries out the process of repeatedly scaling and fusion treatment, so as to realize the animation Zoom display process to font, further increases
Strong display effect, improves Consumer's Experience.
Embodiment three:
Fig. 3 is a kind of structural representation for display device that the embodiment of the present invention three is provided, and for convenience of description, is only shown
The part related to the embodiment of the present invention.A kind of display device of Fig. 3 examples can be the display that previous embodiment one is provided
The executive agent of method.A kind of display device of Fig. 3 examples includes:Acquisition module 31, matching module 32, processing module 33 and aobvious
Show module 34, each functional module describes in detail as follows:
Acquisition module 31, the image information of first image to be shown for obtaining, wherein, the image information includes measurement
Content, measured value and font transparent value;
Matching module 32, for according to the color-match relation between default measurement content and measured value, it is determined that measurement
It is worth corresponding font color value;
Processing module 33, for zooming in and out processing to the first image according to default ratio, and according to font color value
With font transparent value by the first image co-registration after scaling into background image;
Display module 34, for showing the fused images after fusion.
Each module realizes the process of respective function in a kind of display device that the present embodiment is provided, and specifically refers to earlier figures
The description of 1 illustrated embodiment, here is omitted.
Knowable to a kind of display device of above-mentioned Fig. 3 examples, in the present embodiment, the image of the first image to be shown is obtained
Information, the image information includes measurement content, measured value and font transparent value, according between default measurement content and measured value
Color-match relation, determine the corresponding font color value of measured value, place zoomed in and out to the first image according to default ratio
Reason, and according to font color value and font transparent value by the first image co-registration after scaling into background image, and show fusion
Fused images afterwards.By only zooming in and out processing to the first image comprising font transparent value, it is not necessary to storage and processing the
The font color value of each pixel, reduces EMS memory occupation amount and computation complexity, improves execution efficiency, together in one image
When font color value is determined according to color-match relation, the font of the measured value in the first image to be shown can be flexibly set
Color, strengthens Consumer's Experience, and according to font color value and font transparent value by the first image co-registration after scaling to background
In image, the font in the first image is added in background image on the basis of background image is kept and shown so that
The first image and background image after scaling are merged completely, and the display effect of original background image is not destroyed, improve user's body
Test.
Example IV:
Fig. 4 is a kind of structural representation for display device that the embodiment of the present invention four is provided, and for convenience of description, is only shown
The part related to the embodiment of the present invention.A kind of display device of Fig. 4 examples can be the display that previous embodiment two is provided
The executive agent of method.A kind of display device of Fig. 4 examples includes:Acquisition module 41, matching module 42, processing module 43 and aobvious
Show module 44, each functional module describes in detail as follows:
Acquisition module 41, the image information of first image to be shown for obtaining, wherein, the image information includes measurement
Content, measured value and font transparent value;
Matching module 42, for according to the color-match relation between default measurement content and measured value, it is determined that measurement
It is worth corresponding font color value;
Processing module 43, for zooming in and out processing to the first image according to default ratio, and according to font color value
With font transparent value by the first image co-registration after scaling into background image;
Display module 44, for showing the fused images after fusion.
Further, processing module 43 includes:
Submodule 431 is scaled, for zooming in and out processing to the first image according to default ratio, the second image is obtained,
And obtain the target location coordinate of each target pixel points in the second image;
Background acquisition submodule 432, for obtaining background pixel point corresponding with target location coordinate in background image
Background pixel value;
Submodule 433 is merged, for according to font color value, font transparent value and background pixel value, the second image to be melted
Close in background image, calculate the fusion pixel values in fused images of the target pixel points after fusion.
Further, the display device also includes:
Loop module 45, if the size for the second image is not up to default scaled size, by the second image recognition
For the first image, return scaling submodule 431 perform it is described processing is zoomed in and out to described first image according to default ratio,
The second image is obtained, and obtains the target location coordinate of each target pixel points in the second described image.
Further, scaling submodule 431 is additionally operable to:
The target location coordinate of each target pixel points in the second image is calculated according to formula (3):
Wherein, (Sx,Sy) be each pixel in the first image position coordinates, (Dx,Dy) it is each mesh in the second image
Mark the target location coordinate of pixel, (Sx,Sy) and (Dx,Dy) where coordinate system with the top left corner pixel point of the first image
Position is the origin of coordinates, and DW and DH are respectively the width and height of the second image, SW and SH be respectively the first image width and
Highly.
Further, fusion submodule 433 is additionally operable to:
The fusion pixel values in fused images of the target pixel points after fusion are calculated according to formula (4):
Wherein, D (x, y) is fusion pixel values of the target pixel points (x, y) in fused images, and C is font color value,
Alpha (x, y) is the font transparent value of target pixel points (x, y), and S (x, y) is right with target pixel points (x, y) in background image
The background pixel value for the background pixel point answered.
Each module realizes the process of respective function in a kind of display device that the present embodiment is provided, and specifically refers to earlier figures
The description of 2 illustrated embodiments, here is omitted.
Knowable to a kind of display device of above-mentioned Fig. 4 examples, in the present embodiment, the image of the first image to be shown is obtained
Information, the image information includes measurement content, measured value and font transparent value, according between default measurement content and measured value
Color-match relation, the corresponding font color value of measured value is determined, using formula (3) according to default ratio to the first image
Processing is zoomed in and out, the second image is obtained, and obtain in the second image after the target location coordinate of each target pixel points, acquisition
The background pixel value of background pixel point corresponding with target location coordinate in background image, then according to font color value, font
Transparent value and background pixel value, by the second image co-registration into background image, calculate fusion figure of the target pixel points after fusion
Fusion pixel values as in, and show the fused images after fusion.By only being carried out to the first image comprising font transparent value
Scaling processing, it is not necessary to the font color value of each pixel in the first image of storage and processing, reduce EMS memory occupation amount and
Computation complexity, improves execution efficiency, while determining font color value according to color-match relation, can flexibly set and wait to show
The font color of measured value in the first image shown, strengthens Consumer's Experience, and according to font color value and font transparent value
By the second image co-registration into background image, melting in fused images of the target pixel points after fusion is calculated according to formula (4)
Pixel value is closed, can be good at solving the aliasing problems that font edge is shown, and by word on the basis of background image is kept
The color addition of body as required is shown into background image so that the second image and background image are merged completely, are not broken
The display effect of bad original background image, improves Consumer's Experience.Also, when the size of the second image is not up to default scaling
During size, the second image can be re-recognized as the first image, the multiple process scaled with fusion treatment of progress, so as to realize
To the animation Zoom display process of font, display effect is further enhanced, Consumer's Experience is improved.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment
What is stressed is all the difference with other embodiment, between each embodiment same or similar part mutually referring to
.For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
It is worth noting that, in said apparatus embodiment, included modules are simply drawn according to function logic
Point, but above-mentioned division is not limited to, as long as corresponding function can be realized;In addition, each functional module is specific
Title is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
Can it will appreciated by the skilled person that realizing that all or part of step in the various embodiments described above method is
To instruct the hardware of correlation to complete by program, corresponding program can be stored in a computer read/write memory medium
In, described storage medium, such as ROM/RAM, disk or CD.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, all essences in the present invention
Any modification, equivalent and improvement made within refreshing and principle etc., should be included within the scope of the present invention.
Claims (10)
1. a kind of display methods, it is characterised in that the display methods includes:
The image information of the first image to be shown is obtained, wherein, described image information includes measurement content, measured value and font
Transparent value;
According to the color-match relation between the default measurement content and the measured value, determine that the measured value is corresponding
Font color value;
Processing is zoomed in and out to described first image according to default ratio, and it is saturating according to the font color value and the font
Described first image after scaling is fused in background image by bright value;
Fused images after display fusion.
2. display methods according to claim 1, it is characterised in that it is described according to default ratio to described first image
Processing is zoomed in and out, and is fused to the described first image after scaling according to the font color value and the font transparent value
Background image includes:
Processing is zoomed in and out to described first image according to default ratio, the second image is obtained, and obtain second image
In each target pixel points target location coordinate;
Obtain the background pixel value of background pixel point corresponding with the target location coordinate in the background image;
According to the font color value, the font transparent value and the background pixel value, by second image co-registration to institute
State in background image, calculate the fusion pixel values in fused images of the target pixel points after fusion.
3. display methods according to claim 2, it is characterised in that after the fused images after the display fusion, institute
Stating display methods also includes:
It is first figure by second image recognition if the size of second image is not up to default scaled size
Picture, perform it is described processing is zoomed in and out to described first image according to default ratio, obtain the second image, and described in acquisition
The target location coordinate of each target pixel points in second image.
4. the display methods according to Claims 2 or 3, it is characterised in that it is described according to default ratio to described first
Image zooms in and out processing, obtains the second image, and obtain the target location of each target pixel points in the second described image
Coordinate includes:
The target location coordinate of each target pixel points in second image is calculated according to equation below:
Wherein, (Sx,Sy) be each pixel in described first image position coordinates, (Dx,Dy) for institute in second image
State the target location coordinate of each target pixel points, (Sx,Sy) and (Dx,Dy) where coordinate system with described first image
Top left corner pixel point position is the origin of coordinates, and DW and DH are respectively the width and height of second image, and SW and SH are respectively
The width and height of described first image.
5. the display methods according to Claims 2 or 3, it is characterised in that described according to the font color value, the word
Body transparent value and the background pixel value, by second image co-registration into the background image, calculate the object pixel
Fusion pixel values in fused images of the point after fusion include:
The fusion pixel values in fused images of the target pixel points after fusion are calculated according to equation below:
Wherein, D (x, y) is fusion pixel values of the target pixel points (x, y) in the fused images, and C is the font
Color value, alpha (x, y) be the target pixel points (x, y) font transparent value, S (x, y) in the background image with institute
State the background pixel value of the corresponding background pixel point of target pixel points (x, y).
6. a kind of display device, it is characterised in that the display device includes:
Acquisition module, the image information of first image to be shown for obtaining, wherein, described image information is included in measurement
Appearance, measured value and font transparent value;
Matching module, for according to the color-match relation between the default measurement content and the measured value, determining institute
State the corresponding font color value of measured value;
Processing module, for zooming in and out processing to described first image according to default ratio, and according to the font color
Described first image after scaling is fused in background image by value and the font transparent value;
Display module, for showing the fused images after fusion.
7. display device according to claim 8, it is characterised in that the processing module includes:
Submodule is scaled, for zooming in and out processing to described first image according to default ratio, the second image is obtained, and obtain
Take the target location coordinate of each target pixel points in second image;
Background acquisition submodule, for obtaining background pixel point corresponding with the target location coordinate in the background image
Background pixel value;
Submodule is merged, for according to the font color value, the font transparent value and the background pixel value, by described the
Two image co-registrations calculate the fusion pixel in fused images of the target pixel points after fusion into the background image
Value.
8. display device according to claim 7, it is characterised in that the display device also includes:
Loop module, if the size for second image is not up to default scaled size, second image is known
Not Wei described first image, perform described in processing is zoomed in and out to described first image according to default ratio, obtain the second figure
Picture, and obtain the target location coordinate of each target pixel points in the second described image.
9. the display device according to claim 7 or 8, it is characterised in that the scaling submodule is additionally operable to:
The target location coordinate of each target pixel points in second image is calculated according to equation below:
Wherein, (Sx,Sy) be each pixel in described first image position coordinates, (Dx,Dy) for institute in second image
State the target location coordinate of each target pixel points, (Sx,Sy) and (Dx,Dy) where coordinate system with described first image
Top left corner pixel point position is the origin of coordinates, and DW and DH are respectively the width and height of second image, and SW and SH are respectively
The width and height of described first image.
10. the display device according to claim 7 or 8, it is characterised in that the fusion submodule is additionally operable to:
The fusion pixel values in fused images of the target pixel points after fusion are calculated according to equation below:
Wherein, D (x, y) is fusion pixel values of the target pixel points (x, y) in the fused images, and C is the font
Color value, alpha (x, y) be the target pixel points (x, y) font transparent value, S (x, y) in the background image with institute
State the background pixel value of the corresponding background pixel point of target pixel points (x, y).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710109885.2A CN106940878A (en) | 2017-02-27 | 2017-02-27 | A kind of display methods and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710109885.2A CN106940878A (en) | 2017-02-27 | 2017-02-27 | A kind of display methods and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106940878A true CN106940878A (en) | 2017-07-11 |
Family
ID=59469004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710109885.2A Pending CN106940878A (en) | 2017-02-27 | 2017-02-27 | A kind of display methods and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106940878A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737882A (en) * | 2018-05-09 | 2018-11-02 | 腾讯科技(深圳)有限公司 | Display methods, device, storage medium and the electronic device of image |
CN110363757A (en) * | 2019-07-19 | 2019-10-22 | 深圳开立生物医疗科技股份有限公司 | Ultrasound image measurement result display methods, device, equipment and readable storage medium storing program for executing |
CN112214273A (en) * | 2020-10-14 | 2021-01-12 | 合肥芯颖科技有限公司 | Digital clock display method and device, electronic equipment and storage medium |
CN112562042A (en) * | 2020-12-24 | 2021-03-26 | 凌云光技术股份有限公司 | Display method and device for editing and analyzing image detection text in real time |
CN112637667A (en) * | 2020-12-30 | 2021-04-09 | 上海铼锶信息技术有限公司 | Progress bar display method and intelligent electronic equipment |
CN113012657A (en) * | 2019-12-19 | 2021-06-22 | 北京嗨动视觉科技有限公司 | Layer processing method and device, video processing equipment and computer readable storage medium |
WO2021136178A1 (en) * | 2020-01-03 | 2021-07-08 | 京东方科技集团股份有限公司 | Electronic device and interaction method therefor, and computer-readable storage medium |
CN114924822A (en) * | 2022-05-19 | 2022-08-19 | 安天科技集团股份有限公司 | Screenshot method and device of three-dimensional topological structure, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1461457A (en) * | 2001-04-09 | 2003-12-10 | 皇家菲利浦电子有限公司 | Method of blending digital pictures |
CN1971622A (en) * | 2006-12-12 | 2007-05-30 | 北京中星微电子有限公司 | Processing method and system for video cartoon background of digital camera apparatus |
CN101908216A (en) * | 2010-07-20 | 2010-12-08 | 中兴通讯股份有限公司 | Method and device for realizing vector fonts |
CN102509335A (en) * | 2011-09-23 | 2012-06-20 | 深圳Tcl新技术有限公司 | OpenGL (Open Graphics Library)-based transparent/translucent display processing device and method |
CN202738050U (en) * | 2012-04-28 | 2013-02-13 | 福建星网视易信息系统有限公司 | Building intercommunication system capable of monitoring air PM2.5 concentration values |
CN103136169A (en) * | 2011-11-29 | 2013-06-05 | 中兴通讯股份有限公司 | Method and device of displaying characters |
CN104050700A (en) * | 2014-06-13 | 2014-09-17 | 北京奥普科星技术有限公司 | Image synthetic method and device |
-
2017
- 2017-02-27 CN CN201710109885.2A patent/CN106940878A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1461457A (en) * | 2001-04-09 | 2003-12-10 | 皇家菲利浦电子有限公司 | Method of blending digital pictures |
CN1971622A (en) * | 2006-12-12 | 2007-05-30 | 北京中星微电子有限公司 | Processing method and system for video cartoon background of digital camera apparatus |
CN101908216A (en) * | 2010-07-20 | 2010-12-08 | 中兴通讯股份有限公司 | Method and device for realizing vector fonts |
CN102509335A (en) * | 2011-09-23 | 2012-06-20 | 深圳Tcl新技术有限公司 | OpenGL (Open Graphics Library)-based transparent/translucent display processing device and method |
CN103136169A (en) * | 2011-11-29 | 2013-06-05 | 中兴通讯股份有限公司 | Method and device of displaying characters |
CN202738050U (en) * | 2012-04-28 | 2013-02-13 | 福建星网视易信息系统有限公司 | Building intercommunication system capable of monitoring air PM2.5 concentration values |
CN104050700A (en) * | 2014-06-13 | 2014-09-17 | 北京奥普科星技术有限公司 | Image synthetic method and device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737882A (en) * | 2018-05-09 | 2018-11-02 | 腾讯科技(深圳)有限公司 | Display methods, device, storage medium and the electronic device of image |
CN110363757A (en) * | 2019-07-19 | 2019-10-22 | 深圳开立生物医疗科技股份有限公司 | Ultrasound image measurement result display methods, device, equipment and readable storage medium storing program for executing |
CN113012657A (en) * | 2019-12-19 | 2021-06-22 | 北京嗨动视觉科技有限公司 | Layer processing method and device, video processing equipment and computer readable storage medium |
WO2021136178A1 (en) * | 2020-01-03 | 2021-07-08 | 京东方科技集团股份有限公司 | Electronic device and interaction method therefor, and computer-readable storage medium |
CN112214273A (en) * | 2020-10-14 | 2021-01-12 | 合肥芯颖科技有限公司 | Digital clock display method and device, electronic equipment and storage medium |
CN112214273B (en) * | 2020-10-14 | 2023-04-21 | 合肥芯颖科技有限公司 | Digital clock display method and device, electronic equipment and storage medium |
CN112562042A (en) * | 2020-12-24 | 2021-03-26 | 凌云光技术股份有限公司 | Display method and device for editing and analyzing image detection text in real time |
CN112637667A (en) * | 2020-12-30 | 2021-04-09 | 上海铼锶信息技术有限公司 | Progress bar display method and intelligent electronic equipment |
CN114924822A (en) * | 2022-05-19 | 2022-08-19 | 安天科技集团股份有限公司 | Screenshot method and device of three-dimensional topological structure, electronic equipment and storage medium |
CN114924822B (en) * | 2022-05-19 | 2023-09-05 | 安天科技集团股份有限公司 | Screenshot method and device of three-dimensional topological structure, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106940878A (en) | A kind of display methods and device | |
Xu et al. | A distributed canny edge detector: algorithm and FPGA implementation | |
Kim et al. | Curvature interpolation method for image zooming | |
Liu et al. | GcsDecolor: gradient correlation similarity for efficient contrast preserving decolorization | |
CN110163889A (en) | Method for tracking target, target tracker, target following equipment | |
CN108961279A (en) | Image processing method, device and mobile terminal | |
CN107729790A (en) | Quick Response Code localization method and device | |
RU2008105393A (en) | COMPUTER-BASED APPLICATION FORMATION AND VERIFICATION OF TRAINING IMAGES INTENDED FOR MULTI-POINT THEOSTATISTIC ANALYSIS | |
CN111091123A (en) | Text region detection method and equipment | |
CN112800964A (en) | Remote sensing image target detection method and system based on multi-module fusion | |
Hong et al. | Fast restoration approach for rotational motion blurred image based on deconvolution along the blurring paths | |
CN111524117A (en) | Tunnel surface defect detection method based on characteristic pyramid network | |
CN104603844B (en) | Reduced bitcount polygon rasterization | |
Ji et al. | Image interpolation using multi-scale attention-aware inception network | |
CN105894470A (en) | Image processing method and device | |
CN103839246B (en) | Method and apparatus for obtaining image contour line | |
Banesh et al. | An image-based framework for ocean feature detection and analysis | |
Mathur et al. | Application of fuzzy logic on image edge detection | |
CN107133964A (en) | A kind of stingy image space method based on Kinect | |
CN107038199A (en) | A kind of drawing practice and device | |
CN106097306B (en) | Obtain method, method for detecting image edge and the device of Image Edge-Detection operator | |
CN110705474B (en) | Pedestrian attribute identification method and device | |
CN109313700A (en) | The adaptive signal detection of tracking data and synthesis | |
CN111179212A (en) | Method for realizing micro target detection chip integrating distillation strategy and deconvolution | |
CN114663654B (en) | Improved YOLOv4 network model and small target detection method |
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 | ||
CB02 | Change of applicant information |
Address after: 518000 Guangdong city of Shenzhen province Nanshan District Xili white Wangsong White Road industrial area 19 Building five Piovan letter Applicant after: Shenzhen City Huasheng Technology Industry Limited by Share Ltd Address before: 518000 Guangdong city of Shenzhen province Nanshan District Xili white Wangsong White Road industrial area 19 Building five Piovan letter Applicant before: Shenzhen Everbest Machinery Industry Co., Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170711 |
|
RJ01 | Rejection of invention patent application after publication |