CN102098477A - Method and device for obtaining pixel values - Google Patents

Method and device for obtaining pixel values Download PDF

Info

Publication number
CN102098477A
CN102098477A CN2009102426667A CN200910242666A CN102098477A CN 102098477 A CN102098477 A CN 102098477A CN 2009102426667 A CN2009102426667 A CN 2009102426667A CN 200910242666 A CN200910242666 A CN 200910242666A CN 102098477 A CN102098477 A CN 102098477A
Authority
CN
China
Prior art keywords
picture frame
value
pixel
row
pixels point
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
CN2009102426667A
Other languages
Chinese (zh)
Other versions
CN102098477B (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.)
Wuxi Zhonggan Microelectronics Co Ltd
Original Assignee
Wuxi 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 Wuxi Vimicro Corp filed Critical Wuxi Vimicro Corp
Priority to CN200910242666.7A priority Critical patent/CN102098477B/en
Publication of CN102098477A publication Critical patent/CN102098477A/en
Application granted granted Critical
Publication of CN102098477B publication Critical patent/CN102098477B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a method for obtaining pixel values, which is used for realizing the decoding of an image and increasing a decoding speed. The method comprises the following steps of: storing a first image frame and a second image frame in a memory, wherein values of pixel points in a row in the second image frame correspond to those of the pixel points in a column in the first image frame one to one; when the values of the pixel points in the row are required to be obtained from the first image frame, reading the values of the pixel points in the row from the stored first image frame; and when the values of the pixel points in the column are required to be obtained from the first image frame, reading the values, corresponding to the values of the pixel points in the column, of the pixel points in the row in the second image frame from the stored second image frame. The invention also discloses a method for implementing the method.

Description

A kind of method and device that obtains pixel value
Technical field
The present invention relates to computer and image field, particularly relate to the method and the device that obtain pixel value.
Background technology
In order to reduce the shared memory space of image, and the efficiency of transmission etc. that improves code stream, the encoding and decoding technique of image has obtained using widely.
In the existing picture decoding technology, decoded frame as the reference frame, by methods such as motion compensation, is obtained the value of the pixel of present frame according to reference frame.Referring to shown in Figure 1, each square is represented a pixel, the value of the respective pixel point in the value representation reference frame of capitalization A...U, the value of lowercase aa, bb, cc, dd, ee, ff gg, hh, b, h, i, m, s need calculate according to the value of the pixel around it.For example, the motion vector points of certain pixel (2,2.5) is promptly pointed to pixel b in the present frame, b=round ((E-5F+20G+20H-5I+J)/32) then, and round represents bracket function.If the value of calculating pixel point h, then h=round ((A-5C+20G+20M-5R+T)/32).
In decode procedure, need to be in internal memory storage of reference frames, when the value of calculating pixel point, may need from internal memory, to read some data in high-speed cache.For example during the value of calculating pixel point b, the value of read pixel point E/F/G/H/I/J is to high-speed cache from internal memory.CPU just can calculate the value of pixel b according to the value of pixel E/F/G/H/I/J in the high-speed cache.During the value of calculating pixel point h, owing to be to read internal memory with the form of going, and the memory space of high-speed cache is much smaller than internal memory, so may there be this situation, once read the value of one-row pixels point in the internal memory, for the first time the value of the first row pixel is read high-speed cache, obtain the value of pixel A, for the second time the value of the second row pixel is read high-speed cache, obtain the value of pixel C, by that analogy, need to read the value of the needed pixel E/F/G/H/I/J of value that 6 internal memories could obtain calculating pixel point h, greatly affect decoding efficiency.In to two field picture decoding, the almost pixel of the action need access vertical direction of half is arranged, so the situation that high-speed cache does not hit is very serious.
Be not only the interframe decode procedure and have such problem, and all there is such problem in the processing procedure that macro block filtering etc. need to read the value of vertical direction pixel.
Summary of the invention
The embodiment of the invention provides a kind of method and device that obtains pixel value, is used for improving the speed that obtains pixel value.
A kind of method that obtains pixel value may further comprise the steps:
Storage first picture frame and second picture frame in internal memory, wherein the value of a row pixel is one by one corresponding in the value of the one-row pixels point in second picture frame and first picture frame;
In the time need to from first picture frame, obtaining the value of one-row pixels point, in first picture frame of storage, read the value of this one-row pixels point;
In the time need to from first picture frame, obtaining the value of a row pixel, in second picture frame of storage, read the value of this row pixel corresponding one-row pixels point in second picture frame.
A kind of device that is used to obtain pixel value comprises:
Memory modules is used for storage first picture frame and second picture frame, and wherein the value of a row pixel is one by one corresponding in the value of the one-row pixels point in second picture frame and first picture frame;
Read module is used for reading the value of this one-row pixels point in first picture frame of storage in the time need to obtaining the value of one-row pixels point from first picture frame; In the time need to from first picture frame, obtaining the value of a row pixel, in second picture frame of storage, read the value of this row pixel corresponding one-row pixels point in second picture frame.
The embodiment of the invention is preserved two two field pictures in internal memory, the value of a row pixel is one by one corresponding in the value of the one-row pixels point in second picture frame and first picture frame.When needs read the value of horizontal pixel point, from first picture frame, obtain, when needs read the value of vertical pixel, from second picture frame, obtain.So substantially, can be once from internal memory, obtain required data, reduced the number of times of access memory, also improved the hit rate of high-speed cache, namely improved and obtain the speed of pixel value, thereby improved the speed that image is processed.
Description of drawings
Fig. 1 is the schematic diagram of picture frame in the prior art;
Fig. 2 is the main method flow chart that obtains pixel value in the embodiment of the invention;
Fig. 3 is the schematic diagram of first picture frame in the embodiment of the invention;
Fig. 4 is the schematic diagram of second picture frame in the embodiment of the invention;
Fig. 5 is the detailed method flow chart of image processing in the embodiment of the invention;
The structure chart of Fig. 6 for installing in the embodiment of the invention.
Embodiment
The embodiment of the invention is stored two two field pictures in internal memory, first picture frame is exactly normal picture frame, and namely the pixel of first picture frame is consistent with the pixel of objective image.Second picture frame obtains after first picture frame is processed, and the value of a row pixel is one by one corresponding in the value of the one-row pixels point in second picture frame and first picture frame.Like this, the value of needed pixel all is stored in the internal memory with the form of row, makes things convenient for reading of data, thereby has improved the speed of image processing.
Referring to Fig. 2, the main method flow process that obtains pixel value in the present embodiment is as follows:
Step 201: storage first picture frame and second picture frame in internal memory, wherein the value of a row pixel is one by one corresponding in the value of the one-row pixels point in second picture frame and first picture frame.
Step 202: in the time need to from first picture frame, obtaining the value of one-row pixels point, in first picture frame of storage, read the value of this one-row pixels point.
Step 203: in the time need to from first picture frame, obtaining the value of a row pixel, in second picture frame of storage, read the value of this row pixel corresponding one-row pixels point in second picture frame.
Can also be further the value of the pixel that reads be processed.
First picture frame can be the reference frame that obtains by after the decoding, and second picture frame obtains after first picture frame is processed.In the motion compensation process process of decoding, determine the position of value correspondence in first picture frame of the pixel in the present frame according to the motion vector in the present frame.When this position is up and down between two pixels the time, determine that this position column is at row corresponding to second picture frame, and from second picture frame, read the value of this row pixel, calculate again the value of described position according to the value of this row pixel that reads, be the value of the pixel in the present frame, to realize the decoding to present frame.
Perhaps, first picture frame is not complete picture frame, and it comprises several row and several row pixel that has decoded, perhaps comprises one or more in the image.That is, first picture frame includes only the reference image vegetarian refreshments.Second picture frame obtains after first picture frame is handled.In the infra-frame prediction process of decoding, when need obtaining the value of certain pixel, may need to obtain in advance the value or the horizontal value of neighbor pixel of vertical neighbor pixel of this pixel.When needs obtain the value of horizontal neighbor pixel, from first picture frame, read the value of this horizontal neighbor pixel; When needs obtain the value of vertical neighbor pixel, determine the row of this vertical neighbor pixel correspondence in second picture frame, and from this row, read the value of this vertical neighbor pixel.Go out the value of current pixel point according to the value prediction of the neighbor pixel that reads out, realize the decoding to this current pixel point.Then current pixel point is stored in first picture frame and second picture frame as the reference pixel, in order to the later pixel point is decoded.
Perhaps, the two field picture of first picture frame for obtaining after decoding, second picture frame obtain after first picture frame is processed.Because infra-frame prediction is based on the prediction of piece, so cause easily blocking effect, obvious edge is arranged between piece and the piece namely, in order to eliminate blocking effect, need to carry out macro block filtering, the pixel of pixel of namely dwindling the both sides, edge is poor.Carry out macro block filtering and also need to obtain the value of neighbor pixel.If the edge be by about the longitudinal edges that produce of two pieces, then need to obtain the value of the pixel on these longitudinal edge both sides, promptly obtain the value of horizontal neighbor pixel, need to determine the row of this horizontal neighbor pixel correspondence in first picture frame this moment, and read the value of this horizontal neighbor pixel from this row of first picture frame.If the edge is by two transverse edges that piece produces up and down, then need to obtain the value of the pixel on these transverse edge both sides, promptly obtain the value of vertical neighbor pixel, need to determine the row of this vertical neighbor pixel correspondence in second picture frame this moment, and read the value of this vertical neighbor pixel from this row of second picture frame.
By above introduction as can be known, in image processing process, need to obtain the scheme of the value of vertical pixel, all can adopt present embodiment.
In the present embodiment, the value of a row pixel is one by one corresponding in the value of the one-row pixels point in second picture frame and first picture frame.Row can be different with order between being listed as in the order between the second image frame middle row and the row and first picture frame.The order of pixel also can be different in the row pixel of the order of pixel and first picture frame in the one-row pixels point of second picture frame.As long as the corresponding relation of every row pixel in the every capable pixel and first picture frame in acquisition second picture frame.Preferable, the n row in capable corresponding first picture frame of the n in second picture frame, and from top to bottom pixel in from left to right the row pixel of corresponding one by one first picture frame of pixel in the one-row pixels point of second picture frame.Referring to Fig. 3 and shown in Figure 4, table shown in Figure 3 is equivalent to first picture frame, and each cell is represented a pixel, and each pixel identifies with its coordinate.Table shown in Figure 4 is equivalent to second picture frame.Among sign by pixel among Fig. 4 and Fig. 3 the corresponding relation of the sign of pixel as can be seen, first row of first picture frame have converted the row of first in second picture frame to, the secondary series of first picture frame has converted the row of second in second picture frame to ...
Second picture frame obtains after first picture frame is processed in the present embodiment, and processing mode has multiple, such as first kind of way: by first picture frame being overturn and rotation obtains second picture frame.For example, to first picture frame upwards after the upset again dextrorotation turn 90 degrees; Perhaps to the first picture frame rear another mistake hour hands 90-degree rotation etc. that overturns to the right.Such as the second way: pixel in first picture frame as the entry of a matrix element, as the plain value of entry of a matrix, is carried out transposition to this matrix with the value of pixel in first picture frame, obtain second picture frame.N row element in the corresponding matrix of the capable pixel of n is preferable in first picture frame, in the matrix in the ranks position of element relation and first picture frame ranks position relation of pixel in full accord.
Referring to Fig. 5, the detailed method flow process of image processing is as follows in the present embodiment:
Step 501: storage first picture frame in internal memory.
Step 502: first picture frame handled obtaining second picture frame.
Step 503: storage second picture frame in internal memory.
Step 504: pixel that need to determine acquisition.
Step 505: the position of pixel in first picture frame of judge determining is longitudinally or horizontal, if horizontal, then continues step 506, if the time longitudinally, then continue step 507.
Step 506: the value that from first picture frame, obtains definite pixel.
Step 507: the value that from second picture frame, obtains definite pixel.
Step 508: the value to the pixel that reads is handled.According to decode operation the value of the pixel that reads is processed; Perhaps, according to filtering operation the value of the pixel that reads is processed etc.
More than be the introduction to image processing process, this process can be realized that by image processing apparatus internal structure and the function to image processing apparatus is introduced below.
Referring to Fig. 6, the device that is used to obtain pixel value in the present embodiment comprises: memory modules 601, read module 602 and processing module 603.
Memory modules 601 is used for storage first picture frame and second picture frame, and wherein the value of a row pixel is one by one corresponding in the value of the one-row pixels point in second picture frame and first picture frame.
Read module 602 is used for reading the value of this one-row pixels point in first picture frame of storage in the time need to obtaining the value of one-row pixels point from first picture frame; In the time need to from first picture frame, obtaining the value of a row pixel, in second picture frame of storage, read the value of this row pixel corresponding one-row pixels point in second picture frame.
Device also comprises: processing module 603 is used for the value of the pixel that reads is processed.Processing module 603 is concrete to be used for according to decode operation the value of the pixel that reads being processed; Perhaps, according to filtering operation the value of the pixel that reads is processed.
Device also comprises: generation module 604 is used for by first picture frame being overturn and rotation obtains second picture frame; Perhaps, the value of pixel in first picture frame as the plain value of entry of a matrix, and is carried out transposition to this matrix, obtain second picture frame.
Be used to realize that the software of the embodiment of the invention can be stored in storage mediums such as floppy disk, hard disk, CD and flash memory.
The embodiment of the invention is preserved two two field pictures in internal memory, the value of a row pixel is one by one corresponding in the value of the one-row pixels point in second picture frame and first picture frame.When needs read the value of horizontal pixel point, from first picture frame, obtain, when needs read the value of vertical pixel, from second picture frame, obtain.So substantially, can be once from internal memory, obtain required data, reduced the number of times of access memory, also improved the hit rate of high-speed cache, thereby improved the speed that image is processed.The technical scheme that the embodiment of the invention provides is applicable to several scenes such as picture decoding, filtering.
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 (10)

1. a method that obtains pixel value is characterized in that, may further comprise the steps:
Storage first picture frame and second picture frame in internal memory, wherein the value of a row pixel is one by one corresponding in the value of the one-row pixels point in second picture frame and first picture frame;
In the time need to from first picture frame, obtaining the value of one-row pixels point, in first picture frame of storage, read the value of this one-row pixels point;
In the time need to from first picture frame, obtaining the value of a row pixel, in second picture frame of storage, read the value of this row pixel corresponding one-row pixels point in second picture frame.
2. the method for claim 1 is characterized in that, in internal memory before storage second picture frame, by first picture frame being overturn and rotation obtains second picture frame.
3. the method for claim 1 is characterized in that, in internal memory before storage second picture frame, the value of pixel in first picture frame as the plain value of entry of a matrix, and is carried out transposition to this matrix, obtains second picture frame.
4. the method for claim 1, it is characterized in that, corresponding one by one the comprising of value of a row pixel in the value of the one-row pixels point in second picture frame and first picture frame: the n row in capable corresponding first picture frame of the n in second picture frame, and from top to bottom pixel in from left to right the row pixel of corresponding one by one first picture frame of pixel in the one-row pixels point of second picture frame.
5. the method for claim 1 is characterized in that, the step that the value of the pixel that reads is processed comprises: according to decode operation the value of the pixel that reads is processed; Perhaps, according to filtering operation the value of the pixel that reads is processed.
6. a device that is used to obtain pixel value is characterized in that, comprising:
Memory modules is used for storage first picture frame and second picture frame, and wherein the value of a row pixel is one by one corresponding in the value of the one-row pixels point in second picture frame and first picture frame;
Read module is used for reading the value of this one-row pixels point in first picture frame of storage in the time need to obtaining the value of one-row pixels point from first picture frame; In the time need to from first picture frame, obtaining the value of a row pixel, in second picture frame of storage, read the value of this row pixel corresponding one-row pixels point in second picture frame.
7. device as claimed in claim 6 is characterized in that, also comprises:
Generation module is used for by first picture frame being overturn and rotation obtains second picture frame; Perhaps, the value of pixel in first picture frame as the plain value of entry of a matrix, and is carried out transposition to this matrix, obtain second picture frame.
8. device as claimed in claim 6, it is characterized in that, corresponding one by one the comprising of value of a row pixel in the value of the one-row pixels point in second picture frame and first picture frame: the n row in capable corresponding first picture frame of the n in second picture frame, and from top to bottom pixel in from left to right the row pixel of corresponding one by one first picture frame of pixel in the one-row pixels point of second picture frame.
9. device as claimed in claim 6 is characterized in that, also comprises: processing module is used for the value of the pixel that reads is handled.
10. device as claimed in claim 9 is characterized in that, processing module is processed the value of the pixel that reads according to decode operation; Perhaps, according to filtering operation the value of the pixel that reads is processed.
CN200910242666.7A 2009-12-14 2009-12-14 Method and device for obtaining pixel values Expired - Fee Related CN102098477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910242666.7A CN102098477B (en) 2009-12-14 2009-12-14 Method and device for obtaining pixel values

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910242666.7A CN102098477B (en) 2009-12-14 2009-12-14 Method and device for obtaining pixel values

Publications (2)

Publication Number Publication Date
CN102098477A true CN102098477A (en) 2011-06-15
CN102098477B CN102098477B (en) 2015-05-20

Family

ID=44131317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910242666.7A Expired - Fee Related CN102098477B (en) 2009-12-14 2009-12-14 Method and device for obtaining pixel values

Country Status (1)

Country Link
CN (1) CN102098477B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103862882A (en) * 2014-02-24 2014-06-18 广东宝莱特医用科技股份有限公司 Self-adaptive paper sheet printing method and system of thermal printer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1315023A (en) * 1998-08-13 2001-09-26 赤道技术公司 Circuit and method for performing bidimentional transform during processing of an image
CN1404015A (en) * 2002-10-16 2003-03-19 威盛电子股份有限公司 Partial image rotating device and method
CN1685363A (en) * 2002-09-18 2005-10-19 皇家飞利浦电子股份有限公司 Block-based rotation of arbitrary-shaped images
CN101515999A (en) * 2008-02-09 2009-08-26 富士通微电子株式会社 Image processing circuit, image processing method, and camera

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1315023A (en) * 1998-08-13 2001-09-26 赤道技术公司 Circuit and method for performing bidimentional transform during processing of an image
CN1685363A (en) * 2002-09-18 2005-10-19 皇家飞利浦电子股份有限公司 Block-based rotation of arbitrary-shaped images
CN1404015A (en) * 2002-10-16 2003-03-19 威盛电子股份有限公司 Partial image rotating device and method
CN101515999A (en) * 2008-02-09 2009-08-26 富士通微电子株式会社 Image processing circuit, image processing method, and camera

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103862882A (en) * 2014-02-24 2014-06-18 广东宝莱特医用科技股份有限公司 Self-adaptive paper sheet printing method and system of thermal printer

Also Published As

Publication number Publication date
CN102098477B (en) 2015-05-20

Similar Documents

Publication Publication Date Title
US9262839B2 (en) Image processing device and image processing method
CN105993177A (en) Image capture accelerator
US7979622B2 (en) Memory access method
CN102291531A (en) Image processing apparatus, image processing method, and program
CN102044058A (en) Method and system for processing pictures in electronic equipment, and electronic equipment
CN110166798B (en) Down-conversion method and device based on 4K HDR editing
JP4865662B2 (en) Entropy encoding apparatus, entropy encoding method, and computer program
WO2016186782A1 (en) Video encoding and decoding
US8837595B2 (en) Motion estimation method
EP3176729A1 (en) Analytics assisted encoding
CN110572713B (en) Transcoding method and processing terminal for adaptive video bandwidth ratio
US20150189333A1 (en) Method and system for image processing, decoding method, encoder, and decoder
CN102098477B (en) Method and device for obtaining pixel values
CN102760280A (en) High-capacity reversible watermark embedding and extracting method as well as implement system thereof
CN102572207A (en) Color space transformation method suitable for joint photographic experts group (JPEG) image
CN105160622B (en) The implementation method of image super-resolution based on FPGA
US8548275B2 (en) Image processing device and image processing method
US20110102681A1 (en) Image converting method and apparatus therefor based on motion vector-sharing
CN100592799C (en) Rapid reading method of motion compensating data based on H.264 standard
CN108875547B (en) Target tracking method and device for resource-constrained environment
CN112967188B (en) Spatial self-adaptive image super-resolution reconstruction method combining structured semantic code stream
CN110800301A (en) Control method and device of coding equipment and storage medium
US20080049035A1 (en) Apparatus and method for accessing image data
KR102247741B1 (en) An image processor, a method of operating the image processor, and an application processor including the image processor
US9307259B2 (en) Image decoding methods and image decoding devices

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
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 214028 national integrated circuit design Park, Changjiang Road, New District, Jiangsu,, Wuxi

Patentee after: WUXI ZHONGGAN MICROELECTRONIC CO., LTD.

Address before: 214028 national integrated circuit design Park, Changjiang Road, New District, Jiangsu,, Wuxi

Patentee before: Wuxi Vimicro Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150520

Termination date: 20181214