WO2012137478A1 - 画像読取システム、情報処理装置、及びプログラム - Google Patents

画像読取システム、情報処理装置、及びプログラム Download PDF

Info

Publication number
WO2012137478A1
WO2012137478A1 PCT/JP2012/002310 JP2012002310W WO2012137478A1 WO 2012137478 A1 WO2012137478 A1 WO 2012137478A1 JP 2012002310 W JP2012002310 W JP 2012002310W WO 2012137478 A1 WO2012137478 A1 WO 2012137478A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
correction
brightness
image data
reading
Prior art date
Application number
PCT/JP2012/002310
Other languages
English (en)
French (fr)
Inventor
俊史 實藤
浩二 宮西
Original Assignee
キヤノン電子株式会社
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 キヤノン電子株式会社 filed Critical キヤノン電子株式会社
Priority to JP2013508760A priority Critical patent/JP5632070B2/ja
Publication of WO2012137478A1 publication Critical patent/WO2012137478A1/ja
Priority to US14/044,093 priority patent/US9007668B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/46Colour picture communication systems
    • H04N1/56Processing of colour picture signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/46Colour picture communication systems
    • H04N1/56Processing of colour picture signals
    • H04N1/60Colour correction or control
    • H04N1/6027Correction or control of colour gradation or colour contrast

Definitions

  • the present invention relates to an image reading system, an information processing apparatus, and a program.
  • a system is provided with an image reading apparatus such as a scanner and an information processing apparatus such as a PC connected to the image reading apparatus by wire or wirelessly, and the information processing apparatus acquires image data obtained by reading processing in the image reading apparatus.
  • an image reading apparatus such as a scanner
  • an information processing apparatus such as a PC connected to the image reading apparatus by wire or wirelessly
  • the information processing apparatus acquires image data obtained by reading processing in the image reading apparatus.
  • the image read by the scanner is displayed and stored on the PC by executing the following processing in response to the user's operation on the PC.
  • the user installs application software (application) for displaying and storing an image on the PC and scanner control software (driver) for controlling the scanner from the PC in the PC.
  • application application software
  • driver scanner control software
  • the application transmits an image reading request to the driver.
  • the driver that has received the image reading request transmits the image reading request to the scanner connected to the PC via wire or wireless.
  • the scanner receives the image reading request, the scanner reads the image of the document set in advance by the user to generate image data corresponding to the image.
  • the generated image data is transferred from the scanner to the driver of the PC and then from the driver to the application.
  • the application stores the received image data in a memory or the like, and displays an image based on the image data.
  • the image data generated by the reading processing in the scanner is subjected to gamma correction processing which is processing for adjusting the lightness of each pixel (for example, Patent Document 1).
  • the gamma correction process improves the visibility of the output image in order to set the brightness of the output image to the desired brightness of the user when outputting (displaying, printing, etc.) the image based on the image data.
  • different correction processes are executed according to the characteristics of the output image. For example, different correction processes are performed depending on whether the output image is a multi-color image or a single-color image. This is because the image quality and visibility required by the user differ depending on the characteristics of the output image.
  • the scanner When reading an image, the scanner generates image data of a large number of gradations corresponding to a desired quality, and performs gamma correction processing on the generated image data inside the scanner. Furthermore, the scanner converts the image data subjected to the gamma correction processing into image data with a reduced number of gradations for transfer of the image data to the PC, and transmits the image data to the PC. As described above, in the case where the number of gradations is reduced after gamma correction is performed on image data generated by the reading process, color gradation is improved more than the case where gamma correction is performed after reduction of the number of gradations. Can. As a result, it is possible to improve the quality of the output image.
  • the scanner may have a function of automatically determining the characteristics of the image to be read in order to reduce the trouble of the user manually switching the reading setting according to the type of document.
  • the scanner executes a color determination function that automatically determines whether the read image is a multi-color image or a mono-color image by software or hardware, and image data corresponding to the determination result Generate
  • the system automatically generates appropriate image data and provides the generated image data to the user, without the user performing reading setting according to the color of the image of the document.
  • the gamma correction process different correction processes are executed according to the characteristics of the output image, and for example, depending on whether the output image is a multi-color image or a monochrome image, Corresponding correction processing is performed. For this reason, generally, when the color determination process is performed together with the gamma correction process, the gamma correction process corresponding to the color of the determined image is performed by executing the color determination process before the gamma correction process.
  • the scanner In the image reading system, in order to provide the user with a high quality image without increasing the transfer time of the image data, the scanner performs gamma correction processing on the image data before transmitting the generated image data to the PC. And reduce the number of gradations.
  • the scanner In order to automatically determine the characteristics of the image (for example, the color of the image) in the image reading system and provide the user with image data subjected to gamma correction processing according to the determination result, the scanner Before performing the correction process, it is necessary to determine the characteristics of the read image.
  • the present invention has been made in view of the above-described problems, and in an image reading system, a technique that enables improving the quality of an image by gamma correction while reducing the processing executed in an image reading apparatus. It is intended to be provided.
  • An image reading system is an image reading system including an image reading apparatus and an information processing apparatus that is connectable to the image reading apparatus and acquires image data from the image reading apparatus.
  • the reading device reads the image of the document and generates image data
  • the first correction device performs gamma correction with the first correction characteristic on the image data generated by the reading device
  • transmitting means for transmitting the image data corrected by the correction means to the information processing apparatus
  • the information processing apparatus receives the image data transmitted by the transmission means, and then the characteristic of the image indicated by the received image data is received.
  • the determination means 2 determines that the characteristic of the image does not correspond to the first correction characteristic, the received image data is subjected to gamma correction by the inverse characteristic of the first correction characteristic, and the characteristic of the image
  • second correction means for performing gamma correction with a second correction characteristic corresponding to.
  • FIG. 7 is a view showing an example of a graph showing changes in values of pixel data when gamma correction processing is performed on each piece of pixel data included in image data.
  • FIG. 7 is a view showing an example of a graph showing changes in values of pixel data when gamma correction processing is performed on each piece of pixel data included in image data.
  • FIG. 7 is a view showing an example of a graph showing changes in values of pixel data when gamma correction processing is performed on each piece of pixel data included in image data.
  • FIG. 7 is a view showing an example of a graph showing changes in values of pixel data when gamma correction processing is performed on each piece of pixel data included in image data.
  • FIG. 1 is a block diagram showing a configuration example of a scanner 200 according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing a software configuration in an image reading system 500 including a PC 400 and a scanner 200 according to an embodiment of the present invention.
  • FIG. 6 is a view showing an example of a user interface for specifying a color mode. 6 is a flowchart showing the procedure of image reading processing in the case of the mono color mode in the image reading system 500 according to the embodiment of the present invention.
  • FIG. 6 is a flowchart showing the procedure of image reading processing in the case of the automatic determination mode in the image reading system 500 according to the embodiment of the present invention.
  • FIG. 8 is a cross-sectional view showing the configuration of a scanner in an image processing system according to another embodiment of the present invention. The electrical block diagram of the scanner in the image processing system which concerns on other embodiment of this invention.
  • FIG. 8 is a block diagram of an application, a scanner driver, and a scanner according to another embodiment of the present invention.
  • 12 is a flowchart from loading of image data from a document to storage / display according to another embodiment of the present invention. The figure regarding the brightness correction process which concerns on other embodiment of this invention. The figure regarding the brightness correction process which concerns on other embodiment of this invention.
  • FIG. 8 is a diagram showing a one-dimensional array for storing position information of an object and a shadow obtained by enlarging pixels of image data according to another embodiment of the present invention.
  • 10 is a flowchart of document size detection according to another embodiment of the present invention.
  • FIG. 7 is a diagram showing a one-dimensional array in which shadow position information is stored according to another embodiment of the present invention.
  • 10 is a flowchart of a method of determining whether to perform image detection processing according to another embodiment of the present invention.
  • 11 is a flowchart from document reading to storage / display in the case where brightness settings set by the user according to another embodiment of the present invention are special.
  • the flowchart in the case of the correction process which the setting of the brightness which concerns on other embodiment of this invention reverses brightness.
  • a system including a scanner and a PC connectable to the scanner is assumed as an image reading system.
  • the scanner reads an image from a document and generates corresponding image data.
  • the PC acquires the image data from the scanner.
  • the scanner and the PC may be connected via a serial interface or parallel interface, or may be connected by wire or wireless via a network such as a LAN.
  • the scanner 200 feeds originals one by one from the original bundle D placed on the tray 210 and conveys the original on the conveyance path.
  • the scanner 200 includes a pickup roller 202, a paper feed roller 203, a separation roller 204, and a conveyance roller 208 along the conveyance path as a roller for conveying an original.
  • the scanner 200 also includes a line image sensor 205 and a white plate 207 provided at a position facing the line image sensor 205 across the conveyance path along the conveyance path.
  • the pickup roller 202 picks up a document from the document bundle D placed on the tray 210.
  • the document bundle D placed on the tray 210 is detected by the document detection sensor 209.
  • the original picked up from the tray 210 is separated into originals one by one by the separation roller 204, and the separated original is fed into the apparatus (conveyance path) by the paper feed roller 203.
  • the document fed into the apparatus is finally conveyed on the conveyance path to the discharge port by the four conveyance rollers 208 shown in FIG. 2 and is discharged to the outside of the apparatus.
  • the document fed to the conveyance path is conveyed by the conveyance roller 208 and detected by the registration sensor 206.
  • the scanner 200 conveys the document and reads an image by the line image sensor 205 based on the timing at which the document is detected by the registration sensor 206.
  • the line image sensor 205 reads an image formed on the surface of the document to be conveyed, and outputs a signal corresponding to the image. Before the scanner 200 starts reading an image, the line image sensor 205 reads the white plate 207 to generate correction data to be used for shading correction. The generated correction data is generated for each pixel along the main scanning direction (direction orthogonal to the document conveyance direction) of the line image sensor 205, and stored in a memory or the like.
  • a document is detected by the registration sensor 206 and is then read by the line image sensor 205 on the surface while being conveyed on the conveyance path.
  • the line image sensor 205 reads an image formed on the surface of the document along the main scanning direction, and outputs a signal corresponding to the read image.
  • shading correction using the correction data described above is performed on the output signal. After the image is read, the original is discharged to the outside of the apparatus.
  • FIG. 2 shows a sheet feed type scanner 200 as an example of the image reading apparatus according to the present invention, for example, a flatbed type scanner may be used as the image reading apparatus.
  • the scanner 200 is connected to an external device such as a PC via an external interface (I / F) unit 302 and a signal cable 303.
  • I / F external interface
  • the signal output from the line image sensor 205 in response to the reading of the image is input to the A / D converter 304.
  • the A / D conversion unit 304 performs analog signal processing such as amplification and black level clamp on the output signal of the line image sensor 205, and then converts the obtained signal into digital data quantized by a predetermined number of bits. Convert.
  • the A / D converter 304 generates image data corresponding to the image of the document.
  • the image data output from the A / D conversion unit 304 is input to the image processing unit 305.
  • An image processing unit 305 controls the line image sensor 205, the A / D conversion unit 304, and the like, and performs various image processing (shading correction, gamma correction, etc.) on the image data output from the A / D conversion unit 304.
  • the image memory 306 is a storage device in which the image data input to the image processing unit 305 is temporarily stored. In addition, the image memory 306 may store the correction data for the above-described shading correction.
  • the CPU 307 corresponds to a control unit that controls the entire scanner.
  • the image processing unit 305 and the CPU 307 are connected via a bus 308.
  • the CPU 307 can access the image memory 306 via the image processing unit 305.
  • the driving unit 309 is a motor for driving a roller or the like for conveying a document, and is driven by the motor driver 310 in accordance with an instruction from the CPU 307.
  • a CPU 401 controls the overall operation of the PC 400. Further, the CPU 401 reads out a control program stored in the ROM 402, and develops and executes the control program in the RAM 403 to execute various controls.
  • the RAM 403 is used as a temporary storage area such as a main memory of the CPU 401 and a work area.
  • the HDD 406 stores various programs including image data and application software (application) described later.
  • the display unit 404 includes a display for displaying an operation screen or the like according to an application.
  • the input unit 405 includes various input devices such as a keyboard, a mouse, and a touch panel disposed on the display of the display unit 404.
  • An external I / F unit 407 is an interface for connecting the PC 400 and an external device.
  • the scanner 200 is connected to the external I / F unit 407 via the signal cable 303.
  • An interface between the PC 400 and the scanner 200 may be any interface such as USB, SCSI, Bluetooth (registered trademark), whether wired or wireless.
  • SCSI is used as an interface, and for the signal cable 303, a cable compatible with SCSI is used.
  • the PC 400 displays application software (application 501) for displaying an image based on image data on the PC 400 and storing the image data, and scanner control software (scanner driver 502) for controlling the scanner 200 from the PC 400.
  • application software application 501 for displaying an image based on image data on the PC 400 and storing the image data
  • scanner control software scanner driver 502 for controlling the scanner 200 from the PC 400.
  • the installed application 501 and the scanner driver 502 are stored in the HDD 406 or the like.
  • the CPU 401 reads the software stored in the HDD 406 or the like to the RAM 403 and executes the software, whereby the functions of the software described later are realized on the PC 400.
  • the application 501 and the scanner driver 502 communicate according to a predetermined protocol.
  • the application 501 and the scanner driver 502 communicate based on a protocol defined by the Twain standard.
  • the protocol may be a protocol defined by a standard such as ISIS or WIA other than Twain.
  • the scanner driver 502 and the scanner 200 communicate based on SCSI.
  • An application 501 activated by the PC 400 communicates with the scanner 200 via the scanner driver 502.
  • the application 501 transmits an image reading instruction to the scanner 200 via the scanner driver 502, for example, in accordance with a user instruction input via the input unit 405.
  • the application 501 also receives image data generated by the reading process from the scanner 200 via the scanner driver 502.
  • the scanner driver 502 may perform various types of image processing such as processing of determining image characteristics (color, brightness, etc.), gamma correction processing, and the like on image data received from the scanner 200 as described later. It is possible.
  • the scanner driver 502 transmits the image data after image processing to the application 501.
  • the application 501 displays (outputs) the image data received from the scanner driver 502 on the display unit 404, for example, or stores the image data in the HDD 406.
  • the scanner driver 502 on the PC 400 displays on the display unit 404 a user interface capable of setting a color mode when the scanner 200 reads an image.
  • FIG. 6 shows an example (601) of a user interface displayed on the display unit 404 by the scanner driver 502 in the PC 400.
  • the user interface 601 includes a check box 611 capable of selecting a color mode, a button 612 for instructing start of execution of reading processing, and a button 613 for instructing end of setting of the color mode.
  • the user operates the check box 611 and the buttons 612 and 613 of the user interface 601 displayed on the display unit 404 using the input unit 405 to input a reading setting and the like.
  • any of the three color modes can be designated as a color mode for reading by the scanner 200 by selecting one of the three items included in the check box 611 of the user interface 601.
  • any of multi color mode (“color”), mono color mode (“gray”), and automatic determination mode (“automatic color determination”) can be selected.
  • the multicolor mode is a mode for generating image data of a multicolor (multicolor) image.
  • the monocolor mode is a mode for generating image data of a monocolor (monochrome) image.
  • the automatic determination mode is a mode for automatically determining the color of the image read by the scanner 200 (line image sensor 205) and generating image data according to the determination result.
  • the button 612 the color mode set using the user interface 601 is notified to the scanner 200.
  • the image reading setting may be specified not only on the PC 400 but also via an input device such as a touch panel provided on the scanner 200.
  • the reading setting may include not only the color mode but also the setting regarding the resolution when reading an image, the reading area, and the like.
  • the PC 400 may be capable of displaying on the display unit 404 a user interface capable of operating the input unit 405 and designating the reading settings thereof.
  • the mono color mode is, for example, a mode for generating image data of a black mono color image (that is, a monochrome image).
  • the monochrome image corresponds to a gray image of a predetermined number of gradations.
  • a color mode not only a multi-color image and a mono-color image, for example, a mode for generating image data of a monochrome binary image may be designated.
  • the scanner 200 When the scanner 200 receives the reading setting and the reading start instruction (reading start instruction) from the PC 400, the scanner 200 starts reading an image according to the received reading setting (color mode).
  • the image processing unit 305 of the scanner 200 switches and uses the correction characteristic (first correction characteristic) used for gamma correction in accordance with the color mode designated as the reading condition.
  • the image processing unit 305 When the multi-color mode or the mono-color mode is designated as the color mode, the image processing unit 305 performs gamma correction using correction characteristics corresponding to each mode on the image data generated by reading the image. . That is, the image processing unit 305 performs gamma correction with a correction characteristic corresponding to a color image in the multi-color mode, and performs gamma correction with a correction characteristic corresponding to a mono-color image in the mono color mode.
  • the image processing unit 305 when the automatic determination mode is designated as the color mode, the image processing unit 305 does not determine the color of the read image on the scanner 200 side, but performs gamma correction using a correction characteristic corresponding to the multicolor image. Do the same. In the following, the case where the multi-color mode or the mono-color mode is designated as the color mode and the case where the automatic determination mode is designated will be described with reference to FIGS. 7 and 8 respectively.
  • the user sets an original in the scanner 200 and causes the display unit 404 to display a user interface 601 by a scanner driver (hereinafter simply referred to as a “driver”) 502 on the PC 400 via the application 501.
  • a scanner driver hereinafter simply referred to as a “driver”
  • the application 501 transmits an image reading start instruction to the scanner driver 502 in step S101.
  • the scanner driver 502 transmits the designated reading setting to the scanner 200 in step S102, and then transmits the image reading start instruction to the scanner 200 in step S103.
  • step S104 conveyance of the document is started, and the image formed on the surface of the document is transmitted according to the reading setting transmitted earlier.
  • the line image sensor 205 and the A / D conversion unit 304 of the scanner 200 read the image of the document to be conveyed, and generate image data of a monocolor image represented by 10-bit gradation (1024 gradations). Do. It is assumed that the number of bits corresponding to the number of gradations is determined in advance by the scanner 200.
  • the line image sensor 205 and the A / D conversion unit 304 function as a reading unit.
  • step S105 the image processing unit 305 of the scanner 200 performs 10-bit gradation gamma correction on the image data generated in step S104.
  • gamma correction is performed with the correction characteristic corresponding to the mono-color image.
  • the correction characteristic corresponds to a first correction characteristic
  • the image processing unit 305 functions as a first correction unit that performs gamma correction using the first correction characteristic.
  • step S106 the image processing unit 305 converts the gamma-corrected image data into image data with a reduced number of gradations.
  • the image processing unit 305 converts the image data from 10-bit gradation to 8-bit gradation.
  • step S107 the image processing unit 305 subjects the converted image data to compression processing such as JPEG.
  • JPEG Joint Photographic Experts Group
  • the scanner driver 502 of the PC 400 decompresses the received image data in step S109, and transmits the decompressed image data to the application 501 in step S110.
  • the application 501 outputs image data by displaying an image based on the received image data on the display unit 404.
  • image data of the multi-color image is generated in step S104, and gamma correction is performed in step S105 by the correction characteristic corresponding to the multi-color image. .
  • the transfer time of image data from the scanner 200 to the PC 400 without deteriorating the quality of the image data of the read image also in the automatic determination mode.
  • the scanner 200 performs gamma correction of a predetermined correction characteristic (first correction characteristic) on the image data without determining the color of the read image.
  • first correction characteristic a correction characteristic corresponding to a color image is used as a first correction characteristic.
  • color automatic determination is performed by determining color as a characteristic indicated by image data received from the scanner 200. Furthermore, the PC 400 determines whether the color (characteristics) of the determined image corresponds to the correction characteristic of the gamma correction applied on the scanner 200 side, and if it does not correspond to that of the determined image. The gamma correction with the correction characteristic corresponding to the color is again performed on the image data. As described above, even when color automatic determination is performed by the PC 400 instead of the scanner 200, appropriate gamma correction according to the determination result is applied to the image data. As a result, it is possible to improve the quality of the image based on the read image data by gamma correction while reducing the processing executed in the scanner 200.
  • FIGS. 1A to 1C are examples of graphs showing changes in values of pixel data (RGB data values or lightness) when gamma correction processing is performed on each piece of pixel data included in image data.
  • the vertical axis represents the value of pixel data before correction
  • the horizontal axis represents the value of pixel data after correction.
  • FIGS. 1A and 1B show the case where gamma correction with correction characteristics corresponding to a multi-color image and a mono-color image is performed on image data that has not been gamma-corrected. Further, FIG.
  • FIGS. 1B and 1C show a case where gamma correction is performed twice on the image data by performing gamma correction using a correction characteristic corresponding to a mono-color image after performing gamma correction using a correction characteristic corresponding to a multi-color image. Is shown.
  • the PC 400 executes the following processing in order to prevent the desired image quality from being obtained as described above.
  • the PC 400 performs gamma processing according to the inverse characteristic of the correction characteristic of the first gamma correction applied in the scanner 200 to the image data before performing the second gamma correction corresponding to the color (characteristic) of the determined image. Perform correction (ie, inverse gamma correction).
  • the image data is returned to the state before the application of the first gamma correction, and then the second gamma correction is performed on the image data.
  • the PC 400 it is possible to improve the quality of the image by gamma correction, as in the case where the second gamma correction is performed on the image data for which gamma correction is not performed.
  • the user sets an original on the scanner 200, and causes the display unit 404 to display the user interface 601 by the scanner driver 502 on the PC 400 via the application 501.
  • the application 501 transmits an image reading start instruction to the scanner driver 502 in step S201.
  • the scanner driver 502 transmits the designated reading setting to the scanner 200 in step S202, and then transmits the image reading start instruction to the scanner 200 in step S203.
  • step S204 conveyance of the document is started, and the image formed on the surface of the document is transmitted according to the reading setting sent earlier.
  • the processing corresponding to the multi-color image should be performed in the scanner 200 in advance.
  • the line image sensor 205 and the A / D conversion unit 304 of the scanner 200 read the image of the document to be conveyed, and an image of a multicolor image expressed in 10-bit gradation (1024 gradations). Generate data.
  • step S205 the image processing unit 305 of the scanner 200 performs 10-bit gradation gamma correction on the image data generated in step S204.
  • gamma correction is performed using a correction characteristic (first correction characteristic) corresponding to the multi-color image.
  • step S206 the image processing unit 305 converts the gamma-corrected image data into image data with a reduced number of gradations.
  • the image processing unit 305 converts the image data from 10-bit gradation to 8-bit gradation.
  • step S207 the image processing unit 305 subjects the converted image data to compression processing such as JPEG.
  • step S208 the scanner 200 transmits the converted and compressed image data to the scanner driver 502 of the PC 400 via the external I / F unit 302.
  • the scanner driver 502 of the PC 400 performs decompression processing on the received image data in step S209.
  • step S210 the scanner driver 502 determines the color of the image as the characteristic of the image indicated by the image data after the extension processing in accordance with the designation of the automatic determination mode.
  • color automatic determination is performed, for example, as follows.
  • the scanner driver 502 first calculates saturation for some or all of the pixels included in the received image data.
  • the scanner driver 502 further determines whether the image based on the received image data is a multi-color image or a mono-color image based on the total number of pixels among those pixels for which the calculated saturation is equal to or greater than a predetermined threshold. It may be determined which of the two.
  • the scanner driver 502 determines that the image is a multi-color image if the total number of pixels equal to or greater than the predetermined threshold is equal to or more than a predetermined amount, and if less than the predetermined amount, the image is a mono-color image It may be determined that
  • step S210 the scanner driver 502 further corrects the color of the image according to the first gamma correction performed by the scanner 200 according to the determination result of the color (characteristic) of the image based on the received image data. It is determined whether or not it corresponds to Here, if the scanner driver 502 determines that the color of the image corresponds to the first gamma correction, the process proceeds to step S 213, and the received and expanded image data is transmitted to the application 501. On the other hand, when it is determined that the color of the image does not correspond to the first gamma correction, the scanner driver 502 executes the processing of steps S211 and S212 surrounded by a broken line in FIG.
  • the scanner driver 502 performs second gamma correction on the received image data using the correction characteristic (second correction characteristic) corresponding to the color of the image.
  • the scanner driver 502 (CPU 401) functions as a first determination unit and a second determination unit.
  • the scanner driver 502 performs inverse gamma correction on the received 8-bit tone image data.
  • the scanner driver 502 applies gamma correction based on the inverse characteristic of the correction characteristic of the first gamma correction (first correction characteristic corresponding to a multicolor image) applied by the scanner 200 to each pixel of the image data.
  • the gamma correction function of ⁇ 2.0 is used in the first gamma correction
  • step S211 the scanner driver 502 performs second gamma correction on the received image data with a correction characteristic corresponding to the color (characteristic) of the image determined in step S210.
  • the scanner driver 502 executes each process only when the automatic determination mode is designated for the determination process in step S210 and the gamma correction process in steps S211 and S212.
  • the scanner driver 502 (CPU 401) functions as a second correction unit.
  • step S213 the scanner driver 502 transmits the image data subjected to the second gamma correction in step S211 to the application 501.
  • the application 501 outputs the image data by displaying an image based on the received image data on the display unit 404 in step S214.
  • the scanner 200 does not determine the color of the read image, particularly when the automatic determination mode is designated as a color mode that is an example of the image reading setting.
  • the gamma correction with the first correction characteristic is applied to the image data of the image, and the obtained image data is transmitted to the PC 400.
  • the PC 400 determines the color of the image indicated by the received image data. When the determined color does not correspond to the first correction characteristic, the PC 400 performs gamma correction on the received image data by the inverse characteristic of the first correction characteristic, and then performs the second corresponding to the determined color.
  • the process of automatically determining the color (characteristic) of the read image is executed in the PC 400 instead of the scanner 200.
  • the process of automatically determining the color (characteristic) of the read image is executed in the PC 400 instead of the scanner 200.
  • it is possible to improve the quality of the image by applying gamma correction corresponding to the color of the read image to the image data of the image while reducing the processing performed in the scanner 200.
  • the number of gradations of the image data may be reduced as in the above-described embodiment.
  • the scanner 200 before transferring the image data from the scanner 200 to the PC 400, the scanner 200 reduces the number of bits corresponding to the number of gradations of the image data from 10 bits to 8 bits.
  • any number of bits for example, 12 bits or 16 bits may be used as the number of bits corresponding to the number of gradations.
  • the scanner driver 502 of the PC 400 determines the color of the image which is one of the characteristics of the image from the image data generated by the reading process by the scanner 200 in step S210. Is determined.
  • the characteristic of the image determined in the determination process is not limited to the color of the image, and may be, for example, the brightness of the image.
  • the scanner driver 502 performs gamma correction using the correction characteristic corresponding to the brightness of the image determined in step S210.
  • the first correction characteristic in the first gamma correction in step S205 and the first correction characteristic in the first gamma correction in step S212 are correction characteristics corresponding to the brightness of different images. Also in this case, the same effect as that of the above-described embodiment can be obtained.
  • the present invention is also realized by executing the following processing. That is, software (program) for realizing the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU or the like) of the system or apparatus reads the program. It is a process to execute.
  • the inverse gamma correction in which pixel data of one pixel after correction is determined based on pixel data of one pixel before correction is used.
  • the inverse gamma correction in the present invention may be correction processing of determining pixel data of one pixel after correction based on pixel data of a plurality of pixels before correction. That is, for example, inverse gamma correction performed on a certain pixel (referred to as a pixel A) is performed by using the inverse characteristic of the correction characteristic of the first gamma correction with respect to pixel data of the pixel A and pixels adjacent to the pixel A. The correction may be performed to calculate an average value for pixel data of each pixel obtained by the correction, and to use the average value as pixel data of the pixel A after inverse gamma correction.
  • an image processing system for performing image brightness correction such as gamma correction on image data read from a sheet or such an image processing system
  • the present invention is also effective when image processing is further performed on the image data.
  • an apparatus such as a copying machine, a scanner, a fax machine, and a printer
  • another embodiment of the present invention, which can be applied when performing image processing in addition to image brightness correction will be described. It will be described in detail.
  • various image processing can be performed on image data read from a document so that a read image desired by the user can be obtained (see Japanese Patent Laid-Open No. 1-317075).
  • brightness correction such as gamma correction
  • subsequent image processing may not be properly performed.
  • the document size detection when detecting the document size by detecting the boundary between the document area included in the image data after brightness correction and the background area, if the brightness correction condition is too bright, the document area and its background In some cases, the boundary with the area can not be determined, and document size detection can not be performed with high accuracy.
  • image processing other than the document size detection may not be appropriately performed depending on the condition of the brightness correction.
  • the present invention is also realized as the following aspect in order to perform appropriate image processing on the read image data when performing brightness correction such as gamma correction on the read image data. it can.
  • an image receiving unit for receiving an image read from a sheet, a brightness setting unit for setting the brightness of the image, and a plurality of corrections for the brightness of the image Brightness correction means, image processing means for performing image processing on the image based on a predetermined setting condition, and the plurality of brightness based on at least one of the setting condition of the image processing and the brightness setting
  • An image processing system comprising: control means for controlling the correction means.
  • the image processing system further includes an image reading apparatus for reading an image from a sheet, and an information processing apparatus connected to the image reading apparatus to control the image reading apparatus.
  • the brightness correction means includes at least one first brightness correction means that is provided on the image reading device side and performs first brightness correction on an image read by the image reading device; And at least one second brightness correction means for performing a second brightness correction on the image received via the image reception means, the second brightness correction means comprising the image reception means
  • the second brightness correction may be performed on the image received by the first brightness correction unit and the image subjected to the image processing by the compression / decompression or the image processing unit.
  • control means is at least one of the plurality of brightness correction means selected based on at least one of the setting condition of the image processing and the brightness setting.
  • the means may perform control to apply brightness correction to the image accepted by the image accepting means.
  • control means may adjust the correction ratio of each of the plurality of brightness correction processing means based on at least one of the setting of the image processing and the setting of the brightness.
  • the image processing system further includes an image processing availability determination unit that determines whether or not the image processing by the image processing unit can be performed based on the correction ratio by the plurality of brightness correction units. May be
  • control means may readjust the correction ratio by the plurality of brightness correction means based on the result obtained by the image processing possibility determination means.
  • a first brightness correction unit that performs a first brightness correction on image data read from a sheet
  • a second brightness correction that performs a second brightness correction on image data read from a sheet
  • Brightness correction means first brightness conditions for brightness correction processing by the first brightness correction means, or second brightness conditions for brightness correction processing by the second brightness correction means
  • the image processing apparatus comprises: possible brightness correction condition setting means; and image processing means for performing image processing on image data read from a sheet, wherein the first brightness condition is set in the brightness correction condition setting means The image processing is performed after the first brightness correction is performed on the image data by the first brightness correction unit, and when the second brightness condition is set in the brightness correction condition setting unit,
  • the image processing system being characterized in that to perform said second brightness correction on the image data by the second brightness correction means after the image processing is also provided.
  • an image processing system comprising an image reading apparatus for reading an image from a sheet and an information processing apparatus for controlling the image reading apparatus, wherein the image processing apparatus is provided First brightness correction means for performing a first brightness correction on the image data read from the sheet, and the information processing apparatus being provided with the second brightness correction on the image data received from the image reading apparatus A second brightness correction unit to perform, a first brightness condition for brightness correction processing by the first brightness correction unit, or a second brightness for brightness correction processing by the second brightness correction unit A brightness correction condition setting means capable of setting conditions, and an image processing means for performing image processing on image data read from a sheet, wherein the first brightness condition is set in the brightness correction condition setting means When set, the image processing is performed after the first brightness correction is performed on the image data by the first brightness correction unit, and the second brightness condition is set in the brightness correction condition setting unit. Then, the second brightness correction means performs the second brightness correction on the image data after the image processing is performed.
  • the brightness correction process on the image data may be a process of adjusting the value of each component of RGB of the image data by uniformly increasing or decreasing.
  • the image processing on the image data is processing for detecting a sheet existing area or an outer shape based on a boundary between a sheet area included in the image data and a background area thereof. It is also good.
  • the image processing on the image data may be processing of detecting an inclination of a sheet based on a boundary between a sheet area included in the image data and a background area thereof.
  • the image processing includes at least one processing of character recognition processing, image abnormality detection processing, color misregistration determination processing, tint determination processing, bar code detection processing, or a combination of each processing. May be included.
  • the image processing by the image processing unit is performed based on the brightness correction request receiving unit that receives the brightness correction request from the user and the brightness correction request.
  • the apparatus further comprises a pre-image processing determination means for determining in advance whether or not it is possible, and a control means for controlling the order of the subsequent brightness correction processing and the image processing based on the determination result by the pre-image processing determination means. It is also good.
  • the brightness correction condition setting unit is configured to set the brightness correction request from the user according to the first brightness condition or the first brightness condition based on the determination result by the pre-image processing determination unit.
  • the brightness correction condition may be set as the brightness condition.
  • the image processing system may further include third brightness correction means for respectively performing brightness correction with different correction conditions before and after the image processing.
  • the image with respect to the image is corrected when the brightness of the image is corrected by at least one of the plurality of brightness correction means.
  • An image brightness correction processing method is provided, wherein the plurality of brightness correction means and the order of the image processing are controlled based on at least one of processing setting conditions and brightness settings. .
  • an image processing method comprising performing brightness correction processing based on the second brightness condition after performing the image processing.
  • a computer performs predetermined image processing and brightness correction processing on image data read from a sheet based on a first brightness condition or a second brightness condition.
  • the brightness correction based on the first brightness condition is performed on the image data after the first brightness condition
  • the image processing is performed after the second brightness condition.
  • An image processing program is provided, which causes the computer to execute brightness correction processing based on the second brightness condition after performing the image processing on the image data.
  • the image processing suitable for the read image data And the desired image data can be obtained.
  • FIG. 9 is a cross-sectional view showing a configuration of an image reading apparatus applicable to an image processing system according to another embodiment of the present invention.
  • An image reading apparatus (hereinafter, a scanner 1101) is a sheet feed scanner, and a pick-up roller 1102 picks up a document from the upper surface side of a bundle of documents D, and a document picked up by the pickup roller 1102 is fed into the apparatus.
  • a reading unit 1108 is fixed to an upper frame 1101 a of the scanner 1101.
  • the reading unit 1108 includes a line image sensor 1120 for reading an original and an image of an opposing member to be described later, and a light source 1121 for emitting light to the original to be conveyed.
  • an opposing member (white member) 1109 serving as a color reference member disposed at a position facing the reading unit 1108, and a plate disposed between the opposing member 1109 and the reading unit 1108 Glass 1106 is provided.
  • the scanner 1101 that has received the image reading command starts reading an image.
  • the line image sensor 1120 reads the white opposing member 1109 to generate correction data for correcting the uneven sensitivity of the line image sensor 1120 and the uneven light intensity of illumination (
  • correction of uneven sensitivity and uneven light amount is referred to as shading correction).
  • the generated correction data is stored for each pixel. Thereafter, as described above, the document is taken into the scanner 1101 from the upper surface side of the document bundle D by the pickup roller 1102 and the feeding roller 1103, and separated by the separating roller 1104 one by one.
  • the separated document is conveyed along the conveyance path in the sub-scanning direction (original conveyance direction) of the line image sensor 1120 along the conveyance path while being nipped by the registration roller pair 1105 and the conveyance roller pair 1107.
  • the image formed on the upper surface (front side) is read by the reading unit 1108 along the main scanning direction (direction orthogonal to the document conveyance direction).
  • the scanner 1101 for reading a single-sided image of a document is exemplified.
  • the present invention is of course not limited thereto, and may be a scanner for reading a double-sided image of a document.
  • the image data generated from the output signal of the line image sensor 1120 is subjected to shading correction with reference to the data for correction described above.
  • the document is conveyed while being nipped by the conveyance roller pair 1107 and discharged to the outside of the apparatus.
  • FIG. 10 is a block diagram showing a configuration of an electric circuit of the scanner 1101.
  • image data is transferred from the reading unit 1108 to the A / D converter 1204.
  • the A / D converter 1204 subjects the received image data to analog processing such as amplification and black level clamp, converts the image data into digital data, and transfers the digital data to the image processor 1205.
  • An image processing unit 1205 performs control of the line image sensor 1120 and the A / D converter 1204, and various image processing (shading correction and the like) on image data generated by digitizing an output signal of the line image sensor 1120.
  • processing for converting into digital data for example, 10-bit depth (1024 gradations, first gradation) image data or 8-bit depth (256 gradations, second floor) according to an instruction of the image processing unit 1205 Key) Generate image data.
  • the image processing unit 1205 is connected to an image memory 1206 for storing generated image data and a CPU 1207 serving as a control unit for controlling the image reading apparatus. Further, the image processing unit 1205 and the CPU 1207 are connected via a bus 1208. Therefore, the CPU 1207 is configured to be able to access the image memory 1206 via the image processing unit 1205.
  • a driving unit 1209 which conveys an original operates by a motor driver 1210 which has received an instruction from the CPU 1207.
  • the image processing unit 1205 described above is also connected to the interface unit 1202, and the image data subjected to image processing is an external information processing apparatus such as a personal computer connected to the image reading unit 1108 through the signal cable 1203. It will be transferred to the host device.
  • an external information processing apparatus such as a personal computer connected to the image reading unit 1108 through the signal cable 1203. It will be transferred to the host device.
  • FIG. 11 schematically shows the software configuration (information transmission path) of the image processing system according to another embodiment of the present invention, and specifically shows the configuration of an application, a scanner driver and a scanner on the PC 1300.
  • FIG. 11 shows the application 1301 and the scanner driver 1302 are described with separate software configurations in FIG. 11, the application 1301 and the scanner driver 1302 can be realized as a single software configuration in which the application and the scanner driver are functionally integrated or a dedicated application.
  • the user installs the application 1301 and the scanner driver 1302 in advance in the PC in order to control the scanner 1101 described above.
  • the installed application 1301 communicates with the scanner 1101 via the scanner driver 1302.
  • the application 1301 communicates with the scanner driver 1302 and the scanner driver 1302 communicates with the scanner 1101 according to a predetermined protocol.
  • the application 1301 and the scanner driver 1302 communicate with each other according to a protocol defined by the standard TWAIN, and the scanner driver 1302 communicates with the scanner 1101 according to the protocol defined according to the SCSI standard. I did it.
  • the protocol is not limited to this.
  • the communication standard between the application 1301 and the scanner driver 1302 may be ISIS or WIA
  • the communication standard between the scanner driver 1302 and the scanner 1101 is USB or It may be IEEE802.
  • the image transfer time between the scanner 1101 and the scanner driver 1302 becomes shorter as the amount of transferred data decreases.
  • the bit depth of the image that crosses between the scanner 1101 and the scanner driver 1302 is 8 bits based on the transfer time and the image quality (for color images, R, G, B luminance information is 8 bits each, and for gray images, luminance information is 8 bits ).
  • the scanner driver 1302 detects document boundaries from the received image data, and performs document size detection that calculates the document width, length, and inclination from the image data. In the scanner 1101, document size detection is performed not in the scanner 1101 but in the scanner driver 1302 in order to prevent high cost. Thereafter, the scanner driver 1302 transfers the image data to the application 1301, and the application 1301 displays and stores the received image data.
  • the gamma correction or the like described in the above embodiment is performed on each pixel of the read image.
  • Brightness correction processing can be performed.
  • the scanned image is captured by the scanner as image data having a gradation higher than that of the image data output from the scanner (for example, 10 bits to 16 bits). Thereafter, the data is converted into 8-bit (256 gradation) data and transferred to the PC 1300.
  • the brightness correction processing is performed in the scanner 1101 since the brightness correction processing can be performed on image data with many gradations, gradation can be maintained, and a high quality image can be obtained.
  • the brightness correction processing is performed in the PC 1300, the transferred data is converted into 8 bits, so that the gradation may be lowered, and a high quality image may not be obtained.
  • brightness correction processing may be performed in the scanner 1101 in order to provide a high quality image to the user without increasing the time required for image transfer between the scanner 1101 and the scanner driver 1302.
  • the brightness of the image desired by the user is special (extremely, bright condition, dark condition etc.)
  • the boundary between the document and its background can be distinguished.
  • the document size may not be detected.
  • the present invention is devised so as not to affect the subsequent image processing due to the above-described brightness setting, as described below.
  • another aspect of the present invention performs predetermined image processing and brightness correction processing on the image data read from the sheet based on the first brightness condition or the second brightness condition.
  • the image data is subjected to brightness correction based on the first brightness condition and then the image processing is performed, while in the second brightness condition, the image processing is performed on the image data.
  • the second embodiment is characterized in that brightness correction processing is performed based on the second brightness condition.
  • the first brightness condition referred to here is a condition under which the accuracy of the image processing to be subsequently performed does not occur even if the brightness correction is performed under the condition.
  • the second brightness condition is a condition brighter than the first brightness condition or dark condition, that is, a condition different from the first brightness condition, and the image data after the brightness correction is performed under the condition Performing image processing is a condition under which the accuracy of the image processing may be reduced.
  • the first brightness condition or the second brightness condition may be distinguished between the condition that affects the subsequent image processing (for example, document size detection) and the condition that hardly affects it when the brightness correction is performed.
  • the first brightness correction condition is set so that the brightness correction processing is not performed by the first brightness correction means
  • the second The brightness condition can be set to perform the brightness correction process with the brightness set by the user by the second brightness correction means.
  • document size detection which is an example of image processing
  • document size detection there is a method of identifying the boundary between a document and its background, the shadow of the document from an image, and specifying the outer shape of the document.
  • the shadow of the document may not be distinguishable from the image. Therefore, in the case where brightness correction is performed according to the condition that the document size detection is affected (the size error detection is performed) as described above, the brightness correction is performed according to the condition after the document size detection is performed. By doing this, it is possible to secure the accuracy of the document size detection.
  • the brightness correction means is controlled according to at least one of image processing and brightness setting. That is, in accordance with at least one of the image processing and the brightness setting, it is selectively controlled whether to perform the brightness correction before the image processing or to perform the brightness correction after the image processing.
  • brightness correction can be controlled at an optimal timing according to image processing and brightness setting, so that an image desired by the user can be provided with high accuracy.
  • FIG. 12 shows a flow chart from acquisition of image data from an original to storage and display in the present embodiment.
  • the user sets brightness correction conditions (first brightness condition, second brightness condition) in addition to setting of various document readings in the application 1301, and the document from the application 1301
  • the scanner driver 1302 transmits a read command of That is, in the system of the present embodiment, the CPU of the PC 1300 and the application 1301 executed by the CPU function as brightness correction condition setting means for appropriately setting the brightness condition within a predetermined range.
  • the CPU 1207 of the scanner may function as brightness correction condition setting means.
  • the first brightness condition is set so as to perform the brightness correction processing based on the brightness set in the above. That is, in the present embodiment, the image processing unit 1205 of the scanner 1101 functions as a first brightness correction unit.
  • a program executed by the CPU 1207 and the CPU 1207 of the scanner 1101 may have the same function as the image processing unit 1205 of the present embodiment.
  • the scanner driver 1302 sets the second brightness condition so that the scanner driver 1302 does not perform the brightness correction process. That is, in the present embodiment, the CPU of the PC 1300 and the scanner driver 1302 executed by the CPU function as a second brightness correction unit that performs the brightness correction of the image based on the second brightness condition.
  • the scanner driver 1302 is the second brightness correction unit, all or part of the second brightness correction unit may be functioned by the application 1301.
  • the CPU on the side of the PC 1300 determines that the image detection processing can not be performed by the brightness setting set by the user (“NO” in step S 1402), the brightness of the image processing unit 1205 (first brightness correction unit) in the scanner 1101 Control so as not to perform That is, the CPU on the side of the PC 1300 has a role to determine whether to perform the brightness correction with the scanner 1101 or the brightness correction with the PC 1300 based on the brightness setting condition set by the user and the condition of the image processing. .
  • the scanner 1101 may have a function of determining where to perform such brightness processing.
  • the PC 1300 transmits information to the scanner 1101 that the scanner 1101 (image processing unit 1205) does not perform brightness correction. In this case, the scanner 1101 transmits the read image data (image data not subjected to the brightness correction) to the PC 1300.
  • the scanner driver 1302 transmits the document reading setting set by the user to the scanner 1101, and then transmits a document reading start instruction.
  • the scanner 1101 receives an original reading start instruction from the scanner driver 1302, and starts reading of an original based on the received reading setting and the first and second brightness conditions. (Step S1404)
  • the first brightness correction unit is the image processing unit 1205, and the second brightness correction processing unit is the scanner driver 1302, but the present invention is not limited to these.
  • the first brightness correction means may be at the front of the image detection process
  • the second brightness correction means may be at the rear of the image detection process.
  • the control of the brightness correction unit is performed by the PC 1300.
  • the scanner 1101 may control the brightness correction unit. In that case, it is desirable that the first brightness correction unit, the second brightness correction unit, and the image detection process be incorporated in the scanner 1101.
  • FIG. 13A and 13B are diagrams related to the brightness correction processing in the present embodiment.
  • the brightness of each pixel is adjusted so that the RGB components of the image data, that is, the pixels of R, G, and B have the brightness set by the user.
  • the above-mentioned brightness correction processing is performed in order to output an image of brightness required by the user.
  • F (x) is a brightness correction equation used when performing the brightness correction process.
  • the user can change the brightness correction formula f (x) so as to obtain an image with desired brightness.
  • FIG. 13A adjusts the brightness of the image by applying the correction formula f (x) to the image data for which an overall dark image is output when the brightness correction is not performed. The case is shown.
  • FIG. 13B shows a case where the brightness of the image is adjusted by applying a special correction expression such that the brightness is the reverse of the actual brightness.
  • FIG. 14 is a view showing the reading unit 1108 and its vicinity, and an operation of the document reading unit when reading a document will be described.
  • the light source 1121 is provided along one side surface of the line image sensor 1120, and obliquely irradiates light from the light source 1121 to the document when the document is conveyed.
  • the line image sensor 1120 acquires image data of a document by reading light reflected by the document.
  • a glass 1106 is disposed between the line image sensor 1120 and the facing member 1109.
  • the glass 1106 plays a role of preventing the opposing member 1109 from being scratched or soiled.
  • the glass 1106 has a thickness equivalent to that of the glass 1106 between the document and the opposing member 1109 to block the light emitted from the light source 1121 when the document is conveyed to the rear end, thereby making the shadow portion 1122 It has a role to create.
  • the shadow detection referred to here means that the boundary between the document and its background (in the present embodiment, the opposing member 1109) is a shadow of the document (hereinafter referred to as “document detection”) in detecting the contour (that is, the outer shape) of the document prior to the document size detection. , Also known as shadow).
  • FIG. 15 is a flow chart showing shadow detection used in the document size detection.
  • FIG. 16 is a diagram showing read image data related to shadow detection.
  • FIG. 17 shows a one-dimensional array for storing position information of an object and a shadow obtained by enlarging pixels of image data.
  • the x-axis direction in FIG. 16 is taken as the main scanning direction, and the y-axis direction is taken as the sub-scanning direction.
  • a one-dimensional array shadow for storing shadow position information in the scanner driver 1302 is secured for the x-axis of image data (step S1701). For example, since the image data of six pixels in the x direction is shown in FIG. 17, the length of the one-dimensional array to be secured is six.
  • the lower right pixel coordinate of the image data portion 1708 is (x_max, y_max), and the upper left pixel coordinate is an origin (0, 0).
  • a threshold ⁇ for determining a shadow is set in the scanner driver 1302.
  • the brightness value g (x, y) of each pixel of the image data is compared with ⁇ .
  • the scan starts from the lower right coordinates (x_max, y_max) of the image data in the sub-scanning direction (step S1702), and g (x, y) is compared with ⁇ until coordinates (0, 0) are obtained.
  • -1 is stored in the one-dimensional array shadow (step S1706).
  • the luminance value of the pixel and the threshold value ⁇ are g (x, y) ⁇ ⁇ (step S 1703)
  • the coordinates are determined to be part of the pixels of the shadow portion 1710 of the original 1709, and y
  • the coordinates are stored (step S1707).
  • FIG. 18 is a flowchart relating to document size detection. Also, FIG. 19 shows an original for which size detection is performed. Further, FIG. 20 is a one-dimensional array in which position information of shadows is stored.
  • the line d of the leftmost shadow from the rightmost shadow is calculated from the one-dimensional array in which the position information of the shadows detected by the shadow detection is stored (step S1801).
  • the inclination 1805 of the original is calculated as ⁇ (theta) (step S1802).
  • the height h of the inclination of the document is calculated from the difference between the rightmost shadow and the leftmost shadow.
  • the document width 1806 is calculated from the height h of the inclination of the document and the line d of the shadow (step S1803).
  • the obtained document width 1806 is taken as the lower side of the document.
  • step S1804 the outer frame of the document is detected (step S1804).
  • the CPU 1207 of the scanner 1101 transmits an instruction to start reading an image after t0 seconds.
  • the image reading unit 1108 that has received the command starts reading an image.
  • the time t0 is determined in accordance with the margin.
  • the coordinate a of the document front end is calculated from the document conveyance speed and the time when the document front end passes the registration sensor 1110, and is stored in the scanner driver 1302.
  • the CPU 1207 transmits an instruction to finish the image reading after t1 seconds.
  • the image reading unit 1108 that has received the command ends the image reading after t1 seconds.
  • a margin is taken to read the entire document, and the image reading is finished.
  • the time t1 is determined in accordance with the margin.
  • the coordinate b of the document rear end is calculated from the document conveyance speed and the time when the document rear end passes the registration sensor 1110, and is stored in the scanner driver 1302.
  • the upper side portion 1807 of the original having a length ⁇ parallel to and equal to the original width 1806 including the coordinates a of the front end and the rear end of the original is determined.
  • respective end points of the document lower side portion 1806 and the document upper side portion 1807 are vertically connected, and the left side 1808 of the document and the right side 1809 of the document are detected.
  • FIG. 21 is a flow chart of the determination of the possibility of the document size detection.
  • the input value is x (step S1901), and whether the brightness value after the brightness correction process satisfies f (x + 1) ⁇ f (x) It is determined whether or not it is (step S1902). However, the value of x is 0 ⁇ x ⁇ 1023 (steps S1903 and S1904).
  • the brightness setting is limited to a monotonically increasing one (example: FIG. 13A).
  • the scanner driver 1302 It is set to perform brightness correction processing after detecting the document size (step S1909).
  • the shadow threshold ⁇ set in the scanner driver 1302 in advance is compared with the value ⁇ of the white member 1109 which is the background value (step S1905).
  • the threshold th of the background and the shadow is set in advance in the scanner driver 1302. If f ( ⁇ ) -f ( ⁇ )> th after the brightness correction processing, it is judged that the document size detection is sufficiently possible even after the brightness correction processing (step S1906), and the brightness correction processing in the scanner 1101 (Step S1907). If f ( ⁇ ) ⁇ f ( ⁇ ) ⁇ th, it is determined that the document size can not be detected after the brightness correction processing (step S1908), and the scanner driver 1302 is set to perform the brightness correction processing (step S1909) ).
  • the configuration of the scanner 1101 shown in FIG. 9 is schematic and is not limited to the present embodiment.
  • sheet feed type scanner 1101 is used in this embodiment, a flat bed type scanner may be used.
  • document size detection and the determination method of the possibility of the document size detection are not limited to the method used in the present embodiment.
  • the image detection process is the document size detection process, but the invention is not limited to the document size detection process.
  • barcode detection processing character recognition processing
  • dust and streak detection processing in an image and blank sheet determination processing may be used.
  • the determination of the availability of the image detection process is performed based on the luminance information, but the availability determination may be performed based on other information.
  • brightness correction processing can also use separate brightness correction formulas for each of R, G, and B.
  • the hue and saturation of the image change. Therefore, detection processing based on hue such as color shift detection processing or document color shift detection processing, or saturation based on color black-and-white detection processing to determine whether the read document is a color document or a black-and-white document The detection process can not be performed correctly.
  • the brightness correction processing is performed by the scanner 1101 only when the brightness correction formulas of R, G, and B match, and the color shift detection processing is performed in the scanner driver 1302 Do.
  • the color misregistration detection processing and the brightness correction processing may be performed in the scanner driver 1302.
  • the place where the brightness correction processing is to be performed is switched to the inside of the scanner 1101 or the inside of the scanner driver 1302.
  • the present invention can also perform brightness correction processing by two in the scanner 1101 and in the scanner driver 1302.
  • the brightness setting set by the user is special (for example, in the case of the brightness setting in which the brightness of the image is inverted as in FIG. 13B)
  • brightness correction with different correction conditions before and after image processing is performed.
  • FIG. 22 is a flowchart from document reading to storage / display when the brightness setting set by the user is special.
  • the user sets various document reading settings in the application 1301 and transmits a document scan command from the application 1301.
  • the scanner driver 1302 having received the document reading instruction transmits the document reading setting set by the user to the scanner 1101, and then transmits the document reading start instruction.
  • the scanner 1101 having received the document reading start instruction from the scanner driver 1302 determines whether the received user-set brightness setting is special setting (step S2002).
  • reading of the original is started (step S2004).
  • the white member 1109 is first read, and the read value is stored in the scanner driver 1302 as the background value ⁇ (step S2005).
  • the manuscript is read.
  • brightness correction processing of 1024 gradations is performed as in the case of the preset brightness setting (step S2006). Thereafter, the image data is converted into data of 256 gradations and transferred to the scanner driver 1302 (step S2007).
  • the application 1301 having received the image data stores and displays the image (step S2012).
  • FIG. 23 is a flowchart of brightness correction processing in the case of a special setting (FIG. 13B) in which the brightness set by the user is the brightness that is opposite to the actual brightness.
  • the scanner 1101 when the scanner 1101 reads an original, the scanner 1101 does not perform the brightness correction processing to reverse the brightness, and performs the brightness correction processing of 1024 gradations similar to the default value in the scanner 1101 (step S 2101, FIG. 24). Thereafter, the data is converted into data of 256 gradations and transferred to the scanner driver 1302.
  • the scanner driver 1302 having received the image data performs document size detection (step S2102), and then performs brightness correction processing for reversing the brightness set by the user in 256 gradations (step S2103, FIG. 24). Thereafter, the image data is transferred to the application 1301.
  • brightness correction processing of 1024 gradations is performed on the scanner 1101 side, and the brightness correction processing in the scanner driver 1302 does not lose gradation, so a high quality image is obtained. Can be provided.
  • the brightness correction processing includes shading correction processing for correcting variations in light receiving elements arranged on a line or on a surface, gamma processing, simple brightness shift processing, contrast correction, etc.
  • the correction process is performed alone or in combination.
  • sheet feed type scanner 1101 is used in this embodiment, a flat bed type scanner may be used.
  • Document size detection which is an image detection process used in the present embodiment, is the same as the other embodiments described above.
  • this embodiment may be performed in combination with the other embodiments described above.
  • the image detectability determination as described in the above-described first embodiment is performed, and when it is determined that it is impossible, brightness correction is performed in the scanner 1101.
  • the brightness correction process may be performed after the image detection process is performed in the scanner driver 1302 without performing the process.
  • image detection process used in the present embodiment is not limited to the document size detection process as in the other embodiments described above, and barcode detection process, character recognition process, and detection of dust and streaks in the image Processing, blank sheet determination processing, color misregistration detection processing, fade detection processing, color black and white detection processing, etc. may be used.
  • image compression / decompression processing is also included in which image data is transferred after image data is transferred after lossless compression and lossy compression are performed to reduce data size at the time of transfer of image data.
  • a series of image processing flows from the line image sensor 1120 to the application 1301 in a consistent manner.
  • an image processing method that performs a plurality of different image processings during image processing and sends a plurality of image data created by each image processing to each application 1301 (hereinafter referred to as multistream processing) May apply to
  • performing the brightness correction processing in the scanner 1101 can shorten the image transfer time and provide high image quality.
  • multi-stream processing combining a plurality of image processing as described above an increase in the amount of image processing of the scanner 1101 and an increase in data transfer time after processing are remarkable when all processing is performed inside the scanner 1101 Can be Therefore, in the case of multi-stream processing as well, it is preferable to perform shading correction and brightness correction processing partially in the scanner 1101, transfer image data to the PC 1300, and then perform a plurality of image processing.
  • the scanner 1101 performs up to the brightness correction process for the photo document, and depending on the transfer data conditions, it performs reversible or irreversible data compression and transfers the data to the PC. Depending on the conditions, the data is decompressed, and the processing is divided into a color image output for photo and a gray output for document. In the color image output for photography, if there is no other image processing, the brightness adjustment is not performed and it is used as output data. In the document gray image output, brightness correction processing in the PC is performed until the ground color of the document original background becomes white, and document gray output data is obtained.
  • the brightness setting means may individually set each of a plurality of processing flows.
  • the correction amount by the brightness correction means implemented in the scanner 1101 is performed using the set minimum correction amount, and the remaining brightness correction means subtracts the minimum correction amount from the set correction amount.
  • Brightness correction is performed using the remaining amount as a correction amount.
  • a plurality of brightness correction means specifically, brightness correction means of the scanner 1101, brightness correction means of the PC 1300
  • the correction ratio of may be adjusted.
  • image processing availability determination means may be further provided to determine whether or not image processing by the image processing means can be performed based on the correction ratio of a plurality of brightness correction means.
  • the control means of the PC 1300 or the scanner 1101 that is, in each CPU jointly or on at least one side of the CPU, the correction ratio by the plurality of brightness correction means based on the result obtained by the image processing availability determination means You just have to adjust the As a result, it is possible to provide a system with good operability without requiring the user to perform an extra operation.
  • the scanner 1101 and the scanner separately perform the brightness correction processing not only in the case of the present embodiment, but also brightens or darkens an image in which a color is reduced such as binary, or a specific luminance region.
  • There may be other special brightness settings such as an image to be fixed or inverted, an image to equally brighten or darken the brightness of the entire image.
  • the image processing system is constructed by the scanner 1101 and the PC 1300 in the embodiment described above, the present invention is of course not limited to this, and the electric circuit of the scanner 1101 as an image reading device and the PC 1300 as an information terminal device You may build a system with
  • the present invention comprises an image input unit for inputting an image, a brightness setting unit for setting the brightness of the image, a brightness correction unit for correcting the brightness of the image based on the brightness setting, and an image processing ( It is good also as an image processing system provided with the image processing means which performs image detection processing, and the control means which controls a brightness correction means according to at least one of an image processing and brightness setting.
  • the control means in this case selects and controls whether to perform brightness correction before image processing or brightness correction after image processing according to at least one of image processing and brightness setting.
  • brightness correction can be controlled at an optimal timing according to image processing and brightness setting, so that an image desired by the user can be provided with high accuracy.
  • the brightness correction process on the image data may be a process of adjusting the values of RGB components of the image data by uniformly increasing or decreasing. For example, in the case of 256 gradations, adjustment may be performed by uniformly increasing or decreasing the gradation of each component of RGB. Thereby, the user can obtain an image of desired brightness.
  • the image processing on the image data may be a process of detecting the presence area or the outer shape of the sheet based on the boundary between the sheet area included in the image data and the background area.
  • the detection of the sheet presence area and the like here includes the case of detecting information of each corner coordinate of a rectangular sheet.
  • the image processing on the image data may be processing of detecting the inclination of the sheet based on the boundary between the sheet area included in the image data and the background area.
  • the sheet inclination referred to here is the inclination of the sheet with respect to the sheet conveyance direction in the case of the sheet feed scanner, and the inclination of the sheet with respect to the investigation direction of the reading unit in the case of the flat bed scanner.
  • the image processing includes at least one of sheet outer shape detection processing, character recognition processing, image abnormality detection processing, color misregistration determination processing, color tone determination processing, bar code detection processing, or a combination of each processing.
  • Each combination referred to here includes a combination with the above-described sheet presence area, outer shape, and detection processing such as inclination.
  • the present invention is based on brightness correction request receiving means (for example, an input setting screen such as a user interface displayed on the display of a PC, etc.) for receiving a brightness correction request from a user, and the brightness correction request. And the order (order) of the subsequent brightness correction processing and the image processing based on the pre-image processing determination means which determines in advance whether or not the image processing by the image processing means is possible, and the determination result by the pre-image processing determination means. And control means for controlling That is, after the image read from the sheet is received, at least one of the plurality of brightness correction means corrects the brightness of the image by at least one of the plurality of brightness correction means. A plurality of brightness correction means and the order of the image processing are controlled based on one. This optimizes each process and its order, and can improve the quality of the finally obtained image. For example, it is possible to effectively prevent the decrease in accuracy of the subsequent image processing due to the brightness correction.
  • brightness correction request receiving means for example, an input setting screen such as a user interface displayed on the display of
  • the brightness correction condition setting unit sets the brightness correction condition as the first brightness condition or the second brightness condition based on the judgment result by the pre-image processing judgment unit. May be Thereby, it is possible to effectively prevent the decrease in the accuracy of the subsequent image processing due to the brightness correction.
  • the first brightness condition is applied to the image data read from the sheet when the predetermined image processing and the brightness correction process are performed based on the first brightness condition or the second brightness condition.
  • the image processing is performed after performing the brightness correction based on the first brightness condition on the image data, while the second brightness after performing the image processing on the image data at the second brightness condition Brightness correction processing based on conditions may be performed.
  • the present invention broadly includes software (computer program) for causing a computer to execute such predetermined image processing and brightness correction processing.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

画像読取システムにおいて、画像読取装置において実行される処理を低減しつつ、ガンマ補正により画像の品質を向上させることを可能にする技術を提供する。本画像読取システムでは、カラーモードとして自動判定モードが指定された場合、スキャナは、読み取った画像のカラーを判定せず、第1の補正特性によるガンマ補正を当該画像の画像データに適用し、得られた画像データをPCに送信する。PCは、受信した画像データが示す画像のカラーを判定する。PCは、判定したカラーが第1の補正特性に対応していない場合、受信した画像データに、第1の補正特性の逆特性によるガンマ補正を行った後に、判定したカラーに対応した第2の補正特性によるガンマ補正を行う。

Description

画像読取システム、情報処理装置、及びプログラム
 本発明は、画像読取システム、情報処理装置、及びプログラムに関するものである。
 スキャナ等の画像読取装置と、画像読取装置に有線又は無線で接続されたPC等の情報処理装置とを備え、画像読取装置における読取処理によって得られた画像データを情報処理装置が取得するシステムが知られている。このようなシステムでは、例えば、PC上におけるユーザの操作に応じて以下の処理が実行されることによって、スキャナで読み取られた画像がPC上で表示及び保存される。
 まずユーザは、PC上で画像を表示及び保存するためのアプリケーション・ソフトウェア(アプリケーション)と、PCからスキャナを制御するためのスキャナ制御ソフトウェア(ドライバ)とをPCにインストールする。ユーザが、インストールしたアプリケーションを起動して、当該アプリケーションに対して画像の読み取りを要求すると、当該アプリケーションは、ドライバに対して画像の読取要求を送信する。画像読取要求を受信したドライバは、有線又は無線を介してPCに接続されているスキャナに対して、画像読取要求を送信する。スキャナは、画像読取要求を受信すると、予めユーザがセットした原稿の画像を読み取ることによって、当該画像に対応する画像データを生成する。生成された画像データは、スキャナからPCのドライバに転送され、次いでドライバからアプリケーションに転送される。アプリケーションは、受信した画像データをメモリ等に保存するとともに、当該画像データに基づく画像を表示する。
 一般に、このようなシステムでは、スキャナにおいて読取処理によって生成された画像データは、各画素の明度を調整する処理であるガンマ補正処理が施される(例えば、特許文献1)。ガンマ補正処理は、画像データに基づいて画像を出力(表示、印刷等)する際に、出力画像の明るさをユーザの所望の明るさにするために、また、出力画像の視認性を向上させるために、実行される。さらに、ガンマ補正処理では、出力画像の特性に応じて異なる補正処理が実行される。例えば、出力画像がマルチカラー(多色)画像かモノカラー(単色)画像の何れであるかに応じて、異なる補正処理が実行される。これは、出力画像の特性に応じてユーザによって要求される画質及び視認性が異なるためである。
 また、上記のシステムでは、一般に、ユーザに高画質な画像を提供するためには、階調数の多い画像データをスキャナで生成する必要がある。一方で、スキャナとPCの間における画像データの転送に要する時間を低減するためには、スキャナで生成する画像データの階調数を少なくすることで、画像データのデータ量を少なくする必要がある。そこで、上記のシステムでは、画像データの転送時間を増大させることなく高品質な画像をユーザに提供するために、例えば、以下の処理を実行する。
 スキャナは、画像を読み取る際に、所望の品質に対応する、大きな階調数の画像データを生成し、生成した画像データに対してスキャナ内部でガンマ補正処理を施す。さらに、スキャナは、ガンマ補正処理を施した画像データを、PCへの画像データの転送用に階調数を低減した画像データに変換して、PCへ送信する。このように、読取処理によって生成された画像データについて、ガンマ補正を行った後に階調数を低減した場合には、階調数の低減後にガンマ補正を行うよりも色の階調性を高めることができる。その結果、出力画像の品質を向上させることが可能である。
 また、上記のシステムにおいて、スキャナは、原稿の種類に応じてユーザが読取設定を手動で切り替える手間を軽減するために、読取対象の画像の特性を自動的に判定する機能を有する場合がある。例えば、スキャナは、読み取った画像がマルチカラー画像であるか、またはモノカラー画像であるかを、ソフトウェア又はハードウェアにより自動的に判定するカラー判定機能を実行するとともに、判定結果に応じた画像データを生成する。この場合、当該システムは、原稿の画像のカラーに応じた読取設定をユーザに行わせることなく、自動的に適切な画像データを生成するとともに、生成した画像データをユーザに提供する。
 ここで、上述のように、ガンマ補正処理では、出力画像の特性に応じて異なる補正処理が実行され、例えば、出力画像がマルチカラー画像であるかモノカラー画像であるかによって、画像のカラーに対応した補正処理が実行される。このため、一般に、ガンマ補正処理とともにカラー判定処理が実行される場合には、ガンマ補正処理の前にカラー判定処理を実行することによって、判定された画像のカラーに対応したガンマ補正処理が画像データに施されるようにする。
特開2003-60912号公報
 画像読取システムにおいて、画像データの転送時間を増大させることなく高品質な画像をユーザに提供するためには、スキャナが、生成した画像データをPCに送信する前に、当該画像データにガンマ補正処理を施し、かつ、その階調数を低減する。当該画像読取システムにおいて、画像の特性(例えば、画像のカラー)を自動的に判定して、判定結果に応じたガンマ補正処理を施した画像データをユーザに提供するためには、スキャナが、ガンマ補正処理の実行前に、読み取った画像の特性を判定することが必要である。
 一方で、上記の画像読取システムにおいて、ガンマ補正処理に加えて、画像の特性を判定する処理(例えば、上述のカラー判定処理)もスキャナに実行させる場合、各処理を実行するための処理ユニットをスキャナ内部に設ける必要がある。このため、スキャナの製造コストが増大してしまう問題がある。このようなスキャナの製造コストの増大を防ぐためには、画像読取システムにおいて、出力画像の品質を低下させることなく、スキャナ(即ち、画像読取装置)において実行される処理を低減する必要がある。
 本発明は、上述の問題に鑑みてなされたものであり、画像読取システムにおいて、画像読取装置において実行される処理を低減しつつ、ガンマ補正により画像の品質を向上させることを可能にする技術を提供することを目的としている。
 本発明は、例えば、画像読取システムとして実現できる。本発明の一態様に係る画像読取システムは、画像読取装置と、画像読取装置に接続可能であり、画像読取装置から画像データを取得する情報処理装置と、を備える画像読取システムであって、画像読取装置は、原稿の画像を読み取って画像データを生成する読取手段と、読取手段によって生成された画像データに対して、第1の補正特性によるガンマ補正を行う第1の補正手段と、第1の補正手段によって補正された画像データを情報処理装置に送信する送信手段とを備え、情報処理装置は、送信手段によって送信された画像データを受信すると、受信した当該画像データが示す画像の特性を判定する第1の判定手段と、第1の判定手段によって判定された画像の特性が、第1の補正特性に対応しているか否かを判定する第2の判定手段と、第2の判定手段によって、画像の特性が第1の補正特性に対応しないと判定されると、受信した画像データに対して、第1の補正特性の逆特性によるガンマ補正を行うとともに、画像の特性に対応した第2の補正特性によるガンマ補正を行う第2の補正手段とを備えることを特徴とする。
 本発明によれば、画像読取システムにおいて、画像読取装置において実行される処理を低減しつつ、ガンマ補正により画像の品質を向上させることを可能にする技術を提供できる。
 本発明のその他の特徴及び利点は、添付図面を参照とした以下の説明により明らかになるであろう。なお、添付図面においては、同じ若しくは同様の構成には、同じ参照番号を付す。
 添付図面は明細書に含まれ、その一部を構成し、本発明の実施の形態を示し、その記述と共に本発明の原理を説明するために用いられる。
画像データに含まれる各画素データに対してガンマ補正処理を行った際の、画素データの値の変化を示すグラフの一例を示す図。 画像データに含まれる各画素データに対してガンマ補正処理を行った際の、画素データの値の変化を示すグラフの一例を示す図。 画像データに含まれる各画素データに対してガンマ補正処理を行った際の、画素データの値の変化を示すグラフの一例を示す図。 本発明の実施形態に係るスキャナ200の断面図の一例を示す図。 本発明の実施形態に係るスキャナ200の構成例を示すブロック図。 本発明の実施形態に係るPC400の構成例を示すブロック図。 本発明の実施形態に係る、PC400とスキャナ200とを含む画像読取システム500におけるソフトウェア構成を示すブロック図。 カラーモードを指定するためのユーザインタフェースの一例を示す図。 本発明の実施形態に係る画像読取システム500における、モノカラーモードの場合の、画像の読取処理の手順を示すフローチャート。 本発明の実施形態に係る画像読取システム500における、自動判定モードの場合の、画像の読取処理の手順を示すフローチャート。 本発明の他の実施形態に係る画像処理システムにおけるスキャナの構成を示す断面図。 本発明の他の実施形態に係る画像処理システムにおけるスキャナの電気構成図。 本発明の他の実施形態に係るアプリケーションとスキャナドライバとスキャナの構成図。 本発明の他の実施形態に係る原稿から画像データを取り込んでからの保存・表示までのフローチャート。 本発明の他の実施形態に係る明るさ補正処理に関する図。 本発明の他の実施形態に係る明るさ補正処理に関する図。 本発明の他の実施形態に係る画像読取ユニット及びその近傍を示す図。 本発明の他の実施形態に係る影検知に関するフローチャート。 本発明の他の実施形態に係る影検知に関する図。 本発明の他の実施形態に係る画像データの画素を拡大した物と影の位置情報を記憶するための1次元配列を示す図。 本発明の他の実施形態に係る原稿サイズ検知のフローチャート。 本発明の他の実施形態に係る影検知に関する図。 本発明の他の実施形態に係る影の位置情報が保存された1次元配列を示す図。 本発明の他の実施形態に係る、画像の検出処理の可否判定方法に関するフローチャート。 本発明の他の実施形態に係るユーザの設定する明るさ設定が特殊な場合の原稿読み取りから保存・表示までのフローチャート。 本発明の他の実施形態に係る明るさの設定が明るさの反転する補正処理の場合のフローチャート。 本発明の他の実施形態に係る明るさの設定が明るさの反転する補正処理の概要を示す図。
 以下、本発明を実施するための形態について図面を用いて説明する。なお、以下の実施形態は特許請求の範囲に係る発明を限定するものでなく、また実施形態で説明されている特徴の組み合わせの全てが発明の解決手段に必須のものとは限らない。
 <画像読取システムの構成>
 本実施形態では、画像読取装置及び情報処理装置の一例として、本発明をスキャナ及びPCにそれぞれ適用した場合について説明する。まず、本実施形態では、画像読取システムとして、スキャナと、当該スキャナに接続可能なPCとを備えるシステムを想定する。本実施形態の画像読取システムにおいて、スキャナは原稿から画像を読み取って、対応する画像データを生成する。PCはスキャナから当該画像データを取得する。なお、画像読取システムにおいて、スキャナとPCは、シリアルインタフェースやパラレルインタフェースを介して接続されていてもよいし、LAN等のネットワークを介して有線又は無線で接続されていてもよい。
 <画像読取装置(スキャナ)の構成>
 次に、図2を参照して、本発明の実施形態に係るスキャナ200全体の概略的な構成について説明する。スキャナ200は、トレイ210に置かれた原稿束Dから原稿を1枚ずつ給紙して、搬送路上を搬送する。スキャナ200は、原稿を搬送するためのローラとして、搬送路に沿って、ピックアップローラ202、給紙ローラ203、分離ローラ204、及び搬送ローラ208を備える。また、スキャナ200は、当該搬送路に沿って、ラインイメージセンサ205と、搬送路を挟んでラインイメージセンサ205と対向した位置に設けられた白色板207とを備える。
 スキャナ200において、ピックアップローラ202は、トレイ210に置かれた原稿束Dから原稿をピックアップする。なお、トレイ210に置かれた原稿束Dは、原稿検知センサ209によって検知される。トレイ210からピックアップされた原稿は、分離ローラ204によって1枚ずつの原稿に分離されて、分離された原稿が給紙ローラ203によって装置内(搬送路)に給紙される。装置内に給紙された原稿は、図2に示す4つの搬送ローラ208によって、最終的には排紙口まで搬送路上を搬送されて、装置外部に排紙される。搬送路に給紙された原稿は、搬送ローラ208によって搬送されて、レジストセンサ206によって検知される。スキャナ200は、レジストセンサ206によって原稿が検知されたタイミングを基準として、原稿の搬送及びラインイメージセンサ205による画像の読み取りを行う。
 ラインイメージセンサ205は、搬送される原稿の表面に形成されている画像を読み取って、当該画像に応じた信号を出力する。スキャナ200は、画像の読み取りを開始する前に、ラインイメージセンサ205によって白色板207を読み取って、シェーディング補正に用いる補正データを生成する。生成された補正データは、ラインイメージセンサ205の主走査方向(原稿の搬送方向と直交する方向)に沿った画素ごとに生成されて、メモリ等に格納される。
 原稿は、レジストセンサ206によって検知された後、搬送路上を搬送されながら、その表面をラインイメージセンサ205によって読み取られる。ラインイメージセンサ205は、主走査方向に沿って、原稿の表面に形成されている画像を読み取って、読み取った画像に応じた信号を出力する。なお、出力された信号には、上述した補正データを用いたシェーディング補正が施される。画像が読み取られた後、原稿は装置外部へ排出される。
 なお、図2では、本発明に係る画像読取装置の一例として、シートフィードタイプのスキャナ200を示しているが、例えば、フラットベッドタイプのスキャナを画像読取装置として用いてもよい。
 次に、図3を参照して、スキャナ200の回路構成について説明する。同図では、特に、ラインイメージセンサ205から出力される信号に対する画像処理を行う回路の構成を概略的について示している。スキャナ200は、外部インタフェース(I/F)部302及び信号ケーブル303を介して、PC等の外部装置と接続されている。上述のように、画像の読み取りに応じてラインイメージセンサ205から出力された信号は、A/D変換部304に入力される。A/D変換部304は、ラインイメージセンサ205の出力信号を、増幅、黒レベルクランプ等のアナログ信号処理を施した後、得られた信号を、所定のビット数で量子化されたデジタルデータに変換する。これにより、A/D変換部304は、原稿の画像に対応する画像データを生成する。A/D変換部304から出力された画像データは、画像処理部305に入力される。
 画像処理部305は、ラインイメージセンサ205、A/D変換部304等の制御と、A/D変換部304から出力された画像データに対する各種の画像処理(シェーディング補正、ガンマ補正等)とを行う。画像メモリ306は、画像処理部305に入力された画像データが一時的に格納される記憶デバイスである。また、画像メモリ306には、上述のシェーディング補正用の補正データが格納されてもよい。CPU307は、スキャナ全体の制御を司る制御部に相当する。画像処理部305とCPU307は、バス308を介して接続されている。CPU307は、画像処理部305を介して画像メモリ306にアクセス可能である。駆動部309は、原稿を搬送するローラ等を駆動するモータであり、CPU307からの指示に応じてモータドライバ310によって駆動される。
 <情報処理装置(PC)の構成>
 次に、図4を参照して、本発明の実施形態に係るPC400の構成について説明する。PC400において、CPU401、ROM402、RAM403、表示部404、入力部405、HDD406、及び外部I/F部がバス410に接続されており、これらはバス410を介して情報のやりとりが可能である。CPU401は、PC400全体の動作を制御する。また、CPU401は、ROM402に記憶された制御プログラムを読み出し、RAM403に展開して実行することによって、各種の制御を実行する。RAM403は、CPU401の主メモリ、ワークエリア等の一時記憶領域として用いられる。HDD406には、画像データや、後述するアプリケーション・ソフトウェア(アプリケーション)を含む各種のプログラムが格納される。表示部404は、アプリケーションによる操作画面等を表示するディスプレイを備える。入力部405は、キーボード、マウス、表示部404のディスプレイ上に配置されたタッチパネル等の各種の入力デバイスを備える。
 外部I/F部407は、PC400と外部装置を接続するためのインタフェースである。本実施形態では、外部I/F部407には、信号ケーブル303を介してスキャナ200が接続されている。PC400とスキャナ200との間のインタフェースには、有線及び無線を問わず、USB、SCSI、Bluetooth(登録商標)等、任意のインタフェースが利用されうる。本実施形態では、一例として、SCSIがインタフェースとして用いられ、信号ケーブル303にはSCSIに対応したケーブルが用いられるものとする。
 次に、図5を参照して、PC400とスキャナ200とを含む画像読取システム500におけるソフトウェア構成について説明する。PC400には、PC400上で画像データに基づく画像を表示し、画像データを保存するためのアプリケーション・ソフトウェア(アプリケーション501)と、PC400からスキャナ200を制御するためのスキャナ制御ソフトウェア(スキャナドライバ502)とが、予めユーザによってインストールされる。インストールされたアプリケーション501及びスキャナドライバ502は、HDD406等に格納されている。CPU401がHDD406等に格納されたこれらのソフトウェアをRAM403に読み出して実行することによって、後述するこれらのソフトウェアの機能がPC400上で実現される。
 アプリケーション501とスキャナドライバ502は、予め定められたプロトコルで通信する。本実施形態では、一例として、アプリケーション501とスキャナドライバ502はTwainという規格で定められたプロトコルに基づいて通信するものとする。なお、当該プロトコルは、Twain以外に、ISISやWIAといった規格で定められたプロトコルであってもよい。また、スキャナドライバ502とスキャナ200は、上述のように、SCSIに基づいて通信する。
 PC400で起動されたアプリケーション501は、スキャナドライバ502を介してスキャナ200と通信する。アプリケーション501は、例えば、入力部405を介して入力されたユーザの指示に応じて、スキャナ200に対して、スキャナドライバ502を介して画像の読取指示を送信する。また、アプリケーション501は、読取処理によって生成された画像データを、スキャナ200からスキャナドライバ502を介して受信する。スキャナドライバ502は、スキャナ200から受信した画像データに対して、後述するように、画像の特性(カラー、明るさ等)を判定する処理やガンマ補正処理等の、各種の画像処理を施すことが可能である。スキャナドライバ502は、画像処理後の画像データをアプリケーション501に送信する。アプリケーション501は、スキャナドライバ502から受信した画像データを、例えば、表示部404に表示(出力)したり、HDD406に保存したりする。
 <読取設定の指定>
 ユーザは、PC400のスキャナドライバ502を用いてスキャナ200に画像の読み取りを実行させる際に、スキャナドライバ502によって表示部404に表示されるユーザインタフェース(設定画面)を介して、種々の読取設定を指定することが可能である。ユーザは、入力部405を操作して、表示部404に表示されたユーザインタフェースを操作することで、読取設定を入力する。
 例えば、PC400上のスキャナドライバ502は、スキャナ200が画像を読み取る際のカラーモードを設定可能なユーザインタフェースを表示部404に表示する。図6は、PC400においてスキャナドライバ502が表示部404に表示するユーザインタフェースの一例(601)である。ユーザインタフェース601は、カラーモードを選択可能なチェックボックス611、読取処理の実行開始を指示するためのボタン612、及び、カラーモードの設定の終了を指示するためのボタン613を含む。ユーザは、入力部405を用いて、表示部404に表示されたユーザインタフェース601のチェックボックス611及びボタン612、613を操作して、読取設定等を入力する。
 本実施形態では、ユーザインタフェース601のチェックボックス611に含まれる3つの項目の何れかを選択することによって、3つのカラーモードの何れかを、スキャナ200による読み取りの際のカラーモードとして指定できる。ここでは、3つのカラーモードとして、マルチカラーモード(「カラー」)、モノカラーモード(「グレイ」)、及び自動判定モード(「カラー自動判定」)の何れかが選択可能である。マルチカラーモードは、マルチカラー(多色)画像の画像データを生成するモードである。モノカラーモードは、モノカラー(単色)画像の画像データを生成するモードである。また、自動判定モードは、スキャナ200(ラインイメージセンサ205)が読み取った画像のカラーを自動的に判定して、判定結果に応じた画像データを生成するモードである。ボタン612をユーザが押下すると、ユーザインタフェース601を用いて設定されたカラーモードがスキャナ200に通知される。
 なお、画像の読取設定は、PC400上で指定されるだけでなく、スキャナ200に設けられたタッチパネル等の入力デバイスを介して指定されてもよい。読取設定には、カラーモードだけでなく、画像を読み取る際の解像度、読取領域等に関する設定が含まれていてもよい。この場合、PC400は、入力部405を操作してそれらの読取設定を指定可能なユーザインタフェースを表示部404に表示可能であればよい。
 また、上述の3つのカラーモードのうちモノカラーモードは、例えば、ブラックのモノカラー画像(即ち、モノクロ画像)の画像データを生成するモードである。この場合、モノカラー画像は、所定の階調数のグレイ画像に相当する。なお、カラーモードとして、マルチカラー画像及びモノカラー画像だけでなく、例えば、モノクロ2値画像の画像データを生成するモードが指定可能であってもよい。
 <画像の読取処理>
 スキャナ200は、上述の読取設定と読取開始指示(読取開始命令)とをPC400から受信すると、受信した読取設定(カラーモード)に従って画像の読み取りを開始する。本実施形態では、スキャナ200の画像処理部305は、読取条件として指定されたカラーモードに応じて、ガンマ補正に用いる補正特性(第1の補正特性)を切り替えて使用する。
 画像処理部305は、カラーモードとしてマルチカラーモード又はモノカラーモードが指定されている場合には、画像の読み取りによって生成された画像データに対して、各モードに対応した補正特性によるガンマ補正を行う。即ち、画像処理部305は、マルチカラーモードにおいてはカラー画像に対応した補正特性によるガンマ補正、モノカラーモードにおいてはモノカラー画像に対応した補正特性によるガンマ補正を行う。一方で、画像処理部305は、カラーモードとして自動判定モードが指定されている場合には、読み取った画像のカラーをスキャナ200側では判定せずに、マルチカラー画像に対応した補正特性によるガンマ補正を一律に行う。以下では、カラーモードとして、マルチカラーモード又はモノカラーモードが指定される場合と、自動判定モードが指定される場合とのそれぞれについて、図7及び図8をそれぞれ参照しながら説明する。
 (モノカラーモードの場合)
 ここでは、図7を参照しながら、スキャナドライバ502によってカラーモードとしてモノカラーモードが指定された場合の、画像の読取処理の手順について説明する。ただし、マルチカラーモードが指定された場合にも、ステップS104及びS105以外は同様の手順が実行される。
 まず、ユーザは、スキャナ200に原稿をセットするとともに、PC400上でアプリケーション501を介して、スキャナドライバ(以下、単に「ドライバ」と称する。)502によるユーザインタフェース601を表示部404に表示させる。ユーザがユーザインタフェース601を用いて読取設定としてモノカラーモードを指定し、ボタン612を押下すると、ステップS101で、アプリケーション501は、画像の読取開始命令をスキャナドライバ502に送信する。スキャナドライバ502は、画像の読取開始命令を受信すると、ステップS102で、指定された読取設定をスキャナ200に送信し、次いでステップS103で、画像の読取開始指示をスキャナ200に送信する。
 スキャナ200は、PC400のスキャナドライバ502から画像の読取開始指示を受信すると、ステップS104で、原稿の搬送を開始するとともに、先に送信された読取設定に従って、原稿の表面に形成されている画像の読み取りを開始する。ここでは、スキャナ200のラインイメージセンサ205及びA/D変換部304が、搬送される原稿の画像を読み取って、10ビット階調(1024階調)で表現されたモノカラー画像の画像データを生成する。なお、階調数に対応するビット数は、予めスキャナ200において定められているものとする。このように、本実施形態では、ラインイメージセンサ205及びA/D変換部304は読取手段として機能する。
 次に、ステップS105で、スキャナ200の画像処理部305は、ステップS104で生成された画像データに対して、10ビット階調のガンマ補正を行う。ここでは、モノカラー画像に対応した補正特性によるガンマ補正が行われる。なお、当該補正特性は第1の補正特性に相当し、画像処理部305は、第1の補正特性によるガンマ補正を行う第1の補正手段として機能する。
 次に、ステップS106で、画像処理部305は、ガンマ補正後の画像データを、階調数を減少させた画像データに変換する。ここでは、画像処理部305は、当該画像データについて、10ビット階調から8ビット階調に変換する。さらに、ステップS107は、画像処理部305は、変換後の画像データに対して、JPEG等の圧縮処理を施す。このようにして、画像データのデータ量を減少させることによって、画像データがスキャナ200からPC400に転送される際の転送時間が低減される。最終的に、ステップS108で、スキャナ200は、外部I/F部302を介して、変換及び圧縮後の画像データをPC400のスキャナドライバ502に送信する。
 PC400のスキャナドライバ502は、ステップS109で、受信した画像データに対して伸張処理を行って、ステップS110で、伸張処理後の画像データをアプリケーション501に送信する。アプリケーション501は、受信した画像データに基づく画像を表示部404に表示することで、画像データを出力する。なお、カラーモードとして、モノカラーモードではなくマルチカラーモードが指定された場合、ステップS104ではマルチカラー画像の画像データが生成され、ステップS105ではマルチカラー画像に対応した補正特性によるガンマ補正が行われる。
 (自動判定モードの場合)
 次に、スキャナドライバ502によってカラーモードとして自動判定モードが指定された場合の、画像の読取処理の手順について説明する。自動判定モードの場合、読み取った画像のカラーを自動的に判定し、判定結果に応じて適切なガンマ補正を画像データに適用する必要がある。しかし、スキャナ200において、生成した画像データにガンマ補正を行う前に、画像のカラーを判定するカラー自動判定を行う場合には、上述のように、スキャナ200の製造コストを増大させてしまう問題がある。そこで、本実施形態では、自動判定モードにおいて、カラー自動判定は、スキャナ200側ではなくPC400側で実行する。
 本実施形態では、まず、モノカラーモード及びマルチカラーモードと同様、自動判定モードの場合にも、読み取った画像の画像データの品質を低下させずに、スキャナ200からPC400への画像データの転送時間を低減するために、以下の処理を実行する。スキャナ200は、読み取った画像のカラーを判定せずに、当該画像データに、予め定められた補正特性(第1の補正特性)のガンマ補正を行う。本実施形態では、一例として、カラー画像に対応した補正特性を第1の補正特性として用いる。
 一方で、PC400では、スキャナ200から受信した画像データが示す特性としてカラーを判定することで、カラー自動判定を実行する。さらに、PC400は、判定した画像のカラー(特性)が、スキャナ200側で適用されたガンマ補正の補正特性と対応しているか否かを判定し、対応していない場合には、判定した画像のカラーに対応した補正特性によるガンマ補正を改めて画像データに行う。このようにして、カラー自動判定をスキャナ200ではなくPC400で実行した場合にも、その判定結果に応じた適切なガンマ補正を画像データに適用する。その結果、スキャナ200において実行される処理を低減しつつ、ガンマ補正により、読み取った画像データに基づく画像の品質を向上させることを可能にする。
 しかし、スキャナ200側とPC400側で、合計2回のガンマ補正を画像データに行うと、かえって画像の品質を劣化させてしまう可能性がある。ここで、図1A乃至図1Cは、画像データに含まれる各画素データに対してガンマ補正処理を行った際の、画素データの値(RGBデータ値又は明度)の変化を示すグラフの一例であり、縦軸は補正前の画素データの値、横軸は補正後の画素データの値をそれぞれ示している。図1A及び図1Bは、ガンマ補正を行っていない画像データに、それぞれマルチカラー画像及びモノカラー画像に対応した補正特性によるガンマ補正を行った場合を示している。また、図1Cは、マルチカラー画像に対応した補正特性によるガンマ補正を行った後に、モノカラー画像に対応した補正特性によるガンマ補正を行うことで、2回のガンマ補正を画像データに行った場合を示している。特に、図1B及び図1Cを比較すると、既に(1回目の)ガンマ補正を行っているか否かに依存して、モノカラー画像に対応したガンマ補正を行った場合に、補正後の画素データの値が異なることがわかる。従って、1つの画像データに2回のガンマ補正を行うと、1回のガンマ補正のみを行う場合と比べて、得られる画質が変化してしまい、所望の画質が得られなくなるおそれがある。
 本実施形態では、PC400において判定された画像のカラー(特性)と、スキャナ200において適用されたガンマ補正の補正特性とが対応していない場合に、2回のガンマ補正を画像データに適用することになる。この場合には、上述のように所望の画質が得られなくなることを回避するために、PC400が以下の処理を実行する。PC400は、判定された画像のカラー(特性)に対応した第2のガンマ補正の実行前に、画像データに対して、スキャナ200において適用された第1のガンマ補正の補正特性の逆特性によるガンマ補正(即ち、逆ガンマ補正)を行う。これにより、画像データを、第1のガンマ補正の適用前の状態に戻した上で、当該画像データに第2のガンマ補正を行う。その結果、PC400において、ガンマ補正を行っていない画像データに第2のガンマ補正を行った場合と同様に、ガンマ補正により画像の品質を向上させることが可能になる。
 以下では、図8を参照しながら、自動判定モードにおける画像の読取処理の手順の一例について説明する。まず、ユーザは、スキャナ200に原稿をセットするとともに、PC400上で、アプリケーション501を介してスキャナドライバ502によるユーザインタフェース601を表示部404に表示させる。ユーザがユーザインタフェース601を用いて読取設定として自動判定モードを指定し、ボタン612を押下すると、ステップS201で、アプリケーション501は、画像の読取開始命令をスキャナドライバ502に送信する。スキャナドライバ502は、画像の読取開始命令を受信すると、ステップS202で、指定された読取設定をスキャナ200に送信し、次いでステップS203で、画像の読取開始指示をスキャナ200に送信する。
 スキャナ200は、PC400のスキャナドライバ502から画像の読取開始指示を受信すると、ステップS204で、原稿の搬送を開始するとともに、先に送信された読取設定に従って、原稿の表面に形成されている画像の読み取りを開始する。ここでは、自動判定モードが指定された場合には、スキャナ200においてはマルチカラー画像に対応した処理を実行すべきことが、予め定められているものとする。従って、ステップS204で、スキャナ200のラインイメージセンサ205及びA/D変換部304は、搬送される原稿の画像を読み取って、10ビット階調(1024階調)で表現されたマルチカラー画像の画像データを生成する。
 次に、ステップS205で、スキャナ200の画像処理部305は、ステップS204で生成された画像データに対して、10ビット階調のガンマ補正を行う。ここでは、マルチカラー画像に対応した補正特性(第1の補正特性)によるガンマ補正が行われる。さらに、ステップS206で、画像処理部305は、ガンマ補正後の画像データを、階調数を減少させた画像データに変換する。ここでは、画像処理部305は、当該画像データについて、10ビット階調から8ビット階調に変換する。その後、ステップS207で、画像処理部305は、変換後の画像データに対して、JPEG等の圧縮処理を施す。最終的に、ステップS208で、スキャナ200は、外部I/F部302を介して、変換及び圧縮後の画像データをPC400のスキャナドライバ502に送信する。
 PC400のスキャナドライバ502は、ステップS209で、受信した画像データに対して伸張処理を行う。次に、ステップS210で、スキャナドライバ502は、自動判定モードが指定されていることに応じて、伸張処理後の画像データが示す画像の特性として、画像のカラーを判定する。ここで、カラー自動判定は、例えば、以下のように実行される。スキャナドライバ502は、まず、受信された画像データに含まれる一部又は全部の画素について彩度を算出する。さらに、スキャナドライバ502は、それらの画素のうちで、算出された彩度が所定の閾値以上である画素の総数に基づいて、受信された画像データに基づく画像が、マルチカラー画像およびモノカラー画像のいずれであるかを判定すればよい。即ち、スキャナドライバ502は、所定の閾値以上である画素の総数が、一定量以上であれば、当該画像はマルチカラー画像であると判定し、一定量未満であれば、当該画像はモノカラー画像であると判定すればよい。
 ステップS210では、スキャナドライバ502は、さらに、受信した画像データに基づく画像のカラー(特性)の判定結果に応じて、当該画像のカラーが、スキャナ200で行われた第1のガンマ補正における補正特性に対応しているか否かを判定する。ここで、スキャナドライバ502は、当該画像のカラーが第1のガンマ補正に対応していると判定した場合には、ステップS213に処理を進め、受信及び伸張した画像データをアプリケーション501に送信する。一方で、スキャナドライバ502は、当該画像のカラーが第1のガンマ補正に対応していないと判定したい場合には、図8で破線で囲まれたステップS211及びS212の処理を実行する。ステップS211及びS212では、後述するように、スキャナドライバ502は、受信した画像データに、画像のカラーに対応した補正特性(第2の補正特性)による第2のガンマ補正を行う。なお、ステップS210で、スキャナドライバ502(CPU401)は第1の判定手段、及び第2の判定手段として機能する。
 ステップS211で、スキャナドライバ502は、受信した8ビット階調の画像データに、逆ガンマ補正を行う。ここでは、スキャナドライバ502は、スキャナ200で適用した第1のガンマ補正の補正特性(マルチカラー画像に対応した第1の補正特性)の逆特性によるガンマ補正を、当該画像データの各画素に適用する。例えば、例えばγ=2.0のガンマ補正関数が第1のガンマ補正で用いられた場合には、当該ガンマ補正関数の逆関数で与えられる、γ=0.5のガンマ補正関数が、ステップS211では用いられる。これにより、受信した画像データは、第1のガンマ補正が適用される前の状態に戻される。次に、ステップS211で、スキャナドライバ502は、受信した画像データに対して、ステップS210において判定された画像のカラー(特性)に対応した補正特性による第2のガンマ補正を行う。このように、スキャナドライバ502は、ステップS210における判定処理と、ステップS211及びS212におけるガンマ補正処理とについて、自動判定モードが指定された場合にのみ、それぞれの処理を実行する。なお、ステップS211及びS212で、スキャナドライバ502(CPU401)は、第2の補正手段として機能する。
 その後、ステップS213で、スキャナドライバ502は、ステップS211における第2のガンマ補正が施された画像データを、アプリケーション501に送信する。アプリケーション501は、ステップS214で、受信した画像データに基づく画像を表示部404に表示することで、当該画像データを出力する。
 以上のように、本実施形態に係る画像読取システムでは、特に、画像の読取設定の一例であるカラーモードとして自動判定モードが指定された場合、スキャナ200は、読み取った画像のカラーを判定せず、第1の補正特性によるガンマ補正を当該画像の画像データに適用し、得られた画像データをPC400に送信する。PC400は、受信した画像データが示す画像のカラーを判定する。PC400は、判定されたカラーが第1の補正特性に対応していない場合、受信した画像データに、第1の補正特性の逆特性によるガンマ補正を行った後に、判定したカラーに対応した第2の補正特性によるガンマ補正を行う。このように、読み取った画像のカラー(特性)を自動的に判定する処理を、スキャナ200ではなくPC400において実行する。これにより、スキャナ200において実行される処理を低減しつつ、読み取った画像のカラーに対応したガンマ補正を、当該画像の画像データに適用して当該画像の品質を向上させることが可能になる。その結果、スキャナ200の製造コストが増大することを防ぐことが可能になる。
 また、本画像読取システムにおいて、読み取った画像の画像データをスキャナ200からPC400へ転送する際には、上述の実施形態のように、画像データの階調数を低減してもよい。これにより、画像データの転送に要する時間を低減させつつ、上述の効果を得ることができる。なお、本実施形態では、スキャナ200からPC400へ画像データを転送する前に、スキャナ200は、画像データの階調数に対応するビット数を10ビットから8ビットに低減している。しかし、階調数に対応するビット数としては、任意のビット数(例えば、12ビット、16ビット)が使用されうる。
 また、上述の実施形態では、自動判定モードの場合に、PC400のスキャナドライバ502が、ステップS210で、スキャナ200で読取処理により生成された画像データから、画像の特性の1つである画像のカラーを判定している。しかし、本発明では、かかる判定処理で判定する画像の特性は、画像のカラーに限られず、例えば、画像の明るさであってもよい。かかる変形例においては、ステップS212で、スキャナドライバ502は、ステップS210で判定された画像の明るさに対応する補正特性によるガンマ補正を行う。なお、ステップS205の第1のガンマ補正における第1の補正特性と、ステップS212の第1のガンマ補正における第1の補正特性とは、異なる画像の明るさに対応した補正特性となる。この場合にも、上述の実施形態と同様の効果を得ることができる。
 また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
 また、上述の実施形態では、逆ガンマ補正として、補正前の一画素の画素データを基に、補正後の一画素の画素データを決定する補正処理を用いている。しかし本発明における逆ガンマ補正は、補正前の複数画素の画素データを基に、補正後の一画素の画素データを決定する補正処理でもよい。すなわち、例えば、ある画素(画素Aとする)に対して行う逆ガンマ補正は、画素Aと画素Aに隣接する画素の画素データに対して、第1のガンマ補正の補正特性の逆特性によるガンマ補正を行い、それによって得られた各画素の画素データについて平均値を算出し、その平均値を画素Aの逆ガンマ補正後の画素データとする補正処理であってもよい。
 以上、本発明の一実施形態について説明してきたが、本発明は、シートから読み取った画像データに対して、ガンマ補正等の画像の明るさ補正を行う画像処理システムまたはそのような画像処理システム(及びかかる画像処理システムを適用した画像読取システム)において、当該画像データに更に画像処理を行う場合にも有効である。以下では、例えば、複写機、スキャナ、ファックス、プリンタ等の装置において、画像の明るさ補正に加えて画像処理を行う場合に適用可能な、本発明の他の実施形態について、具体例を挙げながら詳細に説明する。
 画像処理システムにおいては、一般に、ユーザが望む読取画像が得られるように、原稿から読み取った画像データに対して各種画像処理の実行が可能である(特開平1-317075号公報参照)。しかしながら、ガンマ補正等の明るさ補正を読取画像に適用する際に、ユーザが明るさ補正条件を極端な設定にすると、その後の画像処理が適切に行えないことがある。
 例えば、明るさ補正後の画像データに含まれる原稿領域とその背景領域との境界を検出して原稿サイズ検知を行う場合、当該明るさ補正条件を明るくし過ぎてしまうと、原稿領域とその背景領域との境界が判別できず、高精度に原稿サイズ検知を行えない場合がある。なお、ここでは原稿サイズ検知を例示して説明したが、明るさ補正の条件次第では原稿サイズ検知以外の画像処理についても適切に行えない場合がある。
 本発明は、上述した事情に鑑み、読み取った画像データに対してガンマ補正等の明るさ補正を行う際に、当該画像データに適切な画像処理を行うために、次のような態様としても実現できる。
 具体的には、本発明の他の態様によれば、シートから読み取った画像を受け付ける画像受付手段と、前記画像の明るさを設定する明るさ設定手段と、前記画像の明るさを補正する複数の明るさ補正手段と、前記画像に対して所定の設定条件に基づく画像処理を行う画像処理手段と、前記画像処理の設定条件及び前記明るさ設定の少なくとも一方に基づいて、前記複数の明るさ補正手段を制御する制御手段とを備えたことを特徴とする画像処理システムが提供される。
 上記本発明の他の態様において、画像処理システムは、シートから画像を読み取る画像読取装置と、前記画像読取装置に接続されて当該画像読取装置を制御する情報処理装置とを更に備え、前記複数の明るさ補正手段は、前記画像読取装置側に設けられて当該画像読取装置によって読み取られる画像に対して第1明るさ補正を行う少なくとも一つの第1明るさ補正手段と、前記情報処理装置側に設けられて前記画像受付手段を介して受け取った画像に対して第2明るさ補正を行う少なくとも一つの第2明るさ補正手段とを有し、前記第2明るさ補正手段は、前記画像受付手段によって受付され前記第1明るさ補正手段、及び圧縮伸張または前記画像処理手段によって画像処理が施された画像に対して前記第2明るさ補正を行ってもよい。
 上記本発明の他の態様において、前記制御手段は、前記複数の明るさ補正手段のうち、前記画像処理の設定条件及び前記明るさ設定の少なくとも一方に基づいて選択される少なくとも1つの明るさ補正手段によって、前記画像受付手段によって受付された画像に明るさ補正を施すよう制御してもよい。
 上記本発明の他の態様において、前記制御手段は、前記画像処理の設定及び前記明るさ設定の少なくとも一方に基づいて、前記複数の明るさ補正処理手段それぞれの補正比率を調整してもよい。
 上記本発明の他の態様において、画像処理システムは、前記複数の明るさ補正手段による補正比率に基づいて前記画像処理手段による画像処理を施せるか否かを判断する画像処理可否判断手段を更に備えてもよい。
 上記本発明の他の態様において、前記制御手段は、前記画像処理可否判断手段によって得られた結果に基づいて、前記複数の明るさ補正手段による補正比率を再調整してもよい。
 また、本発明の他の態様によれば、シートから読み取った画像データに第1明るさ補正を行う第1明るさ補正手段と、シートから読み取った画像データに第2明るさ補正を行う第2明るさ補正手段と、前記第1明るさ補正手段による明るさ補正処理のための第1明るさ条件、又は前記第2明るさ補正手段による明るさ補正処理のための第2明るさ条件を設定可能である明るさ補正条件設定手段と、シートから読み取った画像データに画像処理を行う画像処理手段とを備え、前記明るさ補正条件設定手段において前記第1明るさ条件が設定されると、前記第1明るさ補正手段によって前記画像データに前記第1明るさ補正を行った後に前記画像処理を行う一方、前記明るさ補正条件設定手段において前記第2明るさ条件が設定されると、前記画像処理を行った後に前記第2明るさ補正手段によって前記画像データに前記第2明るさ補正を行うようにしたことを特徴とする画像処理システムも提供される。
 また、本発明の更に他の態様によれば、シートから画像を読み取る画像読取装置と、前記画像読取装置を制御する情報処理装置とを備えた画像処理システムであって、前記画像読取装置に設けられて、シートから読み取った画像データに第1明るさ補正を行う第1明るさ補正手段と、前記情報処理装置に設けられて、前記画像読取装置から受け取った画像データに第2明るさ補正を行う第2明るさ補正手段と、前記第1明るさ補正手段による明るさ補正処理のための第1明るさ条件、又は前記第2明るさ補正手段による明るさ補正処理のための第2明るさ条件を設定可能である明るさ補正条件設定手段と、シートから読み取った画像データに画像処理を行う画像処理手段とを備え、前記明るさ補正条件設定手段において前記第1明るさ条件が設定されると、前記第1明るさ補正手段によって前記画像データに前記第1明るさ補正を行った後に前記画像処理を行う一方、前記明るさ補正条件設定手段において前記第2明るさ条件が設定されると、前記画像処理を行った後に前記第2明るさ補正手段によって前記画像データに前記第2明るさ補正を行うようにしたことを特徴とする画像処理システムが提供される。
 上記本発明の更に他の態様において、前記画像データに対する明るさ補正処理は、前記画像データのRGB各成分の値を一律に増減して調整する処理であってもよい。
 上記本発明の更に他の態様において、前記画像データに対する前記画像処理は、前記画像データに含まれるシート領域とその背景領域との境界に基づいてシートの存在領域又は外形を検出する処理であってもよい。
 上記本発明の更に他の態様において、前記画像データに対する前記画像処理は、前記画像データに含まれるシート領域とその背景領域との境界に基づいてシートの傾きを検出する処理であってもよい。
 上記本発明の更に他の態様において、前記画像処理は、文字認識処理、画像異常検出処理、色ずれ判定処理、色味判定処理、バーコード検出処理の少なくとも1つの処理、又は各処理の組み合わせを含んでもよい。
 上記本発明の更に他の態様において、画像処理システムは、ユーザからの明るさ補正要求を受け付ける明るさ補正要求受付手段と、前記明るさ補正要求に基づいて、前記画像処理手段による前記画像処理が可能か否かを事前に判断する画像処理前判断手段と、前記画像処理前判断手段による判断結果に基づいて、その後の明るさ補正処理及び画像処理の順番を制御する制御手段とを更に備えてもよい。
 上記本発明の更に他の態様において、前記明るさ補正条件設定手段は、前記画像処理前判断手段による判断結果に基づいて、前記ユーザからの明るさ補正要求を前記第1明るさ条件又は前記第2明るさ条件として明るさ補正条件の設定を行ってもよい。
 上記本発明の更に他の態様において、画像処理システムは、前記画像処理の前後で補正条件の異なる明るさ補正をそれぞれ行う第3明るさ補正手段を更に備えてもよい。
 本発明の他の態様によれば、シートから読み取った画像を受け付けた後、複数の明るさ補正手段のうち少なくとも1つの明るさ補正手段によって前記画像の明るさを補正するにあたり、前記画像に対する画像処理の設定条件または明るさ設定の少なくとも一方に基づいて、前記複数の明るさ補正手段と前記画像処理の順序とを制御するようにしたことを特徴とする画像明るさ補正処理方法が提供される。
 また、本発明の他の態様によれば、シートから読み取った画像データに対して、所定の画像処理と、第1明るさ条件又は第2明るさ条件に基づいて明るさ補正処理とを行うに際し、前記第1明るさ条件のときは、前記画像データに前記第1明るさ条件に基づく明るさ補正を行った後に前記画像処理を行う一方、前記第2明るさ条件のときは、前記画像データに前記画像処理を行った後に前記第2明るさ条件に基づく明るさ補正処理を行うことを特徴とする画像処理方法が提供される。
 更に、本発明の他の態様によれば、シートから読み取った画像データに対して、所定の画像処理と、第1明るさ条件又は第2明るさ条件に基づいて明るさ補正処理とをコンピュータに実行させるに際し、前記第1明るさ条件のときは、前記画像データに前記第1明るさ条件に基づく明るさ補正を行った後に前記画像処理を行わせ、前記第2明るさ条件のときは、前記画像データに前記画像処理を行った後に前記第2明るさ条件に基づく明るさ補正処理を前記コンピュータに実行させることを特徴とする画像処理プログラムが提供される。
 本発明の他の態様及び更に他の態様によれば、例えば、ユーザが画像データの明るさ補正条件や画像処理設定等を如何に変更したとしても、読み取った画像データに対して適切な画像処理を行うことができ、所望の画像データを得ることができる。
 以下、本発明の他の態様及び更に他の態様を実施するための、本発明の他の実施形態を、図9~図24を用いて詳細に説明する。但し、この実施の形態に記載されている構成部品の寸法、材質、形状、その相対配置等は、特に特定的な記載がない限りは、この発明の範囲をそれらのみに限定する趣旨のものではない。
 <他の実施形態>
 図9は、本発明の他の実施形態に係る画像処理システムに適用可能な画像読取装置の構成を示す断面図である。
 画像読取装置(以下、スキャナ1101)は、シートフィードスキャナであって、原稿束Dの上面側から原稿をピックアップするピックアップローラ1102と、ピックアップローラ1102によりピックアップされた原稿を装置内に給送する給送ローラ1103と、原稿を1枚ずつ分離する分離ローラ1104と、原稿束Dから分離された原稿の上面の画像情報を読取る読取ユニット1108と、原稿を搬送するべく読取ユニット1108の上流側に設けられたレジストローラ対1105と、原稿を搬送するべく読取ユニット1108の下流側に設けられた搬送ローラ対1107と、搬送される原稿を検知するべくレジストローラ対1105の下流側近傍に設けられたレジストセンサ1110を備える。
 スキャナ1101の上部フレーム1101aには、読取ユニット1108が固定されている。読取ユニット1108は、原稿や後述する対向部材の画像を読取るラインイメージセンサ1120と、搬送される原稿等に光を照射する光源1121とを備える。
 スキャナ1101の下部フレーム1101bには、読取ユニット1108に対向する位置に配置される色基準部材となる対向部材(白色部材)1109と、この対向部材1109と読取ユニット1108との間に配置される板状のガラス1106とが設けられている。
 次に、原稿に形成された画像をスキャナ1101が読取るときの動作を説明する。画像読取命令を受けたスキャナ1101は、画像の読み取りを開始する。まず、スキャナ1101は、画像読取命令を受けると、白色の対向部材1109をラインイメージセンサ1120により読み取り、ラインイメージセンサ1120の感度むらや照明の光量むらを補正するための補正用データを生成する(以下では感度むらや光量むらの補正をシェーディング補正と称する)。
 生成された補正用データは画素毎に記憶される。その後、上述したように、原稿束Dの上面側から原稿をピックアップローラ1102と給送ローラ1103によってスキャナ1101内に取り込み、分離ローラ1104によって1枚ずつに分離する。
 分離された原稿は、レジストローラ対1105及び搬送ローラ対1107により挟持されながら搬送路に沿ってその下流側にあるラインイメージセンサ1120の副走査方向(原稿搬送方向)に向けて搬送されつつ、その上面(表側)に形成されている画像が読取ユニット1108によって主走査方向(原稿搬送方向と直交する方向)に沿って読み取られる。本実施形態では、原稿の片面画像を読み取るスキャナ1101を例示しているが、勿論これに限定されず、原稿の両面画像を読み取るスキャナであってもよい。
 また、前述した補正用のデータを参照して、ラインイメージセンサ1120の出力信号から生成した画像データをシェーディング補正する。画像が読み取られた後、原稿は搬送ローラ対1107によって挟持されながら搬送され、装置外部へ排出される。
 図10は、スキャナ1101の電気回路の構成を示すブロック図である。
 まず、読取ユニット1108から、A/D変換部1204へ画像データが転送される。A/D変換部1204は、受信した画像データに増幅や黒レベルクランプなどのアナログ処理を施した後、デジタルデータに変換し、画像処理部1205へ転送する。
 画像処理部1205は、ラインイメージセンサ1120、A/D変換部1204の制御と、ラインイメージセンサ1120の出力信号をデジタル化して生成した画像データに対する各種画像処理(シェーディング補正等)とを行う。デジタルデータに変換する処理としては、例えば、画像処理部1205の命令に応じて、10bit深度(1024階調、第1の階調)画像データ、又は、8bit深度(256階調、第2の階調)画像データを生成する。
 なお、このような画像処理部1205は、生成された画像データを記憶する画像メモリ1206と、本画像読取装置の制御を司る制御部となるCPU1207とに接続されている。また、画像処理部1205とCPU1207とは、バス1208を介して接続されている。従って、CPU1207は、画像処理部1205を介して画像メモリ1206にアクセスすることができるように構成されている。
 原稿を搬送させる駆動手段(例えば、モータ等)1209は、CPU1207からの指示を受けたモータドライバ1210により動作する。
 また、上述した画像処理部1205は、インターフェイス部1202とも接続されており、画像処理を行った画像データは、信号ケーブル1203を通して画像読取ユニット1108と接続されているパソコン等の情報処理装置である外部ホスト装置に転送されることになる。
 図11は、本発明の他の実施形態にかかる画像処理システムのソフト構成の概略(情報伝達パス)を示すものであって、具体的にはPC1300上のアプリケーションとスキャナドライバとスキャナの構成を示す図である。図11では、アプリケーション1301とスキャナドライバ1302とを別々のソフト構成で説明しているが、アプリケーションとスキャナドライバとを機能的に一体化した1つのソフト構成、または専用アプリケーションとしても機能実現できる。
 まず、ユーザは、上述したスキャナ1101を制御するために、あらかじめアプリケーション1301とスキャナドライバ1302をPCにインストールする。インストールされたアプリケーション1301は、スキャナドライバ1302を介してスキャナ1101と通信する。アプリケーション1301とスキャナドライバ1302との間、スキャナドライバ1302とスキャナ1101との間は決められたプロトコルで通信している。本実施形態では、アプリケーション1301とスキャナドライバ1302とは、TWAINという規格で決められたプロトコルで通信を行い、スキャナドライバ1302とスキャナ1101との間では、SCSIという規格で決められたプロトコルで通信を行うようにした。しかし、プロトコルはこれに限るものではなく、たとえばアプリケーション1301とスキャナドライバ1302との間の通信規格はISISやWIAであっても良く、またスキャナドライバ1302とスキャナ1101との間の通信規格はUSBやIEEE802であってもよい。このようにスキャナ1101とPC1300とを接続することで本実施形態の画像読取システムが構成される。
 ここで、スキャナ1101からPC1300に画像データを転送する際、スキャナ1101とスキャナドライバ1302との間の画像転送時間は、データの転送量が少ないほど短くなる。スキャナ1101とスキャナドライバ1302との間を渡る画像のビット深度は転送時間と画質を基に8bitが用いられる(カラー画像では、R、G、B輝度情報がそれぞれ8bit、グレー画像では輝度情報が8bitとなる)。スキャナドライバ1302内では、受信した画像データから原稿の境界を検出し、画像データから原稿の幅と長さと傾きを算出する原稿サイズ検知が行われる。スキャナ1101では、高コストを防ぐために原稿サイズ検知は、スキャナ1101内で行わずスキャナドライバ1302内で行っている。その後、スキャナドライバ1302は画像データをアプリケーション1301に転送し、アプリケーション1301は受信した画像データの表示および保存を行う。
 上記のようなスキャナ1101とPC1300とで構築されるシステムでは、ユーザが望んだ明るさの画像を提供するために、読み取った画像の各画素に対して、上述の実施形態において説明したガンマ補正等の明るさ補正処理を行うことができる。この明るさ補正処理は、処理対象の画像のビット深度が大きいほど処理結果は階調性が保たれ高画質になる。スキャンした画像は、スキャナから出力する画像データの階調よりも多い階調の画像データでスキャナに取り込まれる(例えば10bitから16bit)。その後、8bit(256階調)データに変換して、PC1300へ転送される。明るさ補正処理をスキャナ1101内で行う場合、階調の多い画像データでの明るさ補正処理が可能なため、階調性を保つことができ、高画質の画像を得ることができる。明るさ補正処理をPC1300内で行う場合、転送されてくるデータは8bitに変換されているため、階調性が落ち、高画質の画像を得ることができないことがある。
 従って、スキャナ1101とスキャナドライバ1302との間の画像転送にかかる時間を増やすことなく、ユーザに高画質な画像を提供するために、明るさ補正処理はスキャナ1101内で行えばよい。また、ユーザが望む画像の明るさが特殊な場合(極端に、明るい条件あるいは暗い条件等)、例えば、原稿サイズ検知の前に明るさ補正を行うと、原稿とその背景との境界が区別できなくなり、原稿サイズ検知ができないことがある。原稿サイズ検知だけではなく、文字やバーコード等の符号認識においても同様である。つまり、ユーザの望む明るさが特殊な場合、所望の画像や出力を提供できないことがある。本発明は、以下に説明する通り、上述した明るさ設定に起因して、その後の画像処理への影響を及ぼさないように工夫したものである。
 具体的には、本発明の他の態様は、シートから読み取った画像データに対して、所定の画像処理と、第1明るさ条件又は第2明るさ条件に基づいて明るさ補正処理とを行うに際し、第1明るさ条件のときは、画像データに第1明るさ条件に基づく明るさ補正を行った後に画像処理を行う一方、第2明るさ条件のときは、画像データに画像処理を行った後に第2明るさ条件に基づく明るさ補正処理を行う点に特徴がある。
 ここでいう第1明るさ条件は、当該条件で明るさ補正を行ってもその後に行う画像処理の精度低下が生じない程度の条件である。一方、第2明るさ条件は、第1明るさ条件よりも明るい条件、または暗い条件、すなわち第1明るさ条件と異なる条件であって、当該条件で明るさ補正を行った後の画像データに画像処理を行うと画像処理の精度低下が懸念される条件である。
 例えば、第1明るさ条件又は第2明るさ条件は、明るさ補正を行うと、その後の画像処理(例えば原稿サイズ検知等)に影響を及ぼす条件と、影響が殆どない条件とで区別することができる。すなわち、例えば、明るさ補正処理後に行う画像処理の精度が低下してしまう場合、第1明るさ補正条件は、第1明るさ補正手段では明るさ補正処理を行わないように設定し、第2明るさ条件は、第2明るさ補正手段でユーザの設定する明るさで明るさ補正処理を行うように設定することができる。
 勿論、本発明はこれらの条件に限るものではない。画像処理の一例である原稿サイズ検知では、原稿とその背景との境界を、原稿の影を画像から判別して原稿の外形を特定する手法がある。このような原稿の影で原稿サイズ検知を行う際に、極端な明るさ補正を行うと原稿の影が画像から判別できない場合がある。従って、このように原稿サイズ検知に影響を及ぼす程(サイズ誤検知する程)の条件によって明るさ補正する場合には、そのような原稿サイズ検知を行った後で、当該条件によって明るさ補正を行うことで、原稿サイズ検知の精度を確保することができる。
 具体的には、本発明の他の態様では、画像処理及び明るさ設定の少なくとも一方に応じて、明るさ補正手段を制御する。すなわち、画像処理及び明るさ設定の少なくとも一方に応じて、画像処理の前に明るさ補正を行うのか、画像処理の後に明るさ補正を行うのかを選択制御する。これにより、画像処理や明るさ設定に応じて明るさ補正を最適なタイミングで制御できるため、ユーザが望む画像を高精度に提供することができる。
 以下、上述したスキャナ1101とPC1300とで構築されるシステムの動作について、図9~図12を参照して、具体例を説明する。図12は本実施形態において原稿から画像データを取り込んでからの保存・表示までのフローチャートを示したものである。
 まず、ユーザは、本実施形態のシステムにおいて、アプリケーション1301で各種原稿読取の設定の他、明るさ補正条件(第1明るさ条件、第2明るさ条件)の設定を行い、当該アプリケーション1301から原稿の読み取り命令をスキャナドライバ1302へ送信する。すなわち、本実施形態のシステムにおいては、PC1300のCPU及びこのCPUで実行されたアプリケーション1301が、予め決められた範囲内で明るさ条件を適宜設定する明るさ補正条件設定手段として機能する。なお、スキャナのCPU1207を明るさ補正条件設定手段として機能させてもよい。
 原稿読取命令を受信したスキャナドライバ1302は(ステップS1401、stars=0)、ユーザの設定する明るさで画像検出処理が可能だと判断した場合(S1402で「YES」)、画像処理部1205がユーザの設定する明るさに基づいて明るさ補正処理を行うように、第1明るさ条件を設定する。すなわち、本実施形態では、スキャナ1101の画像処理部1205が、第1明るさ補正手段として機能する。なお、本実施形態では、画像処理部1205を設けているが、スキャナ1101のCPU1207及びCPU1207で実行されるプログラムにおいて、本実施形態の画像処理部1205と同等の機能を持たせてもよい。
 上記の場合、スキャナドライバ1302は、スキャナドライバ1302では明るさ補正処理を行わないように、第2明るさ条件を設定する。すなわち、本実施形態では、PC1300のCPU及びこのCPUで実行されたスキャナドライバ1302が、第2明るさ条件に基づいて画像の明るさ補正を行う第2明るさ補正手段として機能する。なお、ここでは、スキャナドライバ1302を第2明るさ補正手段としたが、第2明るさ補正手段の全部又は一部をアプリケーション1301に機能させてもよい。
 PC1300側のCPUは、ユーザの設定する明るさ設定で画像検出処理ができないと判断した場合(ステップS1402で「NO」)、スキャナ1101内の画像処理部1205(第1明るさ補正手段)で明るさ補正処理を行わないように制御する。すなわち、PC1300側のCPUは、ユーザが設定する明るさ設定条件と画像処理の条件とに基づいて、スキャナ1101で明るさ補正をするか、PC1300で明るさ補正をするかを判断する役割を有する。このような明るさ処理をどこで行うかを判断する機能は、スキャナ1101に持たせてもよい。なお、ユーザが第2明るさ条件を指定した場合、PC1300は、スキャナ1101(画像処理部1205)において明るさ補正を行わない旨の情報をスキャナ1101側に伝える。この場合、スキャナ1101は、読み取った画像データ(明るさ補正をしていない画像データ)をPC1300に送信することになる。
 また、スキャナドライバ1302(第2明るさ補正手段)では、明るさ補正処理を行うように第2明るさ補正条件を設定する(ステップS1403、stars=1)。
 その後、スキャナドライバ1302は、スキャナ1101に対して、ユーザが設定した原稿読取設定を送信し、次いで原稿読取開始命令を送信する。
 スキャナ1101は、スキャナドライバ1302から原稿読取開始命令を受信し、受信した読取設定と第1及び第2明るさ条件に基づいて原稿の読取を開始する。(ステップS1404)
 原稿読取が開始されるとはじめに対向部材1109を読み取り、読み取った値を背景の値βとしてスキャナドライバ1302を介して図示しないメモリに保存する(ステップS1405)。その後、原稿を読み取る。原稿の画像データを取得した後、ユーザの設定する明るさ設定で画像検出処理が可能と判断されている場合(ステップS1406、stars=0)、すなわち、ここでは続く原稿サイズ検知が可能と事前に判断されている場合、画像処理部1205(第1明るさ補正手段)で1024階調の明るさ補正処理を行う(ステップS1407)。その後、画像データを256階調のデータに変換し、スキャナドライバ1302に転送する(ステップS1408)。
 画像データを受信したスキャナドライバ1302は、原稿サイズ検知を行う(ステップS1409)。原稿サイズ検知後、明るさ補正処理が行われているか否かを判定する(ステップS1410)。明るさ補正処理が行われていない場合(stars=1)、スキャナドライバ1302(第2明るさ補正手段)は、256階調の明るさ補正処理を行う(ステップS1411)。その後、画像データをアプリケーション1301に転送する(ステップS1412)。画像データを受信したアプリケーション1301は、画像の保存・表示を行う。
 本実施形態では、第1明るさ補正手段を画像処理部1205、第2明るさ補正処理部をスキャナドライバ1302としたが、本発明では、これらに限るものではない。例えば、第1明るさ補正手段は画像検出処理の前部に、第2明るさ補正手段は画像検出処理の後部にあればよい。また、本実施形態1では明るさ補正手段の制御をPC1300が行っているが、スキャナ1101側が行ってもよい。その場合、第1明るさ補正手段、第2明るさ補正手段と画像検出処理もスキャナ1101内に組み込むことが望ましい。
 図13A及び図13Bは本実施形態での明るさ補正処理に関する図である。
 明るさ補正処理は、本実施形態では、画像データのRGB各成分、すなわちR、G、Bの各画素がユーザの設定した明るさになるよう各画素の明るさを調整することである。ユーザの求める明るさの画像を出力するために、上記明るさ補正処理を行う。明るさ補正処理はR,G,Bの入力値を x(図13Aにおける実際の明るさ)、出力時の明るさを yとした時、y=f(x)(図13Bにおける補正データ)の式で表すことができる。
 f(x)は明るさ補正処理を行う際に用いる明るさ補正式である。ユーザは望む明るさの画像になるよう、前記明るさ補正式f(x)を変更することができる。なお、図13Aは、明るさ補正を行わずに出力すると全体的に暗い画像が出力されることになる画像データに対して補正式f(x)を適用して、画像の明るさを調整する場合を示している。また、図13Bは、実際の明るさとは反転した明るさとなるような、特殊な補正式を適用で画像の明るさを調整する場合を示している。
 図14は、読取ユニット1108及びその近傍を示す図であり、原稿を読み取る際の原稿読み取り部の動作について説明する。
 読取ユニット1108により原稿の後端が読み取られている状態を示している。光源1121は、ラインイメージセンサ1120の片方の側面に沿って設けられており、原稿が搬送されてくると、原稿に対して光源1121から光を斜めに照射する。ラインイメージセンサ1120は原稿が反射した光を読み取ることで、原稿の画像データを取得している。
 ラインイメージセンサ1120と対向部材1109の間には、ガラス1106が配置されている。このガラス1106は、対向部材1109に傷や汚れが付かないようにする役割を果たす。また、ガラス1106には、原稿と対向部材1109の間にガラス1106分の厚みを持たせることで、原稿が後端まで搬送されたときに光源1121から照射される光を遮り、影部分1122を作りだす役割がある。
 次に、本実施形態で用いる原稿サイズ検知について説明する。
 原稿サイズ検知を説明するにあたって、まず、影検知の動作について説明する。ここでいう影検知とは、原稿サイズ検知を行うに先立って原稿の輪郭(つまり外形)を検知するにあたって、原稿とその背景(本実施形態では対向部材1109)との境界を原稿の影(以下、shadowともいう)によって検知する手法である。
 図15は、原稿サイズ検知の際に用いる影検知を示したフローチャートである。図16は、影検知に関する読み取った画像データを示した図である。図17は、画像データの画素を拡大した物と影の位置情報を記憶するための1次元配列を示す。なお、図16のx軸方向を主走査方向とし、y軸方向を副走査方向とする。
 まず、スキャナドライバ1302内に影の位置情報を記憶するための1次元配列shadowを画像データのx軸分確保する(ステップS1701)。例えば、図17ではx方向に6個分の画素の画像データなので、確保する1次元配列の長さは6とする。画像データ部1708の右下の画素座標を(x_max,y_max)とし、左上の画素座標を原点(0,0)とする。あらかじめ、スキャナドライバ1302に、影と判断するための閾値αを設定しておく。
 次いで、画像データの各画素の輝度値g(x、y)とαを比較する。走査は画像データの右下の座標(x_max,y_max)から副走査方向に開始し(ステップS1702)、座標(0,0)になるまでg(x、y)とαの比較を行う。画素の輝度値と閾値αがg(x,y)>αとなると(ステップS1703)、y座標の値をy=y-1とする(ステップS1704)。さらに、yの値が0より小さくなる場合(ステップS1705)、1次元配列shadowに-1を保存する(ステップS1706)。
 その後、x座標の値をx=x-1に、y座標の値をy=y_maxにして、走査を繰り返す(ステップS1708)。画素の輝度値と閾値αがg(x,y)≦αとなる場合(ステップS1703)、その座標を原稿1709の影部分1710の画素の一部と判断し、1次元配列shadowに画素のy座標を保存する(ステップS1707)。その後、x座標の値をx=x-1に、y座標の値をy=y_maxにして(ステップS1708)、走査を繰り返す。x座標の値が0より小さくなった場合(ステップS1709)、処理を終える。
 図17は、影と判断するための閾値α=30とした時の図である。画素座標(x_max,y_max)から走査を開始し、g(x、y)=10となる座標にくると、影部分1710として、1次元配列shadowにy座標の値を保存する。その後、x=x-1、y=y_maxとして走査を続ける。座標が(0,0)となるまで走査を続ける。1次元配列に保存された-1以外の値が影の位置を示す。
 次いで、影検知で検出した影を基に、原稿のサイズ検知について説明する。図18は、原稿サイズ検知に関するフローチャートである。また、図19は、サイズ検知を行う原稿を表している。さらに、図20は、影の位置情報が保存された1次元配列である。
 まず、前記影検知で検出した影の位置情報が保存された1次元配列から、最右影から最左影のラインdを算出する(ステップS1801)。
 次いで、原稿の傾き1805をθ(シータ)として、算出する(ステップS1802)。前記影検知で検出した影の位置情報から最右影と最左影の差異から原稿の傾きの高さhを算出する。影のラインdと原稿の傾きの高さhからtanθ=(h/d)ということが分る。従って、Arctan(h/d)=θにより、傾きθが求まる。例えば、図20の場合、原稿の傾きの高さhは最右影と最左影のy座標の差異から6-4=2となり、また、影のラインdは最右影と最左影のx座標から4-1=3となる。従って、tanθ=(2/3)となり、Arctan(2/3)=33.69より原稿の傾きθは約34°と求まる。
 次いで、原稿の傾きの高さhと影のラインdから原稿幅1806を算出する(ステップS1803)。原稿幅1806=√(h+d)により求まる。求めた原稿幅1806を原稿の下辺部とする。
 最後に、原稿の外枠を検出する(ステップS1804)。まず、スキャナ1101のCPU1207は、原稿の先端がレジストセンサ1110を通過すると、t0秒後に画像の読取を開始する命令を送信する。命令を受信した画像読取ユニット1108は、画像の読み取りを開始する。ただし、原稿が傾いていても原稿すべてを読み取るようにマージンをとって画像を読み取る。時間t0はマージンに合わせて決定する。原稿の搬送速度と原稿先端がレジストセンサ1110を通過した時間から原稿先端の座標aを算出し、スキャナドライバ1302に記憶する。
 また、CPU1207は原稿後端がレジストセンサ1110を通過すると、t1秒後に画像の読み取りを終了する命令を送信する。命令を受信した画像読取ユニット1108はt1秒後に画像の読み取りを終了する。ただし、原稿が傾いていても原稿すべてを読み取るようにマージンをとって画像の読み取りを終了する。時間t1はマージンに合わせて決定する。
 原稿の搬送速度と原稿後端がレジストセンサ1110を通過した時間から原稿後端の座標bを算出し、スキャナドライバ1302に記憶する。その後、原稿の先端と後端の座標aを含み、傾きθ且つ原稿幅1806と平行且等しい長さの原稿の上辺部1807を求める。次いで、原稿下辺部1806と原稿上辺部1807のそれぞれの端点を垂直に結び、原稿の左辺1808と原稿の右辺1809を検出する。
 図21は原稿サイズ検知の可否判定についてのフローチャートである。
 図21に示すように、まず、ユーザが設定した明るさ補正式において、入力値をxとし(ステップS1901)、明るさ補正処理後の輝度値がf(x+1)≧f(x)を満たすか否かを判定する(ステップS1902)。ただし、xの値は0≦x≦1023とする(ステップS1903、ステップS1904)。(本実施形態では明るさの設定が単調増加のものに限る(例:図13A)。補正データが減少する、または、明るさ補正式が特殊なものは原稿サイズ検知ができないと判定する(例:図13B)。)明るさ補正処理後に輝度値がf(x+1)<f(x)となる場合、明るさ補正処理後に原稿サイズ検知ができないと判断し(ステップS1908)、スキャナドライバ1302内で原稿サイズ検知後に明るさ補正処理を行うように設定する(ステップS1909)。
 さらに、f(x+1)≧f(x)を満たす場合、次に、あらかじめスキャナドライバ1302に設定しておいた影の閾値αと、背景の値である白色部材1109の値βを比較する(ステップS1905)。その際に、背景と影の閾値thをスキャナドライバ1302にあらかじめ設定しておく。明るさ補正処理後、f(β)-f(α)>thとなる場合、明るさ補正処理後でも十分に原稿サイズ検知が可能と判断し(ステップS1906)、スキャナ1101内で明るさ補正処理を行う(ステップS1907)。f(β)-f(α)≦thの場合、明るさ補正処理後に原稿サイズ検知ができないと判断し(ステップS1908)、スキャナドライバ1302内で明るさ補正処理を行うように設定する(ステップS1909)。
 尚、図9に示すスキャナ1101の構成は概略的であり、本実施形態に限るものではない。
 また、本実施形態では、シートフィードタイプのスキャナ1101を使っているが、フラットベッドタイプのスキャナでも良い。
 また、原稿サイズ検知と原稿サイズ検知の可否判定方法は、本実施形態で用いた方法に限るものではない。
 また、本実施形態では画像検出処理を原稿サイズ検知処理としているが、原稿サイズ検知処理に限るものではない。例えば、バーコード検出処理、文字認識処理、画像内のごみやスジの検出処理、白紙判定処理であってもよい。
 また、本実施形態では、画像検出処理の可否判定は輝度情報を基に行っているが、別の情報を基に可否判定を行っても良い。例えば、カラー画像をスキャンする場合、明るさ補正処理はR、G、Bそれぞれに対して別々の明るさ補正式を用いることもできる。しかし、R、G、Bそれぞれの明るさ補正式が異なる場合は、画像の色相や彩度が変化してしまう。従って、色ずれ検出処理や原稿の色あせ検出処理のような色相を基にした検出処理、または、読み取った原稿をカラー原稿か白黒原稿か判定するカラー白黒検知処理のような彩度を基にした検出処理が、正しく実行できなくなってしまう。例えば、画像検出処理が色ずれ検出処理の場合は、R、G、Bそれぞれの明るさ補正式が一致するときのみスキャナ1101で明るさ補正処理を行い、スキャナドライバ1302内で色ずれ検出処理を行う。明るさ補正式が一つでも異なるときはスキャナドライバ1302内で色ずれ検出処理と明るさ補正処理を行えば良い。
 次に、上述の本発明の他の実施形態に対する変形例として、更に他の実施形態について説明する。本発明の他の実施形態では、明るさ補正処理を行う場所をスキャナ1101内又はスキャナドライバ1302内に切り替えている。しかし、本発明は、ユーザの設定した明るさ設定に応じて、明るさ補正処理をスキャナ1101内とスキャナドライバ1302内の2つで行うことも可能である。例えば、ユーザの設定する明るさ設定が特殊な場合(例えば、図13Bのような画像の明るさが反転するような明るさ設定の場合)、画像処理の前後で補正条件の異なる明るさ補正をそれぞれ行う明るさ補正処理をスキャナ1101内とスキャナドライバ1302内で行うことで、特殊な明るさ設定でも高画質な画像を提供することができる。
 図22はユーザの設定する明るさ設定が特殊な場合の原稿読み取りから保存・表示までのフローチャートである。
 まず、ユーザはアプリケーション1301で各種原稿読取の設定を行い、アプリケーション1301から原稿のスキャン命令を送信する。
 原稿読取命令を受信したスキャナドライバ1302はスキャナ1101に対して、ユーザが設定した原稿読取設定を送信し、次いで原稿読取開始命令を送信する。
 スキャナドライバ1302から原稿読取開始命令を受信したスキャナ1101は(ステップS2001)、受信したユーザの設定する明るさ設定が特殊な設定か否かの判定を行う(ステップS2002)。明るさ補正処理をスキャナ1101とスキャナドライバ1302内で行うように設定する(ステップS2003、stars=1)。明るさ補正処理の判定後、原稿の読み取りを開始する(ステップS2004)。原稿読取が開始されると初めに白色部材1109を読み取り、読み取った値を背景の値βとしてスキャナドライバ1302に保存する(ステップS2005)。その後、原稿を読み取る。原稿の画像データを取得した後、明るさ設定が既定値時と同様の1024階調の明るさ補正処理を行う(ステップS2006)。その後、画像データを256階調のデータに変換し、スキャナドライバ1302へ転送する(ステップS2007)。
 画像データを受信したスキャナドライバ1302は、原稿サイズ検知を行う(ステップS2008)。次に、ユーザの設定した明るさ設定が特殊か否かを判定する(ステップS2009)。特殊なものの場合(stars=1)、256階調の明るさ補正処理を行う(ステップS2010)。その後、画像データをアプリケーション1301に転送する(ステップS2011)。
 画像データを受信したアプリケーション1301は、画像の保存・表示を行う(ステップS2012)。
 図23は、ユーザの設定した明るさが実際の明るさと反転した明るさになるような特殊な設定の場合(図13B)の明るさ補正処理のフローチャートである。
 まず、スキャナ1101は原稿を読み取ると、明るさの反転する明るさ補正処理を行わず、既定値と同様の1024階調の明るさ補正処理をスキャナ1101内で行う(ステップS2101、図24)。その後、256階調のデータに変換し、スキャナドライバ1302へ転送する。
 画像データを受信したスキャナドライバ1302は、原稿サイズ検知を行い(ステップS2102)、次いで、ユーザの設定する明るさの反転する明るさ補正処理を256階調で行う(ステップS2103、図24)。その後アプリケーション1301へ画像データを転送する。
 本実施形態の手法を用いれば、スキャナ1101側で1024階調の明るさ補正処理を行っており、且つスキャナドライバ1302内での明るさ補正処理は階調性を損なわないので、高画質な画像を提供することが出来る。
 また、明るさ補正処理には、ライン上又は面上に並んだ受光素子のバラツキを補正するシェーディング補正処理や、ガンマ処理、単純な明るさのシフト処理、コントラスト補正等があり、これらの明るさ補正処理は、単独又は複合して実施される。
 また、本実施形態では、シートフィードタイプのスキャナ1101を使っているが、フラットベッドタイプのスキャナでも良い。
 本実施形態で用いる画像検出処理である原稿サイズ検知は、上述した他の実施形態と同様のものである。
 また、本実施形態は上述した他の実施形態と組み合わせて行っても良い。例えば、ステップS2002で特殊な明るさ補正式でないと判定されたときは、上述した実施形態1にあるような画像検出可否判定を行い、不可能と判定された場合はスキャナ1101内で明るさ補正処理を行わず、スキャナドライバ1302内で画像検出処理を行ってから明るさ補正処理を行えば良い。
 また、本実施形態で用いた画像検出処理は、上述した他の実施形態と同様に、原稿サイズ検知処理に限るものではなく、バーコード検出処理、文字認識処理、画像内のごみやスジの検出処理、白紙判定処理、色ずれ検出処理、色あせ検出処理、カラー白黒検知処理などであっても良い。また、このような画像処理以外では、画像データの転送時に、可逆圧縮、非可逆圧縮を行いデータサイズを削減した後、画像データを転送し、その後データ伸張する画像圧縮伸張処理も含む。
 本実施形態例では、一連の画像処理がラインイメージセンサ1120からアプリケーション1301まで一貫した流れになっている。しかし、本発明は、画像処理の途中で複数の異なった画像処理を行い、それぞれの画像処理で作成した複数の画像データをそれぞれのアプリケーション1301に送る画像処理方式(以降、マルチストリーム処理とする)に適用されてもよい。
 例えば、これまでの説明で述べたように、明るさ補正処理はスキャナ1101内で行う方が画像転送時間の短縮と、高画質を提供出来る。ただし、前述した複数の画像処理を組み合わせたマルチストリーム処理において、処理の全てをスキャナ1101内部で実施するのは、スキャナ1101の画像処理量の増加及び、処理後のデータ転送時間の増加が顕著になることがある。よって、マルチストリーム処理の場合も、シェーディング補正や明るさ補正処理の一部をスキャナ1101内部で行った後、PC1300側へ画像データを転送し、その後、複数の画像処理を行うとよい。
 例として、マルチストリーム処理として、写真用カラー画像出力と文書用グレー出力を選択する場合を説明する。これは多種類の原稿を扱うドキュメントスキャナでは写真原稿と文書原稿が混在することからである。写真原稿においては明るさ補正を少なめにし、写真背景部の地色が飛ばないように調整するとよい。逆に文書原稿では明るさ補正を行い、文書原稿背景の地色を白くなるまで調整するとよい。
 これらの二つの処理が選択された場合、写真原稿用の明るさ補正処理までをスキャナ1101内部で行い、転送データの条件によっては、可逆または不可逆のデータ圧縮を行い、データをPCの転送した後、条件によっては、データの伸張を行い、写真用カラー画像出力用と文書用グレー出力用とに処理を分ける。写真用カラー画像出力では、他に画像処理が無ければ、明るさ調整を行わずに出力データとする。文書用グレー画像出力では、文書原稿背景の地色が白くなるまでPC内部の明るさ補正処理を行い、文書用グレー出力データとする。
 この様に処理を行う事で、写真原稿と文書原稿が混在する画像読取処理において、全体の処理速度の低下を最低限にしながら、原稿画質を低下せずに一連の処理を実施出来る。
 また、前述では、写真用カラー画像処理と文書原稿用グレー処理の場合について示したが、その他の画像処理を組み合わせた画像処理手段において、複数存在する明るさ補正手段の補正度合いを好適に調整しても良い。
 さらに、明るさ設定手段は、複数有る処理の流れに対してそれぞれを個別設定しても良い。その場合、スキャナ1101内部で実施する明るさ補正手段による補正量は、設定された最小補正量を用いて実施し、残りの明るさ補正手段は、設定された補正量から最小補正量を引いた残り分を補正量として、明るさ補正を行う。例えば、画像処理システムにおいては、画像処理の設定及び明るさ設定の少なくとも一方に基づいて、複数の明るさ補正手段(具体的にはスキャナ1101の明るさ補正手段、PC1300の明るさ補正手段)それぞれの補正比率を調整してもよい。この場合には、最終的に得られる画像が所望の品質となるように、複数の明るさ補正手段を制御することが望ましく、画像処理の過程で、明るさ補正によってそれ以外の処理に影響がでないようにすることが更に望ましい。
 なお、図示しないが、複数の明るさ補正手段による補正比率に基づいて、画像処理手段による画像処理を施せるか否かを判断する画像処理可否判断手段を更に備えるようにしてもよい。この場合には、PC1300またはスキャナ1101の制御手段、すなわち、各CPU共同で又は少なくとも一方側のCPUでは、画像処理可否判断手段によって得られた結果に基づいて、複数の明るさ補正手段による補正比率を再調整すればよい。これにより、ユーザに余計な操作を要求することがなく、操作性の良いシステムを提供することができる。
 また、スキャナ1101とスキャナ内で明るさ補正処理を分けて行うのは、本実施形態の場合に限るものではなく、2値などの減色した画像や特定の輝度領域を極端に明るくする、暗くする、一定にするまたは反転させる画像、画像全体の輝度を等しく明るくするまたは暗くする画像など他の特殊な明るさ設定であってもよい。
 以上、本発明を他の実施形態及び更に他の実施形態に基づいて説明したが、本発明は上述した実施形態に限定されるものではない。
 例えば、上述した実施形態では、スキャナ1101とPC1300とで画像処理システムを構築したが、本発明は勿論これに限定されず、画像読取装置であるスキャナ1101の電気回路と、情報端末装置であるPC1300とでシステム構築してもよい。
 本発明は、画像を入力する画像入力手段と、画像の明るさを設定するための明るさ設定手段と、明るさ設定に基づいて画像の明るさを補正する明るさ補正手段と、画像処理(画像検出処理)を行う画像処理手段と、画像処理及び明るさ設定の少なくとも一方に応じて、明るさ補正手段を制御する制御手段とを備えた画像処理システムとしてもよい。この場合の制御手段は、画像処理及び明るさ設定の少なくとも一方に応じて、画像処理の前に明るさ補正を行うのか、画像処理の後に明るさ補正を行うのかを選択制御する。これにより、画像処理や明るさ設定に応じて明るさ補正を最適なタイミングで制御できるため、ユーザが望む画像を高精度に提供することができる。
 上述した画像処理システムや上述の実施形態のようなシステムにおいて、前記画像データに対する明るさ補正処理は、前記画像データのRGB各成分の値を一律に増減して調整する処理としてもよい。例えば、256階調の場合は、RGB各成分の諧調を一律に増減して調整する場合が挙げられる。これにより、ユーザは、所望の明るさの画像を得ることができる。
 また、上記画像データに対する画像処理は、画像データに含まれるシート領域とその背景領域との境界に基づいてシートの存在領域又は外形を検出する処理であってもよい。ここでいうシートの存在領域等の検出は、矩形のシートの各角座標の情報を検出する
場合を含む。
 さらに、上記画像データに対する画像処理は、画像データに含まれるシート領域とその背景領域との境界に基づいてシートの傾きを検出する処理であってもよい。ここでいうシートの傾きとは、シートフィードスキャナであればシート搬送方向に対するシートの傾きであり、フラットベットスキャナであれば読取りユニットの捜査方向に対するシートの傾きである。
 また、上記画像処理は、シートの外形検知処理、文字認識処理、画像異常検出処理、色ずれ判定処理、色味判定処理、バーコード検出処理の少なくとも1つの処理、又は各処理の組み合わせを含む。ここでいう各組み合わせとは、上述したシートの存在領域や外形、傾き等の検出処理との組み合わせを含む。
 ここで、本発明は、ユーザからの明るさ補正要求を受け付ける明るさ補正要求受付手段(例えば、PCのディスプレイに表示されるユーザインターフェース等の入力設定画面等)と、明るさ補正要求に基づいて、画像処理手段による画像処理が可能か否かを事前に判断する画像処理前判断手段と、画像処理前判断手段による判断結果に基づいて、その後の明るさ補正処理及び画像処理の順番(順序)を制御する制御手段とを更に備えていてもよい。すなわち、シートから読み取った画像を受け付けた後、複数の明るさ補正手段のうち少なくとも1つの明るさ補正手段によって画像の明るさを補正するにあたり、画像に対する画像処理の設定条件及び明るさ設定の少なくとも一方に基づいて、複数の明るさ補正手段と前記画像処理の順序とを制御する。これにより、それぞれの処理及びその順序が最適化され、最終的に得られる画像の質を向上することができる。例えば、明るさ補正によるその後の画像処理の精度低下を有効に防止することができる。
 なお、明るさ補正条件設定手段は、画像処理前判断手段による判断結果に基づいて、ユーザからの明るさ補正要求を第1明るさ条件又は第2明るさ条件として明るさ補正条件の設定を行ってもよい。これにより、明るさ補正によるその後の画像処理の精度低下を有効に防止することができる。
 また、本発明では、シートから読み取った画像データに対して、所定の画像処理と、第1明るさ条件又は第2明るさ条件に基づいて明るさ補正処理とを行うに際し、第1明るさ条件のときは、画像データに前記第1明るさ条件に基づく明るさ補正を行った後に画像処理を行う一方、第2明るさ条件のときは、画像データに画像処理を行った後に第2明るさ条件に基づく明るさ補正処理を行うようにしてもよい。本発明は、このような所定の画像処理と明るさ補正処理とをコンピュータに実行させるためのソフトウェア(コンピュータプログラム)についても広く含まれる。
 本発明は上記実施の形態に制限されるものではなく、本発明の精神及び範囲から離脱することなく、様々な変更及び変形が可能である。従って、本発明の範囲を公にするために、以下の請求項を添付する。
 本願は、2011年4月6日提出の日本国特許出願特願2011-084741及び2011年6月23日提出の日本国特許出願特願2011-139191を基礎として優先権を主張するものであり、その記載内容の全てを、ここに援用する。

Claims (14)

  1.  画像読取装置と、前記画像読取装置に接続可能であり、前記画像読取装置から画像データを取得する情報処理装置と、を備える画像読取システムであって、
     前記画像読取装置は、
     原稿の画像を読み取って画像データを生成する読取手段と、
     前記読取手段によって生成された前記画像データに対して、第1の補正特性によるガンマ補正を行う第1の補正手段と、
     前記第1の補正手段によって補正された画像データを前記情報処理装置に送信する送信手段と
    を備え、
     前記情報処理装置は、
     前記送信手段によって送信された画像データを受信すると、受信した当該画像データが示す画像の特性を判定する第1の判定手段と、
     前記第1の判定手段によって判定された画像の特性が、前記第1の補正特性に対応しているか否かを判定する第2の判定手段と、
     前記第2の判定手段によって、前記画像の特性が前記第1の補正特性に対応しないと判定されると、前記受信した画像データに対して、前記第1の補正特性の逆特性によるガンマ補正を行うとともに、前記画像の特性に対応した第2の補正特性によるガンマ補正を行う第2の補正手段と
    を備えることを特徴とする画像読取システム。
  2.  前記画像読取装置は、
     前記第1の補正手段によって補正された画像データを、階調数を減少させた画像データに変換する変換手段をさらに備え、
     前記送信手段は、前記変換手段による変換後の画像データを前記情報処理装置に送信する
    ことを特徴とする請求項1に記載の画像読取システム。
  3.  前記情報処理装置は、
     前記読取手段が画像を読み取る際のモードとして、マルチカラー画像の画像データを生成するマルチカラーモードと、モノカラー画像の画像データを生成するモノカラーモードと、前記読取手段が読み取った画像のカラーを自動的に判定して、判定結果に応じた画像データを生成する自動判定モードと、の何れかを指定して、指定されたモードを前記画像読取装置に通知する指定手段をさらに備え、
     前記第1の補正特性は、前記モノカラーモードにおいては、モノカラー画像に対応した補正特性であり、前記マルチカラーモードまたは前記自動判定モードにおいては、マルチカラー画像に対応した補正特性であり、
     前記第1の判定手段は、前記自動判定モードにおいて、前記受信した画像データに基づく画像がマルチカラー画像およびモノカラー画像のいずれであるかを判定し、
     前記第1の判定手段、前記第2の判定手段、および前記第2の補正手段は、前記自動判定モードが前記指定手段によって指定された場合にのみ、それぞれ処理を実行する
    ことを特徴とする請求項1又は2に記載の画像読取システム。
  4.  前記情報処理装置は、
     前記モノカラーモードまたは前記マルチカラーモードにおいては、前記受信された画像データを出力し、
     前記自動判定モードにおいては、前記第1の判定手段によって、前記画像の特性が前記第1の補正特性に対応すると判定された場合、前記受信された画像データを出力する一方で、前記画像の特性が前記第1の補正特性に対応しないと判定された場合、前記第2の補正手段による補正後の画像データを出力する出力手段
    をさらに備えることを特徴とする請求項3に記載の画像読取システム。
  5.  前記第1の判定手段は、
     前記受信された画像データに含まれる一部又は全部の画素について彩度を算出する手段を備え、
     前記一部又は全部の画素のうちで前記算出された彩度が所定の閾値以上である画素の総数に基づいて、前記受信された画像データに基づく画像が、マルチカラー画像およびモノカラー画像のいずれであるかを判定する
    ことを特徴とする請求項3又は4に記載の画像読取システム。
  6.  前記第1の判定手段は、前記受信された画像データが示す画像の明るさを判定し、
     前記第1の補正特性および前記第2の補正特性は、異なる画像の明るさに対応した補正特性である
    ことを特徴とする請求項1又は2に記載の画像読取システム。
  7.  画像読取システムであって、
     原稿の画像を読み取って画像データを生成する読取手段と、
     前記読取手段によって生成された前記画像データに対する補正のための、画像の明るさを設定する明るさ設定手段と、
     前記読取手段によって生成された前記画像データに対して、画像の明るさを前記明るさ設定手段によって設定された明るさとするための明るさ補正を行う複数の明るさ補正手段と、
     前記読取手段によって生成された前記画像データに対して、所定の設定条件に基づく画像処理を行う画像処理手段と、
     前記所定の設定条件、及び前記明るさの設定の少なくとも一方に基づいて、前記複数の明るさ補正手段を制御する制御手段と
    を備えることを特徴とする画像読取システム。
  8.  前記読取手段を備える画像読取装置と、前記画像読取装置に接続可能であり、前記画像読取装置から画像データを取得する情報処理装置とを備え、
     前記複数の明るさ補正手段は、
      前記画像読取装置に設けられ、前記読取手段によって生成された画像データに対して第1明るさ補正を行う少なくとも一つの第1明るさ補正手段と、
      前記情報処理装置に設けられ、当該情報処理装置が前記画像読取装置から取得した画像データに対して第2明るさ補正を行う少なくとも一つの第2明るさ補正手段と
    を有し、
     前記第2明るさ補正手段は、
     前記画像読取装置から取得された、前記第1明るさ補正手段による第1明るさ補正、及び前記画像処理手段による前記所定の設定条件に従った画像処理が施された画像データに対して、前記第2明るさ補正を行う
    ことを特徴とする請求項7に記載の画像読取システム。
  9.  前記制御手段は、
     前記複数の明るさ補正手段のうち、前記所定の設定条件及び前記明るさの設定の少なくとも一方に基づいて選択される少なくとも1つの明るさ補正手段に、前記読取手段によって生成された画像データに対する明るさ補正を実行させることを特徴とする請求項7又は8に記載の画像読取システム。
  10.  前記制御手段は、
     前記所定の設定条件及び前記明るさの設定の少なくとも一方に基づいて、前記複数の明るさ補正処理手段それぞれによる明るさ補正における補正比率を調整することを特徴とする請求項7乃至9のいずれか1項に記載の画像読取システム。
  11.  前記複数の明るさ補正手段による補正比率に基づいて、前記読取手段によって生成された画像データに、前記画像処理手段による前記所定の設定条件に従った画像処理を施せるか否かを判断する判断手段を更に備えたことを特徴とする請求項7乃至10のいずれか1項に記載の画像読取システム。
  12.  前記制御手段は、
     前記判断手段による判断結果に基づいて、前記複数の明るさ補正手段による明るさ補正における補正比率を再調整することを特徴とする請求項11に記載の画像読取システム。
  13.  原稿の画像を読み取って画像データを生成する読取手段と、前記読取手段によって生成された前記画像データに対して、第1の補正特性によるガンマ補正を行う第1の補正手段と、前記第1の補正手段によって補正された画像データを情報処理装置に送信する送信手段とを備える画像読取装置に接続可能であり、前記画像読取装置から画像データを取得する情報処理装置であって、
     前記送信手段によって送信された画像データを受信すると、受信した当該画像データが示す画像の特性を判定する第1の判定手段と、
     前記第1の判定手段によって判定された画像の特性が、前記第1の補正特性に対応しているか否かを判定する第2の判定手段と、
     前記第2の判定手段によって、前記画像の特性が前記第1の補正特性に対応しないと判定されると、前記受信した画像データに対して、前記第1の補正特性の逆特性によるガンマ補正を行うとともに、前記画像の特性に対応した第2の補正特性によるガンマ補正を行う第2の補正手段と
    を備えることを特徴とする情報処理装置。
  14.  コンピュータを、請求項13に記載の情報処理装置の各手段として機能させるためのプログラム。
PCT/JP2012/002310 2011-04-06 2012-04-03 画像読取システム、情報処理装置、及びプログラム WO2012137478A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2013508760A JP5632070B2 (ja) 2011-04-06 2012-04-03 画像読取システム、情報処理装置、及びプログラム
US14/044,093 US9007668B2 (en) 2011-04-06 2013-10-02 Image reading system, information processing apparatus, and storage medium

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2011-084741 2011-04-06
JP2011084741 2011-04-06
JP2011139191 2011-06-23
JP2011-139191 2011-06-23

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/044,093 Continuation US9007668B2 (en) 2011-04-06 2013-10-02 Image reading system, information processing apparatus, and storage medium

Publications (1)

Publication Number Publication Date
WO2012137478A1 true WO2012137478A1 (ja) 2012-10-11

Family

ID=46968887

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/002310 WO2012137478A1 (ja) 2011-04-06 2012-04-03 画像読取システム、情報処理装置、及びプログラム

Country Status (3)

Country Link
US (1) US9007668B2 (ja)
JP (1) JP5632070B2 (ja)
WO (1) WO2012137478A1 (ja)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6879131B2 (ja) * 2017-08-31 2021-06-02 ブラザー工業株式会社 スキャンシステム、情報処理装置、及び、スキャナドライバ

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11146220A (ja) * 1997-11-10 1999-05-28 Ricoh Co Ltd 画像処理装置
JP2003280597A (ja) * 2002-03-19 2003-10-02 Seiko Epson Corp 画像処理方法、画像処理装置、画像処理プログラム、コンピュータ読み取り可能な記録媒体、通信端末装置、サーバ装置、および画像処理システム
JP2003319411A (ja) * 2002-04-19 2003-11-07 Matsushita Electric Ind Co Ltd 信号処理装置
JP2007102284A (ja) * 2005-09-30 2007-04-19 Canon Inc 画像処理装置、画像処理方法、及びコンピュータプログラム
JP2009303152A (ja) * 2008-06-17 2009-12-24 Canon Inc データ通信システム
JP2010117818A (ja) * 2008-11-12 2010-05-27 Panasonic Corp 画像処理装置および画像処理プログラム

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01317075A (ja) 1988-06-16 1989-12-21 Ricoh Co Ltd スキャナ装置
US6999213B2 (en) 2000-09-29 2006-02-14 Canon Kabushiki Kaisha Image processing system, image processing apparatus, image processing method, and storage medium thereof
JP4587155B2 (ja) 2001-08-09 2010-11-24 キヤノン株式会社 画像処理システム、方法、及び、プログラム
JP4238880B2 (ja) 2006-04-03 2009-03-18 エプソンイメージングデバイス株式会社 照明装置及び液晶表示装置
US7916942B1 (en) 2006-06-02 2011-03-29 Seiko Epson Corporation Image determining apparatus, image enhancement apparatus, backlight image enhancement apparatus, and backlight image enhancement method
JP4222385B2 (ja) * 2006-06-02 2009-02-12 セイコーエプソン株式会社 逆光画像判定装置、逆光画像判定方法、逆光画像判定プログラム、画像読み取り装置、画像読み取り方法および印刷装置
JP4293212B2 (ja) * 2006-09-06 2009-07-08 村田機械株式会社 画像色判定装置、画像色判定方法、およびプログラム

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11146220A (ja) * 1997-11-10 1999-05-28 Ricoh Co Ltd 画像処理装置
JP2003280597A (ja) * 2002-03-19 2003-10-02 Seiko Epson Corp 画像処理方法、画像処理装置、画像処理プログラム、コンピュータ読み取り可能な記録媒体、通信端末装置、サーバ装置、および画像処理システム
JP2003319411A (ja) * 2002-04-19 2003-11-07 Matsushita Electric Ind Co Ltd 信号処理装置
JP2007102284A (ja) * 2005-09-30 2007-04-19 Canon Inc 画像処理装置、画像処理方法、及びコンピュータプログラム
JP2009303152A (ja) * 2008-06-17 2009-12-24 Canon Inc データ通信システム
JP2010117818A (ja) * 2008-11-12 2010-05-27 Panasonic Corp 画像処理装置および画像処理プログラム

Also Published As

Publication number Publication date
US9007668B2 (en) 2015-04-14
JP5632070B2 (ja) 2014-11-26
JPWO2012137478A1 (ja) 2014-07-28
US20140071505A1 (en) 2014-03-13

Similar Documents

Publication Publication Date Title
JP4991411B2 (ja) 画像処理方法
JP5199787B2 (ja) 画像処理装置、画像処理方法、およびプログラム
US8559752B2 (en) Image processing system for processing a digital image and image processing method of processing a digital image
US8437047B2 (en) Image processing apparatus, control method, and program
US9025206B2 (en) Processing image using shared buffer
JP2010109448A (ja) 画像処理方法及び画像読取装置
CN1607811A (zh) 产生彩色文档的黑白拷贝的系统和方法
US8941900B2 (en) Image forming apparatus and method of processing image thereof
JP6296731B2 (ja) 画像処理装置及び画像処理方法、プログラム
US8054517B2 (en) Image processing apparatus and image processing method
US20100277777A1 (en) Image processing apparatus and image processing method
US8699791B2 (en) Image processing apparatus, method and storage medium for controlling monochromization and background removal processing
JP7034742B2 (ja) 画像形成装置、その方法およびプログラム
WO2012137478A1 (ja) 画像読取システム、情報処理装置、及びプログラム
JP4420058B2 (ja) 画像処理装置及び画像処理方法
US20220166896A1 (en) Image reading device and image reading method
JP2010021937A (ja) 画像処理装置、画像読取装置、画像形成装置、画像処理方法、プログラムおよびその記録媒体
JP2009272891A (ja) 画像読取装置、画像形成装置、画像読取方法及び画像形成方法
JP7097223B2 (ja) 画像出力装置、及び画像読取システム
JP2021192489A (ja) 画像形成装置、画像形成装置の制御方法ならびにプログラム
JP2001053975A (ja) 画像印刷方法および装置
US9876937B1 (en) Saving marking material using threshold arrays and toner reduction mask
JP2004266461A (ja) 画像処理方法および画像処理装置
JP2008066950A (ja) 画像色判定装置、画像色判定方法及び画像色判定プログラム
JP2007036514A (ja) 画像変換システム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12767612

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2013508760

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12767612

Country of ref document: EP

Kind code of ref document: A1