CN1148055C - Image processing circuit and image processing method of fast scanner - Google Patents

Image processing circuit and image processing method of fast scanner

Info

Publication number
CN1148055C
CN1148055C CNB001270044A CN00127004A CN1148055C CN 1148055 C CN1148055 C CN 1148055C CN B001270044 A CNB001270044 A CN B001270044A CN 00127004 A CN00127004 A CN 00127004A CN 1148055 C CN1148055 C CN 1148055C
Authority
CN
China
Prior art keywords
image data
image
correction
image processing
buffer
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
CNB001270044A
Other languages
Chinese (zh)
Other versions
CN1342953A (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.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor 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 Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CNB001270044A priority Critical patent/CN1148055C/en
Publication of CN1342953A publication Critical patent/CN1342953A/en
Application granted granted Critical
Publication of CN1148055C publication Critical patent/CN1148055C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)

Abstract

The image processing structure and method of the fast scanner are used for processing the image data output from the analog signal processor. The structure of the invention is provided with a ping-pong buffer area, a digital controller, an image data storage area and a cache memory. The ping-pong buffer has a plurality of buffer columns, and any one of the buffer columns can store image data. The digital controller processes the image data. The image data storage area stores correction requirements for correcting the image data and a corrected image obtained by correcting the image data. The cache memory stores the correction requirement obtained from the image data storage area and provides the correction requirement to the image processing structure to correct the image data according to the correction requirement.

Description

快速扫描器的影像处理电路 及影像处理方法Image processing circuit and image processing method of fast scanner

技术领域technical field

本发明涉及一种快速扫描器的结构及方法,特别涉及一种快速扫描器的影像处理结构及影像处理方法。The invention relates to a structure and method of a fast scanner, in particular to an image processing structure and an image processing method of a fast scanner.

背景技术Background technique

以往在扫描器的运作速度方面,由于在扫描器中使用的电荷耦合元件(Charge Couple Device,CCD)产生的数据量约为每秒1百万像素(MegaSample Per Second,MSPS)到3MSPS,再加上常用的传输管道,例如:通用串行总线(Universal Serial Bus,USB),的传输速率约为1MSPS,因此,若以不失真的压缩方式来产生高达两倍的数据流量来算,此类的扫描器传输速度大概就是2MSPS左右。在这样的数据传输速率之下,公知技术所使用的影像处理结构以及影像处理方法大致上可以提供足够的数据输出量来利用所有的输入/输出频宽。In the past, in terms of the operating speed of the scanner, the amount of data generated by the charge coupled device (CCD) used in the scanner was about 1 million pixels per second (MegaSample Per Second, MSPS) to 3MSPS, plus The transmission pipeline commonly used in the Internet, such as: Universal Serial Bus (Universal Serial Bus, USB), the transmission rate is about 1MSPS, therefore, if the data flow is generated up to twice as high as the undistorted compression method, this kind of The scanner transmission speed is about 2MSPS or so. Under such a data transmission rate, the image processing structure and image processing method used in the known technology can generally provide enough data output to utilize all the input/output bandwidth.

随着新的传输管道标准,如:USB2.0或IEEE 1394的推出,以往被视为扫描器影像数据输出瓶颈的传输管道的数据传输速率已经大为提升。此外,新型的CCD如采用交错式排列(pixel-rate)方式运作,可使得CCD的数据输出量可以高达18MSPS以上,这也较以往高出许多。然而,由于公知技术所使用的影像处理结构与方法并没有随之改进,因此整体的数据处理速度并没有随着数据的输入速率与输出速率的提高而有相对应的进步。With the introduction of new transmission pipeline standards, such as: USB2.0 or IEEE 1394, the data transmission rate of the transmission pipeline, which was previously regarded as the bottleneck of scanner image data output, has been greatly improved. In addition, if the new CCD is operated in a staggered arrangement (pixel-rate), the data output of the CCD can be as high as 18MSPS, which is much higher than before. However, since the image processing structure and method used in the known technology has not been improved accordingly, the overall data processing speed has not improved correspondingly with the increase of the data input rate and output rate.

参照图1,其显示了公知技术所使用的影像处理结构与相对应的影像处理方法。其中,由CCD(或接触影像传感器,Contact Image Sensor,CIS)110产生的影像数据被输入到模拟信号处理器(Analog Signal Processor,ASP)115之中。而模拟信号处理器115所输出的影像数据则输入到数字控制器(DigitalController)120之中,并由数字控制器120根据自扫描器的动态随机存取存储器(Dynamic Random Access Memory,DRAM)130中所取得的校正要件来处理这些影像数据。其中,这里所称的校正要件是用来校正影像数据所用的参数,例如:直流偏压(DC offset)DC,明暗增益(shading gain)SH,以及灰度调整Gamma等。此外,为了预防由于数据产生的速率比数据传输到主机的速率快而导致数据流失,因此在影像数据经过处理之后,数字控制器120就会先将处理过的影像数据存储于DRAM 130内,之后再在数据传输通道可以传输数据的时候将这些影像数据传输到主机内。Referring to FIG. 1 , it shows an image processing structure and a corresponding image processing method used in the known technology. Wherein, the image data generated by CCD (or contact image sensor, CIS) 110 is input into the analog signal processor (Analog Signal Processor, ASP) 115. The image data output by the analog signal processor 115 is then input into the digital controller (Digital Controller) 120, and the digital controller 120 is based on the dynamic random access memory (Dynamic Random Access Memory, DRAM) 130 of the scanner. The acquired calibration elements are used to process the image data. Among them, the correction elements referred to here are parameters used to correct image data, such as: DC offset (DC offset) DC, shading gain (shading gain) SH, and gray scale adjustment Gamma, etc. In addition, in order to prevent data loss due to the rate of data generation faster than the rate of data transmission to the host, after the image data is processed, the digital controller 120 will first store the processed image data in the DRAM 130, and then Then, when the data transmission channel can transmit data, the image data is transmitted to the host.

然而,上述公知扫描器所使用的影像处理结构及影像处理方法有数项缺失。首先,数字控制器120在处理影像数据校正的时候(例如:DC/SH或Gamma等),模拟信号处理器115就不能往数字控制器120传输数据。所以限制了CCD/CIS 110的输出率。此外,由于在公知技术中,经过数字处理器120进行影像数据校正处理之后的数据会以非交错式排列(non pixel-rate)的方式存储在DRAM 130之中,因此当DRAM 130中的数据传送到主机后,还必须依靠主机中的软件将这些以非交错式排列的数据做线差补正并转换成以交错式排列(pixel-rate)方式表示的数据,如此影像数据才能正确的显示出来。However, there are several deficiencies in the image processing structure and image processing method used in the above known scanners. First, when the digital controller 120 is processing image data correction (for example: DC/SH or Gamma, etc.), the analog signal processor 115 cannot transmit data to the digital controller 120 . So the output rate of CCD/CIS 110 is limited. In addition, because in the known technology, the data after the image data correction processing by the digital processor 120 will be stored in the DRAM 130 in a non-interleaved arrangement (non pixel-rate), so when the data in the DRAM 130 is transferred After arriving at the host computer, the software in the host computer must be used to correct the line difference and convert the non-interlaced data into pixel-rate data, so that the image data can be displayed correctly.

综上所述,现将公知技术的数项缺失简述如下:In summary, several deficiencies in the known technologies are briefly described as follows:

1.数字控制器在处理影像数据校正的速度限制了CCD/CIS的输出率,而导致整个扫描过程时间加长;以及1. The speed at which the digital controller processes the image data correction limits the output rate of the CCD/CIS, resulting in a longer scanning process; and

2.DRAM中的数据在传送到主机后,还必须依靠主机中的软件将这些以非交错式排列的数据转换成经过线差补正并以交错式排列方法表示的数据,这样的操作模式将耗费计算机中央处理器的计算能力,延迟了影像的显示。2. After the data in the DRAM is transmitted to the host, it is necessary to rely on the software in the host to convert these non-interleaved data into data that has been corrected for line differences and expressed in an interleaved manner. This mode of operation will consume The computing power of the central processing unit of the computer delays the display of the image.

发明内容Contents of the invention

由此,本发明提出一种快速扫描器的影像处理结构,适用于以数字控制器处理自模拟信号处理器所输出的影像数据。此影像处理结构具有一个乒乓缓冲区,一个影像数据存储区以及一个快取存储器(Cache Memory),又可称为高速缓冲存储器。其中,乒乓缓冲区具有数个缓冲列,任一个缓冲列都可以存储前述的影像数据。影像数据存储区则存储用以校正影像数据的校正要件,以及存储影像数据根据此校正要件校正后所得的校正后影像。快取存储器存储自影像数据存储区取得的校正要件,并提供此校正要件以使影像处理结构可以根据此校正要件校正前述的影像数据。除此之外,本影像处理结构还可以包括另一个快取存储器以做为线差补正交错排列数据的工作区。Therefore, the present invention proposes an image processing structure of a fast scanner, which is suitable for processing image data output from an analog signal processor by a digital controller. The image processing structure has a ping-pong buffer, an image data storage area, and a cache memory (Cache Memory), which can also be called a cache memory. Wherein, the ping-pong buffer has several buffer rows, and any buffer row can store the aforementioned image data. The image data storage area stores the correction requirement for correcting the image data, and stores the corrected image obtained after the image data is corrected according to the correction requirement. The cache memory stores the correction requirement obtained from the image data storage area, and provides the correction requirement so that the image processing structure can correct the aforementioned image data according to the correction requirement. In addition, the image processing structure may also include another cache memory as a working area for line difference correction and interleaving data.

本发明还提出一种扫描器的影像处理方法,其适用于处理自模拟信号处理器所输出的影像数据。本影像处理方法首先存储输入的影像数据在数个缓冲列中的任一个(通常二个缓冲列已足够),并将处理此影像数据所需要的校正要件读取进入一块快取存储器中。之后再根据此校正要件校正影像数据,并将校正此一影像数据时,自模拟信号处理器所接收到的后续的影像数据,存储在另一个缓冲列中。之后,则于前一份影像数据校正完毕后,切换乒乓缓冲区接续以上述的方法处理后续的影像数据。The invention also provides an image processing method for a scanner, which is suitable for processing image data output from an analog signal processor. The image processing method first stores the input image data in any one of several buffer columns (usually two buffer columns are enough), and reads the correction elements required for processing the image data into a cache memory. Afterwards, the image data is corrected according to the correction requirement, and the subsequent image data received from the analog signal processor is stored in another buffer column when the image data is corrected. Afterwards, after the correction of the previous image data is completed, the ping-pong buffer is switched and the subsequent image data is processed in the above method.

在本发明所提出的另一种扫描器的影像处理方法中,除了上述的步骤之外,还在存储经处理后的影像数据之后,依序读取相同原色的光度数据。并将此光度数据依照线差补正并交错式排列(pixel-rate)的顺序间隔排列在另一快取存储器中,再把正确的数据输出至主机。In another scanner image processing method proposed by the present invention, in addition to the above steps, photometric data of the same primary color are sequentially read after storing the processed image data. And the photometric data is arranged in another cache memory according to the order of line difference correction and staggered arrangement (pixel-rate), and then the correct data is output to the host computer.

综上所述,本发明通过快取存储器以及具有多个缓冲列的乒乓缓冲区,使得在校正影像数据的时候不会导致后续影像数据产生的速度减缓而造成瓶颈。此外,还可以在扫描器硬件中直接进行影像数据的后续处理,如线差补正与像素包装(pixel packing)等动作,减少计算机主机所需要进行的运算动作,加快影像数据自扫描器输出的速率。To sum up, the present invention utilizes the cache memory and the ping-pong buffer with multiple buffer columns so that when correcting the image data, the generation of subsequent image data will not be slowed down to cause a bottleneck. In addition, the follow-up processing of image data, such as line difference correction and pixel packing, can be performed directly in the scanner hardware, reducing the calculation operations required by the host computer and speeding up the output of image data from the scanner. .

附图说明Description of drawings

为使本发明的上述和其他目的、特征、和优点能更明显易懂,下文特举较佳实施例,并结合附图,作详细说明。In order to make the above and other objects, features, and advantages of the present invention more comprehensible, preferred embodiments are specifically cited below and described in detail in conjunction with the accompanying drawings.

图1绘示的是公知技术所使用的影像处理结构与相对应的影像处理方法;以及FIG. 1 shows the image processing structure and corresponding image processing method used in the known technology; and

图2绘示的是根据本发明的一较佳实施例的影像处理结构与影像处理方法。FIG. 2 illustrates an image processing structure and an image processing method according to a preferred embodiment of the present invention.

具体实施方式Detailed ways

参照图2,其绘示的是依照本发明一较佳实施例的一种影像处理结构与所使用的影像处理方法。其中,影像处理结构200中包括有一个电荷耦合元件(Charge Coupled Device,CCD)(或是接触影像传感器,Contact ImageSensor,CIS)210,模拟信号处理器(Analog Signal Processor,ASP)220,乒乓缓冲区(Ping-Pong buffer)250,一个影像数据存储区240,以及快取存储器245与260。必须注意的是,在本实施例中虽然使用动态随机存取存储器(Dynamic Random Access Memory,DRAM)做为影像数据存储区,然而这并非用以限定本发明仅能适用于使用DRAM的结构下。Referring to FIG. 2 , it shows an image processing structure and an image processing method used in accordance with a preferred embodiment of the present invention. Wherein, the image processing structure 200 includes a charge coupled device (Charge Coupled Device, CCD) (or contact image sensor, Contact ImageSensor, CIS) 210, an analog signal processor (Analog Signal Processor, ASP) 220, a ping-pong buffer (Ping-Pong buffer) 250, an image data storage area 240, and cache memories 245 and 260. It should be noted that although a Dynamic Random Access Memory (DRAM) is used as the image data storage area in this embodiment, this does not limit that the present invention is only applicable to the structure using DRAM.

由CCD/CIS 210所产生的影像数据,在经过模拟信号处理器220的处理之后,就会送进数字控制器230内的乒乓缓冲区250内。在本买施例中,乒乓缓冲区250内有两个缓冲列255与257,且任一个缓冲列255或257具有255个字(word)。当然,这并非用以限制本发明仅能使用由两个缓冲列所组成的乒乓缓冲区,或是限制每个缓冲列仅能包括255个字。在本实施例中,由模拟信号处理器220所传来的影像数据会先存放于缓中列255中。而当缓冲列255中的影像数据到达一定程度时,存储于缓冲列255之中的影像数据就会经由多路转换器(Multiplexer,MUX)253传送到数字控制器230中执行影像处理的部分,也就是影像处理装置270之内。而在此同时,由模拟信号处理器220所送进数字控制器230的后续的影像数据,就会存储于缓冲列257中。同样的,当影像处理装置270正在处理缓冲列257中所存储的影像数据时,由模拟信号处理器220所送进数字控制器230的后续的影像数据,就会存储于缓冲列255中。The image data produced by the CCD/CIS 210 will be sent to the ping-pong buffer 250 in the digital controller 230 after being processed by the analog signal processor 220. In this embodiment, there are two buffer columns 255 and 257 in the ping-pong buffer 250, and either buffer column 255 or 257 has 255 words. Of course, this is not intended to limit the present invention to only use the ping-pong buffer composed of two buffer columns, or to limit each buffer column to only include 255 words. In this embodiment, the image data transmitted from the analog signal processor 220 is first stored in the buffer column 255 . And when the image data in the buffer column 255 reaches a certain level, the image data stored in the buffer column 255 will be sent to the part that performs image processing in the digital controller 230 via a multiplexer (Multiplexer, MUX) 253, That is, within the image processing device 270 . At the same time, the subsequent image data sent from the analog signal processor 220 to the digital controller 230 will be stored in the buffer column 257 . Similarly, when the image processing device 270 is processing the image data stored in the buffer column 257 , subsequent image data sent from the analog signal processor 220 to the digital controller 230 will be stored in the buffer column 255 .

当乒乓缓冲区250中的影像数据通过多路转换器253送进影像处理装置270的时候,校正要件存储区242中所存储的校正要件,如直流偏压(DCoffset)DC,明暗增益(shading gain)SH,以及灰度调整Gamma等,就会由校正要件存储区242中读入至快取存储器245内。而当影像处理程序开始之后,这些校正要件就逐一的被送入影像处理装置270之中,以配合由多路转换器253传输而来的影像数据,藉DC/SH影像处理装置272以及Gamma处理装置274进行影像校正的动作。影像数据在经过DC/SH影像处理装置272与Gamma处理装置274校正后所得的校正后影像,会由影像写入装置276写入影像数据存储区240中的处理后影像存储区244之内。而由于CCD内光电元件的排列方式,因此经由CCD所取得的影像数据无可避免的会有线差的状况存在(CIS无线差)。也就是,如同本实施例中处理后影像存储区244内的存储数据一样,本例为4条线差BGR的页序。在同一个时间取得的影像数据,当蓝色的第1点在第0条线上的时候(B00),绿色的第1点会在第-4条线上(G-40,也就是还要4条线的距离才会到达扫描文件的扫描起始点),而红色的第1点则会在第-8条线上(R-80,也就是还要8条线的距离才会到达扫描文件的扫描起始点)。其中,上述的B00(或是G-40,R-80)的英文后的第一个数字代表的是线编号,而第2个数字代表的则是点编号。因此,当CCD前进一条线的距离时,在本实施例中蓝色的第1点就会在第1条线上(B10),绿色的第1点就会在第-3条线上(G-30),蓝色的第1点就会在第-7条线上(R-70)。当然,必须注意的是,线差的距离及颜色的先后顺序会因CCD本身的设计而有所变化,本实施例中所述及的状况仅是举例之用,并非用以限定本发明所能应用的范围。When the image data in the ping-pong buffer 250 is sent to the image processing device 270 through the multiplexer 253, the correction elements stored in the correction element storage area 242, such as DC bias (DCoffset) DC, shading gain (shading gain) ) SH, and the grayscale adjustment Gamma, etc., are read from the calibration requirement storage area 242 into the cache memory 245 . When the image processing program starts, these correction elements are sent to the image processing device 270 one by one, so as to cooperate with the image data transmitted by the multiplexer 253, and are processed by the DC/SH image processing device 272 and Gamma The device 274 performs image correction. The corrected image obtained after the image data is corrected by the DC/SH image processing device 272 and the Gamma processing device 274 will be written into the processed image storage area 244 in the image data storage area 240 by the image writing device 276 . However, due to the arrangement of the photoelectric elements in the CCD, the image data obtained through the CCD will inevitably have a line difference (CIS wireless difference). That is, like the stored data in the processed image storage area 244 in this embodiment, this example is the page sequence of 4 line differences BGR. For the image data obtained at the same time, when the blue first point is on the 0th line (B 00 ), the green first point will be on the -4th line (G -40 , which is still It takes a distance of 4 lines to reach the scanning start point of the scanned file), and the first red point will be on the -8 line (R -80 , that is, it takes 8 lines to reach the scan The scanning starting point of the file). Among them, the first number after the English of the above-mentioned B 00 (or G -40 , R -80 ) represents the line number, and the second number represents the point number. Therefore, when the CCD advances the distance of one line, the first blue point will be on the first line (B 10 ) in this embodiment, and the first green point will be on the -3 line ( G -30 ), the blue 1st point will be on the -7 line (R -70 ). Of course, it must be noted that the distance of the line difference and the order of the colors will vary due to the design of the CCD itself. scope of application.

在要将处理后影像传输到主机290的时候,影像读取装置278会自处理后影像存储区244中取得存储在其中的校正后影像,并将此校正后影像依照线差补正及交错式排列(pixel-rate)的顺序间隔排列并存储至快取存储器260之中。也就是,在将校正后影像传输到主机290之前,就先在扫描器内进行线差补正与像素包装(pixel packing)的工作。当校正后影像依照交错式排列处理完之后,影像读取装置278就会从快取存储器260中将存储的处理后的影像数据读出,再经由影像输出装置282将此处理后的影像数据传送到主机290中。When the processed image is to be transmitted to the host 290, the image reading device 278 will obtain the corrected image stored therein from the processed image storage area 244, and arrange the corrected image according to line difference correction and interlacing The order of (pixel-rate) is arranged at intervals and stored in the cache memory 260 . That is, before the corrected image is transmitted to the host computer 290 , line correction and pixel packing are performed in the scanner. After the corrected image is processed according to the interlaced arrangement, the image reading device 278 will read out the processed image data stored in the cache memory 260, and then transmit the processed image data through the image output device 282. into the mainframe 290.

进一步举证来说,本例模拟信号处理器为16bits,所使用的DRAM则是采用16bits同步随机存取存储器(SDRAM,Synchronous DRAM)。当模拟信号处理器的影像数据产生速度为每秒18百万像素(Mega Sample PerSecond,MSPS),且系统运作频率为108MHz的时候,每18个系统时钟就会有3笔16位的数据产生(R,G,B各一笔,每笔需6个时钟)。而当乒乓缓冲区中的任一个缓冲列具有255个16位的缓中区大小时,要将数据填满一个缓冲列所需的时间就是255*6,也就是1530个系统时钟。For further proof, the analog signal processor in this example is 16bits, and the DRAM used is 16bits Synchronous Random Access Memory (SDRAM, Synchronous DRAM). When the image data generation speed of the analog signal processor is 18 million pixels per second (Mega Sample PerSecond, MSPS), and the system operating frequency is 108MHz, there will be three 16-bit data generated every 18 system clocks ( R, G, B each one, each requires 6 clocks). And when any buffer column in the ping-pong buffer has 255 16-bit buffer areas, the time required to fill one buffer column with data is 255*6, that is, 1530 system clocks.

                          第1表 数据量(单位:字) 额外时间(over-head依存储器规格而定) 总时间 DC/SH 256+256 21 533 影像数据写入 255 14 269 影像数据读取 255 42 297 Form 1 Data volume (unit: word) Additional time (over-head depends on memory specification) total time DC/SH 256+256 twenty one 533 Image data writing 255 14 269 Image data reading 255 42 297

同时参照图2与此说明文件中的第1表,当处理每一个缓冲列的影像数据时,必须存取DRAM 240的次数总共是3次。第一次是DC/SH校正要件的读取,第二次是影像写入装置276将校正后影像写入DRAM 240,第三次则是影像读出装置278从DRAM 240中读取校正后影像。其中,第一次所需的时间为256+256个系统时钟,第二次与第三次则各花256个系统时钟。而存取DRAM所需的额外时间(overhead)则大约各为21,14与42个系统时钟,因此总共所需要的时间约为1099个系统时钟。当然,额外时间所需的时间长度会因DRAM的规格而变。但是由于再加上保留给更新(refresh)SDRAM所需的时间,在本例中为100个系统时钟,总共所需的时间也仅止于1199个系统时钟,因此绰绰有余的可及时处理完毕。而剩下的时间则可以保留给其他额外的影像后处理程序,例如:颜色转换(colorconversion),或是滤波(filter)等。Referring to FIG. 2 and the first table in this explanation document at the same time, when processing the image data of each buffer column, the number of times that the DRAM 240 must be accessed is 3 times in total. The first time is the reading of the DC/SH correction elements, the second time is that the image writing device 276 writes the corrected image into the DRAM 240, and the third time is that the image readout device 278 reads the corrected image from the DRAM 240 . Among them, the time required for the first time is 256+256 system clocks, and the second and third times each take 256 system clocks. The additional time (overhead) required to access the DRAM is about 21, 14 and 42 system clocks respectively, so the total required time is about 1099 system clocks. Of course, the length of time required for the extra time will vary depending on the specification of the DRAM. But due to adding the time required for updating (refresh) SDRAM, it is 100 system clocks in this example, and the total required time is only limited to 1199 system clocks, so more than enough can be processed in time. The rest of the time can be reserved for other additional image post-processing procedures, such as: color conversion (color conversion), or filtering (filter) and so on.

此外,由于可以使用管线(pipeline)的作法,因此校正后影像数据的写入过程可以与DC/SH以及Gamma映射所需的时间计算在一起。而由于管线的作法提供了快速运作的能力,因此若以管线处理255个16位的数据,仅需要大约260个系统时钟。若再加上额外时间,则整个DC/SH,Gamma处理,以及校正后影像数据写入过程所使用的时间应不超过300个系统时钟。因此,扣除DC/SH校正数据的读取时间533个系统时钟,校正后影像读取时间297个系统时钟,以及DC/SH,Gamma处理与校正后影像数据写入过程所需的300个系统时钟,在将下一个缓冲列填满所需要的1530个系统时钟截止前,还有约400个系统时钟可以进行其它的影像处理过程。In addition, since the pipeline method can be used, the process of writing the corrected image data can be calculated together with the time required for DC/SH and Gamma mapping. And because the pipeline method provides the ability of fast operation, if the pipeline processes 255 16-bit data, only about 260 system clocks are needed. If additional time is added, the time used by the entire DC/SH, Gamma processing, and writing of corrected image data should not exceed 300 system clocks. Therefore, after deducting the reading time of DC/SH correction data of 533 system clocks, the reading time of the corrected image is 297 system clocks, and the 300 system clocks required for DC/SH, Gamma processing and writing process of the corrected image data , before the 1530 system clocks needed to fill the next buffer column expire, there are about 400 system clocks available for other image processing.

综上所述,现将本发明的优点略述如下:本发明利用乒乓缓冲区、快取存储器等小装置,以空间换取时间,大大增进了影像校正的处理速度。此外,本结构还可以机动地在扫描器硬件中直接进行如线差补正与像素包装等动作,减少计算机主机所需要进行的运算动作,加快影像数据显示的速率。To sum up, the advantages of the present invention are summarized as follows: The present invention uses small devices such as ping-pong buffers and cache memories to trade space for time, greatly increasing the processing speed of image correction. In addition, this structure can also flexibly perform operations such as line difference correction and pixel packaging directly in the scanner hardware, reducing the calculation operations required by the host computer and speeding up the display speed of image data.

虽然本发明已以较佳实施例揭露如上,然其并非用以限定本发明,任何本领域的技术人员,在不脱离本发明的精神和范围内,当可作各种更动与润饰,因此本发明的保护范围应当以权利要求范围所界定的为准。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art may make various modifications and modifications without departing from the spirit and scope of the present invention. Therefore The protection scope of the present invention should be defined by the claims.

Claims (4)

1.一种快速扫描器的影像处理电路,适用于一数字控制器处理自一模拟信号处理器所输出的一影像数据,该影像处理电路包括:1. An image processing circuit of a fast scanner, suitable for a digital controller to process an image data output from an analog signal processor, the image processing circuit comprising: 一乒乓缓冲区,该乒乓缓冲区具有多个缓冲列,任一该缓冲列用以寄存该影像数据;A ping-pong buffer, the ping-pong buffer has a plurality of buffer columns, any one of the buffer columns is used to store the image data; 一影像数据存储区,存储用以校正该影像数据的一校正要件,以及存储该影像数据根据该校正要件进行校正后所得的一校正后影像;以及an image data storage area, storing a correction requirement for correcting the image data, and storing a corrected image obtained by correcting the image data according to the correction requirement; and 一第一快取存储器,该第一快取存储器存储自该影像数据存储区取得的该校正要件,并提供该校正要件以使该数字控制器可以根据该校正要件校正该影像数据。A first cache memory, the first cache memory stores the correction requirement obtained from the image data storage area, and provides the correction requirement so that the digital controller can correct the image data according to the correction requirement. 2.如权利要求1所述的影像处理电路,还包括一第二快取存储器,该第二快取存储器做为线差补正及交错排列的寄存工作区。2. The image processing circuit according to claim 1, further comprising a second cache memory, the second cache memory is used as a register work area for line difference correction and interleaving. 3.一种快速扫描器的影像处理方法,适用于一数字控制器处理自一模拟信号处理器所输出的一影像数据,该影像处理方法包括:3. An image processing method of a fast scanner, suitable for a digital controller to process an image data output from an analog signal processor, the image processing method comprising: a.存储该影像数据在多个缓冲列中的任一个;a. storing the image data in any one of multiple buffer columns; b.读取处理该影像数据所需要的一校正要件至快取存储器;b. reading a correction element required for processing the image data to the cache memory; c.根据该校正要件校正该影像数据,并将校正该影像数据时自该模拟信号处理器所接收到的后续的该影像数据存储在用以存储该影像数据的该缓冲列以外的任一该些缓冲列中;以及c. Correct the image data according to the correction requirements, and store the subsequent image data received from the analog signal processor when correcting the image data in any one of the buffer columns used to store the image data in some buffer columns; and d.在该影像数据校正完毕后,接续校正后续的该影像数据。d. After the image data is corrected, continue to correct the subsequent image data. 4.如权利要求3所述的影像处理方法,还包括:4. The image processing method as claimed in claim 3, further comprising: 存储经校正后的一校正后影像数据;以及storing a corrected image data after correction; and 依序读取该校正后影像数据中相同原色的一光度数据,并将该光度数据依照线差补正及交错式排列的顺序间隔排列。A piece of photometric data of the same primary color in the corrected image data is sequentially read, and the photometric data are arranged at intervals according to the order of line difference correction and staggered arrangement.
CNB001270044A 2000-09-13 2000-09-13 Image processing circuit and image processing method of fast scanner Expired - Fee Related CN1148055C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB001270044A CN1148055C (en) 2000-09-13 2000-09-13 Image processing circuit and image processing method of fast scanner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB001270044A CN1148055C (en) 2000-09-13 2000-09-13 Image processing circuit and image processing method of fast scanner

Publications (2)

Publication Number Publication Date
CN1342953A CN1342953A (en) 2002-04-03
CN1148055C true CN1148055C (en) 2004-04-28

Family

ID=4592108

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB001270044A Expired - Fee Related CN1148055C (en) 2000-09-13 2000-09-13 Image processing circuit and image processing method of fast scanner

Country Status (1)

Country Link
CN (1) CN1148055C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100349442C (en) * 2004-05-28 2007-11-14 中兴通讯股份有限公司 Ping pong buffer device
CN100493193C (en) * 2006-12-08 2009-05-27 北京中星微电子有限公司 A method and device for carrying out buffer control to real time digital video stream
US7830754B2 (en) * 2007-11-30 2010-11-09 Ali Corporation Optical disc drive capable of playing fast rolling music using first and second buffers

Also Published As

Publication number Publication date
CN1342953A (en) 2002-04-03

Similar Documents

Publication Publication Date Title
KR100282377B1 (en) Method and apparatus for block data transfer to reduce on-chip storage for interpolative video resizing
US8537407B2 (en) Image reading device, correction method, and image processing method using an image reading device
KR101127962B1 (en) Apparatus for image processing and method for managing frame memory in image processing
KR960011367A (en) Error Diffusion Filter and DMD Display System
KR19980018133A (en) Bilinear filter, video image resizing method and computer system
US20090295817A1 (en) Method for reading and writing image data in memory
CN1148055C (en) Image processing circuit and image processing method of fast scanner
CN112243097B (en) Image sensing device and image sensing method
CN1164164A (en) Aspect ratio converter and method thereof
CN1202071A (en) Image processing device
US6693644B1 (en) Graphic accelerator reducing and processing graphics data
US20030169937A1 (en) Wavelet processing apparatus and wavelet processing method
JP2001022342A (en) Pixel number converting circuit and picture display device using the same
CN1761312A (en) Method and circuit for zooming digital video image based on dual quadratic interpolation
US8102399B2 (en) Method and device for processing image data stored in a frame buffer
CN103093485B (en) Full view video cylindrical surface image storage method and system
KR20020052199A (en) Data transfer between rgb and ycrcb color spaces for dct interface
KR100510677B1 (en) Memory access control apparatus
JPH10308869A (en) Image processing device
US20020041401A1 (en) Image processing architecture and an image processing method for high scanner
US5825692A (en) Memory system and method for simultaneously reading and writing data
CN110855894A (en) Image data acquisition method and device
US7460718B2 (en) Conversion device for performing a raster scan conversion between a JPEG decoder and an image memory
US20100254618A1 (en) Method for Accessing Image Data and Related Apparatus
US8078011B2 (en) Image processing circuit and multi-function apparatus

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20040428

Termination date: 20100913