CN1464746A - Digital image processing method and device - Google Patents
Digital image processing method and device Download PDFInfo
- Publication number
- CN1464746A CN1464746A CN 02121818 CN02121818A CN1464746A CN 1464746 A CN1464746 A CN 1464746A CN 02121818 CN02121818 CN 02121818 CN 02121818 A CN02121818 A CN 02121818A CN 1464746 A CN1464746 A CN 1464746A
- Authority
- CN
- China
- Prior art keywords
- image
- data
- aforementioned
- prospect
- background information
- 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
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
The invention provides a digital image processing method and apparatus wherein the digital image processing method composes coding process and decoding process. The coding process includes, obtaining the image background data, obtaining the original image data, separating the foreground data, producing image marking header and image coding. The decoding process includes, obtaining the coded image data, analyzing the image marking header, reading data package and image decoding. The method in the invention separates the foreground data with the background data of the digital image and records the foreground data and restored image, thus it can reduce the image data volume and increase the effect of the digital image processing.
Description
Technical field
The present invention relates to the digitized video treatment technology, particularly separate with background information, the digital video processing method and the processing unit of the new record prospect data of laying equal stress on and reduction image about a kind of prospect data with digitized video.
Background technology
Because the data quantity of digitized video is very huge, under the situation that does not have compression, the purpose that needs very high frequency range and system effectiveness just can reach Data Processing.Compress technique such as GIF, JPG, PIC etc. commonly used at present, some is the distortion compression, some is undistorted compression.The compression factor of distortion compression is higher usually, and the compression factor of undistorted compression is then lower.But for these compress techniques, all be that whole pictures is compressed, and in advance image do not carried out pre-process, compression factor is affected.Because general image, its required prospect data may only concentrate on regional area, for example only accounts for 20%, and all the other zones only are background information.If this prospect data can be separated in advance with background information, then can effectively save the size of image.
In addition, for image sensor (Image sensor), because the sensitivity (sensitivity) and analog-digital converter (the Analog-to-Digital Converter of image sensor, ADC) cause, zone for the homogeneous background color when scan-image may have different output valves, influences scanning quality.
Summary of the invention
Because the problems referred to above the objective of the invention is to propose a kind of image treatment method and device, use the prospect data is separated with background information, write down prospect data and background information again, the image data amount is reduced.
Another object of the present invention is to propose a kind of image treatment method and device, uses the prospect data is separated with background information, writes down prospect data and background information again, makes the minimizing of image data amount and makes the background area color identical.
Another object of the present invention is the method and apparatus that proposes a kind of background information conversion, uses the prospect data with after background information is separated, and will store the directly background information displacement to be predetermined of background information field.
For achieving the above object, the invention provides a kind of coding method of digital video processing method.This coding method comprises: obtain background information; Obtain the raw video data; Separation prospect data will not belong to the pixel separation of this background information according to background information in the raw video data; Produce the image header, this image header comprises the width of background information, image, the height and the image classification of image; And image coding, in the mode of Datagram isolated prospect data is encoded.
For achieving the above object, the invention provides a kind of coding/decoding method of digital video processing method.This coding/decoding method comprises: obtain the coding image data; Analyze the image header, isolate the image header from the coding image data, this image header comprises the width of background information, image, the height and the image classification of image; Read Datagram, read Datagram from the coding image data, this Datagram comprises prospect data, this prospect data with respect to the ranks value of image and the size of this prospect data; And image-decoding, according to the image classification, the prospect data of each Datagram is write the ranks position of the image that this Datagram writes down.
For achieving the above object, the invention provides a kind of coding unit of digital image processing device, comprise: the parameter setting unit, set background information; The image data separative element separates the prospect data that does not belong to background information in the original figure image data, produces the prospect data; Prospect data storage unit stores the prospect data; The data formats generation unit produces the image header, and this image header comprises the width of background information, image, the height and the image classification of image; And the image data coding unit, after in the mode of Datagram the prospect data of prospect data storage unit being encoded, combine with the image header, produce the coding image data.
For achieving the above object, the invention provides a kind of decoding unit of digital image processing device, comprise: an image data separative element, image header in this coding image is separated with a Datagram, this image header comprises the size and an image classification of a background information, image, and this Datagram comprises an opposite position of at least one prospect data, this prospect data; One Datagram storage element is used for storing the Datagram that aforementioned image data separative element is separated; And an image data recomposition unit, according to aforementioned image header, in this opposite position, the zone that does not dispose the prospect data writes this background information with this prospect data logging in the Datagram.
Digital video processing method of the present invention and processing unit, the prospect data is separated with background information, write down prospect data and background information again, and background information can be replaced by a background information that has been predetermined, can reduce the image data amount effectively, improve the usefulness that digitized video is handled.
Description of drawings
Fig. 1 is the coding unit Organization Chart of image processor of the present invention;
Fig. 2 is the separation schematic diagram of image data separative element to n row image data;
Fig. 3 is the coding flow chart of image processing of the present invention;
Fig. 4 is the decoding unit Organization Chart of image processor of the present invention;
Fig. 5 is the reorganization schematic diagram of image data recomposition unit to n row image data;
Fig. 6 is the decoding process figure of image processing of the present invention.
Embodiment
Below with reference to accompanying drawing, image treatment method of the present invention and processing unit are described in further detail.Image treatment method of the present invention is a mode of utilizing the prospect data to separate with background information with processing unit, and the prospect data of an image is taken out recompile, and the information of record background information.For general image, the data quantity of prospect data is much smaller than the data quantity of whole image, so the data quantity of the image of recompile can greatly reduce.
Figure 1 shows that the coding unit Organization Chart of image processor of the present invention.As shown in the drawing, the coding unit 10 of this image processor comprises a parameter setting unit 11, an image data separative element 12, a prospect data storage unit 13, a data formats generation unit 14, image process unit 16 and an image data coding unit 15.
Parameter setting unit 11 is to allow the user set the data of desire coding image, for example background information.12 of image data separative elements are not belong to the pixel separation of background information, are stored to prospect data storage unit 13.This image data separative element 12 is to classify processing unit as, first prospect data to the pixel information between last prospect data in the image of one row is recorded in prospect data storage unit 13, and writes down first prospect data and last prospect data simultaneously in the position of these row.Image data separative element 12 also can export the size and the form of whole image to data formats generation unit 14.Below can describe the action of image data separative element 12 again in detail.Data formats generation unit 14 is the image headers that are used for producing this image data, in order to the background information that writes down this image, the height of image and the width of image etc.15 prospect data with prospect data storage unit 13 of image data coding unit are encoded into Datagram with block (block), and in conjunction with producing the coding image behind the image header.
In addition, image data coding unit 15 also can comprise a compression unit (figure does not show), uses each Datagram of compression, further contracts and falls coding image size.Compression function can be selected suitable compressed format, for example compression forms such as GIF, JPG, PIC.And the compressed format identification code is additional to the image header, the identification so that decoding to be provided.
Fig. 2 represents the separation schematic diagram of 12 pairs of n row image datas of image data separative element.This n row image data has z pixel, supposes that each pixel is 8 data, and therefore every row image needs the memory of z byte (byte) to store.If the critical value setting of background information is 05H and is the prospect data greater than the pixel definition of this background information critical value that then first prospect data is the x+4 pixel, last prospect data is the y+1 pixel.So, after the separation through image data separative element 12, with last prospect data storage of first prospect data to the y+1 pixel of x+4 pixel to prospect data storage unit 13.Simultaneously, also with position information storage such as x+4 and y+1 in prospect data storage unit 13, or with the length information storage such as (y+1)-(x+4)+1 of x+4 position and prospect data in prospect data storage unit 13.Therefore, after 12 processing of image data separative element, the data quantity that is stored to prospect data storage unit 13 can obviously reduce.And the Datagram form of every row comprises foreground pixel data and positional information.Because the foreground pixel Datagram has been given up the pixel information that belongs to background information in this row front and back pixel, so prospect data storage unit 13 stored data quantities obviously reduce.Simultaneously, if the pixel information of permutation all belongs to background information, then can skip this row image.
The setting of background information can be set according to different image classifications.For example monochromatic with colored background information is different.Monochromatic image only need be specified a background information, and chromatic image then must be specified background informations such as R, G, B.The mode of setting can be to pass through interface setting by the user, or by setting up on their own behind the software analysis image.
Though aforesaid way is that first prospect data of record is to last prospect data, but also can set a background information amount critical value M, and to detect first prospect data simultaneously not the pixel of prospect data to whether continuous N is arranged between last prospect data.If first prospect data more than the continuous N is not the pixel of prospect data to existing between last prospect data, then this row pixel can be stored into the multistage Datagram.So, can further reduce the data quantity of this image.
In the said method,, also can merge the ordered series of numbers data, store in the block mode though each Datagram is the prospect data that stores every row.At this moment, each Datagram need comprise the ranks starting point of this block and the width and height of this block.Image data coding unit 15 is output into the coding image with the image header after the data coding of prospect data storage unit 13 is become Datagram.Because the data of prospect data storage unit 13 only is the prospect data, therefore must will include the image header combination of the background information that sets, just can be by decoding device with image reduction.So the image header will comprise the background information that sets at least.Certainly, Datagram also can further reduce the size of Datagram by compression process.
Between prospect data storage unit 13 and image data coding unit 15, an image process unit 16 can also be arranged, this image process unit 16 also can not certainly.Image process unit 16 receives the prospect data of prospect data storage unit 13 outputs, and this prospect data is further carried out image processing, for example: image smoothing (Image Smooth), edge reinforcement (Edge Enhance) etc.
In addition, but the present invention's direct replacement background information, need not to rely on for support image processing software, its method by data formats generation unit 14 the image header of this image data of generation, get final product in order to the background information that writes down this image with the background information direct replacement that has been predetermined.
Figure 3 shows that the coding flow chart of image processing of the present invention.As shown in the drawing, the coding flow process of image processing of the present invention comprises:
Step S302: obtain the background information of image, this background information can be a critical value or an interval value.Certainly, if image is a chromatic image, then must provide three groups of background informations such as R, G, B.
Step S304: obtain the raw video data.This raw video data should be unpressed data.If the image data that has compressed then can't directly separate the prospect data with background information.
Step S306: separate the prospect data.The prospect data of the raw video data that obtains is separated with background information.Its separate mode is the pixel information of the pixel information of first non-background information of record to last non-background information, and write down the columns of these row, the locations of pixels of first non-background information and the locations of pixels of last non-background information simultaneously, and then produce a prospect data.
Step S308: produce the image header.This image header writes down the classification of this image, the height of image, the width of image and the background information that sets.Certainly, this image header also writes down identification code, to confirm the coded system of this image.
Step S310: image digital is handled.Receive above-mentioned prospect data, carry out digitized video and handle, and export a prospect digital processing data.
Step S312: image coding.Mode with Datagram writes down the prospect data of being separated.This Datagram has comprised this prospect data with respect to the ranks position of image, the size and the prospect data of this prospect data.This Datagram can single-row mode writes down the prospect data of every row image, can also the block mode writes down the prospect data of ordered series of numbers image.Certainly, Datagram can further reduce the size of Datagram by compressed action.Compression function can be selected suitable compressed format, for example compression forms such as GIF, JPG, PIC.
Figure 4 shows that the decoding unit Organization Chart of image processing of the present invention.As shown in the drawing, the decoding unit 40 of this image processor comprises an image data separative element 41, a data formats analytic unit 42, a Datagram storage element 43 and an image data recomposition unit 44.
Image data separative element 41 is that the image header in the received coding image is separated with the image data package, exports the image header to data formats analytic unit 42, and the image data package is stored to Datagram storage element 43.44 background informations that produced according to data formats analytic unit 42 of image data recomposition unit are set background information, and after reading the prospect Datagram from Datagram storage element 43, according to the position information of this prospect Datagram, the prospect data is disposed at ranks position in the image that is write down.Positional information in the Datagram includes the initial and end position of column information and data, and therefore, image data recomposition unit 44 can be reconstituted in the tram with data apace.Certainly, if the compressed format identification code of image header for compressing, after then image data recomposition unit 44 can decompress each Datagram earlier and obtain every row prospect data, just is disposed at the prospect data ranks position in the image that is write down.
Between Datagram storage element 43 and image data recomposition unit 44, an image process unit 45 can also be arranged.This image process unit 45 receives the prospect data of Datagram storage element 43 outputs, and this prospect data is further carried out image processing, for example: image smoothing (Image Smooth), edge reinforcement (Edge Enhance) etc.
In addition, but the present invention's direct replacement background information need not to rely on for support image processing software, and its method directly gets final product with the background information displacement that has been predetermined for the background information at this image of record.
The schematic diagram of 44 pairs of n row image data reorganization of Fig. 5 display image information recomposition unit.The information that image data recomposition unit 44 is provided according to the image header can obtain the width z and the length of background information, image.Therefore, every row image data has z pixel, and each pixel is 8 data, and background information is set at 00H.After image data recomposition unit 44 reads each Datagram in regular turn, image data is inserted the specified position of positional information according to the position information of Datagram.For example, be example with Fig. 5, the positional information of Datagram shows that this image data is the pixel of the x+4 to y+1 of n row.So, as long as the image data of Datagram is inserted in regular turn the location of pixels of the x+4 to y+1 of n row.Therefore, image data recomposition unit 44 can be fast and is correctly restored image data.
Figure 6 shows that the decoding process figure of image processing of the present invention.As shown in the drawing, the decoding process of image processing of the present invention comprises:
Step S602: obtain the coding image data, this coding image is the coded generation of coding step according to the present invention.
Step S604: analyze the image header.Isolate the image header from the coding image data of obtaining.This image header writes down the classification of this image, the height of image, the width of image and the background information that sets.Certainly, this image header also writes down identification code, to confirm the coded system of this image.
Step S606: read Datagram.Isolate each Datagram from the coding image data of obtaining.Each Datagram has comprised this prospect data with respect to the ranks position of image, the size and the prospect data of this prospect data.
Step S608: image digital is handled.Receive above-mentioned prospect data, carry out digitized video and handle, and export a prospect digital processing data.
Step S610: image-decoding.According to the image header, the prospect data of each Datagram is write the ranks position of the image that this Datagram writes down.The imagery zone that does not write down the prospect data then writes background information.If the compressed format identification code of image header is for compressing, after then this step can decompress each Datagram earlier according to the specified compressed format of compressed format identification code, just the prospect data is write the ranks position of the image that this Datagram writes down.
Background information in the above-mentioned steps can be the background information of image header, also can be the color that the user sets through interface.Therefore, image treatment method of the present invention can change background information apace.
Image treatment method of the present invention can be applicable to image capture units such as scanner, digital camera, digital photographic machine, and when especially being applied to scan monochromatic image, its effect is the most remarkable.
Though more than with embodiment the present invention is described, therefore do not limit scope of the present invention, only otherwise break away from main idea of the present invention, various distortion or change that the sector person carries out all should be encompassed within the claim scope of this case.
Claims (14)
1. digital video processing method, it is characterized in that: this method comprises the following step:
Obtain background information;
Obtain the original figure image data;
Separation prospect data is separated aforementioned original figure image data according to aforementioned background information, produces a prospect data;
Produce the image header, this image header comprises the size of aforementioned background information, aforementioned original figure image data and the image classification of aforementioned original figure image data; And
Image coding is encoded aforementioned prospect data in the mode of Datagram.
2. digital video processing method as claimed in claim 1 is characterized in that: also comprise the image processing step in the wherein aforementioned separation prospect data step, receive above-mentioned prospect data, the prospect data that image processing has been carried out in output.
3. digital video processing method as claimed in claim 1 is characterized in that: the background information that wherein aforementioned image header is comprised can be replaced by a background information that has been predetermined.
4. digital video processing method as claimed in claim 1, it is characterized in that: wherein the aforesaid data package comprises the size of aforementioned prospect data corresponding to the original position in the aforementioned image and this prospect data, or comprises aforementioned prospect data corresponding to original position in the aforementioned image and end position.
5. digital video processing method, it is characterized in that: this method comprises the following step:
Obtain the coding image data;
Separate the coding image data, image header in this coding image is separated with a Datagram, this image header comprises the size and an image classification of a background information, image, and this Datagram comprises an opposite position of at least one prospect data and this prospect data; And
The reorganization image according to aforementioned image header, writes the aforementioned opposite position of this image with the aforementioned prospect data of each Datagram, and the zone that does not dispose the prospect data writes aforementioned background information.
6. digital video processing method as claimed in claim 5 is characterized in that: also comprise the image processing step in the wherein aforementioned separation coding image data step, receive the above-mentioned Datagram that has read, the Datagram that image processing has been carried out in output.
7. digital video processing method as claimed in claim 5 is characterized in that: the zone that does not wherein dispose the prospect data is considered as the background area, and writes the preassigned background information of aforementioned background information or that aforementioned image header is comprised.
8. digital image processing device, it is characterized in that: this device comprises:
A background information is set in the parameter setting unit;
The image data separative element according to aforementioned background information, separates an original figure image data, produces at least one prospect data;
Prospect data storage unit stores aforementioned prospect data;
The data formats generation unit produces an image header, and this image header comprises the size and the image classification of aforementioned background information, aforementioned original figure image data; And
The image data coding unit after in the mode of Datagram the prospect data of aforementioned prospect data storage unit being encoded, combines with aforementioned image header, produces the coding image data.
9. digital image processing device as claimed in claim 8 is characterized in that: wherein aforementioned prospect data storage unit also writes down the original position and the end position of prospect data simultaneously.
10. digital image processing device as claimed in claim 8 is characterized in that: wherein also comprise image process unit, between aforementioned prospect data storage unit and aforementioned image data coding unit, carry out image processing.
11. digital image processing device as claimed in claim 8 is characterized in that: the aforementioned background information that wherein aforementioned image header is comprised is replaced with a background information that has been predetermined.
12. a digital image processing device is characterized in that: this device comprises:
One image data separative element, image header in this coding image is separated with a Datagram, this image header comprises the size and an image classification of a background information, image, and this Datagram comprises an opposite position of at least one prospect data, this prospect data;
One Datagram storage element is used for storing the Datagram that aforementioned image data separative element is separated; And
One image data recomposition unit, according to aforementioned image header, in this opposite position, the zone that does not dispose the prospect data writes this background information with this prospect data logging in the Datagram.
13. digital image processing device as claimed in claim 12 is characterized in that: wherein also comprise image process unit, between aforesaid data package storage element and aforementioned image data recomposition unit, carry out image processing.
14. digital image processing device as claimed in claim 12 is characterized in that: the aforementioned background information that wherein aforementioned image header is comprised is replaced with a background information that has been predetermined.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02121818 CN1212723C (en) | 2002-06-06 | 2002-06-06 | Digital image processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02121818 CN1212723C (en) | 2002-06-06 | 2002-06-06 | Digital image processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1464746A true CN1464746A (en) | 2003-12-31 |
CN1212723C CN1212723C (en) | 2005-07-27 |
Family
ID=29743067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 02121818 Expired - Lifetime CN1212723C (en) | 2002-06-06 | 2002-06-06 | Digital image processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1212723C (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1767650B (en) * | 2004-10-26 | 2010-10-06 | 三星电子株式会社 | Apparatus and method for processing an image signal in a digital broadcast receiver |
US7986846B2 (en) | 2004-10-26 | 2011-07-26 | Samsung Electronics Co., Ltd | Apparatus and method for processing an image signal in a digital broadcast receiver |
CN103179402A (en) * | 2013-03-19 | 2013-06-26 | 中国科学院半导体研究所 | Video compression coding and decoding method and device |
CN107968917A (en) * | 2017-12-05 | 2018-04-27 | 广东欧珀移动通信有限公司 | Image processing method and device, computer equipment, computer-readable recording medium |
-
2002
- 2002-06-06 CN CN 02121818 patent/CN1212723C/en not_active Expired - Lifetime
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1767650B (en) * | 2004-10-26 | 2010-10-06 | 三星电子株式会社 | Apparatus and method for processing an image signal in a digital broadcast receiver |
US7986846B2 (en) | 2004-10-26 | 2011-07-26 | Samsung Electronics Co., Ltd | Apparatus and method for processing an image signal in a digital broadcast receiver |
CN103179402A (en) * | 2013-03-19 | 2013-06-26 | 中国科学院半导体研究所 | Video compression coding and decoding method and device |
CN107968917A (en) * | 2017-12-05 | 2018-04-27 | 广东欧珀移动通信有限公司 | Image processing method and device, computer equipment, computer-readable recording medium |
CN107968917B (en) * | 2017-12-05 | 2019-10-18 | Oppo广东移动通信有限公司 | Image processing method and device, computer equipment, computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN1212723C (en) | 2005-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3873136B2 (en) | More advanced compression of documents | |
KR100347508B1 (en) | Photo Image Pick-Up Device | |
KR101012618B1 (en) | Processing of images in imaging systems | |
US8254702B2 (en) | Image compression method and image processing apparatus | |
US5353061A (en) | System and method for frame-differencing video compression/decompression using perceptually-constant information and image analysis | |
GB2326048A (en) | Embedding digital watermarks in compressed image data | |
EP1355484A3 (en) | Image compression method and apparatus, and image coding method and apparatus | |
CA2449798A1 (en) | Method and system for processing images for a check sorter | |
CN1198461C (en) | Video monitoring system using daisy chain | |
CN1124045C (en) | Runlength coding method for use in video signal encoding system | |
CN1137154A (en) | Video information recording and reproduction apparatus and method as well as video tape | |
US6078690A (en) | Image data conversion device and method having function of inserting delimiter code into position in image data where a predetermined amount of data is reached | |
CN1713710A (en) | Image processing apparatus and image processing method | |
CN1125028A (en) | Adaptive video decompression | |
CN1212723C (en) | Digital image processing method and device | |
CN1595967A (en) | Monitoring image recording apparatus | |
US5838831A (en) | Compression of image data with retaining cost data for each compressed image block | |
US7277586B2 (en) | Images combination processing system, images combination processing method, and images combination processing program | |
WO1989000741A1 (en) | Identification information storage and retrieval | |
JP2003531553A (en) | Efficient video data access using fixed compression ratio | |
US7257260B2 (en) | Method and a device for processing digital image | |
CN1689337A (en) | Sequential digital image compression | |
CN1137206A (en) | Method and apparatus for multiple quality transaction card images | |
CN1182488C (en) | Data compression method and image data compression equipment | |
CN1050208C (en) | A system for acquiring and playing back a equence of animated video images in real time |
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 | ||
CX01 | Expiry of patent term |
Granted publication date: 20050727 |
|
CX01 | Expiry of patent term |