CN1959737A - Image format conversion method, image processing method and system - Google Patents

Image format conversion method, image processing method and system Download PDF

Info

Publication number
CN1959737A
CN1959737A CN 200610144118 CN200610144118A CN1959737A CN 1959737 A CN1959737 A CN 1959737A CN 200610144118 CN200610144118 CN 200610144118 CN 200610144118 A CN200610144118 A CN 200610144118A CN 1959737 A CN1959737 A CN 1959737A
Authority
CN
China
Prior art keywords
pixel
pixel value
component
image
handling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200610144118
Other languages
Chinese (zh)
Other versions
CN100507944C (en
Inventor
方锦涛
游明琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vimicro Corp
Original Assignee
Vimicro Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vimicro Corp filed Critical Vimicro Corp
Priority to CNB2006101441187A priority Critical patent/CN100507944C/en
Publication of CN1959737A publication Critical patent/CN1959737A/en
Application granted granted Critical
Publication of CN100507944C publication Critical patent/CN100507944C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

A method for converting image format includes making statistics on a frame of image separately according to pixel value of R, G and B component at pixel point and storing pixel point information corresponding to each R, G and B pixel value then converting RGB format image to be format image based on pixel value statistics. The image processing system used for realizing said method is also disclosed.

Description

A kind of image format conversion method, image processing method and system
Technical field
The present invention relates to Flame Image Process, relate in particular to a kind of image format conversion method, based on the image processing method and the system of pixel value statistics.
Background technology
In the prior art, picture format all is based on the pointwise of pixel position its pixel value is described, and this describing method is the method for a kind of pixel-oriented point position.For coloured image, each pixel corresponding pixel value is divided into R (Red, redness) component pixel value, G (Green, green) component pixel value and B (Blue, blueness) component pixel value, is called for short R, G, B three-component.
Based on picture format of the prior art, in image processing process, need the pointwise statistics, analyze and calculate its pixel value.And for some image processing method, as histogram equalization algorithm, γ correcting algorithm etc., bigger with the color statistical relationship of pixel, and it is less with the position relation of pixel, if adopt picture format of the prior art, when each time image being carried out that histogram equalization or γ proofread and correct and waits processing, all need the pixel value (R of each pixel, G, B pixel value) to image to add up and search for, operation efficiency is very low.
Summary of the invention
The invention provides a kind of image format conversion method, image processing method and system, in order to solve the lower problem of operation efficiency in the image processing process that carries out with pixel value statistical dependence that exists in the prior art.
Image format conversion method provided by the invention comprises:
Respectively according to the pixel value size of pixel R, G, B component, to two field picture statistics and store the pixel information of each R, G, B pixel value correspondence, be the format-pattern of adding up based on pixel value with the rgb format image transitions.
According to above-mentioned image format conversion method of the present invention, specifically comprise:
According to pixel R component pixel value from small to large or order from big to small, a two field picture is added up the pixel of each R pixel value correspondence, and store first corresponding relation of each R pixel value and respective pixel point identification;
According to pixel G component pixel value from small to large or order from big to small, a two field picture is added up the pixel of each G pixel value correspondence, and store second corresponding relation of each G pixel value and respective pixel point identification;
According to pixel B component pixel value from small to large or order from big to small, one two field picture is added up the pixel of each B pixel value correspondence, and store the 3rd corresponding relation of each B pixel value and respective pixel point identification, realize that with the rgb format image transitions be the format-pattern of adding up based on pixel value.
The pixel value size of described R, G, B component is respectively from 0 integer to same desired value; Described pixel is designated the station location marker of corresponding pixel points in a two field picture;
Each R pixel value of storage and corresponding pixel station location marker thereof in described first corresponding relation, and in the end add the identifier that an expression corresponding pixel points finishes behind a corresponding pixel points station location marker;
Each G pixel value of storage and corresponding pixel station location marker thereof in described second corresponding relation, and in the end add the identifier that an expression corresponding pixel points finishes behind a corresponding pixel points station location marker;
Each B pixel value of storage and corresponding pixel station location marker thereof in described the 3rd corresponding relation, and in the end add the identifier that an expression corresponding pixel points finishes behind a corresponding pixel points station location marker.
Described pixel station location marker according in the two field picture all pixels from top to bottom, from left to right order, identify with digital number successively.
If the continuous a plurality of pixels in position have identical R component pixel value, then in described first corresponding relation, when storing the pixel sign corresponding with this R component pixel value, only store the minimum position sequence number of these continuous a plurality of pixels and the quantity information of continuous image vegetarian refreshments, and before described quantity information, add the identifier of an expression quantity;
If the continuous a plurality of pixels in position have identical G component pixel value, then in described second corresponding relation, when storing the pixel sign corresponding with this G component pixel value, only store the minimum position sequence number of these continuous a plurality of pixels and the quantity information of continuous image vegetarian refreshments, and before described quantity information, add the identifier of an expression quantity;
If the continuous a plurality of pixels in position have identical B component pixel value, then in described the 3rd corresponding relation, when storing the pixel sign corresponding with this B component pixel value, only store the minimum position sequence number of these continuous a plurality of pixels and the quantity information of continuous image vegetarian refreshments, and before described quantity information, add the identifier of an expression quantity.
The present invention provides a kind of image processing method in addition, comprising:
A, respectively according to the pixel value size of pixel R, G, B component, to two field picture statistics and store the pixel information of each R, G, B pixel value correspondence, be the format-pattern of adding up based on pixel value with the rgb format image transitions;
B, set in advance the storage space after the Flame Image Process, and each R, the G of prediction picture after handling, the pixel information of B pixel value correspondence be sky; Respectively each R, G, B pixel value before handling are handled corresponding R, the G after obtaining handling, B pixel value by concrete image processing algorithm; And the pixel information of each R, G, B pixel value correspondence before will handling, as corresponding R, G after handling, the pixel information of B pixel value correspondence, generate the format-pattern after handling based on the pixel value statistics.
The concrete processing mode of described step a is identical with above-mentioned image format conversion method, does not repeat.
According to above-mentioned image processing method of the present invention, to handle by pre-defined algorithm based on each R, G, B pixel value described in the step b, corresponding R, the G after obtaining handling, B pixel value include but not limited to:
Respectively each R pixel value is handled by histogram equalization algorithm, obtained the corresponding R pixel value after the equilibrium;
Respectively each G pixel value is handled by histogram equalization algorithm, obtained the corresponding G pixel value after the equilibrium;
Respectively each B pixel value is handled by histogram equalization algorithm, obtained the corresponding B pixel value after the equilibrium; Perhaps
Respectively each R pixel value is handled the corresponding R pixel value after obtaining proofreading and correct by the γ correcting algorithm;
Respectively each G pixel value is handled the corresponding G pixel value after obtaining proofreading and correct by the γ correcting algorithm;
Respectively each B pixel value is handled the corresponding B pixel value after obtaining proofreading and correct by the γ correcting algorithm.
Described step b specifically comprises:
First buffer area of image after the set handling is for the R pixel value after each processing is set up a corresponding record; Pixel information by R pixel value correspondence before described first corresponding relation acquisition processing is filled into described respective pixel dot information in the corresponding record of handling back R pixel value;
Second buffer area of image after the set handling is for the G pixel value after each processing is set up a corresponding record; Pixel information by G pixel value correspondence before described second corresponding relation acquisition processing is filled into described respective pixel dot information in the corresponding record of handling back G pixel value;
The 3rd buffer area of image after the set handling is for the B pixel value after each processing is set up a corresponding record; Pixel information by B pixel value correspondence before described the 3rd corresponding relation acquisition processing is filled into described respective pixel dot information in the corresponding record of handling back B pixel value.
Also comprise the format-pattern based on the pixel value statistics after handling is converted to the rgb format image, specifically comprise:
Obtain the pixel information of handling each R pixel value correspondence of back, giving the R component assignment of corresponding pixel points is the R pixel value corresponding with it;
Obtain the pixel information of handling each G pixel value correspondence of back, giving the G component assignment of corresponding pixel points is the G pixel value corresponding with it;
Obtain the pixel information of handling each B pixel value correspondence of back, giving the B component assignment of corresponding pixel points is the B pixel value corresponding with it.
The present invention provides a kind of image processing system based on the pixel value statistics in addition, comprising:
The first image format conversion module, respectively according to the pixel value size of pixel R, G, B component, to two field picture statistics and store the pixel information of each R, G, B pixel value correspondence, be the format-pattern of adding up based on pixel value with the rgb format image transitions;
Image processing module sets in advance the storage space after the Flame Image Process, and each R, the G of prediction picture after handling, the pixel information of B pixel value correspondence be sky; Respectively each R, G, B pixel value before handling are handled corresponding R, the G after obtaining handling, B pixel value by concrete image processing algorithm; And the pixel information of each R, G, B pixel value correspondence before will handling, as corresponding R, G after handling, the pixel information of B pixel value correspondence, generate the format-pattern after handling based on the pixel value statistics.
Also comprise: the second image format conversion module will be converted to the rgb format image based on the format-pattern of pixel value statistics.
Beneficial effect of the present invention is as follows:
Adopt the present invention, in advance according to pixel R, G, the pixel value size of B component, each R is added up and stored to one two field picture, G, the pixel information of B pixel value correspondence, like this, just with each pixel in the two field picture according to its corresponding R, G, the B pixel value is concluded, promptly according to R, G, the size order of B pixel value is described its corresponding pixel information, no longer adopt rgb format of the prior art to describe its rgb pixel value, so just realized that with the image transitions based on rgb format of the prior art be the SPV format-pattern based on the pixel value statistics of the present invention according to the sequence of positions pointwise of pixel.In the image processing process that carries out with pixel value statistical dependence, by the associated picture Processing Algorithm each pixel value is handled corresponding R, the G after obtaining handling, B pixel value respectively based on each R, G, B pixel value; And obtaining the pixel information of each R, G, B pixel value correspondence in the SPV format-pattern before handling, the pixel value that changes corresponding pixel points generates the SPV format-pattern after handling for corresponding R, G, B pixel value after handling.Because the present invention has added up and has stored the pixel information of each R, G, B pixel value correspondence in advance, therefore, when the Flame Image Process of carrying out with pixel value statistical dependence, just can obtain corresponding pixel information according to each R, G, B pixel value immediately by the SPV format-pattern, no longer need each pixel is carried out the statistics and the search of R, G, B pixel value, improve the operation efficiency in the image processing process greatly, thereby accelerated image processing speed.
In addition, the present invention can also be according to the pixel information of storage each R, G, B pixel value correspondence in the SPV format-pattern, be converted to the rgb format image from the SPV format-pattern simply and easily, the rgb format image handled to be user-friendly to other image processing method relevant with the pixel position.
Description of drawings
The flow chart of steps that Fig. 1 is is SPV format-pattern of the present invention with rgb format image transitions of the prior art;
Fig. 2 is a width of cloth 10*10 pixel image synoptic diagram;
Fig. 3 carries out whole flow chart of steps with the Flame Image Process of pixel value statistical dependence for adopting SPV format-pattern of the present invention;
Fig. 4 carries out the flow chart of steps that histogram equalization is handled for adopting SPV format-pattern of the present invention;
Fig. 5 carries out the flow chart of steps of γ treatment for correcting for adopting SPV format-pattern of the present invention;
Fig. 6 is for to be converted to rgb format image step process flow diagram of the prior art with SPV format-pattern of the present invention;
Fig. 7 is the image processing system synoptic diagram based on the pixel value statistics provided by the invention.
Embodiment
Image conversion method provided by the invention comprises:
Respectively according to the pixel value size of pixel R, G, B component, to two field picture statistics and store the pixel information of each R, G, B pixel value correspondence, be the format-pattern of adding up based on pixel value with the rgb format image transitions.For convenience of description, hereinafter unification is called the SPV format-pattern with the format-pattern based on the pixel value statistics provided by the invention.
Below in conjunction with accompanying drawing said method of the present invention is described in detail.
With rgb format image transitions of the prior art is SPV format-pattern of the present invention, and the specific implementation step as shown in Figure 1.In the following description, all being converted to the SPV form with R component pixel value is example, and for G component pixel value and B component pixel value, transfer process and R component pixel value are identical, no longer repeat.
Before starting concrete flow path switch, open up one section storage space in advance, in order to the SPV format-pattern after the storage conversion, R with image, G, the B pixel value is that 0~255 round values (totally 256 values) is an example, store 256 records in the SPV format-pattern after conversion in advance, comprise two fields in every record, first field is the R pixel value, second field is the pixel information of the correspondence of R pixel value, before conversion, in second field of 256 records, fill in a pixel end of message (EOM) identifier in advance respectively, for example finish, then in second field of 256 records, fill in digital " 0 " respectively in advance with digital " 0 " remarked pixel dot information; Realize that the rgb format image transitions is the process of SPV format-pattern, exactly according to the size order (to be example from small to large) of pixel value (is example with the R value), in a two field picture, count the pixel information corresponding with respective pixel values, and store in the corresponding record, thereby set up the corresponding relation of each pixel value and respective pixel point identification, the pixel sign can be the station location marker of corresponding pixel points in a two field picture, in following embodiment of the present invention describes, the pixel station location marker according to whole pixels in the two field picture from top to bottom, order from left to right identifies with digital number successively.The pixel of supposing a two field picture adds up to N, and concrete switch process comprises:
Step S101, the initial value that sets in advance the corresponding variable i of R pixel value are 0;
Step S102, the initial value to dependent variable n that sets in advance pixel are 1;
Step S103, read original rgb format image, obtain the R pixel value of n pixel;
Step S104, judge whether the R pixel value of n pixel equals i, if, execution in step S105; Otherwise, go to step S106;
In the i+1 bar record of step S105, the SPV format-pattern after conversion, numeral " n " is inserted in the front of the identifier " 0 " that the remarked pixel dot information of storing in advance in second field finishes, the R value of expression " n " individual pixel correspondence is " i ", execution in step S106;
Step S106, judge whether n equals N, whether whole pixels of promptly judging present image are searched for and are finished, if, execution in step S107; Otherwise, go to step S108;
Whether step S107, judgment variable i equal 255, judge promptly whether each R pixel value is all added up to finish, if then image transitions finishes; Otherwise, go to step S109;
Step S108, make variable n add 1, go to step S103, repeat above-mentioned flow process, continue to judge whether the R pixel value of next pixel equals " i ";
Step S109, make variable i add 1, go to step S102, repeat above-mentioned flow process, continue the pairing pixel information of the next R pixel value of statistics.
With a concrete example, above-mentioned conversion method of the present invention being described below, referring to Fig. 2, is a width of cloth 10*10 pixel image, and totally 100 pixels are labelled with 1~100 digital number respectively.Wherein, the 11st, 13,21 pixels are black, and 12,33,66 pixels are purple, and the rest of pixels point is large red.When adopting the described method of Fig. 1 flow process of the present invention that the R component of this image is converted to SPV format-pattern of the present invention, the storage mode in internal memory is as shown in table 1 below:
Table 1
11 13 21 0 <—— R=0
0 <—— R=1
... <—— ...
0 <—— R=127
12 33 66 0 <—— R=128
0 <—— R=129
... <—— ...
0 <—— R=254
1 2...99 100 0 <—— R=255
In the table 1, the R pixel value is shown in the right one tabulation, is respectively the round values from 0~255; Corresponding pixel information is shown in the left side one tabulation, identifies with the position number of each pixel, and wherein last digital " 0 " is illustrated in this two field picture for corresponding pixel points end mark symbol, and the search of the pixel of corresponding R pixel value finishes.
Consider that the situation that the pixel value of continuous a plurality of pixels is identical in the image is many,, can take following a kind of storage means in order to reduce the storage space of SPV format-pattern of the present invention:
If the continuous a plurality of pixels in position have identical pixel value, can count contiguous pixels number of spots with same pixel value, after writing down first pixel position, write down continuous pixel quantity again, and before quantity information, add one the expression quantity identifier, as before quantity information, adding negative sign "-", be the contiguous pixels number of spots with what show this numeric representation, rather than corresponding pixel position number; For example, after table 1 adopted aforesaid way to handle, the storage mode in internal memory was as shown in table 2 below:
Table 2
11 13 21 0 <—— R=0
0 <—— R=1
... <—— ...
0 <—— R=127
12 33 66 0 <—— R=128
0 <—— R=129
... <—— ...
0 <—— R=254
1-10 14-7 22-11 34-32 67-34 0 <—— R=255
Adopt the storage mode shown in the table 2, the storage space that takies is (16+256) * 4Byte; And adopting the storage mode shown in the table 1, the storage space that takies is (100+256) * 4Byte; This shows that the storage mode shown in the employing table 2 has reduced storage space greatly.
More than described the concrete grammar and the concrete storage mode that are SPV format-pattern of the present invention how, specifically described below and adopt SPV format-pattern provided by the invention to carry out the image process method flow process rgb format image transitions of the prior art.
Referring to Fig. 3, for adopting SPV format-pattern of the present invention to carry out whole flow chart of steps with the Flame Image Process of pixel value statistical dependence, before carrying out Flame Image Process, open up one section storage space in advance, in order to the SPV format-pattern after the caching process, R with image, G, the B pixel value is that 0~255 round values (totally 256 values) is an example, storing 256 records in the SPV format-pattern after processing in advance (sorts from small to large according to the R pixel value, article 1, the corresponding R pixel value of record is 0, article 256, the corresponding R pixel value of record is 255), comprise two fields in every record, first field is for handling back R pixel value, second field is for handling the respective pixel dot information of back R pixel value, before starting Flame Image Process, in second field of 256 records, fill in the identifier that a remarked pixel dot information finishes in advance respectively, for example finish, then in second field of 256 records, fill in digital " 0 " respectively in advance with digital " 0 " remarked pixel dot information; Before starting Flame Image Process, the pixel information corresponding with each R pixel value is predisposed to sky.Concrete image processing step comprises:
Step S301, read the pending original image of SPV form, image is carried out statistical study, obtain each pixel value and corresponding pixel information thereof;
Step S302, the initial value that the corresponding variable i of R pixel value is set are 0;
Step S303, according to concrete image processing algorithm, the respective pixel value j after obtaining pixel value i and handling, j=f (i) wherein, the of the prior art various image processing algorithm rules that f (i) expression is concrete;
In the j+1 bar record of step S304, the SPV format-pattern after processing, the pixel information (as the position number of pixel) corresponding in the original image of the front of the identifier " 0 " that the remarked pixel dot information finishes insertion SPV form with pixel value i;
Step S305, judge whether i equals 255, judge promptly whether whole pixel values dispose, if then finish the Flame Image Process flow process; Otherwise, continue step S306;
Step S306, make variable i add 1, go to step S303, repeat above-mentioned flow process, continue to handle next R pixel value, dispose up to whole R pixel values.
Be example in two concrete Flame Image Process modes below, the method flow that the SPV format-pattern is handled is described.
Example one, employing SPV format-pattern of the present invention carry out histogram equalization to be handled.The concrete steps process flow diagram comprises as shown in Figure 4:
Step S401, read the pending original image of SPV form, add up the pixel number under each pixel value (is example with the R pixel value), obtain original histogram, i.e. the corresponding probability P of pixel value i with it iRelation, P wherein iEqual the ratio of the pixel total quantity of the pixel quantity of i and image for pixel value;
Step S402, the initial value that the corresponding variable i of R pixel value is set are 0;
The penalty coefficient of step S403, calculating pixel value i correspondence, that is:
a i=P 0+P 1+...+P i
Step S404, obtain the pixel value j after the pixel value i compensation;
J=i*a i(rounding)
In the j+1 bar of step S405, the SPV format-pattern after the conversion record, pixel information (as the position number of pixel) corresponding with pixel value i in the original SPV image is inserted in the front of the identifier " 0 " that finishes at the remarked pixel dot information;
Step S406, judge whether i equals 255, judge promptly whether whole pixel values dispose, if then finish the histogram equalization treatment scheme of image; Otherwise, continue step S407;
Step S407, make variable i add 1, go to step S403, repeat above-mentioned flow process, continue to handle next R pixel value, dispose up to whole R pixel values.
After whole R pixel values dispose, just the R component of original SPV format-pattern has been realized the equalization processing.The same for the G component with B component treatment scheme, do not repeat.
Example two, employing SPV format-pattern of the present invention carry out the γ treatment for correcting.The concrete steps process flow diagram comprises as shown in Figure 5:
Step S501, read the pending original image of SPV form, image is carried out statistical study, obtain each pixel value and corresponding pixel information thereof;
Step S502, the initial value that the corresponding variable i of R pixel value is set are 0;
Step S503, the pixel value j after obtaining pixel value i and proofread and correct according to the γ correcting algorithm;
j=i^(1/2.2)
In the j+1 bar of step S504, the SPV format-pattern after the conversion record, pixel information (as the position number of pixel) corresponding with pixel value i in the original SPV image is inserted in the front of the identifier " 0 " that finishes at the remarked pixel dot information;
Step S505, judge whether i equals 255, judge promptly whether whole pixel values dispose, if then finish the γ treatment for correcting flow process of image; Otherwise, continue step S506;
Step S506, make variable i add 1, go to step S503, repeat above-mentioned flow process, continue to handle next R pixel value, dispose up to whole R pixel values.
After whole R pixel values dispose, just the R component of original SPV format-pattern has been realized the γ treatment for correcting.The same for the G component with B component treatment scheme, do not repeat.
SPV format-pattern provided by the invention is applied to the Flame Image Process based on the pixel value statistics, for Flame Image Process based on the pixel position, can be rgb format image of the prior art with SPV format conversion of the present invention, before carrying out image format conversion, open up one section memory headroom in advance, in order to the rgb format image (the R component of each pixel that prestores, G component and B component are 0) after the buffer memory conversion, concrete flow path switch comprises as shown in Figure 6:
Step S601, the initial value that the corresponding variable i of R pixel value is set are 0;
Step S602, read original SPV format-pattern, obtain the pixel information of i pixel value correspondence;
Step S603, to give the R component assignment of corresponding pixel points be pixel value i, exports to the rgb format image after the conversion;
Step S604, judge whether i equals 255, judge promptly whether whole pixel values dispose, if then finish flow path switch; Otherwise, continue step S605;
Step S605, make variable i add 1, go to step S602, repeat above-mentioned flow process, continue to handle next R pixel value, dispose up to whole R pixel values.
After whole R pixel values disposed, just the R component with original SPV format-pattern was converted to the rgb format image.The same for the G component with B component flow path switch, do not repeat.After three component conversions finish, promptly realize the SPV format conversion of a two field picture is corresponding rgb format.
According to said method provided by the invention, the invention provides a kind of image processing system 11 based on the pixel value statistics, as shown in Figure 7, comprising:
The first image format conversion module 101, respectively according to the pixel value size of pixel R, G, B component, to two field picture statistics and store the pixel information of each R, G, B pixel value correspondence, be the SPV format-pattern of adding up based on pixel value with the rgb format image transitions;
Image processing module 102 is handled by pre-defined algorithm based on each R, G, B pixel value respectively, corresponding R, the G after obtaining handling, B pixel value; And obtaining R, the G before handling, the pixel information of B pixel value correspondence according to the SPV format-pattern after the conversion, the pixel value that changes described corresponding pixel points generates the SPV format-pattern after handling for corresponding R, G, B pixel value after handling;
The second image format conversion module 103 is converted to the rgb format image with the SPV format-pattern.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (15)

1, a kind of image format conversion method is characterized in that, comprising:
Respectively according to the pixel value size of pixel R, G, B component, to two field picture statistics and store the pixel information of each R, G, B pixel value correspondence, be the format-pattern of adding up based on pixel value with the rgb format image transitions.
2, the method for claim 1 is characterized in that, specifically comprises:
According to pixel R component pixel value from small to large or order from big to small, a two field picture is added up the pixel of each R pixel value correspondence, and store first corresponding relation of each R pixel value and respective pixel point identification;
According to pixel G component pixel value from small to large or order from big to small, a two field picture is added up the pixel of each G pixel value correspondence, and store second corresponding relation of each G pixel value and respective pixel point identification;
According to pixel B component pixel value from small to large or order from big to small, one two field picture is added up the pixel of each B pixel value correspondence, and store the 3rd corresponding relation of each B pixel value and respective pixel point identification, realize that with the rgb format image transitions be the format-pattern of adding up based on pixel value.
3, method as claimed in claim 2 is characterized in that, the pixel value size of described R, G, B component is respectively from 0 integer to same desired value; Described pixel is designated the station location marker of corresponding pixel points in a two field picture;
Each R pixel value of storage and corresponding pixel station location marker thereof in described first corresponding relation, and in the end add the identifier that an expression corresponding pixel points finishes behind a corresponding pixel points station location marker;
Each G pixel value of storage and corresponding pixel station location marker thereof in described second corresponding relation, and in the end add the identifier that an expression corresponding pixel points finishes behind a corresponding pixel points station location marker;
Each B pixel value of storage and corresponding pixel station location marker thereof in described the 3rd corresponding relation, and in the end add the identifier that an expression corresponding pixel points finishes behind a corresponding pixel points station location marker.
4, method as claimed in claim 3 is characterized in that, described pixel station location marker according in the two field picture all pixels from top to bottom, from left to right order, identify with digital number successively.
5, method as claimed in claim 4, it is characterized in that, if the continuous a plurality of pixels in position have identical R component pixel value, then in described first corresponding relation, when storing the pixel sign corresponding with this R component pixel value, only store the minimum position sequence number of these continuous a plurality of pixels and the quantity information of continuous image vegetarian refreshments, and before described quantity information, add the identifier of an expression quantity;
If the continuous a plurality of pixels in position have identical G component pixel value, then in described second corresponding relation, when storing the pixel sign corresponding with this G component pixel value, only store the minimum position sequence number of these continuous a plurality of pixels and the quantity information of continuous image vegetarian refreshments, and before described quantity information, add the identifier of an expression quantity;
If the continuous a plurality of pixels in position have identical B component pixel value, then in described the 3rd corresponding relation, when storing the pixel sign corresponding with this B component pixel value, only store the minimum position sequence number of these continuous a plurality of pixels and the quantity information of continuous image vegetarian refreshments, and before described quantity information, add the identifier of an expression quantity.
6, a kind of image processing method is characterized in that, comprising:
A, respectively according to the pixel value size of pixel R, G, B component, to two field picture statistics and store the pixel information of each R, G, B pixel value correspondence, be the format-pattern of adding up based on pixel value with the rgb format image transitions;
B, set in advance the storage space after the Flame Image Process, and each R, the G of prediction picture after handling, the pixel information of B pixel value correspondence be sky; Respectively each R, G, B pixel value before handling are handled corresponding R, the G after obtaining handling, B pixel value by concrete image processing algorithm; And the pixel information of each R, G, B pixel value correspondence before will handling, as corresponding R, G after handling, the pixel information of B pixel value correspondence, generate the format-pattern after handling based on the pixel value statistics.
7, method as claimed in claim 6 is characterized in that, described step a comprises:
According to pixel R component pixel value from small to large or order from big to small, a two field picture is added up the pixel of each R pixel value correspondence, and store first corresponding relation of each R pixel value and respective pixel point identification;
According to pixel G component pixel value from small to large or order from big to small, a two field picture is added up the pixel of each G pixel value correspondence, and store second corresponding relation of each G pixel value and respective pixel point identification;
According to pixel B component pixel value from small to large or order from big to small, a two field picture is added up the pixel of each B pixel value correspondence, and store the 3rd corresponding relation of each B pixel value and respective pixel point identification.
8, method as claimed in claim 7 is characterized in that, the pixel value size of described R, G, B component is respectively from 0 integer to same desired value; Described pixel is designated the station location marker of corresponding pixel points in a two field picture;
Each R pixel value of storage and corresponding pixel station location marker thereof in described first corresponding relation, and in the end add the identifier that an expression corresponding pixel points finishes behind a corresponding pixel points station location marker;
Each G pixel value of storage and corresponding pixel station location marker thereof in described second corresponding relation, and in the end add the identifier that an expression corresponding pixel points finishes behind a corresponding pixel points station location marker;
Each B pixel value of storage and corresponding pixel station location marker thereof in described the 3rd corresponding relation, and in the end add the identifier that an expression corresponding pixel points finishes behind a corresponding pixel points station location marker.
9, method as claimed in claim 8 is characterized in that, described pixel station location marker according in the two field picture all pixels from top to bottom, from left to right order, identify with digital number successively.
10, method as claimed in claim 9, it is characterized in that, if the continuous a plurality of pixels in position have identical R component pixel value, then in described first corresponding relation, when storing the pixel sign corresponding with this R component pixel value, only store the minimum position sequence number of these continuous a plurality of pixels and the quantity information of continuous image vegetarian refreshments, and before described quantity information, add the identifier of an expression quantity;
If the continuous a plurality of pixels in position have identical G component pixel value, then in described second corresponding relation, when storing the pixel sign corresponding with this G component pixel value, only store the minimum position sequence number of these continuous a plurality of pixels and the quantity information of continuous image vegetarian refreshments, and before described quantity information, add the identifier of an expression quantity;
If the continuous a plurality of pixels in position have identical B component pixel value, then in described the 3rd corresponding relation, when storing the pixel sign corresponding with this B component pixel value, only store the minimum position sequence number of these continuous a plurality of pixels and the quantity information of continuous image vegetarian refreshments, and before described quantity information, add the identifier of an expression quantity.
11, method as claimed in claim 6 is characterized in that, handles by pre-defined algorithm based on each R, G, B pixel value described in the step b, and corresponding R, the G after obtaining handling, B pixel value include but not limited to:
Respectively each R pixel value is handled by histogram equalization algorithm, obtained the corresponding R pixel value after the equilibrium;
Respectively each G pixel value is handled by histogram equalization algorithm, obtained the corresponding G pixel value after the equilibrium;
Respectively each B pixel value is handled by histogram equalization algorithm, obtained the corresponding B pixel value after the equilibrium; Perhaps
Respectively each R pixel value is handled the corresponding R pixel value after obtaining proofreading and correct by the γ correcting algorithm;
Respectively each G pixel value is handled the corresponding G pixel value after obtaining proofreading and correct by the γ correcting algorithm;
Respectively each B pixel value is handled the corresponding B pixel value after obtaining proofreading and correct by the γ correcting algorithm.
12, method as claimed in claim 7 is characterized in that, described step b specifically comprises:
First buffer area of image after the set handling is for the R pixel value after each processing is set up a corresponding record; Pixel information by R pixel value correspondence before described first corresponding relation acquisition processing is filled into described respective pixel dot information in the corresponding record of handling back R pixel value;
Second buffer area of image after the set handling is for the G pixel value after each processing is set up a corresponding record; Pixel information by G pixel value correspondence before described second corresponding relation acquisition processing is filled into described respective pixel dot information in the corresponding record of handling back G pixel value;
The 3rd buffer area of image after the set handling is for the B pixel value after each processing is set up a corresponding record; Pixel information by B pixel value correspondence before described the 3rd corresponding relation acquisition processing is filled into described respective pixel dot information in the corresponding record of handling back B pixel value.
13, method as claimed in claim 6 is characterized in that, also comprises the format-pattern based on the pixel value statistics after handling is converted to the rgb format image, specifically comprises:
Obtain the pixel information of handling each R pixel value correspondence of back, giving the R component assignment of corresponding pixel points is the R pixel value corresponding with it;
Obtain the pixel information of handling each G pixel value correspondence of back, giving the G component assignment of corresponding pixel points is the G pixel value corresponding with it;
Obtain the pixel information of handling each B pixel value correspondence of back, giving the B component assignment of corresponding pixel points is the B pixel value corresponding with it.
14, a kind of image processing system based on the pixel value statistics is characterized in that, comprising:
The first image format conversion module, respectively according to the pixel value size of pixel R, G, B component, to two field picture statistics and store the pixel information of each R, G, B pixel value correspondence, be the format-pattern of adding up based on pixel value with the rgb format image transitions;
Image processing module sets in advance the storage space after the Flame Image Process, and each R, the G of prediction picture after handling, the pixel information of B pixel value correspondence be sky; Respectively each R, G, B pixel value before handling are handled corresponding R, the G after obtaining handling, B pixel value by concrete image processing algorithm; And the pixel information of each R, G, B pixel value correspondence before will handling, as corresponding R, G after handling, the pixel information of B pixel value correspondence, generate the format-pattern after handling based on the pixel value statistics.
15, system as claimed in claim 14 is characterized in that, also comprises: the second image format conversion module will be converted to the rgb format image based on the format-pattern of pixel value statistics.
CNB2006101441187A 2006-11-27 2006-11-27 Image format conversion method, image processing method and system Expired - Fee Related CN100507944C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101441187A CN100507944C (en) 2006-11-27 2006-11-27 Image format conversion method, image processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101441187A CN100507944C (en) 2006-11-27 2006-11-27 Image format conversion method, image processing method and system

Publications (2)

Publication Number Publication Date
CN1959737A true CN1959737A (en) 2007-05-09
CN100507944C CN100507944C (en) 2009-07-01

Family

ID=38071417

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101441187A Expired - Fee Related CN100507944C (en) 2006-11-27 2006-11-27 Image format conversion method, image processing method and system

Country Status (1)

Country Link
CN (1) CN100507944C (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542528A (en) * 2011-12-26 2012-07-04 Tcl集团股份有限公司 Image conversion processing method and system
CN108537846A (en) * 2018-02-08 2018-09-14 北京航空航天大学青岛研究院 Camera calibration method and apparatus
CN112184739A (en) * 2020-11-25 2021-01-05 腾讯科技(深圳)有限公司 Image detection method and device and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69217319T2 (en) * 1991-10-07 1997-07-17 Xerox Corp Image editing system and method with improved color palette editing
JP2647033B2 (en) * 1994-11-24 1997-08-27 日本電気株式会社 Lookup table creation method and lookup table creation device
JP3659732B2 (en) * 1996-04-25 2005-06-15 理想科学工業株式会社 Image processing apparatus and method
CN1466737A (en) * 2000-08-09 2004-01-07 动态数字视距研究有限公司 Image conversion and encoding techniques
JP4345649B2 (en) * 2004-11-24 2009-10-14 ノーリツ鋼機株式会社 Photographic image processing method and apparatus
CN1329873C (en) * 2005-08-22 2007-08-01 上海广电(集团)有限公司中央研究院 Equalizing method for truncating histogram

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542528A (en) * 2011-12-26 2012-07-04 Tcl集团股份有限公司 Image conversion processing method and system
CN102542528B (en) * 2011-12-26 2013-10-09 Tcl集团股份有限公司 Image conversion processing method and system
CN108537846A (en) * 2018-02-08 2018-09-14 北京航空航天大学青岛研究院 Camera calibration method and apparatus
CN108537846B (en) * 2018-02-08 2022-05-27 北京航空航天大学青岛研究院 Camera calibration method and device
CN112184739A (en) * 2020-11-25 2021-01-05 腾讯科技(深圳)有限公司 Image detection method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN100507944C (en) 2009-07-01

Similar Documents

Publication Publication Date Title
CN1182486C (en) Picture data processing method, apparatus thereof and storage medium and programme
CN1229975C (en) Method of pantography according to scale for digital image in embedded system
CN1615029A (en) Method and apparatus for enhancing local luminance of image, and recording medium
CN1324811C (en) Interleaver and interleaving method in a communication system
CN1251485C (en) Camera device
CN1241164C (en) Display and drive circuit for display
CN1604163A (en) Display device
CN1862646A (en) Display device and apparatus and method for driving the same
CN1755602A (en) Pointing device offering good operability at low cost
CN1877598A (en) Method for gathering and recording business card information in mobile phone by using image recognition
CN1838729A (en) Gamma correction device, image conversion apparatus using the same, and display device
CN101039396A (en) Image output apparatus and method using numbers of chroma key color
CN1121018C (en) Data texturing method and apparatus
CN101047733A (en) Short message processing method and device
CN1776792A (en) Data driver chip and light emitting display
CN100342710C (en) Structure method for enhancing image
CN1684128A (en) Display device, display drive and data transmitting method
CN1959737A (en) Image format conversion method, image processing method and system
CN1383126A (en) Display device, display method and display device controller
CN1302048A (en) Colour space quantized discribing code structure
CN1762149A (en) Image processing device and image processing method for performing conversion of color image data
CN101042734A (en) Method for rapid making image connection element
CN1941869A (en) Display image correcting device, image display device, and display image correcting method
CN1625218A (en) Image processing method and apparatus
CN101060555A (en) Number matching method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090701

Termination date: 20121127