CN105374022A - Image data processing method and electronic device - Google Patents
Image data processing method and electronic device Download PDFInfo
- Publication number
- CN105374022A CN105374022A CN201410425993.7A CN201410425993A CN105374022A CN 105374022 A CN105374022 A CN 105374022A CN 201410425993 A CN201410425993 A CN 201410425993A CN 105374022 A CN105374022 A CN 105374022A
- Authority
- CN
- China
- Prior art keywords
- view data
- parameter
- processing unit
- statistics
- value
- 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
Landscapes
- Image Processing (AREA)
Abstract
The present invention discloses an image data processing method and an electronic device. The method comprises a step of obtaining image data to be processed, a step of determining the pixel characteristic value of the image data, a step of determining a first set corresponding to the image data according to the pixel characteristic value, wherein the image data in the first set at least comprises one same pixel characteristic value, a step of carrying out statistics of the number of the image data in the first set by using the mode of the statistics of an image histogram by using a image processing unit to obtain a first statistical result, and a step of sending the first statistical result to a central processor of the electronic device such that the central processor processes according to the first statistical result. By using the method or the electronic device of the invention, the speed of image data processing can be improved.
Description
Technical field
The present invention relates to electronic information field, particularly relate to a kind of image processing method and electronic equipment.
Background technology
At present electronic equipment, all has graphic process unit (GraphicProcessingUnit, GPU) mostly.Such as, the equipment such as mobile phone, panel computer, notebook computer, all have corresponding GPU.
In prior art, for analysis or the identifying of view data, mainly still realized by CPU.Due to the compute mode mainly serial computing of CPU itself, so when adopting CPU to process view data, efficiency is very low.
But, in prior art, also do not have a kind of method can utilize the powerful computation capability of GPU, carry out analysis or the identification of view data.
Summary of the invention
The object of this invention is to provide a kind of image processing method and electronic equipment, the powerful computation capability of GPU can be utilized, carry out analysis or the identification of view data, thus improve the speed of image real time transfer, and reduce the power consumption of electronic equipment.
For achieving the above object, the invention provides following scheme:
A kind of image processing method, described method is applied to the electronic equipment with graphics processing unit and central processing unit, and described method comprises:
Obtain pending view data;
Determine the pixel characteristic value of described view data;
According to described pixel characteristic value, determine the first set that described view data is corresponding; View data in described first set at least has an identical described pixel characteristic value;
Utilize the number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set to add up, obtain the first statistics;
Described first statistics is sent to the described central processing unit of described electronic equipment, so that described central processing unit processes according to described first statistics.
Optionally, the described number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set that utilize is added up, and specifically comprises:
Add up to the parameter value of the first parameter in the RGBA passage of described graphics processing unit, described first parameter is for representing the number of the view data of described first set; Described first parameter corresponds to the first passage in RGBA passage.
Optionally, the described number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set that utilize is added up, and specifically comprises:
The parameter value of the RGBA passage of the view data in described first set is converted to texture coordinate;
Utilizing the Image Fusion of described graphics processing unit, calculating in described texture coordinate for representing the second parameter of the number of the view data of described first set;
According to described second parameter, determine the number of the view data in described first set.
Optionally, described in obtain the first statistics after, also comprise:
Judge whether described first statistics is more than or equal to the first predetermined threshold value, obtains the first judged result;
When described first judged result represents that described first statistics is more than or equal to the first predetermined threshold value, utilize the parameter value of the second parameter in RGBA passage to add up, described second parameter is for representing the number of the view data of described first set; Described second parameter corresponds to the second channel in RGBA passage.
Optionally, described central processing unit processes according to described first statistics, specifically comprises:
Described central processing unit by the parameter value of described first parameter after cumulative with cumulative after the parameter value of described second parameter be added, to obtain total number of the view data that described first gathers.
A kind of electronic equipment, described electronic equipment has graphics processing unit and central processing unit, and described electronic equipment comprises:
Image data acquisition unit, for obtaining pending view data;
Pixel characteristic value determining unit, for determining the pixel characteristic value of described view data;
First set determining unit, for according to described pixel characteristic value, determines the first set that described view data is corresponding; View data in described first set at least has an identical described pixel characteristic value;
Statistic unit, for utilizing the number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set to add up, obtains the first statistics;
Transmitting element, for described first statistics being sent to the described central processing unit of described electronic equipment, so that described central processing unit processes according to described first statistics.
Optionally, described statistic unit, specifically comprises:
First cumulative subelement, for adding up to the parameter value of the first parameter in the RGBA passage of described graphics processing unit, described first parameter is for representing the number of the view data of described first set; Described first parameter corresponds to the first passage in RGBA passage.
Optionally, described statistic unit, specifically comprises:
Texture coordinate conversion subelement, the parameter value for the RGBA passage by the view data in described first set is converted to texture coordinate;
Parameter computation unit, for utilizing the Image Fusion of described graphics processing unit, calculates in described texture coordinate for representing the second parameter of the number of the view data of described first set;
Number determination subelement, for according to described second parameter, determines the number of the view data in described first set.
Optionally, also comprise:
First judging unit, for after obtaining described first statistics, judges whether described first statistics is more than or equal to the first predetermined threshold value, obtains the first judged result;
Second summing elements, for when described first judged result represents that described first statistics is more than or equal to the first predetermined threshold value, utilize the parameter value of the second parameter in RGBA passage to add up, described second parameter is for representing the number of the view data of described first set; Described second parameter corresponds to the second channel in RGBA passage.
Optionally, described central processing unit, specifically comprises:
Adder unit, for by the parameter value of described first parameter after cumulative with cumulative after the parameter value of described second parameter be added, to obtain total number of the view data that described first gathers.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
Image processing method of the present invention and electronic equipment, by according to described pixel characteristic value, utilize described graphics processing unit to determine the first set that described view data is corresponding; The number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set is utilized to add up; The multiple arithmetic elements in graphics processing unit can be utilized to add up with the number of parallel processing manner to view data; Thus the speed of image real time transfer can be improved, and due to graphics processing unit perform said process time power consumption lower than CPU (central processing unit), therefore can also reduce the power consumption of electronic equipment.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of image processing method embodiment 1 of the present invention;
Fig. 2 is the process flow diagram of image processing method embodiment 2 of the present invention;
Fig. 3 is the process flow diagram of image processing method embodiment 3 of the present invention;
Fig. 4 is the process flow diagram of image processing method embodiment 4 of the present invention;
Fig. 5 is the structural drawing of electronic equipment embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
The image processing method of the embodiment of the present invention, is applied to the electronic equipment with graphics processing unit and central processing unit.Described electronic equipment can be the equipment such as mobile phone, panel computer, notebook computer or desk-top computer.Described graphics processing unit can be the chip with image processing function of described electronic equipment internal, and English name can be GPU (GraphicProcessingUnit).
Fig. 1 is the process flow diagram of image processing method embodiment 1 of the present invention.As shown in Figure 1, the method can comprise:
Step 101: obtain pending view data;
Described pending view data can be the view data that piece image comprises.Described piece image can be a photo, also can be the two field picture in video capture process.
Described view data can be the pixel of composing images.
Step 102: the pixel characteristic value determining described view data;
Described pixel characteristic value can be the value of the feature representing described view data.Such as, described pixel characteristic value can be the value of the brightness representing described view data, also can be value of the colourity representing described view data etc.
Step 103: according to described pixel characteristic value, determines the first set that described view data is corresponding; View data in described first set at least has an identical described pixel characteristic value;
According to the pixel characteristic value of view data, view data can be divided in corresponding set.View data in each set has at least one identical described pixel characteristic value.That is, set carries out dividing according to the pixel characteristic value of a certain dimension.Be arranged in the view data of identity set, this dimension has identical pixel characteristic value.
Step 104: utilize the number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set to add up, obtain the first statistics;
For the statistics of image histogram, it is the calculating process often used in graphics.Described image histogram can be color histogram, also can be grey level histogram.
Color histogram is the color characteristic be widely adopted in many image indexing systems.Described by it is the ratio of different color shared by entire image.Color histogram is particularly suitable for describing those images being difficult to carry out auto Segmentation.
Grey level histogram is the function of gray level, and it represents the number in image with the pixel of certain gray level, reflects the frequency that in image, certain gray scale occurs.
If regard total for image pixel intensity (grey level) as a stochastic variable, then its distribution situation just reflects the statistical property of image, this usable probability density function (probabilitydensityfunction, PDF) portray and describe, showing as grey level histogram.
In the present embodiment, adding up the number of the view data in described first set, can be the number that statistics has the view data of a certain particular luminance value, also can be the number that statistics has the view data of a certain color component.
Step 105: the described central processing unit described first statistics being sent to described electronic equipment, so that described central processing unit processes according to described first statistics.
Described central processing unit according to described first statistics and the processing policy corresponding with statistics preset, can perform corresponding data handling procedure.
Such as, according to described first statistics, can know that in piece image, brightness value is lower than the number of the pixel of predetermined threshold value, when the number of pixels of adding up is less than a certain threshold value, improve display brightness.Thus judge that whether the brightness of the image of the current display of described electronic equipment is lower, when brightness is lower, the display brightness that described electronic equipment is current can be improved.Concrete, the whole pixels in piece image can be divided in multiple set, and the brightness value of the view data in each set is identical, and the brightness of the view data in different set is different, and each set has a corresponding statistics.Brightness value can be added lower than the statisticses that multiple set of predetermined threshold value are corresponding, thus obtain in described image brightness value lower than total number of the pixel of predetermined threshold value.
In sum, in the present embodiment, by according to described pixel characteristic value, described graphics processing unit is utilized to determine the first set that described view data is corresponding; The number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set is utilized to add up; The multiple arithmetic elements in graphics processing unit can be utilized to add up with the number of parallel processing manner to view data; Thus the speed of image real time transfer can be improved, and due to graphics processing unit perform said process time power consumption lower than CPU (central processing unit), therefore can also reduce the power consumption of electronic equipment.
Fig. 2 is the process flow diagram of image processing method embodiment 2 of the present invention.As shown in Figure 2, the method can comprise:
Step 201: obtain pending view data;
Step 202: the pixel characteristic value determining described view data;
Step 203: according to described pixel characteristic value, determines the first set that described view data is corresponding; View data in described first set at least has an identical described pixel characteristic value;
Such as, the brightness value of the view data in described first set is identical.
Step 204: the parameter value of the first parameter in the RGBA passage of described graphics processing unit is added up, obtains the first accumulation result; Described first parameter is for representing the number of the view data of described first set; Described first parameter corresponds to the first passage in RGBA passage;
By adding up to the parameter in the RGBA passage of graphics processing unit, the number of the view data in described first set can be added up.
Such as, the number of the parameter R in RGBA passage to the view data in described first set can be adopted to add up.When the number of the view data in described first set increases by one, the parameter value of parameter R just can add one.
Step 205: the described central processing unit described first accumulation result being sent to described electronic equipment, so that described central processing unit processes according to described first accumulation result.
In the present embodiment, by adding up to the parameter value of the first parameter in the RGBA passage of described graphics processing unit, can realize adopting the parameter in RGBA passage to carry out the statistics of view data.
Fig. 3 is the process flow diagram of image processing method embodiment 3 of the present invention.As shown in Figure 3, the method can comprise:
Step 301: obtain pending view data;
Step 302: the pixel characteristic value determining described view data;
Step 303: according to described pixel characteristic value, utilizes described graphics processing unit to determine the first set that described view data is corresponding; View data in described first set at least has an identical described pixel characteristic value;
Such as, the view data in described first set can have an identical brightness value.
Step 304: the parameter value of the RGBA passage of the view data in described first set is converted to texture coordinate;
Described texture coordinate is the coordinate of the spatial positional information describing described view data, can be specifically the summit (vertex) in image processing field.
Graphics processing unit master is to be processed is summit (vertex) and pixel (pixel).
Wherein, summit can adopt the coordinate form of XYZW, and pixel can adopt the parametric form of RGBA.
The formula of setting can be adopted, the parameter value of the RGBA passage of the view data in described first set is converted to texture coordinate.The parameter value of the RGBA passage of the texture coordinate after conversion and view data is one to one.After conversion, can Image Fusion, the number of computed image data.
Step 305: the Image Fusion utilizing described graphics processing unit, calculates in described texture coordinate for representing the second parameter of the number of the view data of described first set;
Such as, the W in XYZW can be adopted as described second parameter.When carrying out texture coordinate conversion, the parameter value of the W of the texture coordinate after the view data conversion in can gathering first is unified is set to 0.01 (can certainly be other values).When carrying out image co-registration and calculating, can superpose the parameter value of W.Suppose that the parameter value after superposing is 0.5, then the parameter value after described superposition is multiplied by predetermined coefficient (such as 100), just can obtain the number of the view data in described first set.
Step 306: according to described second parameter, determines the number of the view data in described first set.
Such as, can according to the parameter value 0.5 of W in upper example, the number calculating the view data in described first set is 50.
Step 307: the described central processing unit number of the view data in described first set being sent to described electronic equipment, so that described central processing unit processes according to the number of the view data in described first set.
In the present embodiment, the number of Image Fusion to view data of graphics processing unit is adopted to add up, Image Fusion due to existing graphics processing unit inherently adopts parallel arithmetic mode to carry out processing, therefore, the producing level of the parallel processing capability for graphics processing unit can be improved further.
In practical application, the span of the parameter value in RGBA passage is conditional.Such as, in described RGBA passage, the span of the parameter value of R passage can be the integer between 0 to 255.Therefore, when the number of the view data of adding up is more than 255, the parameter value of R passage just cannot be adopted to add up.
In order to solve the problem, present invention also offers another embodiment.
Fig. 4 is the process flow diagram of image processing method embodiment 4 of the present invention.As shown in Figure 4, the method can comprise:
Step 401: obtain pending view data;
Step 402: the pixel characteristic value determining described view data;
Step 403: according to described pixel characteristic value, utilizes described graphics processing unit to determine the first set that described view data is corresponding; View data in described first set at least has an identical described pixel characteristic value;
Step 404: the parameter value of the first parameter in the RGBA passage of described graphics processing unit is added up, obtains the first accumulation result; Described first parameter is for representing the number of the view data of described first set; Described first parameter corresponds to the first passage in RGBA passage.
Step 405: judge whether described first accumulation result is more than or equal to the first predetermined threshold value, obtains the first judged result;
Described first predetermined threshold value can set according to the upper limit of the span of described first parameter.Such as, when the span upper limit of described first parameter is 255, just described first predetermined threshold value can be set to 255.
Step 406: when described first judged result represents that described first statistics is more than or equal to the first predetermined threshold value, utilize the parameter value of the second parameter in RGBA passage to add up, described second parameter is for representing the number of the view data of described first set; Described second parameter corresponds to the second channel in RGBA passage.
Such as, after the parameter value of the first parameter is added to 255, the second parameter value can be adopted to add up from 0.
Step 407: by the parameter value of described first parameter after cumulative with cumulative after the parameter value of described second parameter be sent to the described central processing unit of described electronic equipment;
Suppose described second parameter value accumulated value 45.Then the parameter value of described first parameter is 255, and the parameter value of described second parameter is 45.
Step 408: described central processing unit by the parameter value of described first parameter after cumulative with cumulative after the parameter value of described second parameter be added, to obtain total number of the view data that described first gathers.
Both are added after getting the parameter value of the parameter value of described first parameter after described adding up and described second parameter after adding up by described central processing unit, just can obtain total number of the view data of described first set.
In sum, in the present embodiment, after the parameter value of described first parameter reaches the upper limit, the second parameter can be adopted to add up, thus improve the number upper limit of the view data that can add up.
The invention also discloses a kind of electronic equipment.Described electronic equipment has graphics processing unit and central processing unit.Described electronic equipment can be the equipment such as mobile phone, panel computer, notebook computer or desk-top computer.Described graphics processing unit can be the chip with image processing function of described electronic equipment internal, and English name can be GPU (GraphicProcessingUnit).
Fig. 5 is the structural drawing of electronic equipment embodiment of the present invention.As shown in Figure 5, described electronic equipment can comprise:
Image data acquisition unit 501, for obtaining pending view data;
Described pending view data can be the view data that piece image comprises.Described piece image can be a photo, also can be the two field picture in video capture process.
Described view data can be the pixel of composing images.
Pixel characteristic value determining unit 502, for determining the pixel characteristic value of described view data;
Described pixel characteristic value can be the value of the feature representing described view data.Such as, described pixel characteristic value can be the value of the brightness representing described view data, also can be value of the colourity representing described view data etc.
First set determining unit 503, for according to described pixel characteristic value, determines the first set that described view data is corresponding; View data in described first set at least has an identical described pixel characteristic value;
According to the pixel characteristic value of view data, view data can be divided in corresponding set.View data in each set has at least one identical described pixel characteristic value.That is, set carries out dividing according to the pixel characteristic value of a certain dimension.Be arranged in the view data of identity set, this dimension has identical pixel characteristic value.
Statistic unit 504, for utilizing the number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set to add up, obtains the first statistics;
For the statistics of image histogram, it is the calculating process often used in graphics.Described image histogram can be color histogram, also can be grey level histogram.
Color histogram is the color characteristic be widely adopted in many image indexing systems.Described by it is the ratio of different color shared by entire image.Color histogram is particularly suitable for describing those images being difficult to carry out auto Segmentation.
Grey level histogram is the function of gray level, and it represents the number in image with the pixel of certain gray level, reflects the frequency that in image, certain gray scale occurs.
If regard total for image pixel intensity (grey level) as a stochastic variable, then its distribution situation just reflects the statistical property of image, this usable probability density function (probabilitydensityfunction, PDF) portray and describe, showing as grey level histogram.
In the present embodiment, adding up the number of the view data in described first set, can be the number that statistics has the view data of a certain particular luminance value, also can be the number that statistics has the view data of a certain color component.
Transmitting element 505, for described first statistics being sent to the described central processing unit of described electronic equipment, so that described central processing unit processes according to described first statistics.
Described central processing unit according to described first statistics and the processing policy corresponding with statistics preset, can perform corresponding data handling procedure.
Such as, according to described first statistics, can know that in piece image, brightness value is lower than the number of the pixel of predetermined threshold value, thus judge that whether the brightness of the image of the current display of described electronic equipment is lower, when brightness is lower, the display brightness that described electronic equipment is current can be improved.
In sum, in the present embodiment, according to described pixel characteristic value, described graphics processing unit is utilized to determine the first set that described view data is corresponding; The number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set is utilized to add up; The multiple arithmetic elements in graphics processing unit can be utilized to add up with the number of parallel processing manner to view data; Thus the speed of image real time transfer can be improved, and due to graphics processing unit perform said process time power consumption lower than CPU (central processing unit), therefore can also reduce the power consumption of electronic equipment.
In practical application, described statistic unit 504, specifically can comprise:
First cumulative subelement, for adding up to the parameter value of the first parameter in the RGBA passage of described graphics processing unit, described first parameter is for representing the number of the view data of described first set; Described first parameter corresponds to the first passage in RGBA passage.
In practical application, described statistic unit 504, specifically can also comprise:
Texture coordinate conversion subelement, the parameter value for the RGBA passage by the view data in described first set is converted to texture coordinate;
Parameter computation unit, for utilizing the Image Fusion of described graphics processing unit, calculates in described texture coordinate for representing the second parameter of the number of the view data of described first set;
Number determination subelement, for according to described second parameter, determines the number of the view data in described first set.
In practical application, described electronic equipment can also comprise:
First judging unit, for after obtaining described first statistics, judges whether described first statistics is more than or equal to the first predetermined threshold value, obtains the first judged result;
Second summing elements, for when described first judged result represents that described first statistics is more than or equal to the first predetermined threshold value, utilize the parameter value of the second parameter in RGBA passage to add up, described second parameter is for representing the number of the view data of described first set; Described second parameter corresponds to the second channel in RGBA passage.
In practical application, described central processing unit, specifically can comprise:
Adder unit, for by the parameter value of described first parameter after cumulative with cumulative after the parameter value of described second parameter be added, to obtain total number of the view data that described first gathers.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required hardware platform by software and realize, can certainly all be implemented by hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For electronic equipment disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications.In sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. an image processing method, is characterized in that, described method is applied to the electronic equipment with graphics processing unit and central processing unit, and described method comprises:
Obtain pending view data;
Determine the pixel characteristic value of described view data;
According to described pixel characteristic value, determine the first set that described view data is corresponding; View data in described first set at least has an identical described pixel characteristic value;
Utilize the number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set to add up, obtain the first statistics;
Described first statistics is sent to the described central processing unit of described electronic equipment, so that described central processing unit processes according to described first statistics.
2. method according to claim 1, is characterized in that, the described number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set that utilize is added up, and specifically comprises:
Add up to the parameter value of the first parameter in the RGBA passage of described graphics processing unit, described first parameter is for representing the number of the view data of described first set; Described first parameter corresponds to the first passage in RGBA passage.
3. method according to claim 1, is characterized in that, the described number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set that utilize is added up, and specifically comprises:
The parameter value of the RGBA passage of the view data in described first set is converted to texture coordinate;
Utilizing the Image Fusion of described graphics processing unit, calculating in described texture coordinate for representing the second parameter of the number of the view data of described first set;
According to described second parameter, determine the number of the view data in described first set.
4. method according to claim 2, is characterized in that, described in obtain the first statistics after, also comprise:
Judge whether described first statistics is more than or equal to the first predetermined threshold value, obtains the first judged result;
When described first judged result represents that described first statistics is more than or equal to the first predetermined threshold value, utilize the parameter value of the second parameter in RGBA passage to add up, described second parameter is for representing the number of the view data of described first set; Described second parameter corresponds to the second channel in RGBA passage.
5. method according to claim 4, is characterized in that, described central processing unit processes according to described first statistics, specifically comprises:
Described central processing unit by the parameter value of described first parameter after cumulative with cumulative after the parameter value of described second parameter be added, to obtain total number of the view data that described first gathers.
6. an electronic equipment, is characterized in that, described electronic equipment has graphics processing unit and central processing unit, and described electronic equipment comprises:
Image data acquisition unit, for obtaining pending view data;
Pixel characteristic value determining unit, for determining the pixel characteristic value of described view data;
First set determining unit, for according to described pixel characteristic value, determines the first set that described view data is corresponding; View data in described first set at least has an identical described pixel characteristic value;
Statistic unit, for utilizing the number of the histogrammic mode of described graphics processing unit statistical picture to the view data in described first set to add up, obtains the first statistics;
Transmitting element, for described first statistics being sent to the described central processing unit of described electronic equipment, so that described central processing unit processes according to described first statistics.
7. electronic equipment according to claim 6, is characterized in that, described statistic unit, specifically comprises:
First cumulative subelement, for adding up to the parameter value of the first parameter in the RGBA passage of described graphics processing unit, described first parameter is for representing the number of the view data of described first set; Described first parameter corresponds to the first passage in RGBA passage.
8. electronic equipment according to claim 6, is characterized in that, described statistic unit, specifically comprises:
Texture coordinate conversion subelement, the parameter value for the RGBA passage by the view data in described first set is converted to texture coordinate;
Parameter computation unit, for utilizing the Image Fusion of described graphics processing unit, calculates in described texture coordinate for representing the second parameter of the number of the view data of described first set;
Number determination subelement, for according to described second parameter, determines the number of the view data in described first set.
9. electronic equipment according to claim 7, is characterized in that, also comprises:
First judging unit, for after obtaining described first statistics, judges whether described first statistics is more than or equal to the first predetermined threshold value, obtains the first judged result;
Second summing elements, for when described first judged result represents that described first statistics is more than or equal to the first predetermined threshold value, utilize the parameter value of the second parameter in RGBA passage to add up, described second parameter is for representing the number of the view data of described first set; Described second parameter corresponds to the second channel in RGBA passage.
10. electronic equipment according to claim 9, is characterized in that, described central processing unit, specifically comprises:
Adder unit, for by the parameter value of described first parameter after cumulative with cumulative after the parameter value of described second parameter be added, to obtain total number of the view data that described first gathers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410425993.7A CN105374022A (en) | 2014-08-26 | 2014-08-26 | Image data processing method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410425993.7A CN105374022A (en) | 2014-08-26 | 2014-08-26 | Image data processing method and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105374022A true CN105374022A (en) | 2016-03-02 |
Family
ID=55376194
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410425993.7A Pending CN105374022A (en) | 2014-08-26 | 2014-08-26 | Image data processing method and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105374022A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050207639A1 (en) * | 2004-03-22 | 2005-09-22 | Olympus Corporation | Inspection apparatus |
CN101887692A (en) * | 2009-05-13 | 2010-11-17 | 胜华科技股份有限公司 | Image display method |
CN102984463A (en) * | 2012-09-14 | 2013-03-20 | 旗瀚科技有限公司 | Method and system for image processing |
-
2014
- 2014-08-26 CN CN201410425993.7A patent/CN105374022A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050207639A1 (en) * | 2004-03-22 | 2005-09-22 | Olympus Corporation | Inspection apparatus |
CN101887692A (en) * | 2009-05-13 | 2010-11-17 | 胜华科技股份有限公司 | Image display method |
CN102984463A (en) * | 2012-09-14 | 2013-03-20 | 旗瀚科技有限公司 | Method and system for image processing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110544258B (en) | Image segmentation method and device, electronic equipment and storage medium | |
CN108550101B (en) | Image processing method, device and storage medium | |
US9401027B2 (en) | Method and apparatus for scene segmentation from focal stack images | |
CN111311482B (en) | Background blurring method and device, terminal equipment and storage medium | |
JP2014527210A (en) | Content adaptive system, method and apparatus for determining optical flow | |
CN108960012B (en) | Feature point detection method and device and electronic equipment | |
CN112651953B (en) | Picture similarity calculation method and device, computer equipment and storage medium | |
CN103632362A (en) | Image matching processing method, device and system | |
CN117011304B (en) | Defect detection method, defect detection device, computer equipment and computer readable storage medium | |
JP7429756B2 (en) | Image processing method, device, electronic device, storage medium and computer program | |
CN103903275A (en) | Method for improving image segmentation effects by using wavelet fusion algorithm | |
CN104851122A (en) | Method and device for generating shadow special effect graph | |
CN114626967A (en) | Digital watermark embedding and extracting method, device, equipment and storage medium | |
CN112861939A (en) | Feature selection method, device, readable storage medium and computer program product | |
CN114241358A (en) | Equipment state display method, device and equipment based on digital twin transformer substation | |
Jakhetiya et al. | Stretching artifacts identification for quality assessment of 3D-synthesized views | |
CN110599532A (en) | Depth estimation model optimization and depth estimation processing method and device for image | |
CN114119964A (en) | Network training method and device, and target detection method and device | |
CN113628259A (en) | Image registration processing method and device | |
CN117132964A (en) | Model training method, point cloud coding method, object processing method and device | |
CN105374022A (en) | Image data processing method and electronic device | |
CN102742271B (en) | The compression of images using discrete cosine transform detects the artifact of quantizing noise | |
CN111918061A (en) | Coding block dividing method and device, storage medium and electronic equipment | |
Chang et al. | LSIM: Ultra lightweight similarity measurement for mobile graphics applications | |
CN116665004B (en) | Augmented reality image processing method, system, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160302 |
|
RJ01 | Rejection of invention patent application after publication |