[go: up one dir, main page]

CN1142524C - Dynamic difference coding and decoding method - Google Patents

Dynamic difference coding and decoding method Download PDF

Info

Publication number
CN1142524C
CN1142524C CNB001210939A CN00121093A CN1142524C CN 1142524 C CN1142524 C CN 1142524C CN B001210939 A CNB001210939 A CN B001210939A CN 00121093 A CN00121093 A CN 00121093A CN 1142524 C CN1142524 C CN 1142524C
Authority
CN
China
Prior art keywords
dynamic differential
effective information
differential coding
coding
file
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.)
Expired - Fee Related
Application number
CNB001210939A
Other languages
Chinese (zh)
Other versions
CN1278089A (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.)
Nankai University
Original Assignee
Nankai University
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 Nankai University filed Critical Nankai University
Priority to CNB001210939A priority Critical patent/CN1142524C/en
Publication of CN1278089A publication Critical patent/CN1278089A/en
Application granted granted Critical
Publication of CN1142524C publication Critical patent/CN1142524C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

本发明属数字信息存储技术领域。动态差分编码和解码方法,利用四条边定位动态差分编码图中的有效信息编码图,把作为一个整体来考虑的一个或多个象素称为定义块,利用相邻定义块之间的灰度关系进行位的判断。编码图中有效信息的内容包括:文件名、文件长度或/和文件内容。解决了由CCD接收中有效信息的定位问题和光斑不均匀及其它噪音引起的误码率升高的问题,使得误码率低于10-6,这样三维光子存储器就可以走向实际应用。

Figure 00121093

The invention belongs to the technical field of digital information storage. The dynamic differential coding and decoding method uses four sides to locate the effective information coding graph in the dynamic differential coding graph, and considers one or more pixels considered as a whole as a definition block, and utilizes the grayscale between adjacent definition blocks The relationship is judged by bit. The content of valid information in the coding diagram includes: file name, file length or/and file content. It solves the positioning problem of effective information in CCD reception and the problem of increased bit error rate caused by uneven light spot and other noises, making the bit error rate lower than 10 -6 , so that the three-dimensional photonic memory can be applied in practice.

Figure 00121093

Description

Dynamic difference coding and coding/decoding method
Technical field
The invention belongs to the numerical information technical field of memory.
Summary of the invention
The object of the invention provides a kind of dynamic difference coding and coding/decoding method, it can be applicable to three-dimensional photon storer etc. and utilizes in the access device that page mode stores and read, the problem that effective information is difficult to aim at when solving charge coupled device ccd reception image, realize catching automatically effective information, and reducing because the error code that hot spot unevenness and other large scale noise cause, thereby the reduction bit error rate.
Technology of the present invention constitutes: when effective information is encoded, the significance bit of representing information with the grey scale change of adjacent definition block (being used as one or more pixels that an integral body is considered), the former is bright to be 0 in the latter, the latter is bright to be 1 in the former, or determines an effectively position with opposite relation; Behind effective information coding to computer documents, to adding four edges around every page the effective information code pattern, form dynamic difference coding figure, utilize memory device stores in storage medium; When reading, utilize CCD to receive to be stored in the dynamic difference coding figure in the storage medium, be adjusted to the size of picture, make the dynamic difference coding figure that receives area, receive on the bin at CCD and leave more than or equal to five pixels outside the dynamic difference coding figure less than CCD; At first the four edges of dynamic difference coding figure is judged during decoding, from the gray-scale value summation of four direction ecto-entad up and down to all pixels of every row/row, 3~10 times of the gray-scale value sum of outermost two all pixels of row/row as threshold value, can be obtained four threshold values corresponding to four edges like this.By adjacent two row/row gray scales and difference and pre-set threshold compare, the absolute value of ecto-entad difference is identified as the limit that adds when encoding greater than the first row/row of threshold value, promptly can determine the four edges of dynamic difference coding figure, judge the position on limit, the width and the height on limit, and then remove four edges and obtain the effective information code pattern, and obtain width, height and the position of effective information code pattern; Determine each significance bit of information at last the information reverting among the figure to be become computer documents according to the grey scale change of adjacent two definition blocks.
Concrete steps of the invention process:
When computer documents is encoded, the significance bit of representing information with the grey scale change of adjacent definition block, be that the former is bright in latter's (bright dark) expression 0 for adjacent two definition blocks, the latter is bright in the former (secretly bright) expression 1 (or represent significance bit with opposite relation), and the number of definition block is the twice of effective information bits number.For example every row contains 2M definition block, and every row comprise N definition block, and then the effective information figure behind the coding comprises MN effective information position.Around every page effective information figure, add four edges, the width/on limit is the same with the width/of definition block or have certain known relation, form dynamic difference coding figure, and utilize laser to be stored in the storage medium by spatial light modulator or by other storage meanss.
When reading, utilize CCD to receive to be stored in the code pattern in the storage medium.By being adjusted to the size of picture, make the area of dynamic difference coding figure, and they can both be received by CCD less than CCD, receive on the bin at CCD and leave more than or equal to five pixels outside the dynamic difference coding figure, carry out the identification of four edges to utilize them.Carry out the judgement of four edges earlier, from the gray-scale value summation of four direction ecto-entad up and down to all pixels of every row (row), 3~10 times of the gray-scale value sum of outermost two row (row) all pixels as threshold value, can be obtained four threshold values (corresponding to the four edges of dynamic difference coding figure) like this.By adjacent two row (row) gray scales and difference and pre-set threshold compare, the absolute value of ecto-entad difference is identified as the limit of when coding adding greater than first row (row) of threshold value, promptly can determine the four edges of dynamic difference coding figure.Number according to the inside definition block of making an appointment is removed four edges, thereby has obtained the effective information code pattern.
Secondly, the effective information code pattern is represented a position with grey scale change between the adjacent definition block, according to the comparison of the gray scale and the previous gray scale of current definition block, judge to be 0 or 1 in this position (hexadecimal representation as the ASCII character of " a " is 61, and Fig. 1 is seen in the expression behind the coding.Bright dark expression 0 among this figure, dark bright expression 1).In the effective information of effective information code pattern, preceding 12bytes is that file name information is (if adopt long filenames, then can select for use the respective length of agreement to represent filename), 2bytes then is file size information (also can adopt longer about measured length to represent), is the content of file then.The effective information that the effective information code pattern comprises is a MN significance bit, greater than MN bits, can store this document if the content of file adds the file name information of front and file size information with a plurality of code patterns.If be less than or equal to MN bits, a then available width of cloth code pattern represents, less than the time can behind file content, add garbage.Can judge that this file is made up of a few width of cloth figure according to the file size that obtains previously in when decoding, and the length of the actual effective content of file.At last the information reverting among the reproduction figure is become computer documents, and neglect garbage.If adjacent definition block gray-scale value equates that then this significance bit is read failure, can utilize CCD to read this two definition blocks again, and differentiate; Or assert and this significance bit mistake this significance bit is expressed as 1 (or 0), and there is the problem of reading in this significance bit of mark.
Description of drawings
Fig. 1 is the effective information code pattern of 61 (sexadecimals); Fig. 2 is the binary representation of file " 2.txt "; Fig. 3 is the code pattern of file " 2.txt "; Fig. 4 is the figure that goes out from recording medium reproducing; Fig. 5 is the effective information figure behind the removal four edges.
Embodiment
The present invention is described in detail as follows in conjunction with the accompanying drawings:
As shown in the figure, " 2.txt " encodes to file, and the content of this document is:
Effective information in the abcdfghijkabcdfghijkabcdfghijk code pattern comprises following information: preceding 12bytes is a file name information, and the 2bytes that follows is a file size information, is the content of file then.Fig. 2 is its binary representation, according to dark brightly be 0, bright secretly be 1 further to be encoded to the effective information code pattern, and adding that four edges forms dynamic difference coding figure, the figure behind the coding sees that (significance bit of the every row of code pattern is 16bits to Fig. 3, and then the definition block of the every row of effective information is 32.Preceding 6 behavior file names, the 7th behavior file length is file content then).Definition block is the square that 6 * 6 pixels constitute, and the width/on limit is the same with the width/of definition block.Dynamic difference coding figure behind the coding is outputed on the spatial light modulator by computing machine, and is stored in the recording medium by the mode or the alternate manner of holography, and experiment is to utilize holographic method to be recorded in the double-doped lithium niobate crystal.
Fig. 4 for the figure that from recording medium, reveals again (under the polarization configurations of our actual storage, just in time opposite when reproducing the expression of significance bit of figure and storage, dark bright expression 0, the bright dark expression 1 of adjacent definition block when therefore here we arrange to encode, and dark bright expression 1 among the figure, bright dark expression 0 after reproducing, originally the dark side around effective information has also become bright border), can see that original information encoded is all received, and around leave enough vacant pixels.
From left to right to the gray-scale value summation of all pixels of every row, with 6 times of gray-scale value sum of the most left two all pixels of row as threshold value, and by adjacent two row gray scales and difference and pre-set threshold compare, from left to right the absolute value of difference is identified as the limit, left side that when coding adds greater than first row of threshold value; From right to left similar, reach the four edges that promptly can determine dynamic difference coding figure from top to bottom from top to bottom.According to the inside effective information of making an appointment is 16, two adjacent definition blocks are represented a significance bit, two limits about adding, every row has 34 definition blocks, thereby obtain the developed width of each definition block according to the position of limit of judging above, left side and right edge, promptly can with about two limits remove.Similarly, we also have in advance agreement to the definition block number in every row, and effective information adds that two limits have 24 definition blocks up and down in the row.Thereby obtain the true altitude of each definition block according to the position of upper side edge of judging above and lower side, promptly two limits up and down can be removed, Fig. 5 is for the location and the effective information code pattern after removing four edges.
When four edges is judged, also obtained the size of definition block, can know number of picture elements that each definition block is contained and interior all pixels thereof gray scale and.According to the bright dark relation between adjacent two definition blocks (dark bright expression 1, bright dark expression 0) thus obtained the information of each significance bit.From the first six row we obtained should image filename, we have obtained the length of this document from the 7th row, in order to the actual effectively content of (after the 7th row) reduction of decoding to thereafter, effective content of this document is big or small consistent with code pattern just in time.At last file is deposited back computing machine by filename and file content that decoding obtains, finish decode procedure.
The present invention can be applicable to three-dimensional photon storer etc. and utilizes in the access device that page mode stores and read, its outstanding effect: 1, realized the automatic location of visual effective information, effective information is difficult to definite automatically problem when solving charge coupled device ccd reception image; 2, reduce because the error code that hot spot unevenness and other large scale noise cause, the preceding original bit error rate of coding is greater than 10 -2, the coding back bit error rate is lower than 10 -6

Claims (6)

1、一种动态差分编码方法,其特征在于它包括下述步骤:1, a kind of dynamic differential coding method is characterized in that it comprises the following steps: 1)在对计算机文件的有效信息进行编码时,用相邻定义块的灰度变化,前者亮于后者为0,后者亮于前者为1,或用相反的关系来确定一个有效的位,形成有效信息编码图;1) When encoding the effective information of computer files, use the gray level change of adjacent definition blocks, the former is brighter than the latter as 0, the latter is brighter than the former as 1, or use the opposite relationship to determine an effective bit , forming an effective information coding map; 2)对上述的每页有效信息编码图四周添加四条边,形成动态差分编码图,利用存储装置存储到存储介质中。2) Adding four sides around the effective information coding graph of each page above to form a dynamic differential coding graph, which is stored in a storage medium by a storage device. 2、按照权利要求1所说的动态差分编码方法,其特征在于其中有效信息的内容是文件名、文件长度或/和文件内容。2. The dynamic differential coding method according to claim 1, wherein the content of the effective information is the file name, file length or/and file content. 3、按照权利要求1所说的动态差分编码方法,其特征在于所说的定义块的数目是有效信息的有效位数目的两倍。3. The dynamic differential coding method according to claim 1, characterized in that the number of said defined blocks is twice the number of effective bits of effective information. 4、按照权利要求1所说的动态差分编码方法,其特征在于所说的边的宽度/高度与定义块的宽度/高度有一个对应关系。4. The dynamic differential coding method according to claim 1, characterized in that the width/height of said side has a corresponding relationship with the width/height of a defined block. 5、按照权利要求1或4所说的动态差分编码方法,其特征在于所说的边的宽度/高度与定义块的宽度/高度相等。5. The dynamic differential coding method according to claim 1 or 4, characterized in that the width/height of said side is equal to the width/height of the defined block. 6、权利要求1所说的动态差分编码的解码方法,其特征在于它包括下述步骤:6. The decoding method of dynamic differential encoding according to claim 1, characterized in that it comprises the following steps: 1)读出时,利用CCD来接收存储在存储介质中的动态差分编码图,调整成像的大小,使动态差分编码图小于CCD的面积,在CCD接收面元上动态差分编码图外留有大于或等于五个象素;1) When reading out, use CCD to receive the dynamic differential coding map stored in the storage medium, adjust the size of the imaging, so that the dynamic differential coding map is smaller than the area of the CCD, and leave a larger than dynamic differential coding map outside the CCD receiving panel. or equal to five pixels; 2)解码时首先对读出的动态差分编码图进行边界判断,从上下左右四个方向由外向内对每行/列的所有象素的灰度值求和,将最外两行/列所有象素的灰度值之和的3~10倍作为阈值,这样可以得到对应于四条边的四个阈值;通过相邻两行/列灰度和的差值和预先设定的阈值相比较,由外向内差值的绝对值大于阈值的第一行/列被认定为编码时加入的边,即可以判定出动态差分编码图的四条边,判断边的位置、边的宽度和高度,然后再去除四条边得到有效信息编码图,并得到有效信息编码图的宽度、高度和位置;2) When decoding, firstly judge the boundary of the read dynamic differential coding map, sum the gray values of all pixels in each row/column from outside to inside in the four directions of up, down, left, and right, and sum all the pixels in the outermost two rows/columns. 3 to 10 times the sum of the gray value of the pixel is used as the threshold, so that four thresholds corresponding to the four sides can be obtained; by comparing the difference between the gray sum of two adjacent rows/columns with the preset threshold, The first row/column whose absolute value of the difference from outside to inside is greater than the threshold is identified as the side added during encoding, that is, the four sides of the dynamic differential coding graph can be determined, the position, width and height of the side are judged, and then Remove the four sides to obtain the effective information coding graph, and obtain the width, height and position of the effective information coding graph; 3)根据相邻两个定义块的灰度变化来确定信息的每一个有效位,最后将有效信息编码图中的信息还原成计算机文件。3) Determine each effective bit of the information according to the gray level changes of two adjacent definition blocks, and finally restore the information in the effective information coding map to a computer file.
CNB001210939A 2000-07-20 2000-07-20 Dynamic difference coding and decoding method Expired - Fee Related CN1142524C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB001210939A CN1142524C (en) 2000-07-20 2000-07-20 Dynamic difference coding and decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB001210939A CN1142524C (en) 2000-07-20 2000-07-20 Dynamic difference coding and decoding method

Publications (2)

Publication Number Publication Date
CN1278089A CN1278089A (en) 2000-12-27
CN1142524C true CN1142524C (en) 2004-03-17

Family

ID=4588582

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB001210939A Expired - Fee Related CN1142524C (en) 2000-07-20 2000-07-20 Dynamic difference coding and decoding method

Country Status (1)

Country Link
CN (1) CN1142524C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100405403C (en) * 2006-08-03 2008-07-23 上海交通大学 A kind of digital image data encoding method
JP4851353B2 (en) 2007-01-31 2012-01-11 株式会社リコー Image processing apparatus and image processing method

Also Published As

Publication number Publication date
CN1278089A (en) 2000-12-27

Similar Documents

Publication Publication Date Title
CN112348770B (en) Bridge crack detection method based on multi-resolution convolutional network
Wu et al. Knowledge transfer dehazing network for nonhomogeneous dehazing
US6049627A (en) Covert digital identifying indicia for digital image
US8625919B2 (en) Method of recording images and data for retrieving these images
EP0394929A2 (en) Dither image processing method
CN1954339B (en) Method and system for converting an image from a low dynamic range to a high dynamic range
KR900016958A (en) Polygonal Information Encoding Labels, Methods and Systems
CN110309808B (en) Self-adaptive smoke root node detection method in large-scale space
CN111968095A (en) Product surface defect detection method, system, device and medium
CN111860027B (en) Two-dimensional code identification method and device
JP2004289783A5 (en)
CN103997591A (en) Invisible code graphics, processing method thereof and anti-fake application
US20050180596A1 (en) Image processing method, image processing apparatus, program and recording medium that can reduce image quality degradation
CN1142524C (en) Dynamic difference coding and decoding method
US6538659B2 (en) Method for efficiently recording a number of texture images in memory
CN111814795B (en) Character segmentation method, device and computer readable storage medium
CN116843983A (en) Pavement disease recognition method, model training method, electronic equipment and medium
CN100485719C (en) Image processing apparatus and image processing method
JP2012013901A (en) Hologram reproduction image processing apparatus and processing method
CN110532938B (en) Paper job page number identification method based on fast-RCNN
JP2005221932A (en) Method for recording and reproducing hologram, hologram recording and reproducing apparatus, and hologram recording medium
US6081912A (en) Method for modulating data for storage in page-wise memory
CN113159255B (en) Digital watermark anti-counterfeiting method based on QR code and safety shading
Jamzad et al. Achieving higher stability in watermarking according to image complexity
US7149354B2 (en) Extraction of a scene structure based on gradient runs analysis

Legal Events

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