WO1991009488A1 - Picture filing device and method thereof - Google Patents

Picture filing device and method thereof Download PDF

Info

Publication number
WO1991009488A1
WO1991009488A1 PCT/JP1990/001630 JP9001630W WO9109488A1 WO 1991009488 A1 WO1991009488 A1 WO 1991009488A1 JP 9001630 W JP9001630 W JP 9001630W WO 9109488 A1 WO9109488 A1 WO 9109488A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
data
color
area
pixel
Prior art date
Application number
PCT/JP1990/001630
Other languages
French (fr)
Japanese (ja)
Inventor
Tatsuya Murakami
Eiichi Hadano
Masaaki Fujinawa
Hiromichi Fujisawa
Hidefumi Masuzaki
Tsugio Takahashi
Kazunori Kinoshita
Yasuo Kurosu
Satoshi Ito
Original Assignee
Hitachi, Ltd.
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
Priority claimed from JP32371989A external-priority patent/JP3144788B2/en
Priority claimed from US07/479,615 external-priority patent/US5128748A/en
Priority claimed from JP19748990A external-priority patent/JPH0481979A/en
Application filed by Hitachi, Ltd. filed Critical Hitachi, Ltd.
Priority to EP91900331A priority Critical patent/EP0458978B1/en
Priority to DE69030178T priority patent/DE69030178T2/en
Publication of WO1991009488A1 publication Critical patent/WO1991009488A1/en

Links

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/64Systems for the transmission or the storage of the colour picture signal; Details therefor, e.g. coding or decoding means therefor
    • H04N1/642Adapting to different types of images, e.g. characters, graphs, black and white image portions
    • 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/41Bandwidth or redundancy reduction
    • H04N1/4105Bandwidth or redundancy reduction for halftone screened pictures
    • 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/64Systems for the transmission or the storage of the colour picture signal; Details therefor, e.g. coding or decoding means therefor

Definitions

  • the present invention provides a function for inputting and accumulating a document, particularly a color document including color information such as color photographs and redlining with red brush as image data, a display thread layout and a printer. Output to field
  • mono click B image (mono ch r Qma tic images) and force La first image (co 1 or images) and the force s mixed picture can coding efficiency rather good
  • mono- click b binary data only the output Devices such as electronic filing devices that can encode a single image in a format that is compatible with faxes, etc.
  • the image is divided into three primary colors of red, green, and blue (primaryco 1 or S ) and three types of multi-valued data ( Since then
  • each component is referred to as R, G, and B
  • the data of each color component is referred to as R data, G data, and B data.
  • a color copier or the like outputs the input R, G, B multi-valued image data as it is. Also, output to pre and
  • binarization processing such as 25 And binarize the data independently for each color.
  • Examples of such a high-performance processing are, for example, JP-A-63-174472 and JP-A-64-51583.
  • Japanese Patent Laid-Open No. 63-1747442 is a color image in which luminance information (luminance) is calculated from three components of R, G, and B, and the binarization process is switched according to the value.
  • Japanese Patent Application Laid-Open No. Sho 644-511583 which discloses a processing device, decomposes a color image into four colors of yellow, magenta, cyan, and black, and converts each color into a binary value. It discloses an electronic file device that stores and converts it into a file. However, if the image information is decomposed into four colors of yellow, magenta, and cyan black, and if only the information of the black is output, the image of the colored portion is lost. No consideration is given to displaying intermediate colors such as color photographs.
  • a color document often has a large area of a mouth opening while including a color image as a part of the image.
  • color ... Information is meaningful only with color, and it is not so heavy to reproduce colors accurately. Therefore, storing all R, G, and B data is inefficient.
  • the area ratio often includes a large number of character areas of a monograph.
  • an image processing system that targets documents is not only a color image processing system that targets only one color image, but also has high coding efficiency for mono-text images and characters. Desired.
  • R, G, and B are individually coded, the redundancy is high and the coding efficiency is low. For this reason, it is not suitable for electronic file systems that store a large amount of document image data, or for faxes that require sending document images at a low data transfer rate.
  • the method of storing and outputting the RGB multi-valued data as it is would not be suitable for the above-described apparatus because the data amount would be enormous.
  • the portion represented by a monochrome in the image is called a monochromatic region.
  • TVs or VTRs convert RGB color image data into luminance information and two types of color difference information (chr 0 minance), perform orthogonal transformation, and calculate the coefficients.
  • the technology of encoding and storing is widely used. This encoding method handles only luminance information in a monochromatic aperture region having no color difference information. Therefore, an image containing a large number of monochromatic regions And high coding efficiency.
  • Japanese Patent Application Laid-Open No. 63-92282 discloses an example s using this encoding method for a document.
  • the conversion method is intended primarily for devices that handle natural images such as TVs.
  • the data changes sequentially with each transfer.
  • a two-color original reading device is known.
  • This extraction method optically reads a color component determined in advance by the device and its corrected color component, and identifies whether or not the target portion is a set color based on the difference and the sum of the two.
  • the center wavelength of the extracted hue is determined by characteristics of an optical finoletor or the like.
  • One object of the present invention is to efficiently encode and store various types of document images, regardless of whether they are a single document or black and white text. .
  • the monochromatic area such as a document with a red seal is mainly used, and the color For a multi-color document where reproduction is not important, the encoding is to be performed with higher efficiency.
  • Another object of the present invention is to make it possible to change the color tone and saturation of an accumulated color image when outputting the image.
  • Another object of the present invention is to allow the range of colors to be extracted to be freely specified from the outside according to the operator's sense, and to be able to specify the hue while checking the extraction results. It is here.
  • Many fax and electronic file systems that have been widely used so far have an input / output device for binary black-and-white images. Therefore, the color document filing systems can also be used more widely if they are compatible with them. For that purpose, it is necessary to maintain compatibility in the data recording format.
  • the image filing apparatus of the present invention is compatible with a conventional image filing apparatus that targets a monochromatic image. For this reason, color image data is stored in a format that is compatible with previously stored monochrome image data. In addition, the contents of each image can be displayed at high speed when searching for the contents of color image data stored in a large amount in a data storage device such as an optical disk.
  • An image filing apparatus of the present invention comprises: input means for inputting an image corresponding to a document as multi-valued data; and input data conversion means for converting the multi-valued data into binary image data.
  • Image memory means for temporarily storing the binarized image data, and performing predetermined encoding to accumulate the image data stored in the image memory means.
  • an image storage unit having a code decoding processing function of decoding stored document image data, and outputting desired image data based on the binary image data of the image memory unit.
  • multivalued color image data is treated as a plurality of independent binary image data.
  • three binary images each of which records the R component, G component, and B component of the image, are recorded as R data, G data, and B data, respectively. These are stored as data, and at the time of output, the three binary images are combined to represent one color image.
  • the luminance data can be substituted by, for example, G data.
  • the data of the three primary colors of a color image will be referred to as R data, G data, and B data, respectively, and three binary image data used to represent one image will be referred to. Are individually referred to as planes.
  • the luminance data is written as Y.
  • the binary data Y indicating the luminance information and the binary data indicating only the portion of the specific color are stored as independent images. I do.
  • a plane of luminance data for recording a black-and-white binary image is accumulated, and for example, binary image data recording only pixels of a specific color to be displayed in red is accumulated in another plane. That is, the image data is stored as two binary images.
  • red-marked and red-corrected documents the important thing is that red is “colored,” and it can be very accurate, as in color photos. Reproduction of rich colors is not generally required. Therefore, these images are handled in a recording format such as monochromatic image data and image data specifying a colored portion. That is, the luminance data Y is recorded as a single plane.
  • the black pixels are described in the luminance plane, but also the pixels to be displayed in red or another specific color are described.
  • the extracted pixel of a specific color is extracted to a plane other than the luminance plane, for example, the R plane. Record as "1".
  • the R plane is recorded as binary image data in which only pixels written in "red” are represented by "1"-and other pixels are represented by "0".
  • the pixels of the R plane are all "0" in the area described in the mono pixel, the coding efficiency is high, and the case where only the mono black binary image data is used is almost the same. Almost the same amount of data can be recorded including color information.
  • the multicolor document can be converted to the conventional monoc It can be displayed in the same way as if it were entered on the system.
  • means for externally specifying the color to be extracted means for externally specifying the extraction range, means for converting the color of the specified hue and range to the RGB three primary color system, Based on this result, means for rewriting the contents of the means for making the above-described determination in pixel units is used. To confirm the judgment result, for example,
  • Means for inputting an image and identifying a specific color is used.
  • a binarization processing of binarizing by a predetermined threshold value and a dither processing of binarization by pseudo halftone processing are executed in parallel. Then, from these binarization processing results, the desired binarization data for each mode is selected and stored according to the color / monochrome identifier or the character / photo identifier. During image storage, the identifier of this mode is recorded together with the image data. This mode identifier is also referred to when displaying an image, and is used to specify data necessary for display and to determine an appropriate composition method. The contents of each mode are as follows.
  • Mode (I) Monochrome mode: Stores only the luminance data Y in the image data. However, either the simple binarization processing result or the dither processing result is selected and recorded according to the character Z photo identifier.
  • Mode ( ⁇ ) Multi-color mode Extracts luminance data Y and pixel data to be displayed in a specific color such as red or blue from the input color image data, and Store image data on separate planes. For example, a binary image (Y plane) obtained by binarizing luminance data, and only pixels that are to be represented in red, for example, only pixels that are recorded as black in the binary image, Two binary images with the described binary image (R plane) are stored. The processing for accumulating the luminance data Y is the same as in mode (I).
  • a character plane Select and record either the binarization processing result or the dither processing result according to the Z photo identifier, and if it is not a specific color, record "0" regardless of the text identifier identifier.
  • the pixels included in the R plane are expressed in red.
  • Other pixels are displayed in black and white according to the value of each pixel in the ⁇ plane.
  • Mode ( ⁇ ) Full color mode R, G, and B color image data are stored in the R, G, and B planes, respectively. That is, one of the simple binarization processing result and the dither processing result is selected according to the color mono identifier and the character Z photograph identifier, and the three planes of R, G, and B are selected. Each accumulates. .
  • Mode (IV) Mixed mode Identifies a color area that requires color information from the image and a monochromatic area, and stores the luminance information Y in the G plane for the monochromatic area.
  • the R and B planes are left blank.
  • binarized data by RG and B dither processing is stored in each plane.
  • binarized data obtained by dithering R, G, and B is stored in each plane.
  • a color Z monochromatic identifier Fcm indicating a color region and a monochromatic region is used as a fourth plane. accumulate.
  • Mode (I) is used when inputting a monochromatic document.
  • the mode ( ⁇ ) is a mode that is often used in office documents, etc., and is used for documents that have been stamped or corrected in a specific color such as red or blue on the mouth document. It is. However, this mode can be applied even when there are two or more specific colors to be expressed.
  • the mode (m) is a mode used for a color photograph or the like.
  • Mode (IV) is for documents that contain both monochrome and color photographs.
  • the image filing apparatus stores all color information of R, G, and B only when color information is required in an image.
  • only luminance information is stored.
  • the luminance data Y is recorded as “1” for a pixel displayed in black and “0” for a blank portion. That is, in the mode (I), the stored image data is only luminance information.
  • the color identification information F cm is stored in the mode (IV). This makes it possible to suppress data redundancy in the mouth area.
  • This mode is particularly effective when a large number of documents are input continuously using an automatic paper feeder or the like. If some pages of the input document contain a color photo, in mode ((), all pages of the document will be stored in three RGB planes. The amount of data required is three times as large as that required to store a monochrome image.
  • most pages accumulate only the luminance data Y, and the R and B planes and attribute identifiers show blanks on most pages, so that efficient operation is possible.
  • Encoding can be realized.
  • the attribute identifier outputs “ ⁇ ” when the target area is a monochromatic image and “1” when the target area is determined to be a color area.
  • R, G, and B binary data are recorded.
  • the monochromatic area the above-mentioned luminance data (which can be substituted with G data) and red and blue data are recorded.
  • the data display method is switched according to the attribute information such as cm.
  • the image data is binarized and stored, the image data is stored in the M H
  • a recording medium such as an optical disk can maintain compatibility with a conventional monochromic system. Therefore, as described above, the luminance data Y can be output by the conventional monochromatic system.
  • these methods of encoding a binary image do not cause a problem that the encoding efficiency is sharply reduced in a line figure such as a character.
  • the plane of the specific color stored in the mode (H) is blank except for the pixel of the specific color, so that high coding efficiency can be obtained.
  • red is displayed as the specific color information to be added to the black and white image
  • the number of stored planes can be increased. By doing so, it can be executed similarly.
  • the case of storing a full-color image is described. ⁇ When a full-color image is represented by binary information, it is necessary to perform pseudo halftone processing to reproduce not only the density but also the color. However, if the pseudo halftone processing is applied to line figures such as characters, the resolution of the image will be reduced.
  • line figures are accumulated more finely by adaptive binarization processing.
  • pseudo halftone processing is performed to reproduce colors even for line figures.
  • the color Z monochromatic mouth area determining unit determines that the area is a monochromatic area
  • the character Z photograph area determining unit determines that the area is a character area.
  • the same value is stored in the three planes R, G, and B.
  • image processing such as affinity conversion, change of a specific color, or adjustment of color tone requires the image data to be multi-valued at the time of processing. is there. Therefore, multi-value data is reproduced from the image stored as binary data.
  • Fig. 1 is a diagram for explaining an example of image data in the case of storing a multi-color document.
  • Fig. 1A is a diagram that is written in two colors, black and red.
  • Fig. 1B shows a luminance data (Y) plane for recording a binary image corresponding to the black color of the document, and
  • Fig. 1C shows the same. Indicates an R data plane that records a binary image corresponding to the red color of the document.
  • Fig. 2 is a diagram showing the specific colors represented by the binary image data Y and R when storing multi-color documents.
  • Fig. 3 is a diagram for explaining another example of image data when a multi-color document is stored.
  • Fig. 3A is a multi-color document containing three colors of black, red and blue.
  • Fig. 3B shows a luminance data (Y) plane for recording a binary image corresponding to the black color of the document
  • Fig. 3C shows the brightness data corresponding to the red color of the document.
  • An R data plane for recording a binary image is shown
  • FIG. 3D shows a B data plane for recording a binary image corresponding to the blue color of the document.
  • FIG. 4 is a diagram showing a specific color represented by each of the binary image data Y, R, and B when the multi-color document shown in FIG. 3A is stored.
  • FIG. 5 is a diagram for explaining an example of image data when a full-color document is stored
  • FIG. 5A is an example of a full-color document including a color photograph
  • Figure 5B shows the Figure 5C shows the R data plane recording the binary image corresponding to the red color of the document
  • Figure 5C shows the G data plane recording the binary image corresponding to the green color of the document
  • Figure 5D The figure shows a B data plane that records a binary image corresponding to the blue color of the document.
  • FIG. 6 is a diagram showing the relationship between the binary data recorded in each of the R, G, and B planes and the input colors in the full color mode.
  • FIG. 7 is a diagram for explaining another example of image data when a full-color document is stored.
  • FIG. 7A is a diagram illustrating a color region such as a color image and a monochromatic image.
  • Fig. 7B shows an example of a full document with mixed areas
  • Fig. 7B shows an R data plane for recording a binary image corresponding to the red color of the document
  • Fig. 7C shows Figure 7D shows a G data plane that records a binary image corresponding to the green color of the document
  • Figure 7D shows a B data plane that records a binary image corresponding to the blue color of the document
  • FIG. 7E shows an Fcm plane that records a color Z mockup identifier Fcm.
  • FIG. 8 is a block diagram for explaining an embodiment of the image filing apparatus according to the present invention.
  • FIG. 9 shows an embodiment of an image filing apparatus according to the present invention, and is a diagram showing an example of a configuration of an input data conversion section for inputting a document and converting the input image into binary image data. is there.
  • FIG. 10 is a diagram showing the contents of data recorded in each image (frame) memory in each input mode.
  • FIG. 11 is a diagram showing codes of respective modes indicated by the input mode specifying unit.
  • FIG. 12 is a diagram showing an example of the operation of a data selector for selecting image data to be stored according to each input mode and each area determination result.
  • FIG. 13 is a diagram showing an example of code data when a target area is designated by the input mode designation unit along with the designation of the input mode.
  • FIG. 14 is a diagram showing the contents of data recorded in each image (frame) memory in each input mode when a document to be input is limited to a line figure such as a character.
  • Fig. 15 shows the content of data recorded in each image (frame) memory in each input mode when the input document is limited to photographs.
  • FIG. 16 shows an embodiment of the image filing apparatus according to the present invention, in which each image data binarized by the input data conversion unit is shown.
  • FIG. 3 is a diagram illustrating an example of a configuration of a data storage unit for storing data.
  • FIG. 17 is a diagram showing the format of image data recorded in the data storage section.
  • FIG. 17A shows the mode (I)
  • FIG. 17B shows the mode ((). )
  • Fig. 17C shows the case of mode ( ⁇ )
  • Fig. 17D shows the case of mode (IV).
  • FIG. 18 shows an embodiment of the image filing apparatus according to the present invention, and the output data conversion for displaying the image data. It is a figure showing an example of 1 composition of a change part.
  • FIG. 19 is a diagram for explaining an example of the operation of the data selector in the output data conversion unit for selecting each image data according to each mode and display condition.
  • FIG. 20 shows an embodiment of an image filing apparatus according to the present invention, and is a view for explaining an example of the configuration of a multi-value processing section in an output data conversion section.
  • FIG. 21 is a block diagram for explaining another embodiment of the image filing apparatus according to the present invention.
  • FIG. 22 is a diagram showing the contents of binary image data recorded in each plane when a multi-color document is stored.
  • Fig. 23 is a diagram for explaining another example of image data in the case of storing multiple documents.
  • Fig. 23A is a diagram showing a multi-file containing black characters, red markings, and blue correction characters.
  • An example of a color document is shown
  • FIG. 23B shows a luminance data plane for recording a binary image corresponding to the black color of the document
  • FIG. 23C shows a luminance data plane corresponding to the red color of the document.
  • An R data plane for recording a value image is shown
  • FIG. 23D shows a B data plane for recording a binary image corresponding to the blue color of the document.
  • FIG. 24 shows an embodiment of the image filing apparatus according to the present invention, and particularly illustrates a specific color identification section.
  • FIG. 25 is a diagram for explaining an example of the judgment used in the specific color pixel extraction unit, and FIG. 25A is represented by an RGB system.
  • Fig. 25B shows an example of the red and blue range
  • Fig. 25C shows another example of the red and blue range.
  • Fig. 26 shows the specific color pixels.
  • FIG. 9 is a diagram for explaining the operation of the extraction unit when expressing in an RGB system.
  • FIGS. 27A to 27C are diagrams for explaining the principle of determination using a VCH system as a color system.
  • FIG. 28 shows an embodiment of the image filing apparatus according to the present invention, and is a diagram for explaining the details of a specific color pixel extraction unit capable of arbitrarily specifying a range of colors to be extracted. is there.
  • FIG. 29 is a diagram illustrating a configuration example of a parameter input unit.
  • FIG. 30 is a diagram showing an arrangement of pixels to be referred to in the guest elimination unit.
  • FIG. 31 is a diagram showing a configuration of a guest elimination unit.
  • FIG. 32 is a diagram showing a configuration example of a data storage unit.
  • FIG. 33A is a diagram showing a pattern when a red ghost appears.
  • FIG. 34 is a diagram for explaining an example of a configuration in which a black-and-white display device performs an image blinking display function for confirming a determination result.
  • FIG. 35 shows an embodiment of an image filing apparatus according to the present invention, in which an example of a configuration of an image filing apparatus capable of designating a colored portion by an external instruction is shown.
  • Figure 1A shows an example of a document written in two colors, black and red.
  • the characters in the area 11 are black, and the characters in the area 12 are red.
  • the two binary image data stored in the data storage unit such as an optical disc are shown in Fig. IB and Fig. 1 respectively.
  • Fig. 1B shows a plane for recording luminance data Y.
  • the luminance data plane is recorded as binary data, and the characters described in black and red in the original image are described as monochromatic binary image data.
  • the mode (I) as described above, the pixel on which the character is written is "1", and the other blank pixels are "0".
  • the mode for recording only the luminance data Y is the mode (I) described above.
  • Fig. 1C shows the binary image data described in the R plane. Among the pixels described as “1” in the luminance data Y, “1” is described only for the pixels determined to be red. The structure of the part that extracts this red and binarizes it will be described later.
  • Figure 2 shows the combination of binary data Y and R to represent each color in a multi-color document in mode ( ⁇ ).
  • Y indicates the content of the luminance data
  • R indicates the content of the R data, respectively. If the specific colors to be represented are three types of white, black, and red, the values that the data can take are the three shown in the figure.
  • a multi-color image from two pieces of binary image data shown in Figs. 1B and 1C
  • a data storage unit such as an optical disk
  • Fig. 2 also shows the colors at the time of output.
  • the image data shown in Fig. 1 is displayed in color
  • the image data shown in Fig. 1C is displayed in red
  • parts other than red are displayed in black and white according to the image data shown in Fig. 1B. Specific means for realizing this display method will be described later.
  • the color reproduced during image display is red.
  • One color is targeted, but the same applies to other colors.
  • a plurality of can be displayed as specific colors. In this case, for example, when ⁇ specific colors are to be expressed, ⁇ + 1 plane binary image data is stored.
  • Fig. 3 shows an example of expressing two colors, red and blue, in addition to black and white.
  • Figure 3 shows an example of a multi-color document in which black, red, and blue characters are described.
  • the characters in region 16 are black
  • the characters in region 17 are red
  • the characters in region 18 are blue.
  • Fig. 3 shows a plane for recording luminance data.
  • FIG. 3C is a red plane
  • FIG. 3D is a blue plane, each of which is binary image data for recording a pixel of a specific color to be displayed.
  • Fig. 4 shows the combinations of binary data Y, R, and ⁇ for expressing each color in the document, together with the colors at the time of output.
  • Fig. 5 shows the recording format of image data in mode (m).
  • the image is recorded as R, G, B three binary image data.
  • Fig. 5A shows an example of a document in which color photographs and characters are mixed
  • Fig. 5B shows an R plane
  • Fig. 5C shows a G plane
  • Fig. 5D Indicates the contents of each binary image data of the B plane.
  • the characters in area 21 Is black, and the characters in the area 22 are written in a certain neutral color.
  • the area 23 indicates the area where the color photograph is described.
  • the colors recorded according to the contents of the image data of each plane are shown in FIG. In mode m), white and black are treated as one color.
  • the binarization processing when a full-color image such as a color photograph shown as area 23 in FIG. 5A is represented by binary data of each of the R, G, and B components, Each of the multivalued data of R, G, and B is binarized by pseudo halftone processing. Therefore, in the regions 33, 43, and 53 in the figure, data obtained by independently binarizing the multivalued data of 1, G, and B by pseudo halftone processing are recorded.
  • a black-and-white character area such as the area 21 is not subjected to the pseudo halftone processing at the time of the binarization processing. This is performed by separating the character area and the photo area from the image of the input document and using the results to select the results of simple binarization processing and pseudo halftone processing.
  • the pixel values are made equal among the R, G, and B planes. Specifically, pixels in the character area that are determined to be a monochromatic area are recorded with the same values in the three planes R, G, and B. Therefore, each pixel in the areas 31, 41, and 51 records the same value.
  • the area 22 When it is necessary to reproduce colors with colored characters. Pseudo halftone processing is required to represent colors. Therefore, in addition to identifying the text area and the photograph area, the color area and the monochromatic area are identified. Each pixel of the colored character areas 32, 42, 52 has an independent value recorded.
  • This mode is particularly effective when a document such as a document composed of many pages is stored as image data.
  • a document or the like consisting of many pages for example, when using a device for automatic input called a sorter, there is no need for attendance by an operator. Thus, the efficiency of input work can be improved.
  • a color region is included in some pages in the input document, it is necessary to input images of all pages as color images. If images of all pages are stored in the mode (IE), the image data in the monochromatic area requires three times the data amount as when input in the original monochromatic mode (I). .
  • the fourth plane has an identifier indicating whether each part in the image is a color area or a monaural opening area. Since this identifier can be realized by a binary flag, each of the Can be recorded in the same way.
  • Fig. 7 shows an example of the recording format of image data in mode (IV).
  • Fig. 7A shows an example of the same color document image as Fig. 5A.
  • Fig. 7B, Fig. 7C, and Fig. 7D are the binary image data of R, G, and B, respectively, and Fcm is the color area and monoc for each part of the image. This is a binary identifier for identifying the mouth area.
  • the identifier F cra (X, y) is “1” when the pixel IM (x, y) is a color and “0” when the pixel IM (x, y) is a monochrome.
  • the binary data F cm becomes “1” in the areas 92 and 93 corresponding to the color areas 22 and 23 in the image of FIG. 7A, and in other parts, It becomes "0".
  • the recording format is the same as in the monochromatic mode, and the pixels described as black are the R, G, and B planes. Write "1" only in one plane.
  • the G plane is defined as the plane.
  • FIG. 8 shows an overall configuration of an embodiment of an image filing apparatus according to the present invention.
  • 100 is a color scanner that optically reads an image such as a document and outputs multi-valued digital data with respect to, for example, RGB three components
  • 150 is a color scanner that has the modes (1) to (IV) described above.
  • Reference numeral 200 denotes an input data converter that binarizes the input multivalued data of each RGB color for data storage.
  • 6 ⁇ 0 is an image memory for temporarily storing the binary image data output from the input data conversion unit 200, for example, four frame memories 6 10, 6 2 0, It consists of 630 and 640 forces.
  • 7000 is an output data conversion unit that converts binary image data into a format suitable for input to a display device, such as a high-definition color CR, for example.750 is an input unit that inputs RGB multivalued data.
  • Power This is an image display unit such as a high-definition CRT that displays color images.
  • 800 is a large-capacity memory such as an optical disk that encodes and stores binary data in the image memory 600 or reads and decodes already stored data.
  • Reference numeral 900 denotes a data storage unit composed of a re-writing device, and 900 denotes a control unit for controlling the entire filing device.
  • one of the characteristic parts of the present image filing apparatus is the input data conversion unit 200.
  • the part related to image input will be described with reference to FIG. In the figure, 6 1 0, 6 2 0, 6 3 0,
  • the input data conversion unit 200 is composed of an area determination unit 400, 2. a value conversion unit 300 and a selector 500, and is based on a mode designation signal and various area determination results. In addition to selecting the image data to be recorded in each frame memory together with the binarization processing.
  • the area determination unit 400 that determines the area of the input image is based on three RGB multi-valued image data obtained from the color scatterer 100, and each pixel of the input image is defined as a color area and a model.
  • Color identification block 4101 that identifies which of the nodal areas belongs, whether or not each pixel of the input image belongs to a predetermined color such as red or blue
  • Color identification unit 420 inputs multi-valued digital image data and determines whether each pixel of the input image belongs to a line figure area such as a character or a halftone area such as a true Photograph territory to do It is composed of an area judging section 4300.
  • a binarizing unit 300 that binarizes RGB multi-valued images independently of each other includes a binarizing processing unit 340 that binarizes images such as characters and line figures, It is composed of a dither processing section 350 for performing binarization processing by pseudo halftone processing.
  • the binarization processing section 340 binarizes multi-valued image data with a predetermined threshold, and is suitable for binarizing images such as characters and line figures.
  • the dither processing section 350 is adapted to binarize by periodically changing the threshold value according to the position of the pixel, and is suitable for binarizing a photograph or a color image.
  • the pseudo halftone processing besides dither processing, there is an average error minimum method, and this may be used.
  • Halftone processing by the average error minimization method is suitable for binarization of periodic images such as halftone images.
  • the selector 500 Based on the mode designation signal F mod from the input mode designation unit 150 and the judgment results from the area judgment unit 400, the selector 500 outputs three RGB images. The data to be stored in the image memory 600 is selected and output from the two types of binarization processing results for.
  • each mode the contents of the binary image data recorded in each frame memory 61 0, 62 0, 63 0, 64 0 in the image memory 600 are described.
  • Figure 10 shows.
  • the data developed in the frame memory 610 will be referred to as DATA-1, 620, 630, 640, and the data accumulated in DATA 620 will be referred to as DATA-2, respectively.
  • "1" indicates that data is not recorded.
  • the binary image data stored in the mode (I) is only the luminance data Y and is recorded in the frame memory 610.
  • the mode ( ⁇ ) two planes of binary image data are stored, and in the mode (IE), three planes of binary image data are stored.
  • the mode (IV) four planes of binary image data are stored in the frame memories 61, 62, 63, and 64.
  • the multi-value data of RGB of each pixel on the input image is simultaneously output from the force raster 100.
  • Signal line 110 sends R data
  • signal line 120 sends G data
  • signal line 130 sends B data.
  • the luminance data Y is substituted by G data for simplification of the description, but the luminance data Y can be calculated by performing arithmetic processing on three types of multi-valued data of RGB. .
  • the color Z monochromatic discriminating section 410 uses a known method to generate binary colors used in the modes (m) and (IV). Outputs the mono identifier F cm.
  • the purpose of the color identification section 420 is to extract the pixels recorded in the plane of the specific color in the mode ( ⁇ ).
  • the number of specific colors to be extracted
  • the number of specific colors to be extracted is one or more, and the color itself is also set arbitrarily.
  • the identifier F rb to be input has a different format depending on the number of colors to be extracted, and becomes a signal of lb it when one color of red is extracted. The following relationship exists between the number of specific colors Cnb extracted here and the number of bits N of the identifier F rb.
  • the binarized data obtained by the simple binarization process suitable for characters and line figures obtained from 300 and the binarized data obtained by the pseudo-halftone process suitable for photographs and color images The purpose is to make a selection. Specific means are described in, for example, JP-A-63-316656.
  • the judgment result Fdm is binary data. If the determination result Fdm is different for each color, the output of the selector 500 becomes unstable. Therefore, the determination of the character / photo area is performed on the luminance data. In the present embodiment, the luminance data is substituted for the G data as described above.
  • FIG. 11 shows an example of the mode designation code Fmod input from the input mode designation section 150.
  • the selector 500 is driven by an identification code for selecting four types of input modes.
  • the selector 500 is composed of three planes of RGB binary image data output from the binarization processing section 340 and the dither processing section 350, respectively, and a total of 6 planes of data.
  • the four frame memories in the plane image memory 600 Of 6 20, 6 3 0, 6 4 0:! Select the binary data to be output to 4 to DATA-4 to DATA-4.
  • FIG. 12 shows an operation example of the selector 500 in this embodiment.
  • the data output from selector 500 is represented by Rc, Gc, and Bc, and the data of R, G, and B obtained by binarization processing section 340 in FIG.
  • the results of the binarization processing, denoted by R d, G d, and B d, are the binarization processing results of R, G, and B obtained by the dither processing section 350.
  • binary image data for two planes is stored in the frame memories 610 and 620.
  • the selection of the data to be stored is controlled by the output Fdm of the character / Z photograph area determination unit 430 and the output Frb of the color identification unit 420.
  • D ATA — 1 is in mode
  • one of the simple binarization processing result Gc and the dither processing result Gd is selected and recorded according to the identifier Fdm.
  • the brightness plane of DATA-1 should be displayed in a specific color instead of recording only black pixels. Record including pixels.
  • This embodiment shows a case where 1-bit code data is used as the identifier F ib.
  • the identifier F rb is “1” when the target pixel is “red” of a specific color, and is “0” otherwise.
  • DATA—2 selects one of the simple binarization processing result G c and the dither processing result G d according to the identifier F dm when the identifier F rb is “1”, and the identifier F rb is “0” In this case, DATA-2 is "0" regardless of the identifier Fdm.
  • the switching between G c and Gd is selected by the identifier F dm similarly to the mode (I).
  • images are stored as R, G, and B 3 plane binary images.
  • the data to be stored are the R, G, and B planes.
  • the Carono Mono identifier F cm is “0”
  • one of the simple binarization processing result G c and the dither processing result G d, R d, or B d is performed according to the identifier F dm.
  • the identifier Fcm is "1”
  • the dither processing results Gd and RdBd are selected regardless of the identifier Fdm, and three planes are stored in DATA-1 to DAT-3, respectively.
  • the image data of R, G, and B and the identifier Fcm are stored in four frame memories 61, 62, 63, and 60, respectively. Each accumulates.
  • one of the G plane and the luminance plane is added to the frame memory 610, and the output of the color / monochrome discriminating section 410 is provided.
  • the data is selected and accumulated by the force Fcm, but as described above, in the present embodiment, the G data and the luminance 'data are the same, so there is usually no need to select.
  • the output of the binarization processing unit 340 is selected for the line-shaped area of the mouth opening, and for the other areas, Select the output of the dither processing section 350. Therefore, in the mode (IV), when the output Fcm of the color Z monochromatic mouth identification unit 410 is “0”, the simple binarization processing result Gc and the dithering are performed according to the identifier Fdm. One of the processing results G d is selected and one plane is stored in DATA-1. Then, according to the identifier Fdm, “0” and one of the dither processing results R ci and B d are selected and stored in DATA-2 and DATA-3, respectively.
  • D ATA — 4 stores the identifier F cm.
  • the input mode specifying section 150 can be used to specify other modes (I) to (! V). , [Text], [Photo],
  • the operating condition of the selector 500 can be determined independently of the character / photograph area determination unit 4300.
  • the input mode finger The signal from the fixed section 150 to the selector 500 is input to the four input mode selection codes and the identification code according to the target book.
  • FIG. 13 shows an example of the output code from the input mode specifying unit 150 in this case.
  • [Text] which does not select dither processing
  • [Photo] which must be selected
  • [Mix] which is based on the output of the text Z photo area judgment. I do.
  • [character] the output of the binarization processing section 340 is normally accumulated.
  • mode (m) and the mode (IV) the intermediate colors need to be reproduced. Therefore, the output of the binarization processing section 340 is not stored in the color area. Absent. Therefore, in mode (II) and mode (IV), the case where. [Character] is specified is excluded.
  • Fig. 14 an example of the operation of the selector 500 when [Character] is specified is shown in Fig. 14, and an example of the operation when [Photo] is specified is shown in Fig. 15 respectively.
  • These operations are the same as the operations of the selector 500 shown in FIG. 12 divided into the case of the character area and the case of the photograph area. Is omitted.
  • DATA Binary data of 4 is encoded by known means After that, it is stored in a large-capacity data storage device such as an optical disk.
  • An example of the configuration of the data storage unit 800 will be described with reference to FIG.
  • reference numerals 61, 62, 63, and 64 denote frame memories for storing binary image data for each plane, as described above. 0 0 corresponds to the data storage unit shown in FIG.
  • reference numeral 8100 sequentially reads out the data held in each frame memory and outputs the data to the code decoding processing unit 820, and the code decoding processing unit 820 decodes the data. This is a selector that outputs the obtained data to each frame memory.
  • the encoding / decoding processing section 820 encodes the binary data by a known means, outputs the encoded data to a data storage section 850 such as an optical disk, and stores the data in the data storage section 850.
  • the decrypted data is decrypted and output to the selector 810.
  • the filing apparatus When an instruction for data storage is given from the control unit 900, the filing apparatus first transfers the header information to the optical disk 850 and stores it.
  • the header information includes, for example, information used at the time of retrieval, such as the name of the document, and the size of the document.
  • the mode at the time of input is recorded by a code as one item of the header information.
  • the binary image data of 1 to 4 planes is sequentially encoded by the encoding / decoding processing section 820 and accumulated in the data accumulation section 850 I do.
  • the order of the data to be stored is selected by the selector 8100 according to an instruction from the control unit 900.
  • FIGS. 17A to 17D are examples of recording formats of image data input in modes (I) to (! V), respectively.
  • 910 is an area for recording header information
  • 920 is DATA-11
  • 930, 940, 950 are DATA-2, DATA-3, and DATA-4, respectively. It is a local area.
  • the image data to be stored is only the brightness plane, and is stored in the frame memory 61 0.
  • DATA Stores 1.
  • the luminance plane is stored next to the header information as image data, and the plane of each color is recorded in: ⁇ .
  • mode ( ⁇ ) When multiple specific colors are expressed in mode ( ⁇ ), the plane of each color is recorded after this luminance plane.
  • G data is recorded immediately after the header information. This is because the G data has the spectral spectrum located at the middle of the three types of data of R , G, and B, so that the phenomenon in which a specific color is not reproduced is least likely to occur.
  • the image data stored in the data storage device 850 is read, and the frame memory 610, 620, 630, 640 of the image memory 600 is read.
  • the header information of each data recorded in the data storage device 850 is first read, and the target data is searched. If the target data is confirmed, then the number of planes to be read is determined by the mode identifier F m Q d recorded in the recording area 911 in the header information. Then, the data stored in the data storage device 850 is read out for a required number of times, and each is decoded into binary data by the code decoding processing section 820, and then the frame memo is read. Re-store the data from DATA-1 to DATA-4 in 61 0, 62 0, 63 0, 64 0.
  • the operation at 700 is to generate three planes of display image data of RGB from the inputted one to four planes of binary image data.
  • the display data of each of R, G, and B reproduced from the image data will be described.
  • DATA-R, DATA-G, and DATA-B are called DATA-R, DATA-G, and DATA-B.
  • the relationship between DATA-R, DATA-G, and DATA-B and the colors displayed on the image display section 750 is the same as in FIG. If all of DATA-R, DATA-G, and DATA-B are "1", "white” is displayed, and if "0", "black” is displayed.
  • a data selector 710 is controlled by a control unit 900 in accordance with a mode identifier Fm0d in the read header information, and DATA-1, DATA-2,
  • the required data of DTA- 3 and DTA- 4 are synthesized, and DTA-R, DTA-G, and DTA-B are output. The details of this operation will be described later.
  • the RGB three-plane binary data output from the data selector 710 is converted to data in a format corresponding to the image display unit 750 by the multi-value processing unit 720. Is done. In this process, the binary data is converted into a signal for controlling the blinking of each pixel of the image display unit by, for example, a bit shift.
  • the operation of the output data converter 700 depends on the mode of the target image, the type of display, and the content of the data.
  • FIG. 19 shows an example of the operation of the data selector 710.
  • DATA-R, DATA-G, and DATA-B are determined by the logical operation of DATA-1 and DATA-2. If only luminance information DATA—1 is "1”, DATA—R, DATA—G, and DATA—B all become “0” and “black” is displayed.
  • D ATA—2 force s If “1”, set “1” to D ATA—R only to display “red”.
  • the timing for displaying an image can be as follows. For example, when displaying a monochrome image, the luminance data Y is input to the frame memory 610, and at the same time, the data selector ⁇ 10 to the RGB three-plane data are input. As a result, luminance data is output. Then, image data having values equivalent to the R, G, and B planes are sent from the multi-value processing section 420 to the image display section 750, so that The image is displayed on the image display section 7500.
  • the values of DATA-R, DATA-G, and DATA-B are independently set by DATA-1, DATA-2, and DATA-13, respectively. I can decide.
  • the timing of the image display the G, R, and B planes are sequentially displayed at the same time as DATA-1, DATA-2, and DATA-3 are written to the frame memory.
  • the final color cannot be determined until three planes of data are stored in the frame memories 310-330.
  • it is also effective to display the luminance data in a monochromatic image as in the first mode (I) and to sequentially rewrite the luminance data.
  • data selection is performed.
  • a color image can be displayed in a monochromatic image.
  • this can be realized by reading out only DATA-1 and displaying this DATA-1 in all of R, G, and B.
  • the full-color image targeted by the mode ( ⁇ ) or (IV) originally needs to express halftone in halftone.
  • subtle differences in color tone due to the characteristics of the output device are perceived as significant differences in human vision. Therefore, in order to display a full-color image with high image quality, it is necessary to correct or change the luminance and chromaticity of the halftone data.
  • the image since the image is stored as binary data, for this purpose, it is necessary to convert the binary image data into multi-valued data.
  • FIG. 20 shows an example of the configuration of the multi-value processing section 720.
  • three types of binary data DATA-R, DATA-G, and DATA-B, are simultaneously input and output to the image display section 750. It is possible to convert one plane at a time by using memory.
  • reference numerals 731, 7332, and 7333 denote halftone converters that reproduce multi-valued data from binary image data.
  • 741, 742, and 743 are color tone conversion units that convert the obtained halftone data
  • 751, 752, and 753 are shift registers that multiply binary data by a specific amount.
  • Reference numeral 70 denotes an area judging section for judging whether the input data is binary data such as a line figure or pseudo halftone data, and 761, 762, and 763 are area judging sections. This selector selects one of the two types of halftone data based on the output of.
  • the halftone conversion section 731 reproduces multi-value halftone data from the pseudo halftone image.
  • Various types of reproduction methods are already known, for example, disclosed in US Serial No. 07 / 272,447 (Japanese Patent Application Laid-Open No. 2-93037), A method of extracting the distribution density of black pixels can be applied.
  • the image converted into the halftone is subjected to necessary conversion by the color tone conversion unit for each of the RGB planes.
  • the color tone conversion unit 741 can be represented by, for example, RAM (Read On Iy Memory).
  • a method of transferring the data from the control unit 900 or selecting it according to a plurality of types of internal devices set in advance It can be realized by such as.
  • the positional relationship of the black pixels is important, and expressing the shading, rather, lowers the resolution and deteriorates the image quality. . Therefore, for example, input of the display unit 75 0 connected to the system When the input range is 8 bits, the image quality is prevented from deteriorating by simply shifting the input binary data by 8 bits.
  • the selector 761 selects and outputs one of the output of the color tone conversion section 741 and the output of the shift register 751. This selection is switched by the output of the area determining unit 770 which determines whether the area to be output belongs to the linear graphic area or the pseudo halftone area.
  • the area determining unit 770 determines whether the area to be output belongs to the linear graphic area or the pseudo halftone area.
  • the image selected by the selector 761 is transferred to an image display unit 750 such as a CRT and displayed.
  • halftone images such as color photos
  • color documents used in general office work are described in black and one or two other colors.
  • a document having a vermilion imprint or a document with a redline correction are different colors from black
  • color planes are blank in most parts of the document, so when encoding and storing binary images, high encoding efficiency can be obtained. it can.
  • the color information is input by a combination of three types of multi-valued RGB data. Therefore, by specifying three types of RGB values indicating the range of a specific color to be extracted in advance, a specific color portion can be extracted.
  • pixels with sharp changes in color such as the outline of a line, do not accurately represent the original color information. This phenomenon is called ghost. It is difficult to judge the exact color of the pixel where the goster occurred. In this case, it is necessary to determine the correct color by referring to the color distribution state for the neighboring pixels.
  • confirmation of the judgment result can be realized by displaying an image on a CRT, for example, before accumulating the data, and specifying the re-input by the operator.
  • the image display For example, a color image based on the determination result may be displayed.
  • it can be expressed by blinking the extracted part.
  • the range of a specific color to be extracted can be freely designated according to the operator's sense, and the extraction result can be obtained.
  • the following describes an image filing device that can specify the hue while checking.
  • FIG. 21 shows the basic configuration of the image filing apparatus.
  • the basic configuration is the same as that of the image filing apparatus shown in FIG. 8 described above. That is, in the figure, 100 is an image input device such as a color scanner that reads a color document and outputs RGB multi-valued image data, and 200 is a multi-valued image data.
  • An input data conversion unit that binarizes the binary image data, 600 is a surface image memory that temporarily stores the binary image data, and converts two to four independent binary image data (planes).
  • the 700 is an output data converter that outputs color image data that is more multi-valued than RGB binary image data
  • 500 is a CRT (Cathode Ray Tube) that displays color images.
  • the image display unit 800 is a data storage unit that encodes binary image data and stores the data in a large-capacity data storage device 850 such as an optical disk. This is the same as the embodiment described above.
  • the feature of the present embodiment lies in the configuration of the input data conversion unit 200. In particular, for each image in the image, whether the color of the pixel is a hue in a predetermined range is set.
  • the specific color discriminating section 450 determines whether or not to perform the judgment.
  • reference numeral 300 denotes a binarization unit that inputs multi-valued RGB data and outputs binary image data
  • reference numerals 501 and 515 denote binary data.
  • the selector 550 is a register which always outputs a specific value.
  • the R, G, B multi-valued image data output from the image input unit 100 is input to the binarization unit 300.
  • the binarization processing unit calculates luminance data from the RGB data and stores the binary image data of the luminance data in the memory 6100 in the image memory 600.
  • the brightness data can be approximated by G data without calculating the brightness data.
  • the multi-valued data of R, G, and B are also input to the specific color identification unit 450.
  • the specific color identification section 450 identifies whether each pixel expresses a preset specific color based on the input R, G, and B data. The method of identification will be described in detail later.
  • the purpose is to identify a plurality of colors at the same time.
  • a case where two colors, red and evening, are distinguished from other colors will be described.
  • FIG. 2 shows an example of the operation of the output of the specific color identification section 450 and the operation of the selectors 510 and 515.
  • FB / W, FLGR, and FLGB represent the output of the specific color identification unit 450.
  • FB / W is binarized with the same value as the luminance data of the target pixel, the pixel to be expressed in white is “0” and the pixel to be expressed in black is “1”.
  • FLGR is a red identifier indicating whether the target pixel is red
  • FLGB is a blue identifier indicating whether the target pixel is blue.
  • FLGR and FLGB are determined by the following conditions.
  • FIG. 23 shows an example of image data stored in memories 610, 620, and 630 in the image memory 500.
  • Fig. 23A is an image of the office document at the Monok-guchi with red stamping and blue corrections.
  • 1 1 1 is a red seal
  • 1 2 1 and 1 2 2 are Indicates the area of the character added in blue.
  • FIG. 23B is an image stored in the memory 610 and is a result of binarizing the G data. If only this image data is used, a monochromatic binary image of the input document can be output.
  • FIG. 23C and FIG. 23D show the image data stored in the memories 620 and 630, respectively. Only the portion marked in red in the document is stored in the memory 620, and only the portion marked in blue is stored in the memory 630.
  • the image data is stored by encoding each of the three binary image data.
  • the storage of the image data is the same as the storage of the multi-color document in the mode (II) described above, and the details are omitted.
  • FIG. 24 shows a configuration example of the specific color identification unit 450 and an example of a configuration around it.
  • 210 indicates whether or not the pixel belongs to a predetermined hue range based on the relative relationship between the values of the R, G, and B types of multi-valued image data for each pixel.
  • the specific color pixel extraction unit to be determined is determined by the pixel unit. The effect of the color list described later is removed from the determination result. This is the ghost removal unit.
  • Each of the signal lines 101, 102, and 103 in the figure transmits multi-valued data of R, G, and B sent from the image input unit.
  • Reference numerals 221, 222, and 223 denote FB / W and FLGR, which are determination results.
  • FLGB, and 501 transmits image data obtained by binarizing luminance data.
  • the judgment results FLGR and FLGBi output from the signal lines 211 and 212 indicate whether or not the hue of the pixel is within a predetermined range. However, here, for example, among the pixels determined to be “red”, even if the hue itself is in the category of 11 red, it is binarized due to the high luminance.
  • the gates 241 and 242 are used to remove the pixels PLGR 2 and FLGB 2 that indicate only those pixels whose binary image data is “1”. 4 and outputs it to the 4 0. configuration Gore one be sampled removing unit 4 4 0, later for details described but, FLGR 2, FLGb 2, and inputs binary image data, "red” Oyo Pi "blue” Output the identifiers FLGR 222 and FLGB 223.
  • FIGS. 25A to 25C each show a color space expressed by multi-valued image data.
  • the colors represented by the R, G, and B types of multi-valued image data can be represented as the coordinates in the cube shown in Fig. 25A. If C l, C 2, and C 3 in the figure are the values of R, G, and B, respectively, P 1 represents black and P 8 represents white.
  • R, G, and B are each 8-bit data
  • the range of CI, C2, and C3 is from 0 to 255
  • the maximum value Lmax is 255.
  • P 2, P 3, and P 4 indicate the three primary colors red, green, and blue
  • P 5, P 6, and P 7 indicate the complementary colors, yellow (yellow) and magenta (sky blue).
  • cyan purple
  • the extraction of a specific color is performed by expanding the input image for each pixel to the coordinates in this space, and belonging to a part of a predetermined area. This can be achieved by extracting pixels.
  • FLGR 1 1: R 1 2 ⁇ (Lmax-R) 2 + G 2 + B 2
  • the specific color pixel extraction unit 210 that realizes the above input / output relationship can be realized by a numerical calculator or a memory.
  • memory In this case, a high processing speed can be obtained, but an enormous amount of memory is required depending on the gradation of the input image data. In this case, the amount of memory can be reduced by performing the determination using only the upper data of the input data. It is also possible to use both judgment by memory and interpolation by numerical operation.
  • FIG. 26 shows an example of memory contents when the specific color pixel extracting section 210 is realized by using memories.
  • each of the input R, G, and B data has a gradation of 4 bits, and represents the relationship between R, G, and FLGR when B is constant.
  • the range of colors to be extracted can be reset by rewriting the content of the memory used as the specific color pixel extraction unit 210.
  • FIGS 27A to 27C show the principle of judgment using the VCH system as an example of the color system.
  • the VCH system expresses a color using luminance V, saturation C, and hue H.
  • the conversion from the RGB system to the VCH system is performed, for example, by the following equation.
  • V 0.299 R + 0.287 G + 0.114 B
  • H tan- 1 ⁇ (R-V) / (B-V) ⁇
  • the saturation is a threshold value for distinguishing a color from a monochrome
  • the hues 0 ⁇ and 0 2 are a range of hues representing red, 0 3 and
  • 0 4 shows the range of the hue representing blue.
  • Saturation threshold C i and the color phase threshold 0 3 this, theta 2, theta 3, 0 4 Ri by the and this for controlling the color of pixels to be extracted Ru can and this for any setting.
  • This color system is widely used to represent colors in printed matter, and the standards for vermilion and stamp ink are also expressed in this system. Therefore, in systems that target documents, external colors are specified in this color system, and internal processing is performed in the same RGB system as image data. A system that allows easy specification can be realized.
  • FIG. 28 shows a configuration example of the specific color pixel extraction unit 210 for an image filing apparatus having a function of arbitrarily setting a range of colors to be extracted.
  • 310 is a parameter input section for specifying the range of colors to be extracted from outside
  • 320 is a part of the rain element determination section 240 extracted from the input parameters.
  • a parameter setting unit to be calculated, 330 is a control unit for controlling the writing of data from the parameter setting unit to the extracted pixel determination unit 240.
  • the specific color pixel extraction section 210 includes an extraction surface element determination section 240, a saturation calculation section 220, and a hue calculation section 230.
  • the saturation judgment section 220 and the hue judgment section 230 each have three types of RGB. .
  • the conversion from the RGB system to the VCH system can be performed by the arithmetic processing using the above-described equation, but can be more easily realized by using the memory.
  • the scale of the memory becomes enormous. In that case, enter only the upper bits of the data.
  • the output of the saturation extraction unit 220 is C (x, y)
  • the output of the hue calculation unit 230 is H (x, y).
  • the extraction pixel determination unit 240 makes a determination by comparing the saturation C (x, y) and the hue H (X, y) with respective thresholds C 0 2 , 6 3 , and 0 4. Result FLGR 1 and FLGB 1 are determined and output according to the following formula, for example.
  • the range of the pixels to be extracted is set by the parameter input unit 310 using the threshold C! , ⁇ ! , 0 2 , ⁇ 3, G a Based on the input C], 0 1, 0 2 , ⁇ 3, 04, the memory contents to be recorded in the extracted pixel determination section 240 are calculated in the noram setting section 320, and the control section is operated. Under the control of 330, it is transferred to the extracted rain element determination unit 240. As a result, the pixels to be extracted can be set arbitrarily. And can be.
  • FIG. 29 shows an example of the parameter input section 310.
  • 3 1 1 is the saturation threshold C! This is a slide switch for setting.
  • Threshold C! Can be set independently.
  • 312 is a dial for inputting the center of the hue range set as red, and 313 'is a slide switch for inputting the width Hbi of the hue to be extracted.
  • Threshold 0] and 6 2, Ri by the H] and H 1 is determined by the following equation.
  • the blue range is set with the dial 314 and the slide switch 315.
  • the specified two hues are ffl duplicated, such as 0 2 ⁇ 0 3 , take measures such as setting the center point as a boundary or giving priority to one as necessary. .
  • the specific color identification section 450 can be used as the color / monochrome identification section 4100 described above. And the power s it can.
  • Color ghosting is a phenomenon in which colors that do not exist in the judgment result are generated due to misalignment between RGB in the input device and differences in photoelectric conversion characteristics. For example, a pixel in the outline of a black character in a white background is determined to be red or blue.
  • Ghost elimination can be realized by correcting the judgment result for the center pixel by the pattern of the judgment result for the neighboring pixels. For example, a ghost that occurs between consecutive white and black pixels can be corrected by looking at the determination results for each of the two pixels, top, bottom, left, and right.
  • FIG. 31 shows an example of the configuration of the guest elimination section 4400.
  • 450, 460, 470 respectively, FLGR 2, FLGb z, and temporarily stores the FB / W, data upon storage unit to simultaneously output force nine pixels Dzu' necessary determination, 480 is input 2
  • a ghost rewriting processor that determines the final judgment result from 7 bi-volumes of binary data.
  • 450, 460, and 470 can be realized with the same configuration. No.
  • 3 2 shows an example of the configuration of the data storage unit 450.
  • 219 is a signal line for inputting FLGR 2 from the specific color pixel extraction unit 210
  • 401, 411, 421, 431, 441 and 422, 423, 424, 425 are latches
  • 405, 415, 435, 445 are 415 Shift registers 410, 420, 430, and 440 are used to align the timing of input data.
  • Line memory stores data for one scan line of the input image. It is.
  • the latches 401, 411, 431, and 441 respectively output FLGR 2 (x + 2, y + 2), FLGR 2 ( ⁇ + 1, y + 2), FLGR 2 ( ⁇ -1, y + 2), FLGR 2 ( ⁇ -2, y + 2) are output, and 421, 422, 423, 424, 425 Are FLGR 2 (x + 2,), FLGR 2 (x + 1,), FLGR 2 (x-1, y), FLGR 2 (x, y), FLGR 2 (x-2, power s output From shift registers 405, 415, 435, and 445, FLGR 2 (X, y + 2), FLGR 2 (x, y + 1), FLGR 2 (x, y-1), and FLGR 2 2 (x, y-2) is output.
  • FLGBa and FB / W can also be output simultaneously for nine pixels.
  • the rewriting processing unit 480 in FIG. 31 determines the judgment results FLGR and FLGB for the center pixel based on the input binary data of 27 bit.
  • the ghost rewriting unit 480 can be realized by memory, but here, an example in which the ghost is removed by a logic circuit is shown. .
  • This guest elimination unit can be applied as it is to the above-described color / monochrome mouth identification.
  • FIG. 34 shows an example of the configuration of a device for checking the judgment result on a black-and-white display unit.
  • reference numeral 800 denotes an image conversion unit for creating a one-screen display screen from three pieces of binary image data
  • reference numeral 810 denotes a blink controlling blinking timing
  • reference numeral 820 denotes a blinking control.
  • a logic element for obtaining exclusive OR, 830 is a selector for selecting two types of input data.
  • the input data is the luminance data and red plane data stored in the memories 610 and 620.
  • a pixel represented in a specific color is extracted from a document image in order to represent and store a color document in black and one or two specific colors.
  • the part of the image that should be recorded as a specific color can be similarly specified by specifying from the outside. Can be efficiently accumulated.
  • the region to be extracted as a specific color in the image is designated from the outside, so that the specific color extraction unit can be omitted.
  • FIG. 35 shows a configuration example of the image filing apparatus in this case.
  • 670 is a known coordinate designation device such as a mouse
  • 650 is an area designation section that reads the coordinates of the area designated by the coordinate designation device 670
  • 660 is an area designation Image extraction unit that reads out image data in the area specified by the unit 650 from the image memory 610 and transfers it to the image memory 620 or 630. It is.
  • the document is input as multi-valued image data from the image input unit 100, binarized, recorded in the image memory 610, and simultaneously displayed on the image display unit 750.
  • the operator can use the image display 7 Specify an arbitrary area with the mouse from the image displayed on the screen and the position of the mouse.
  • the coordinates of the area specified by the mouse are read out by the area specifying unit 650.
  • the image clipping unit 660 reads the content of the brightness image data corresponding to the specified area from the image memory 610, and the image memory 620 Or Copy to image memory 630.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Processing Or Creating Images (AREA)

Abstract

A picture filing device which inputs pictures corresponding to documents as multivalued data, converts the multivalued data to binary picture data and stores the binary picture data in it, and a method of filing pictures. Picture elements in the areas having a specific color are extracted from an input picture, and luminance information representing monochromatic binary picture data and binary picture data specifying colored areas are stored on different planes respectively. On the plane for the luminance information, not only black picture elements but also other picture elements to be displayed in specific colors such as red, etc. are described inclusively. Picture elements, for example, of a red character, of a specific color to be displayed are extracted. The extracted picture elements of the specific color are recorded as '1s' on the plane of the specific color, e.g. an R-plane different from the plane for the luminance data. On the R-plane only picture elements having red color are recorded as '1s' and other picture elements are recorded as 'Os'. When outputting, picture elements whose contents on the plane for the luminance data are '1s' and whose contents on the R-plane are 'Os' are displayed in black. Picture elements whose contents on the luminance data plane are '1s' and whose contents on the R-plane are 'Os' are displayed in red.

Description

明 w  Light w
画像フ アイ リ ング装置及び方法  Image filing apparatus and method
[技術分野] [Technical field]
本発明は、 文書、 特にカ ラー写真や朱筆によ る加筆な どの色情報を含むカ ラ 一文書を画像データ と して入力 し て蓄積する機能や, ディ ス プ糸 レイやプ リ ンタ な どに出力 田  The present invention provides a function for inputting and accumulating a document, particularly a color document including color information such as color photographs and redlining with red brush as image data, a display thread layout and a printer. Output to field
する機能を有する画像フ ア イ リ ン グ装置及び画像情報処 Image filing apparatus and image information processing device
10 理方法に関する。 特に、 モ ノ ク ロ 画像(mono ch r Qma t i c images) と 力 ラ一画像( c o 1 o r images) と 力 s混在 した画像 を効率良 く 符号化でき、 またモノ ク ロ 2 値データ のみを 出力する装置、 例えば F A X等と互換性を有する形式で カ ラ 一画像を符号化でき る電子フ アイ リ ング装置等の画10 Regarding the processing method. In particular, mono click B image (mono ch r Qma tic images) and force La first image (co 1 or images) and the force s mixed picture can coding efficiency rather good, and also mono- click b binary data only the output Devices such as electronic filing devices that can encode a single image in a format that is compatible with faxes, etc.
15 像処理シス テ ム に係る。 [背景技術] 15 Related to the image processing system. [Background technology]
従来よ り 、 カ ラ一画像をデジタルデータ と して扱 う 装 置において、 画像は赤、 緑、 青の 3 原色( p r i m a r y c o 1 o r S )に色分解 してでき る 3 種類の多値データ (以後、Conventionally, in a device that treats a color image as digital data, the image is divided into three primary colors of red, green, and blue (primaryco 1 or S ) and three types of multi-valued data ( Since then
20 本明細書では各成分のこ と を、 それぞれを R, G , B と 呼び、 各色成分のデータ を、 Rデータ , Gデータ, B デ —タ と 記す) と して扱われている。 例えば、 カ ラー複写 機な どにおいては、 入力 した R , G , B の多値画像デー タ をそのま ま 用いて出力する。 ま た、 プ リ ,ンタ に出力す20 In this specification, each component is referred to as R, G, and B, and the data of each color component is referred to as R data, G data, and B data. For example, a color copier or the like outputs the input R, G, B multi-valued image data as it is. Also, output to pre and
25 るな ど、 2 値化処理が必要な場合は、 多値の R G B デー タ を、 各色ごと にそれぞれ独立に 2 値化 して出力する。 このよ う な処理の高機能化を図った例 と しては、 例え ば特開昭 6 3 - 1 7 4 4 7 2や特開昭 6 4 — 5 1 5 8 3 カ ある。 If binarization processing is required, such as 25 And binarize the data independently for each color. Examples of such a high-performance processing are, for example, JP-A-63-174472 and JP-A-64-51583.
特開昭 6 3 — 1 7 4 4 7 2 は、 R, G , B の 3 成分よ り 輝度情報(luminance) を算出 し、 その値に応 じて二値 化処理を切 り 換えるカラ 一画像処理装置を開示している 特開昭 6 4 — 5 1 5 8 3 は、 カ ラ一画像をイェ ロー, マ ゼンタ, シア ン, ブラッ ク の 4 色に分解し、 各色をそれ ぞれ 2 値化して蓄積する電子ファイル装置を開示 してい る。 と こ ろが、 画像情報をイエロ一, マゼンタ , シア ン ブラ ック の 4 色に分解した場合、 この中のブラ ック の情 報だけを出力する と 、 彩色部分の画像が欠落する。 また カ ラー写真な どの中間色を表示する場合については、 考 慮されていない。  Japanese Patent Laid-Open No. 63-1747442 is a color image in which luminance information (luminance) is calculated from three components of R, G, and B, and the binarization process is switched according to the value. Japanese Patent Application Laid-Open No. Sho 644-511583, which discloses a processing device, decomposes a color image into four colors of yellow, magenta, cyan, and black, and converts each color into a binary value. It discloses an electronic file device that stores and converts it into a file. However, if the image information is decomposed into four colors of yellow, magenta, and cyan black, and if only the information of the black is output, the image of the colored portion is lost. No consideration is given to displaying intermediate colors such as color photographs.
力 ラ一画像は出力装置の特性によ り 色調や彩度が大巾 に影響されるため、 一度蓄積したデータ を出力する場合 に、 これら を補正する必要がある。 しか しなが ら、 その 捕正処理を行 う ためには、 画像を多値データ と して扱 う 必要がある。 そのため、 上述した従来技術のよ う な、 力 ラー画像を 2 値化して蓄積する方式は、 色調の再現が求 め られるカ ラ 一画像に対しては適用できなかった。  Since the color tone and saturation of a color image are greatly affected by the characteristics of the output device, these must be corrected when outputting accumulated data. However, in order to perform the correction process, it is necessary to treat the image as multi-valued data. Therefore, the method of binarizing a color image and storing it as in the above-described conventional technique cannot be applied to a single color image in which color reproduction is required.
また、 カ ラ一文書では、 画像の一部にカ ラー画像を含 みなが ら、 大き なモ ノ ク 口 の領域を有する場合が多い。 特に、 朱印付きのモノ ク ロ 文書な どにおいては、 カ ラー …情報は色が付いている事にのみ意味があ り 、 色彩を正確 に再現する こ と はさ ほ ど重 ではない。 そのため、 R, G, B のデータ を全て蓄積する のは、 非効率的である。 In addition, a color document often has a large area of a mouth opening while including a color image as a part of the image. In particular, in black-and-white documents with red seals, color … Information is meaningful only with color, and it is not so heavy to reproduce colors accurately. Therefore, storing all R, G, and B data is inefficient.
また、 カ ラー写真が混在するカ ラ ー文書において も、 面積比ではモ ノ ク 口 の文字镇域が多く 含まれる場合が多 レヽ  In addition, even in a color document in which color photographs are mixed, the area ratio often includes a large number of character areas of a monograph.
従って、 文書を対象と する画像処理シス テ ムは、 た と えカ ラ一画像を対象 と する カ ラ ー画像処理シス テムで も, モ ノ ク 口画像や文字に対する符号化効率の高 さ も求め ら れる。  Therefore, an image processing system that targets documents is not only a color image processing system that targets only one color image, but also has high coding efficiency for mono-text images and characters. Desired.
と こ ろが、 R , G, B をそれぞれ単独に符号化する の では、 冗長性が高 く 、 符号化効率が低い。 こ のた め、 多 数の文書画像データ を蓄積する電子フ ァ イ ルシス テ ムや、 低いデータ転送速度で文書画像を送る必要のある F A X な どには適さ ない。  However, if R, G, and B are individually coded, the redundancy is high and the coding efficiency is low. For this reason, it is not suitable for electronic file systems that store a large amount of document image data, or for faxes that require sending document images at a low data transfer rate.
また、 R G B の多値データ そのま ま蓄積 し出力する方 式では、 データ量が膨大な もの と なる ため、 上記の装置 には適さない。 なお、 以後画像中のモ ノ ク ロ で表現され た部分を、 モ ノ ク ロ領域と 呼ぶ。  Also, the method of storing and outputting the RGB multi-valued data as it is would not be suitable for the above-described apparatus because the data amount would be enormous. In the following, the portion represented by a monochrome in the image is called a monochromatic region.
一方、 T Vある いは V T R等では、 R G B のカ ラ 一画 像データ を、 輝度情報と 2 種類の色差情報( c h r 0 m i n a n c e ) に変換 し、 さ ら に直交変換を施 して、 その係数を符号化 して蓄積する技術が広 く 用い られている。 こ の符号化方 式は色差情報を持たないモ ノ ク 口領域では、 輝度情報の みを扱 う 。 従って、 モ ノ ク ロ領域を多 く 含む画像に対 し て符号化効率が高い。 On the other hand, TVs or VTRs convert RGB color image data into luminance information and two types of color difference information (chr 0 minance), perform orthogonal transformation, and calculate the coefficients. The technology of encoding and storing is widely used. This encoding method handles only luminance information in a monochromatic aperture region having no color difference information. Therefore, an image containing a large number of monochromatic regions And high coding efficiency.
そ こで、 文書に対して も、' こ の符号化方式を用いる例 s が特開昭 6 3 - 9 2 8 2 に示されている。  For this reason, Japanese Patent Application Laid-Open No. 63-92282 discloses an example s using this encoding method for a document.
しか しなが ら、 こ の輝度 色差変換を用いるデータ符号 However, the data code using this luminance / color difference conversion
化方式は、 本来 T Vな ど 自然画を扱 う 装置を対象と して The conversion method is intended primarily for devices that handle natural images such as TVs.
考案された ものである。 It was devised.
従って、 濃度変化のゆるやかな画像に対しては適するが Therefore, it is suitable for images with gradual density changes,
文字な ど濃度変化の極めて大きい部分を多く 含む文書画 Documents containing many parts with extremely large changes in density, such as characters
像を扱 う 場合、 以下のよ う な問題が生じる。 When dealing with images, the following problems arise.
( a ) 文字な ど線図形は濃度変化が急峻なため、 符号化 (a) Since the density of line figures such as characters changes sharply,
効率が著し く 低下する。 Efficiency drops significantly.
( b ) 符号化によ る圧縮効率を高めた場合、 非可逆符号  (b) When the compression efficiency by encoding is increased,
化と なる。 . It becomes. .
したがって、 F A Xな ど、 ラスタ画像データ を媒介にデ Therefore, raster image data such as FAX
ータ転送を実行した場合に、 データ を変換するたびに、 Data transfer, every time you convert data,
つま り 転送のたびにデータ が順次変化する。 In other words, the data changes sequentially with each transfer.
( c ) F A Xや電子フ ァ イ ルシス テムな ど、 文書を 2 値  (c) Binary conversion of documents such as FAX and electronic file systems
画像と して扱 う 装置で直接出力できない。 Cannot output directly with a device that treats it as an image.
( d ) 従来のモノ ク ロ 用の電子フ アイ リ ング装置と 、 デ  (d) A conventional electronic filling device for black and white
ータ の互換性が損なわれる。 Data compatibility is lost.
また、 特定色の抽出技術と しては、 例えば、 特開昭  As a specific color extraction technique, for example,
6 2 - 2 3 0 1 6 5 に開示されて レ、る よ う に、 入力画像  6 2-2 3 0 1 6 5
上から、 各装置毎に定め られた特定の色成分を強く 有す From the top, has a strong specific color component defined for each device
る部分を抽出 して、 印字する紙上にカ ラ ー トナーで出力 And print it out with color toner on the paper to be printed
する 2 色原稿読取装置が知 られている。 こ の抽出方式は 予め装置が定めた色成分 と その補正色成分を光学的に読 み取って、 両者の差及び和 ら、 対象 と なる部分が設定 した色か否かを識別する手法である。 こ の手法において は、 抽出 される色相の中心波長は、 光学的フ イ ノレタ等の 特性によ って決定されている。 A two-color original reading device is known. This extraction method This method optically reads a color component determined in advance by the device and its corrected color component, and identifies whether or not the target portion is a set color based on the difference and the sum of the two. In this method, the center wavelength of the extracted hue is determined by characteristics of an optical finoletor or the like.
また、 カ ラ 一画像を扱 う 画像データ蓄積装置 と しては カ ラ ーの静止画を対象と した各種の装置が知 られている , なお、 こ の種の装置の多 く は、 画像デー タ の符号化方式 と して、 離散コサイ ン変換を用いている。  Also, as an image data storage device that handles a single color image, various devices that target still images of a color are known. However, most of these types of devices are image data storage devices. Discrete cosine transform is used as the data encoding method.
[発明の開示]  [Disclosure of the Invention]
本発明の 1 つの 目 的は、 カ ラ一文書, モノ ク ロ文害を 問わず、 各種の文書画像を効率良 く 符号化 して蓄積する と に る。 .  One object of the present invention is to efficiently encode and store various types of document images, regardless of whether they are a single document or black and white text. .
なかでも、 カ ラ 一領域とモ ノ ク 口領域と が混在 した力 ラ —文書に対 して効率的な蓄積ができ 、 特に、 朱印付き 文書な どモ ノ ク 口領域が主体で、 色彩の再現が重要でな いマルチカ ラ一文書に対 して、 よ り 高い効率で符号化す る こ と にめる。  Above all, it is possible to efficiently accumulate documents that have a mixture of a character area and a monochromatic mouth area. In particular, the monochromatic area such as a document with a red seal is mainly used, and the color For a multi-color document where reproduction is not important, the encoding is to be performed with higher efficiency.
本発明の他の 目 的は、 蓄積された力 ラー画像を出力す る際に、 画像の色調や彩度を変更でき る よ う にする こ と である。  Another object of the present invention is to make it possible to change the color tone and saturation of an accumulated color image when outputting the image.
更に、 本発明の他の 目 的は、 抽出する 色の範囲を外部 から操作者の感覚に合わせて 自 由 に指定でき 、 また抽出 結果を確認 しなが ら色相を指定でき る よ う にする こ と に ある。 これまでに広く 用いられている F A Xや電子フアイノレ システ ムの多く は、 2 値の ΐノ ク ロ画像を対象と した入 出力装置を備えている。 したがって、 カ ラ一文書フ ア イ リ ングシス テム も、 それら と の互換性を備えれば、 よ り 幅広い利用が可能になる。 そのためには、 デー タ の記録 形式に互換性が保たれる こ とが必要である。 Furthermore, another object of the present invention is to allow the range of colors to be extracted to be freely specified from the outside according to the operator's sense, and to be able to specify the hue while checking the extraction results. It is here. Many fax and electronic file systems that have been widely used so far have an input / output device for binary black-and-white images. Therefore, the color document filing systems can also be used more widely if they are compatible with them. For that purpose, it is necessary to maintain compatibility in the data recording format.
本発明の画像フ アイ リ ング装置は、 モ ノ ク 口画像を対 象と していた従来の画像フ アイ リ ング装置と互換性を有 する。 そのため、 従来蓄積していたモ ノ ク ロ画像データ と の互換性を保った形式で、 カ ラ一画像データ を蓄積す る。 しかも、 光ディ ス ク 等のデータ蓄積装置に大量に蓄 積されたカ ラー画像データ の内容を検索する際に、 各画 像の内容を高速に表示でき.る。  The image filing apparatus of the present invention is compatible with a conventional image filing apparatus that targets a monochromatic image. For this reason, color image data is stored in a format that is compatible with previously stored monochrome image data. In addition, the contents of each image can be displayed at high speed when searching for the contents of color image data stored in a large amount in a data storage device such as an optical disk.
本発明の画像フ アイ リ ング装置は、 文書に対応する画 像を多値データ と して入力する入力手段と 、 その多値デ —タ を 2値の画像データ に変換する入力データ変換手段 と、 その 2 値化された画像デー タ を一時的に記憶する画 像メ モ リ 手段と、 該画像メ モ リ 手段に記憶されている画 像デー タ を蓄積するために所定の符号化を行い、 かつ蓄 積された文書画像デー タ の復号化を行 う 符号復号処理機 能を有する画像蓄積手段 と 、 該画像メ モ リ 手段の 2 値画 像データ に基づいて所望の画像データ を出力する出力デ ータ 変換手段と 、 該出力データ 変換手段からの画像デ一 タ に基づいて所望の画像を表示する画像表示手段と 、 を 有する。 こ の種の画像フ ア イ リ ング装置は、 本発明者等が先に 提案 した、 US Se r i a l N o .07 /479615 ( EP App l i ca t i on No 90102974.4 )に開示されている。' An image filing apparatus of the present invention comprises: input means for inputting an image corresponding to a document as multi-valued data; and input data conversion means for converting the multi-valued data into binary image data. Image memory means for temporarily storing the binarized image data, and performing predetermined encoding to accumulate the image data stored in the image memory means. And an image storage unit having a code decoding processing function of decoding stored document image data, and outputting desired image data based on the binary image data of the image memory unit. Output data conversion means; and image display means for displaying a desired image based on image data from the output data conversion means. This type of image filing apparatus is disclosed in US Serial No. 07/479615 (EP Applicatio No 90102974.4) previously proposed by the present inventors. '
本願は、 1 9 9 0 年 2 月 1 3 日 に出願された US s er i a l number 07/479 , 615 の一部継続出願  This application is a continuation-in-part of U.S. serial number 07/479, 615, filed on February 13, 1990
(Cont inua t i on - In - Par t app l i ca t i on)であ り 、 こ の先願 の開示は参照によ り 本願に編入される。  (Cont inua ti on-In-Part appli cation), the disclosure of which is incorporated herein by reference.
本発明では、 上記先願と 同様に、 多値のカ ラー画像デ —タ を、 それぞれ独立な複数枚の 2 値画像データ と して 扱 う 。  In the present invention, similarly to the above-mentioned prior application, multivalued color image data is treated as a plurality of independent binary image data.
具体的には、 1 枚のカ ラー画像を記録する場合、 当該 画像の、 R成分, G成分, B成分をそれぞれ記録した 3 枚の 2 値画像を、 それぞれを Rデータ, Gデータ, Bデ —タ と して蓄積し、 出力時には当該 3 枚の 2 値画像を合 成し、 1 枚のカ ラー画像を表現する。 ま た、 モ ノ ク ロ画 像の場合は、 当該画像の輝度データ のみを単独の画像 と して蓄積し、 その輝度データ を用いてモ ノ ク ロ 画像を表 現する。 輝度データ は、 例えば Gデータ で代用する こ と もでき る。  Specifically, when one color image is recorded, three binary images, each of which records the R component, G component, and B component of the image, are recorded as R data, G data, and B data, respectively. These are stored as data, and at the time of output, the three binary images are combined to represent one color image. In the case of a monochromatic image, only the luminance data of the image is stored as a single image, and the monochromatic image is represented using the luminance data. The luminance data can be substituted by, for example, G data.
なお、 以後本明細書においては、 カ ラー画像の 3 原色 のデータ をそれぞれ、 Rデータ, Gデータ, B データ と 呼び、 また、 1 枚の画像を表現するのに用いる 3 枚の 2 値画像データ を個々 に指す場合は、 それぞれプ レー ン と 呼ぶ。 また、 輝度データ は Y と記す。  Hereinafter, in the present specification, the data of the three primary colors of a color image will be referred to as R data, G data, and B data, respectively, and three binary image data used to represent one image will be referred to. Are individually referred to as planes. The luminance data is written as Y.
一方、 朱印付き の文書な ど、 画像中の赤や青な ど、 予 め定めた特定の色のみをカ ラーで表現するため、 本発明 では、 輝度情報を示す 2値データ Y と 、 当該特定色の部 分のみを示す 2値データ をそれぞれ独立した画像と して 蓄積する。 On the other hand, documents such as red and blue in images with red seals, etc. According to the present invention, the binary data Y indicating the luminance information and the binary data indicating only the portion of the specific color are stored as independent images. I do.
具体的には、 白黒 2 値画像を記録する輝度データ のプ レー ンを蓄積し、 例えば赤で表示すべき特定色の画素の みを記録した 2 値画像データ を別のプ レー ンに蓄積する , つま り 、 2 枚の 2 値画像と して画像データ を蓄積する。  Specifically, a plane of luminance data for recording a black-and-white binary image is accumulated, and for example, binary image data recording only pixels of a specific color to be displayed in red is accumulated in another plane. That is, the image data is stored as two binary images.
そのため、 本発明の 1 つの特徴によれば、 入力画像中 から特定色に対応する部分の画素を抽出する手段を有す る。  Therefore, according to one feature of the present invention, there is provided means for extracting a pixel corresponding to a specific color from an input image.
朱印付き の文書や、 朱筆訂正された文書な どのマルチ カ ラ ー文書において、 赤は 「色が付いている」 と い う こ と が重要な情報なのであって、 カ ラー写真のよ う な正確 な色彩の再現は、 一般に求め られない。 従って、 これら の画像は、 モ ノ ク 口画像データ と 色付き部分を指定する 画像データ と い う 記録形式で扱 う 。 すなわち、 輝度デー タ Yを単独のプ レーン と して記録する。  In multi-color documents, such as red-marked and red-corrected documents, the important thing is that red is “colored,” and it can be very accurate, as in color photos. Reproduction of rich colors is not generally required. Therefore, these images are handled in a recording format such as monochromatic image data and image data specifying a colored portion. That is, the luminance data Y is recorded as a single plane.
こ こで、 本発明の 1 つの特徴によれば、 輝度プ レーン には黒画素のみを記載する のではな く 、 赤ある いは他の 特定色で表示すべき画素 も含めて記載する。 そ して、 モ ノ ク 口 で表示 した場合には黒で表現される画素つま り 、 Y = " 1 " の画素の内、 赤色の文字な ど "赤" で表示す べき特定色の画素を抽出 し、 その抽出 した,特定色の画素 を輝度プ レー ン と は別のプ レーン、 例えば Rプレー ンに " 1 " と して記録する。 こ こ で、 Rプ レーンは、 "赤 " で書かれた画素のみを " 1 "―で、 その他の画素を " 0 " で表現 した 2 値画像データ と して記録される。 する と 、 Rプ レーンの画素はモ ノ ク 口で記載された镇域では全て " 0 " と なる ため、 符号化効率が高 く 、 モ ノ ク ロ の 2 値 画像データ のみの場合と 、 ほ と んど同一のデータ量で、 色情報 も含めて記録でき る。 Here, according to one feature of the present invention, not only the black pixels are described in the luminance plane, but also the pixels to be displayed in red or another specific color are described. In addition, when the pixel is displayed at the mouth, a pixel represented by black, that is, a pixel of a specific color to be displayed in "red" such as a red character among the pixels of Y = "1". The extracted pixel of a specific color is extracted to a plane other than the luminance plane, for example, the R plane. Record as "1". Here, the R plane is recorded as binary image data in which only pixels written in "red" are represented by "1"-and other pixels are represented by "0". Then, since the pixels of the R plane are all "0" in the area described in the mono pixel, the coding efficiency is high, and the case where only the mono black binary image data is used is almost the same. Almost the same amount of data can be recorded including color information.
出力時には、 輝度データ Yの内、 R プ レー ンの内容が " 0 " の画素を黒で表示 し、 R プ レー ンの内容が " 1 " の画素は赤で表示する。 輝度プ レーンには赤で表示すベ き画素 も含めて記録されている ので、 輝度プ レー5ンのみ をモ ノ ク ロ で表示すれば、 マルチカ ラ一文書を、 従来の モ ノ ク 口 シス テムで入力 た場合と 同様に表示する こ と ができ る。 At the time of output, of the luminance data Y, pixels whose R plane content is "0" are displayed in black, and pixels whose R plane content is "1" are displayed in red. Since the luminance plane includes the pixels that should be displayed in red, if only the luminance plane 5 is displayed in mono, the multicolor document can be converted to the conventional monoc It can be displayed in the same way as if it were entered on the system.
ま た、 文書においては、 各種の筆記具または地色 と な る紙が用い られる。 そのため、 単に " 赤 " と 言った場合 でもその色相の範囲は広い。 例えば、 朱肉やス タ ンプ用 イ ンク の規格では、 赤、 青等の各色に対 して、 輝度、 彩 度、 色相のそれぞれに一定の許容範囲を定めてお り 、 通 常用い られる 色はその範疇に入る。 従っ て、 任意の色を 抽出するためには、 これ らの特性を指定でき る よ う にす るのが好適である。  In addition, various writing instruments or papers with a ground color are used in documents. Therefore, even when simply saying "red", the range of the hue is wide. For example, the specifications for vermilion and stamp inks specify certain tolerances for luminance, saturation, and hue for each color, such as red and blue. Fall into that category. Therefore, in order to extract an arbitrary color, it is preferable that these characteristics can be specified.
そのため、 本発明の一つの特徴によれば、 R, G , B 3 色の値の相対関係から 、 当該画素が抽出すべき 画素 であるか否かを判定する手段 と 、 各画素毎に、 近傍画素 に対する上述の判定結果と 2 値の輝度データ と の 2種類 Therefore, according to one feature of the present invention, means for determining whether or not the pixel is a pixel to be extracted based on the relative relationship between the values of the three colors R, G, and B; Pixel Two types of the above-mentioned judgment result and binary luminance data
以上の 2 値データ の組合せから、 当該画素に対する判定 結果を書き替える手段が用い られる。 抽出する色相範囲 From the combination of the above binary data, means for rewriting the determination result for the pixel is used. Hue range to extract
、 を任意に指定するためには、 抽出する色を外部から指定 する手段と 、 抽出範囲を外部から指定する手段 と 、 指定 された色相および範囲の色を R G B 3 原色系に変換する 手段と 、 この結果によ り 、 上述の画素単位の判定を下す 手段の内容を書き替える手段を用いる。 判定結果を確認するためには、 例えば、 入力 された画  In order to arbitrarily specify, and, means for externally specifying the color to be extracted, means for externally specifying the extraction range, means for converting the color of the specified hue and range to the RGB three primary color system, Based on this result, means for rewriting the contents of the means for making the above-described determination in pixel units is used. To confirm the judgment result, for example,
像の輝度情報と 当該抽出画素を別 々 の表現手段で表示す る手段と、 画像を蓄積する前に上述の表示手段に表示 さ れた結果を操作者が確認し、 必要に応 じて抽出条件の変 Means for displaying the image luminance information and the extracted pixels using different expression means, and the operator confirms the result displayed on the above-mentioned display means before accumulating the image, and extracts as necessary. Change of condition
更を実行する手段と 、 こ の条件変更の結果によ り 、 再度 The means of performing the change and the consequences of this
画像の入力及ぴ特定色識別を実行する手段が用い られる。 Means for inputting an image and identifying a specific color is used.
抽出画素を別々 の表現手段によ り 表示するためには、 抽 出された画素のみを特定色で表示 し、 その他の画素は白 黒で表示する手段や、 あるいは輝度情報の 2 値画像と抽 In order to display the extracted pixels by different expression means, only the extracted pixels are displayed in a specific color and the other pixels are displayed in black and white, or a binary image of luminance information and the extraction are performed.
出画素の画像の排他論理和 と なる画像を出力する手段と 、 この論理和画像と輝度情報の 2 値画像を交互に表示する Means for outputting an image which is an exclusive OR of the image of the output pixel, and alternately displaying the OR image and the binary image of the luminance information
手段が用レ、 られる。 Means are used.
一方、 写真などのフ ルカ ラー画像を表現するためには、 R , G , B の各プ レー ンのデータ を記録 し、 各プ レー ン を、 それぞれ R, G , B で表示する。 上述 した各種の画像に対応するため、 本発明で実行す  On the other hand, in order to express full-color images such as photographs, data of each plane of R, G, and B is recorded, and each plane is displayed as R, G, and B, respectively. In order to cope with the various images described above, the present invention is executed.
るデータ の 2 値化処理及ぴその蓄積について簡単に説明 する Brief explanation of binarization processing of data and its accumulation Do
本発明では、 2 値化処理と して、 ある所定の閾値によ つて 2 値化する 2 値化処理 と 、 擬似中間調処理によ り 2 値化処理するディ ザ処理と を並列的に実行 し、 これ ら の 2値化処理結果から、 カ ラ ー モノ ク ロ識別子や文字 / 写真識別子に応 じて各モー ドごと に所望の 2 値化デー タ を選択 して、 蓄積する。 そ して、 画像蓄積時には、 画像 デー タ と共にこ のモ一 ドの識別子 も記録する。 こ のモー ド識別子は、 画像表示の際に も参照され、 表示に必要な データ の指定や、 適切な合成方式を決定する の に用いる , 各モ一 ドの内容は以下の通 り である。  In the present invention, as the binarization processing, a binarization processing of binarizing by a predetermined threshold value and a dither processing of binarization by pseudo halftone processing are executed in parallel. Then, from these binarization processing results, the desired binarization data for each mode is selected and stored according to the color / monochrome identifier or the character / photo identifier. During image storage, the identifier of this mode is recorded together with the image data. This mode identifier is also referred to when displaying an image, and is used to specify data necessary for display and to determine an appropriate composition method. The contents of each mode are as follows.
モー ド( I ) モ ノ ク ロ モー ド : 画像データ の内、 輝度 データ Yのみを蓄積する。 .但し、 文字 Z写真識別子に応 じて単純 2 値化処理結果と ディ ザ処理結果のいずれか一 方を選択 して記録する。  Mode (I) Monochrome mode: Stores only the luminance data Y in the image data. However, either the simple binarization processing result or the dither processing result is selected and recorded according to the character Z photo identifier.
モ一 ド( Π ) マルチカ ラ一モ一 ド : 入力 されたカ ラー 画像データ よ り 、 輝度データ Y と 、 赤ま たは青な どの特 定色で表示する画素のデータ を抽出 し、 それぞれの画像 データ を別々 のプ レーンに蓄積する。 例えば、 輝度デー タ を 2 値化 して得られる 2 値画像 ( Y プ レ ー ン) と 、 そ の 2 値画像内で黒と 記録された画素の内、 例えば赤で表 現 したい画素のみを記述 した 2 値画像 ( R プ レ ー ン) と の、 2枚の 2 値画像を蓄積する。 輝度データ Y を蓄積す るための処理は、 モ ー ド( I ) と 同 じである。 特定色のプ レー ンには、 対象 と なる画素が特定色である場合、 文字 Z写真識別子に応じて単純 2値化処理結果 とディザ処理 結果のいずれか一方を選択 ΰて記録し、 特定色でない場 合、 文字ノ写真識別子識別子にかかわ らず " 0 " を記録 する。 Mode (Π) Multi-color mode: Extracts luminance data Y and pixel data to be displayed in a specific color such as red or blue from the input color image data, and Store image data on separate planes. For example, a binary image (Y plane) obtained by binarizing luminance data, and only pixels that are to be represented in red, for example, only pixels that are recorded as black in the binary image, Two binary images with the described binary image (R plane) are stored. The processing for accumulating the luminance data Y is the same as in mode (I). If the target pixel is a specific color, a character plane Select and record either the binarization processing result or the dither processing result according to the Z photo identifier, and if it is not a specific color, record "0" regardless of the text identifier identifier.
表示時には、 R プ レーンに含まれる画素を赤で表現し. その他の画素は Υプ レーンの各画素の値に従って白黒で 表示する。  At the time of display, the pixels included in the R plane are expressed in red. Other pixels are displayed in black and white according to the value of each pixel in the Υ plane.
モー ド(ΠΙ ) フルカ ラ ーモー ド : R, G , B のカ ラ 一 画像データ を、 それぞれ、 R , G, B のプ レー ン に蓄積す る。 すなわち、 カ ラ ー モ ノ ク ロ識別子及び文字 Z写真 識別子に応 じて単純 2値化処理結果とディザ処理結果の いずれか一方を選択して R, G , B の 3 プ レー ン分をそ れぞれ蓄積する。 .  Mode (ΠΙ) Full color mode: R, G, and B color image data are stored in the R, G, and B planes, respectively. That is, one of the simple binarization processing result and the dither processing result is selected according to the color mono identifier and the character Z photograph identifier, and the three planes of R, G, and B are selected. Each accumulates. .
そ して、 表示時には R , G , B の 3 プ レー ンの各画素 の値を合成して表示する。  During display, the values of the three planes R, G, and B are combined and displayed.
モー ド(IV ) 混在モー ド : 画像中よ り 色情報を必要と するカ ラ一領域と 、 モ ノ ク ロ領域を識別 し、 モ ノ ク ロ镇 域については輝度情報 Y を Gプレーンに蓄積し、 Rおよ ぴ B プ レーンは空白 とする。 但し、 文字領域と 写真領域 とが混在した文書においては、 写真領域に対 しては、 R G , B のディザ処理によ る 2 値化データ を、 それぞれの プ レーンに蓄積する。 一方、 カ ラー領域では、 R, G , B のディザ処理によ る 2 値化データ を、 それぞれのプ レ ー ンに蓄積する。 また、 カ ラ一領域と モ ノ ク ロ領域を示 すカ ラ ー Zモ ノ ク ロ識別子 F c mを第 4 のプ レーンと して 蓄積する。 Mode (IV) Mixed mode: Identifies a color area that requires color information from the image and a monochromatic area, and stores the luminance information Y in the G plane for the monochromatic area. The R and B planes are left blank. However, in a document in which a character area and a photo area are mixed, for the photo area, binarized data by RG and B dither processing is stored in each plane. On the other hand, in the color area, binarized data obtained by dithering R, G, and B is stored in each plane. In addition, a color Z monochromatic identifier Fcm indicating a color region and a monochromatic region is used as a fourth plane. accumulate.
モー ド ( I ) は、 モノ ク 文書を入力する場合に用い る。  Mode (I) is used when inputting a monochromatic document.
モー ド ( Π ) は、 事務文書な どに多 く 存在する 、 モ ノ ク 口文書上に赤あるいは青等の特定色で、 捺印や訂正が な さ.れている文書を対象 と するモー ドである。 但し、 こ のモー ドは表現したい特定色が 2 色以上の場合で も適用 でき る。  The mode (Π) is a mode that is often used in office documents, etc., and is used for documents that have been stamped or corrected in a specific color such as red or blue on the mouth document. It is. However, this mode can be applied even when there are two or more specific colors to be expressed.
モー ド ( m ) は、 カ ラ一写真等を対象 と した場合に用 レヽるモー ドである。  The mode (m) is a mode used for a color photograph or the like.
モー ド (IV ) は、 モノ ク ロ文書と カ ラー写真の混在す る文書を対象 とするモー ドである。  Mode (IV) is for documents that contain both monochrome and color photographs.
以上の動作を簡単に説明する と 、 本発明によ る画像フ ア イ リ ング装置では、 画像中で色彩情報を必要とする場 合にのみ、 R, G, Bすべてのカ ラー情報を蓄積 し、 画 像中のモ ノ ク 口部分ある いは初めからモ ノ ク 口 画像 と し て指定された文書の場合には輝度情報のみを蓄積する こ と を特徴と する。 例えば、 モー ド ( I ) および ( Π ) の 場合、 輝度データ Yは黒で表示する画素を " 1 " 、 空 白 部分を " 0 " と 記録する。 すなわち、 モー ド ( I ) の場 合、 蓄積される画像データ は輝度情報のみである。  To briefly explain the above operation, the image filing apparatus according to the present invention stores all color information of R, G, and B only when color information is required in an image. However, in the case of a document that has been designated as a monaco mouth image in the image or from the beginning, only luminance information is stored. For example, in the modes (I) and (Π), the luminance data Y is recorded as “1” for a pixel displayed in black and “0” for a blank portion. That is, in the mode (I), the stored image data is only luminance information.
ま た、 朱印付き の文書な ど、 正確な色の再現を必要と しないマルチカ ラ ー文書の場合は、 モー ド ( Π ) の処理 によ り 、 モ ノ ク ロ部分のデータ量をモー ド ( I ) の処理 と 同一にでき る。 すなわち、 輝度プ レー ン γ には黒画素 のみを記録するのではな く 、 赤あるいは他の特定色で表 示すべき画素 も含めて記録 υ、 そ して、 Ύ = " 1 " の画 素の内、 赤色の文字など "赤" で表示すべき特定色の画 素を抽出 し、 その抽出 した特定色の画素を輝度プ レー ン と は別のプレーン と して記録する。 従って、 特定色のプ レー ンの画素はモ ノ ク 口 で記載された領域では全て ' 0 " と なるため、 符号化効率が高く 、 モ ノ ク ロ の 2値画像デIn the case of multi-color documents that do not require accurate color reproduction, such as a document with a red seal, the mode (Π) can be used to reduce the amount of data in the monochrome portion by processing the mode (Π). It can be the same as the processing of I). That is, the luminance plane γ has black pixels Rather than recording only, record also including pixels that should be displayed in red or other specific colors υ and Ύ = “1” in pixels with red characters such as red characters A pixel of a specific color to be extracted is extracted, and the extracted pixel of the specific color is recorded as a plane different from the luminance plane. Therefore, the pixels of the plane of the specific color are all '0' in the area described in the mono pixel, so that the coding efficiency is high and the binary image data of the mono pixel is obtained.
—タ のみの場合と、 ほ と んど同一のデータ量で、 色情報 も含めて記録でき る。 Data with almost the same data amount as the case with only data, including color information.
一方、 カ ラ ー写真な どのフノレカ ラ一画像と 、 モ ノ ク ロ 画像と が混在する文書を対象とするモー ド (IV ) では、 カ ラ一 Ζモ ノ ク 口識別情報 F c mを蓄積する こ と によ り 、 モ ノ ク 口領域のデータ冗長性を抑制でき る。 こ のモ一 ド は、 大量の文書を 自 動給紙機な どを用いて連続的に入力 する場合等に特に有効である。 入力する文書の一部の頁 に、 カ ラ一写真が含まれている場合、 モー ド( Π )では、 文書の全頁を R G B の 3 枚のプレー ンで蓄積する こ と に なるため、 蓄積されるデータ量はモ ノ ク ロ画像を蓄積す る場合の 3 倍必要になる。 これに対して、 モー ド( IV )で は、 大半の頁が輝度データ Yのみ蓄積され、 Rおよび B プ レー ン、 属性識別子は、 ほと んどの頁で空白 を示すた め、 効率的な符号化を実現でき る。 なお、 こ こ では、 属 性識別子は、 対象 と なる領域がモ ノ ク ロ 画像の場合 " ◦ 、 カ ラー領域と判定された場合 " 1 " を出力する、 と考 える。 この場合、 カ ラー領域では 3 枚のプレー ンと して R, G, B の各 2 値化データ を記録し、 モ ノ ク ロ領域で は前述 した輝度データ ( Gデー タで代用可能) および赤 青のデータ を記録 し、 画像出力時には、 属性識別子 F cm 等の属性情報によ り データ の表示方法を切 り 替える ので ある。 On the other hand, in the mode (IV), which targets a document in which a funeral image such as a color photograph and a mono image are mixed, the color identification information F cm is stored. This makes it possible to suppress data redundancy in the mouth area. This mode is particularly effective when a large number of documents are input continuously using an automatic paper feeder or the like. If some pages of the input document contain a color photo, in mode ((), all pages of the document will be stored in three RGB planes. The amount of data required is three times as large as that required to store a monochrome image. On the other hand, in the mode (IV), most pages accumulate only the luminance data Y, and the R and B planes and attribute identifiers show blanks on most pages, so that efficient operation is possible. Encoding can be realized. In this case, it is considered that the attribute identifier outputs “◦” when the target area is a monochromatic image and “1” when the target area is determined to be a color area. In the area as three planes R, G, and B binary data are recorded. In the monochromatic area, the above-mentioned luminance data (which can be substituted with G data) and red and blue data are recorded. The data display method is switched according to the attribute information such as cm.
本発明では、 画像データ は、 2 値化 して蓄積する ため 従来のモ ノ ク 口 2 値画像用の装置 と 同様に、 M H  In the present invention, since the image data is binarized and stored, the image data is stored in the M H
(Modi f i ed Huf fman) , M R (Mo d i ί i ed Read) な どの方式 で符号化でき る。 そのため、 例えば光ディ ス ク な どの記 録媒体は、 従来のモ ノ ク ロ シス テ ム と互換性が維持でき る。 したがって、 前述の通 り 、 輝度データ Yは、 従来の モノ ク ロ システムで出力する こ と ができ る。 また、 これ らの 2 値画像の符号化方 では、 文字な どの線図形部分 で、 符号化効率が急激に低下する と いった問題も生 じな い。  (Modified Huffman) and MR (ModiίiedRead). Therefore, a recording medium such as an optical disk can maintain compatibility with a conventional monochromic system. Therefore, as described above, the luminance data Y can be output by the conventional monochromatic system. In addition, these methods of encoding a binary image do not cause a problem that the encoding efficiency is sharply reduced in a line figure such as a character.
さ ら に、 これらの 2 値画像データ の符号化方式では、 0 または 1 が連続する部分のデータ量を極小にでき る。 したがつて、 カ ラ一ノモ ノ ク ロ識別情報等、 値の変化が 領域単位になる情報は符号化効率が極めて高い。  Furthermore, in these binary image data encoding methods, the data amount of a portion where 0s or 1s are continuous can be minimized. Therefore, information whose value changes in units of areas, such as color identification information, has extremely high coding efficiency.
また、 モー ド ( H ) で蓄積する特定色のプ レー ン も、 特定色の画素以外は空白 と なる ため、 高い符号化効率が 得られる。 こ こ では、 白黒画像に付加する特定色の情報 と して、 赤を表示する場合について説明 したが、 2 色以 上の特定色を表現する場合も、 蓄積する プ レ ー ン数を増 加する こ と によ り 、 同様に実行でき る。 次に、 フルカ ラ一画像を蓄積する場合について述べる < フルカ ラ一画像を 2 値情 で表す場合、 濃度だけでな く 色を再現するために、 擬似中間調処理を施す必要があ る。 しかしなが ら、 擬似中間調処理は文字な ど線図形に 適用する と画像の解像度を低下する こ と になる。 したが つて、 フルカ ラ ー文書やカ ラ ー混在文書の文字領域な ど 色の再現を必要と しない部分に対しては適応型 2 値化処 理によ り 線図形を よ り 精細に蓄積する。 一方、 カ ラー镇 域に対しては、 線図形であって も、 色を再現するため擬 似中間調処理を施す。 In addition, the plane of the specific color stored in the mode (H) is blank except for the pixel of the specific color, so that high coding efficiency can be obtained. Here, the case where red is displayed as the specific color information to be added to the black and white image has been described, but when expressing two or more specific colors, the number of stored planes can be increased. By doing so, it can be executed similarly. Next, the case of storing a full-color image is described. <When a full-color image is represented by binary information, it is necessary to perform pseudo halftone processing to reproduce not only the density but also the color. However, if the pseudo halftone processing is applied to line figures such as characters, the resolution of the image will be reduced. Therefore, for parts that do not require color reproduction, such as character areas in full-color documents and mixed-color documents, line figures are accumulated more finely by adaptive binarization processing. . On the other hand, in the color region, pseudo halftone processing is performed to reproduce colors even for line figures.
また、 R, G , B の 3 枚の 2 値画像データ を重ねる こ と によ り 画像を表示する場合、 3 つのデータ間の値の差 によ り 、 本来存在しない色が出現する場合が生じる。 こ れは、 色ノ イズと 呼ばれる。 色ノ イズはモー ド ( m ) と i N ) の場合に生 じる。 こ の色ノ イズを防止するために は、 3 プ レー ンの各画素に等 しいデータ を記録する。  When an image is displayed by superimposing three binary image data of R, G, and B, a color that originally does not exist may appear due to the difference in values between the three data. . This is called color noise. Color noise occurs in modes (m) and iN). In order to prevent this color noise, data equivalent to each pixel in three planes is recorded.
本発明では、 モー ド ( m ) の場合に、 カ ラー Zモ ノ ク 口領域判定部において、 モ ノ ク ロ領域と判定され、 さ ら に文字 Z写真領域判定部において文字領域と判定された 画素に対 しては、 R , G, B の 3 プ レー ンに同 じ値を蓄 積する。 一方、 カ ラー画像を出力する場合、 ァフィ ン変 換等の画像処理や、 特定色の変更、 あるいは色調の調整 な どは、 処理の時点で画像データ が多値である こ と が必 要である。 したがって、 2 値データ と して蓄積された画 像から、 多値データ を再生する。 [図面の簡単な説明 ] According to the present invention, in the mode (m), the color Z monochromatic mouth area determining unit determines that the area is a monochromatic area, and the character Z photograph area determining unit determines that the area is a character area. For a pixel, the same value is stored in the three planes R, G, and B. On the other hand, when a color image is output, image processing such as affinity conversion, change of a specific color, or adjustment of color tone requires the image data to be multi-valued at the time of processing. is there. Therefore, multi-value data is reproduced from the image stored as binary data. [Brief description of drawings]
第 1 図は、 マルチカ ラ一:^書を蓄積する場合の画像デ —タ の一例を説明するための図で、 第 1 A図は特定の色 例えば黒と赤の 2 色の文字で書かれたマルチ力 ラ 一文書 の一例を示 し、 第 1 B図はその文書の黒色に対応する 2 値画像を記録する輝度デー タ ( Y ) プ レ ー ンを示 し、 第 1 C図はその文書の赤色に対応する 2 値画像を記録する Rデータ プ レ ー ンを示す。  Fig. 1 is a diagram for explaining an example of image data in the case of storing a multi-color document. Fig. 1A is a diagram that is written in two colors, black and red. Fig. 1B shows a luminance data (Y) plane for recording a binary image corresponding to the black color of the document, and Fig. 1C shows the same. Indicates an R data plane that records a binary image corresponding to the red color of the document.
第 2 図は、 マルチカ ラー文書を蓄積する場合に、 各 2 値画像データ Y, Rによ って表現される特定色を示す図 である。  Fig. 2 is a diagram showing the specific colors represented by the binary image data Y and R when storing multi-color documents.
第 3 図は、 マルチカ ラー文書を蓄積する場合の画像デ —タ の他の例を説明する ための図で、 第 3 A図は黒と赤 と青の 3 色の文字を含むマルチ力 ラー文書の一例を示 し、 第 3 B 図はその文書の黒色に対応する 2 値画像を記録す る輝度データ ( Y ) プ レ ー ンを示 し、 第 3 C図はその文 書の赤色に対応する 2 値画像を記録する Rデー タプ レ ー ンを示 し、 第 3 D図はその文書の青色に対応する 2 値画 像を記録する Bデータ プ レ ー ンを示す。  Fig. 3 is a diagram for explaining another example of image data when a multi-color document is stored. Fig. 3A is a multi-color document containing three colors of black, red and blue. Fig. 3B shows a luminance data (Y) plane for recording a binary image corresponding to the black color of the document, and Fig. 3C shows the brightness data corresponding to the red color of the document. An R data plane for recording a binary image is shown, and FIG. 3D shows a B data plane for recording a binary image corresponding to the blue color of the document.
第 4 図は、 第 3 A図のマルチカ ラ一文書を蓄積する場 合に、 各 2 値画像データ Y , R , B によ って表現される 特定色を示す図である。  FIG. 4 is a diagram showing a specific color represented by each of the binary image data Y, R, and B when the multi-color document shown in FIG. 3A is stored.
第 5 図は、 フ ルカ ラ一文書を蓄積する場合の画像デー タ の一例を説明する ための図で、 第 5 A図はカ ラ 一写真 等を含むフ ルカ ラー文書の一例を示 し、 第 5 B 図はその 文書の赤色に対応する 2値画像を記録する Rデータ プ レ ーンを示し、 第 5 C図はその文書の緑色に対応する 2 値 画像を記録する Gデータプ レー ンを示 し、 第 5 D図はそ の文書の青色に対応する 2値画像を記録する B データ プ レー ンを示す。 FIG. 5 is a diagram for explaining an example of image data when a full-color document is stored, and FIG. 5A is an example of a full-color document including a color photograph, etc. Figure 5B shows the Figure 5C shows the R data plane recording the binary image corresponding to the red color of the document, Figure 5C shows the G data plane recording the binary image corresponding to the green color of the document, and Figure 5D The figure shows a B data plane that records a binary image corresponding to the blue color of the document.
第 6 図は、 フルカ ラ一モー ドで、 R, G , B の各プ レ — ンに記録される 2 値データ と入力色と の関係を示す図 である。  FIG. 6 is a diagram showing the relationship between the binary data recorded in each of the R, G, and B planes and the input colors in the full color mode.
第 7 図は、 フルカ ラ一文書を蓄積する場合の画像デ一 タ の他の例を説明するための図で、 第 7 A図はカ ラ 一写 真等のカ ラー領域とモ ノ ク 口領域とが混在する フル力 ラ 一文書の一例を示 し、 第 7 B図はその文書の赤.色に対応 する 2 値画像を記録する Rデータプ レ ー ンを示 し、 第 7 C図はその文書の緑色に対応する 2 値画像を記録する Gデータ プ レ ー ンを示し、 第 7 D図はその文書の青色に 対応する 2値画像を記録する Bデータ プ レ ー ンを示 し、 第 7 E図はカ ラ ー Zモ ノ ク 口識別子 F c mを記録する F c m プ レー ンを示す。  FIG. 7 is a diagram for explaining another example of image data when a full-color document is stored. FIG. 7A is a diagram illustrating a color region such as a color image and a monochromatic image. Fig. 7B shows an example of a full document with mixed areas, Fig. 7B shows an R data plane for recording a binary image corresponding to the red color of the document, and Fig. 7C shows Figure 7D shows a G data plane that records a binary image corresponding to the green color of the document, Figure 7D shows a B data plane that records a binary image corresponding to the blue color of the document, FIG. 7E shows an Fcm plane that records a color Z mockup identifier Fcm.
第 8 図は、 本発明によ る画像フ アイ リ ング装置の一実 施例を説明するためのブロ ッ ク構成図である。  FIG. 8 is a block diagram for explaining an embodiment of the image filing apparatus according to the present invention.
第 9 図は、 本発明によ る画像フ アイ リ ング装置の実施 例を示 し、 文書を入力 して 2値の画像データ に変換する ための入力データ変換部の一構成例を示す図である。  FIG. 9 shows an embodiment of an image filing apparatus according to the present invention, and is a diagram showing an example of a configuration of an input data conversion section for inputting a document and converting the input image into binary image data. is there.
第 1 0 図は、 各入力モー ドで、 各画像 (フ レ ーム) メ モ リ に記録されるデータ の内容を示す図である。 第 1 1 図は、 入力モー ド指定部よ り 指示される各モー ドを示すコ — ドコ 一 ドのー を示す図である。 FIG. 10 is a diagram showing the contents of data recorded in each image (frame) memory in each input mode. FIG. 11 is a diagram showing codes of respective modes indicated by the input mode specifying unit.
第 1 2図は、 各入力モー ド及び各領域判定の結果に応 じて、 蓄積する画像データ を選択する、 データセ レ ク タ の動作の一例を示す図である。  FIG. 12 is a diagram showing an example of the operation of a data selector for selecting image data to be stored according to each input mode and each area determination result.
第 1 3図は、 入力モー ド指定部によ り 、 入力モー ドの 指定と と もに対象と なる镇域を指定する場合の、 コ ー ド データ の一例を示す図である。  FIG. 13 is a diagram showing an example of code data when a target area is designated by the input mode designation unit along with the designation of the input mode.
第 1 4図は、 入力 ざれる文書を文字な ど線図形に限定 した場合に、 各入力モー ドで、 各画像 (フ レーム) メ モ リ に記録されるデータ の内容を示す図である。  FIG. 14 is a diagram showing the contents of data recorded in each image (frame) memory in each input mode when a document to be input is limited to a line figure such as a character.
第 1 5 図は、 入力 される文書を写真に限定 した場合に - 各入力モー ドで、 各画像 (フ レーム) メ モ リ に記録され るデータ の内容を示す図である。  Fig. 15 shows the content of data recorded in each image (frame) memory in each input mode when the input document is limited to photographs.
第 1 6 図は、 本発明によ る画像フ アイ リ ング装置の実 施例を示 し、 入力データ変換部で 2値化された各画像デ FIG. 16 shows an embodiment of the image filing apparatus according to the present invention, in which each image data binarized by the input data conversion unit is shown.
—タ を蓄積するためのデータ蓄積部の一構成例を示す図 である。 FIG. 3 is a diagram illustrating an example of a configuration of a data storage unit for storing data.
第 1 7図は、 データ蓄積部中に記録される画像データ の形式を示す図であ り 、 第 1 7 A図はモー ド ( I ) の場 合、 第 1 7 B図はモー ド ( Π ) の場合、 第 1 7 C図はモ — ド (ΙΠ) の場合、 第 1 7 D図はモー ド (IV) の場合を それぞれ示す。  FIG. 17 is a diagram showing the format of image data recorded in the data storage section. FIG. 17A shows the mode (I), and FIG. 17B shows the mode ((). ), Fig. 17C shows the case of mode (ΙΠ), and Fig. 17D shows the case of mode (IV).
第 1 8 図は、 本発明によ る画像フア イ リ ング装置の実 施例を示 し、 画像データ を表示するための出力デー タ変 換部の一構成例を示す図である。 FIG. 18 shows an embodiment of the image filing apparatus according to the present invention, and the output data conversion for displaying the image data. It is a figure showing an example of 1 composition of a change part.
第 1 9 図は、 各モー ド及 表示条件に応 じて各画像デ ータ を選択する、 出力データ変換部におけるデータセ レ ク タ の動作の一例を説明するための図である。  FIG. 19 is a diagram for explaining an example of the operation of the data selector in the output data conversion unit for selecting each image data according to each mode and display condition.
第 2 0 図は、 本発明によ る画像フ アイ リ ング装置の実 施例を示 し、 出力データ変換部における多値化処理部の 一構成例を説明する図である。  FIG. 20 shows an embodiment of an image filing apparatus according to the present invention, and is a view for explaining an example of the configuration of a multi-value processing section in an output data conversion section.
第 2 1 図は、 本発明によ る画像フ アイ リ ング装置の他 の実施例を説明するためのブロ ッ ク構成図である。  FIG. 21 is a block diagram for explaining another embodiment of the image filing apparatus according to the present invention.
第 2 2図は、 マルチカ ラー文書を蓄積する場合に、 各 プ レー ンに記録される 2値画像データ の内容を示す図で ある。  FIG. 22 is a diagram showing the contents of binary image data recorded in each plane when a multi-color document is stored.
第 2 3 図は、 マルチ力 7一文書を蓄積する場合の画像 データの別の一例を説明するための図で、 第 2 3 A図は 黒文字と赤色の捺印 と青色の加筆訂正文字を含むマルチ カ ラー文書の一例を示し、 第 2 3 B図はその文書の黒色 に対応する 2 値画像を記録する輝度データプ レ ー ンを示 し、 第 2 3 C図はその文書の赤色に対応する 2 値画像を 記録する Rデータ プ レ ー ンを示 し、 第 2 3 D図はその文 書の青色に対応する 2 値画像を記録する Bデータ プ レ ー ンを示す。  Fig. 23 is a diagram for explaining another example of image data in the case of storing multiple documents. Fig. 23A is a diagram showing a multi-file containing black characters, red markings, and blue correction characters. An example of a color document is shown, FIG. 23B shows a luminance data plane for recording a binary image corresponding to the black color of the document, and FIG. 23C shows a luminance data plane corresponding to the red color of the document. An R data plane for recording a value image is shown, and FIG. 23D shows a B data plane for recording a binary image corresponding to the blue color of the document.
第 2 4図は、 本発明によ る画像フ アイ リ ング装置の実 施例を示し、 特に特定色識別部を説明する図である。  FIG. 24 shows an embodiment of the image filing apparatus according to the present invention, and particularly illustrates a specific color identification section.
第 2 5 図は、 特定色画素抽出部で用いる判定の一例を 説明するための図で、 第 2 5 A図は R G B系で表現する 色の空間を示 し、 第 2 5 B 図は赤色と青色の範囲の一例 を示 し、 第 2 5 C図は赤色 と青色の範囲の他の例を示す 第 2 6 図は、 特定色画素抽出部の、 R G B 系で表現す る場合の動作を説明するための図である。 FIG. 25 is a diagram for explaining an example of the judgment used in the specific color pixel extraction unit, and FIG. 25A is represented by an RGB system. Fig. 25B shows an example of the red and blue range, and Fig. 25C shows another example of the red and blue range. Fig. 26 shows the specific color pixels. FIG. 9 is a diagram for explaining the operation of the extraction unit when expressing in an RGB system.
第 2 7 A図〜第 2 7 C図は、 表色系 と して V C H系を 用いた判定の原理を説明する ための図である。  FIGS. 27A to 27C are diagrams for explaining the principle of determination using a VCH system as a color system.
第 2 8 図は、 本発明によ る画像フ ア イ リ ング装置の実 施例を示し、 抽出する色の範囲を任意に指定でき る特定 色画素抽出部の詳細を説明するための図である。  FIG. 28 shows an embodiment of the image filing apparatus according to the present invention, and is a diagram for explaining the details of a specific color pixel extraction unit capable of arbitrarily specifying a range of colors to be extracted. is there.
第 2 9 図は、 パラ メ ータ入力部の一構成例を示す図で ある。  FIG. 29 is a diagram illustrating a configuration example of a parameter input unit.
第 3 0 図は ゴ一ス ト 除去部で参照する画素の配置を 示す図である  FIG. 30 is a diagram showing an arrangement of pixels to be referred to in the guest elimination unit.
第 3 1 図は ゴ一ス ト 除去部の一構成を示す図である 第 3 2 図は デー ター時保存部の一構成例を示す図で ある。  FIG. 31 is a diagram showing a configuration of a guest elimination unit. FIG. 32 is a diagram showing a configuration example of a data storage unit.
第 3 3 A図 第 3 3 D図は、 それぞれ、 赤のゴース ト の出現時のパターンを示す図である。  FIG. 33A FIG. 33D is a diagram showing a pattern when a red ghost appears.
第 3 4 図は、 白黒の表示装置によ り 判定結果を確認す るための画像明滅表示機能を実施する一構成例を説明す るための図である。  FIG. 34 is a diagram for explaining an example of a configuration in which a black-and-white display device performs an image blinking display function for confirming a determination result.
第 3 5 図は、 本発明によ る画像フ ア イ リ ング装置の実 施例を示 し、 外部からの指示によ り 着色部分を指定でき る画像フ ア イ リ ング装置の一構成例を示す図である。  FIG. 35 shows an embodiment of an image filing apparatus according to the present invention, in which an example of a configuration of an image filing apparatus capable of designating a colored portion by an external instruction is shown. FIG.
[発明を実施する ための最良の形態] まず第 1 図を用いて、 本発明の特徴の一つである、 マ ルチカ ラ一文書を蓄積する場合の画像データ の記録形式 について説明する。 これは、 前述のモー ド ( Π ) の場合 に相当する。 [Best Mode for Carrying Out the Invention] First, a recording format of image data when a multi-document is stored, which is one of the features of the present invention, will be described with reference to FIG. This corresponds to the above-mentioned mode (().
第 1 A図は黒と赤の 2 色の文字で書かれた文書の一例 を示す。 図において、 領域 1 1 中の文字は黒で、 镇域 1 2 中の文字は赤で、 それぞれ、 書かれている。 こ のマ ルチカ ラ —文書を前述のモー ド ( Π ) で入力する場合、 例えば光ディ スク な どのデータ蓄積部に蓄積される 2枚 の 2 値画像データは、 それぞれ、 第 I B図, 第 1 C図に 示すよ う になる。 第 1 B 図は輝度データ Yを記録する プ レー ンである。 輝度データ プ レー ンは 2 値データで記録 されてお り 、 原画中にお て黒と赤で記載された文字が 単色 2値画像データ と して記載されている。 こ こ では、 前述の通 り モー ド ( I ) の場合は、 文字が記載されてい る画素を " 1 " 、 その他の空白部分の画素を " 0 " と す る。 こ の輝度データ Yのみを記録するモー ドが、 前述し たモー ド ( I ) である。  Figure 1A shows an example of a document written in two colors, black and red. In the figure, the characters in the area 11 are black, and the characters in the area 12 are red. When this multi-color document is input in the above-mentioned mode (例 え ば), for example, the two binary image data stored in the data storage unit such as an optical disc are shown in Fig. IB and Fig. 1 respectively. As shown in Fig. C. Fig. 1B shows a plane for recording luminance data Y. The luminance data plane is recorded as binary data, and the characters described in black and red in the original image are described as monochromatic binary image data. In this case, in the mode (I) as described above, the pixel on which the character is written is "1", and the other blank pixels are "0". The mode for recording only the luminance data Y is the mode (I) described above.
—方、 第 1 C図は Rプレーン中に記載される 2 値画像 データ を示す。 輝度データ Y中に " 1 " と して記載され ている画素の う ちで、 赤 と判断された画素のみに対 して " 1 " が記載される。 この赤を抽出 し 2 値化する部分の 構成は後に述べる。  On the other hand, Fig. 1C shows the binary image data described in the R plane. Among the pixels described as “1” in the luminance data Y, “1” is described only for the pixels determined to be red. The structure of the part that extracts this red and binarizes it will be described later.
こ の結果、 第 1 B 図に示 した輝度データ Y ( x , y ) と 、 第 1 C図に示 した R ( X , y ) と の間には、 以下の関係が 成 り 立つ。 As a result, the following relationship exists between the luminance data Y (x, y) shown in FIG. 1B and R (X, y) shown in FIG. 1C. It stands.
i f R ( x , y ) = 1 t h e n Y ( x , y ) = 1  i f R (x, y) = 1 t h en Y (x, y) = 1
したがって、 Rプ レー ンの画素が " 1 " で、 Yプ レー ンの画素が " 0 " と なる場合は生 じない。  Therefore, if the pixel in the R plane is "1" and the pixel in the Y plane is "0", no error occurs.
第 2 図は、 モー ド ( Π ) において、 マルチカ ラ 一文書 中の各色を表現する ための 2 値データ Y, Rの組合せを 示す。 図中、 Yは輝度データ 、 Rは Rデータ の内容をそ れぞれ示す。 表現する特定色が 白, 黒, 赤の 3 種類の場 合、 データ の取 り う る値は図に示す 3 通 り と なる。  Figure 2 shows the combination of binary data Y and R to represent each color in a multi-color document in mode (Π). In the figure, Y indicates the content of the luminance data, and R indicates the content of the R data, respectively. If the specific colors to be represented are three types of white, black, and red, the values that the data can take are the three shown in the figure.
一方、 光ディ ス ク な どのデー タ蓄積部に蓄積された 2 枚の 2 値画像データ (第 1 B 図, 第 1 C図に示 される) からマルチカ ラ一画像を表示する場合、 カ ラー出力 と 、 モノ ク 口 出力の 2 種類の場合が存在する。 第 2 図に出力 . 時の色について も示す。 第 1 図のマルチカ ラ一画像を力 ラ一表示する場合、 第 1 C図の画像デー タ を赤で表示 し、 赤以外の部分を第 1 B 図の画像データ に従って 白黒で表 示する。 こ の表示法を実現する具体的手段については、 後に述べる。  On the other hand, when displaying a multi-color image from two pieces of binary image data (shown in Figs. 1B and 1C) stored in a data storage unit such as an optical disk, There are two types of output, output and mono output. Fig. 2 also shows the colors at the time of output. When the multi-color image shown in Fig. 1 is displayed in color, the image data shown in Fig. 1C is displayed in red, and parts other than red are displayed in black and white according to the image data shown in Fig. 1B. Specific means for realizing this display method will be described later.
なお、 蓄積された複数の画像を連続して表示する場合 な ど も、 Yデータ のみを読み出 してモ ノ ク ロ で表示する こ と によ り 、 高速に表示でき る。 また、 こ の Yデータ の みを用レヽる こ と によ り 、 例えば F A Xな どのモ ノ ク ロ 2 値画像を扱 う 装置と も、 データ の互換性を保つこ と がで き る。 こ の特徴は、 他のモー ドにおいて も同様である。  Even when a plurality of stored images are displayed continuously, high-speed display can be achieved by reading out only the Y data and displaying it in a monochromatic manner. By using only this Y data, data compatibility can be maintained with devices that handle monochromatic binary images, such as FAX. This feature is the same in other modes.
なお、 こ こ では、 画像表示時に再現する色 と して、 赤 の一色を対象と したが、 他の色の場合で も同様である。 また、 特定色 と して複数の を表示する こ と もでき る。 この場合、 例えば η個の特定色を表現する場合は、 η + 1 プ レー ン の 2 値画像データ を蓄積する。 Note that here, the color reproduced during image display is red. One color is targeted, but the same applies to other colors. Also, a plurality of can be displayed as specific colors. In this case, for example, when η specific colors are to be expressed, η + 1 plane binary image data is stored.
—例 と して、 白黒の他、 赤と青の 2 色を表現する場合 の例を第 3 図に示す。 第 3 Α図は黒と赤と青の 3 色の文 字が記載されたマルチカ ラ ー文書の一例を示す。 図中、 領域 1 6 中の文字は黒、 領域 1 7 中の文字は赤、 領域 1 8 中の文字は青で、 それぞれ、 書かれている。 このマ ルチカ ラ 一文書を前述のモー ド ( Π ) で入力 した場合、 画像は第 3 Β 図〜第 3 D図に示す 3 枚の 2 値画像データ と して蓄積される。 第 3 Β 図は輝度データ Υを記録する プ レー ンである。 第 3 C図は赤プ レー ン、 第 3 D図は青 プ レ ー ンであ り 、 それぞれ表示すべき特定色の画素を記 録する 2 値画像データである。 こ の場合に、 文書中の各 色を表現する ための 2 値データ Y , R , Β の組合せを、 出力時の色と共に第 4 図に示す。  —As an example, Fig. 3 shows an example of expressing two colors, red and blue, in addition to black and white. Figure 3 shows an example of a multi-color document in which black, red, and blue characters are described. In the figure, the characters in region 16 are black, the characters in region 17 are red, and the characters in region 18 are blue. When this multi-color document is input in the above-mentioned mode (Π), the images are stored as the three binary image data shown in Figs. 3〜 to 3D. Fig. 3 shows a plane for recording luminance data. FIG. 3C is a red plane, and FIG. 3D is a blue plane, each of which is binary image data for recording a pixel of a specific color to be displayed. In this case, Fig. 4 shows the combinations of binary data Y, R, and の for expressing each color in the document, together with the colors at the time of output.
次に、 カ ラ一写真等のフルカ ラー文書を対象とするモ ー ド ( m ) について説明する。 第 5 図に、 モー ド ( m ) の場合における画像データ の記録形式を示す。 画像は R , G , B 3 枚の 2 値画像データ と して記録される。 第 5 A 図の 2 0 はカ ラー写真と 文字とが混在する文書の一例を 示 し、 第 5 B 図は R プ レー ンの 、 第 5 C図は G プ レー ン の、 第 5 D図は B プ レー ン の 、 それぞれの 2 値画像デー タ の内容を示す。 第 5 A図において、 領域 2 1 中の文字 は黒で、 領域 2 2 中の文字はある特定の中間色で、 記载 されている。 一方、 領域 2 3 はカ ラ一写真の記載されて いる镇域を示す。 Next, the mode (m) for full-color documents such as color photographs will be described. Fig. 5 shows the recording format of image data in mode (m). The image is recorded as R, G, B three binary image data. Fig. 5A shows an example of a document in which color photographs and characters are mixed, Fig. 5B shows an R plane, Fig. 5C shows a G plane, and Fig. 5D. Indicates the contents of each binary image data of the B plane. In Figure 5A, the characters in area 21 Is black, and the characters in the area 22 are written in a certain neutral color. On the other hand, the area 23 indicates the area where the color photograph is described.
こ こ で、 本モー ドにおいて、 各プ レー ンの画像デー タ の内容によ り 記録される色を、 第 6 図に示す。 モー ド m ) の場合、 白および黒も一つの色 と して扱われる。 2 値化処理に関 しては、 第 5 A図において镇域 2 3 と して示 したカ ラ ー写真な どのフルカ ラー画像を R , G , B各成分の 2 値データで表現する場合、 R, G , B の各 多値データ を、 それぞれ擬似中間調処理によって 2 値化 する。 したがって、 図中の镇域 3 3 , 4 3 , 5 3 は 1 , G , B の各多値データ を擬似中間調処理によ り それぞれ 独立に 2 値化したデータ ^記録される。  Here, in this mode, the colors recorded according to the contents of the image data of each plane are shown in FIG. In mode m), white and black are treated as one color. Regarding the binarization processing, when a full-color image such as a color photograph shown as area 23 in FIG. 5A is represented by binary data of each of the R, G, and B components, Each of the multivalued data of R, G, and B is binarized by pseudo halftone processing. Therefore, in the regions 33, 43, and 53 in the figure, data obtained by independently binarizing the multivalued data of 1, G, and B by pseudo halftone processing are recorded.
一方、 こ のモー ドにおいては、 例えば領域 2 1 な ど 白 黒の文字領域は、 2 値化処理時に擬似中間調処理は施さ ない。 これは、 入力文書の画像中よ り 文字領域と写真領 域と を分離 し、 その結果を用いて単純 2 値化処理と擬似 中間調処理の結果を選択する こ と によ り 実行する。 そ し て さ ら に、 黒文字の記載されている領域を正 し く 表現す るためには、 R , G , B 各プ レー ンの間で画素の値を等 し く する。 具体的には、 文字領域中で、 かつモ ノ ク ロ 領 域と判定された画素は、 R, G, B の 3 プ レー ンに同一 の値を記録する こ と によ り 行 う 。 したがって、 領域 3 1 , 4 1 , 5 1 の各画素は同一の値を記録する。  On the other hand, in this mode, for example, a black-and-white character area such as the area 21 is not subjected to the pseudo halftone processing at the time of the binarization processing. This is performed by separating the character area and the photo area from the image of the input document and using the results to select the results of simple binarization processing and pseudo halftone processing. In addition, in order to correctly represent the area in which black characters are described, the pixel values are made equal among the R, G, and B planes. Specifically, pixels in the character area that are determined to be a monochromatic area are recorded with the same values in the three planes R, G, and B. Therefore, each pixel in the areas 31, 41, and 51 records the same value.
しか しなが ら、 文字領域において も、 例えば領域 2 2 な ど彩色された文字で、 色を再現する必要のある場合は. 色の表現のため、 擬似中間調処理を必要とする。 従って . 文字領域と写真領域の識別の他、 カ ラー領域とモ ノ ク ロ 領域を識別する。 彩色された文字镇域 3 2 , 4 2 , 5 2 の各画素は、 それぞれ独立の値が記録される。 However, even in the character area, for example, the area 22 When it is necessary to reproduce colors with colored characters. Pseudo halftone processing is required to represent colors. Therefore, in addition to identifying the text area and the photograph area, the color area and the monochromatic area are identified. Each pixel of the colored character areas 32, 42, 52 has an independent value recorded.
なお、 各種判定結果と指定モー ドによ る 2 値化処理の 選択については、 後に詳し く 述べる。  The selection of the binarization processing based on the various judgment results and the specified mode will be described in detail later.
次に、 カ ラー領域とモ ノ ク ロ領域と が混在する文書を 対象 と するモー ド ( IV ) について述べる。  Next, the mode (IV) for documents that contain both color areas and monochromatic areas is described.
こ のモー ドは、 特に多数の頁から構成される文献等の 文書を画像データ と して蓄積する場合に効果がある。 一 般に、 多数の頁よ り 構成される文献等を入力する場合、 例えばソ一タ と 呼ばれる 自-動入力のための装置を用いる こ の場合、 操作者のつき添いを不要とする こ と によ り 入 力作業の効率を向上でき る。 しかしなが ら、 入力中、 操 作者がいない場合、 各頁ごと にモー ドを切 り 替える こ と は困難である。 する と 、 入力する文献中の一部の頁に力 ラー領域が含まれる場合、 全頁の画像をカ ラー画像と し て入力する必要がある。 仮に全頁の画像をモー ド ( IE ) で蓄積する と 、 モ ノ ク ロ領域の画像データは、 本来のモ ノ ク ロモー ド ( I ) で入力 した場合と比べ 3 倍のデータ 量を必要する。 これに対してモー ド ( IV ) では、 第 4 の プ レーンと して、 画像中の各部がカ ラー領域か、 モ ノ ク 口領域かを示す識別子を有する。 この識別子は 2値のフ ラ グにて実現でき るので、 これまで述べてきた各プ レー ン と 同様に記録する こ と ができ る。 This mode is particularly effective when a document such as a document composed of many pages is stored as image data. In general, when inputting a document or the like consisting of many pages, for example, when using a device for automatic input called a sorter, there is no need for attendance by an operator. Thus, the efficiency of input work can be improved. However, if there is no operator during the input, it is difficult to switch the mode for each page. Then, if a color region is included in some pages in the input document, it is necessary to input images of all pages as color images. If images of all pages are stored in the mode (IE), the image data in the monochromatic area requires three times the data amount as when input in the original monochromatic mode (I). . On the other hand, in the mode (IV), the fourth plane has an identifier indicating whether each part in the image is a color area or a monaural opening area. Since this identifier can be realized by a binary flag, each of the Can be recorded in the same way.
第 7 図に、 モー ド ( IV ) における画像デー タ の記録形 式の一例を示す。 第 7 A図は第 5 A図 と全く 同 じカ ラー 文書の画像例を示す。 第 7 B図, 第 7 C図, 第 7 D図は それぞれ、 R, G , Bの 2値画像データ、 ま た、 F cmは 画像の各部に対して、 カ ラ一镇域とモ ノ ク 口領域を識別 する ための 2 値の識別子である。 こ こ で、 仮に、 識別子 F cra( X , y ) は当該画素 I M( x , y ) がカ ラーの場合 " 1 " 、 モ ノ ク ロ の場合 " 0 " と する。 する と 2値デ一 タ F cmは、' 第 7 A図の画像中のカ ラ一镇域 2 2 , 2 3 に 対応する領域 9 2 , 9 3 では " 1 " 、 其の他の部分では " 0 " と なる。 こ こ で、 F c m = 1 となる部分は、 R , G, B各プ レー ンに、 それぞれ、 R, G , Bの 2 値画像デ一 タ を記載する。 こ こ の镇域において、 黒は、 R = G = B = 0 と して記載される。 一方、 例えば黒文字の領域 2 1 においては、 その記録形式はモ ノ ク ロ モ 一 ドの場合 と 同 様であ り 、 黒と して記載する画素は、 R, G , Bプ レ ー ンの内 1 プ レーンにのみ " 1 " と記載する。 こ こでは、 Gプ レー ンを当該プ レー ン とする。  Fig. 7 shows an example of the recording format of image data in mode (IV). Fig. 7A shows an example of the same color document image as Fig. 5A. Fig. 7B, Fig. 7C, and Fig. 7D are the binary image data of R, G, and B, respectively, and Fcm is the color area and monoc for each part of the image. This is a binary identifier for identifying the mouth area. Here, it is assumed that the identifier F cra (X, y) is “1” when the pixel IM (x, y) is a color and “0” when the pixel IM (x, y) is a monochrome. Then, the binary data F cm becomes “1” in the areas 92 and 93 corresponding to the color areas 22 and 23 in the image of FIG. 7A, and in other parts, It becomes "0". Here, the portion where F cm = 1 describes the binary image data of R, G, and B in each of the R, G, and B planes. In this region, black is described as R = G = B = 0. On the other hand, for example, in the black character area 21, the recording format is the same as in the monochromatic mode, and the pixels described as black are the R, G, and B planes. Write "1" only in one plane. Here, the G plane is defined as the plane.
画像表示の場合、 モー ド ( IV ) では、 F c m = 0 の部分 では画像データ と して Gプ レーンのみを読みだ し、 G = 1 な らば黒、 G = 0 な らば白を出力する。 F cm= l の画 素に対 しては、 R , G , B の 3 プ レーンを読みだ し、 モ ー ド ( Π) と 同様に表示する。 したがって、 モー ド (IV) では、 画像出力部は、 識別子 F c mの値に応 じて Gプ レ一 ンの表示色を切 り 替える。 In the image display mode, in mode (IV), only the G plane is read as image data in the area of F cm = 0, black if G = 1, and white if G = 0 I do. For pixels with F cm = l, read three planes of R, G, and B and display them in the same way as in mode (Π). Therefore, in the mode (IV), the image output unit performs G-play according to the value of the identifier Fcm. Switch the display color of the buttons.
モー ド (IV) によ り 画像データ を記録する と 、 モ ノ ク 口文字画像に対しては、 常に F cm = 0 , R = 0 , G = 0 であ り 、 高い符号化効率が得られるため、 モ ノ ク ロ モ一 ドでの入力 と ほぼ同等のデータ量で力 ラー画像と混在す る文書を蓄積でき る。 一方、 カ ラ一镇域において も、 識 別子 F cmは領域を単位と して 0 と 1 を切 り 替えるため、 符号化効率が高く 、 モー ド ( IE ) と ほぼ同等のデータ量 で画像データ を蓄積でき る。  When image data is recorded in mode (IV), Fcm = 0, R = 0, and G = 0 are always obtained for monochromatic character images, and high coding efficiency is obtained. Therefore, it is possible to accumulate documents mixed with color images with almost the same data amount as the input in the mono mode. On the other hand, in the color area as well, the identifier Fcm switches between 0 and 1 in units of area, so that the coding efficiency is high and the image size is almost the same as the mode (IE). Data can be stored.
次に、 上述の各モー ドによ る画像データ の蓄積を実施 する画像フ アイ リ ング装置の一実施例について述べる。 まずはじめに、 第 8 図に、 本発明によ る画像フ アイ リ ン グ装置の一実施例の全体構成を示す。  Next, an embodiment of an image filing apparatus that stores image data in each of the above modes will be described. First, FIG. 8 shows an overall configuration of an embodiment of an image filing apparatus according to the present invention.
図中、 1 0 0 は文書な どの画像を光学的に読み取 り 、 例えば R G B 3 成分に対し多値のデジタルデータ を出力 するカ ラースキャナ、 1 5 0 は前述したモー ド ( 1 )〜 ( IV ) の内 1 つを指定する入力モー ド指定部、 2 0 0 は 入力 された R G B各色の多値データ を、 データ蓄積用に 2 値化する入力データ変換部である。 6 β 0 は入力デー タ変換部 2 0 0 の出力である 2 値の画像デー タ を一時的 に記億する画像メ モ リ で、 例えば 4 つのフ レームメ モ リ 6 1 0 , 6 2 0 , 6 3 0 , 6 4 0 力 ら構成されている。 7 0 0 は 2 値の画像データ を、 例えば高精細カ ラ一 C R Τな どの表示装置の入力に適 した形式に変換する 出 力データ変換部、 7 5 0 は RGBの多値データ を入力 し力 ラ ー画像を表示する高精細 C R Tな どの画像表示部であ る。 一方、 8 0 0 は画像メ モ リ 6 0 0 中の 2 値データ を 符号化 して蓄積した り 、 すでに蓄積されたデータ を読み だして復号化する、 光ディ ス ク な どの大容量メ モ リ 装置 から なるデータ蓄積部、 9 0 0 はフ アイ リ ング装置全体 を制御する制御部である。 In the figure, 100 is a color scanner that optically reads an image such as a document and outputs multi-valued digital data with respect to, for example, RGB three components, and 150 is a color scanner that has the modes (1) to (IV) described above. ) Is an input mode designator that designates one of the input data. Reference numeral 200 denotes an input data converter that binarizes the input multivalued data of each RGB color for data storage. 6 β0 is an image memory for temporarily storing the binary image data output from the input data conversion unit 200, for example, four frame memories 6 10, 6 2 0, It consists of 630 and 640 forces. 7000 is an output data conversion unit that converts binary image data into a format suitable for input to a display device, such as a high-definition color CR, for example.750 is an input unit that inputs RGB multivalued data. Power This is an image display unit such as a high-definition CRT that displays color images. On the other hand, 800 is a large-capacity memory such as an optical disk that encodes and stores binary data in the image memory 600 or reads and decodes already stored data. Reference numeral 900 denotes a data storage unit composed of a re-writing device, and 900 denotes a control unit for controlling the entire filing device.
こ こ で、 本画像フ アイ リ ング装置の特徴的部分の一つ が、 入力データ変換部 2 0 0 である。 第 8 図に示 した各 構成要素の う ち、 画像の入力に関する部分を、 第 9 図を 用いて説明する。 図中、 6 1 0, 6 2 0, 6 3 0 ,  Here, one of the characteristic parts of the present image filing apparatus is the input data conversion unit 200. Of the components shown in FIG. 8, the part related to image input will be described with reference to FIG. In the figure, 6 1 0, 6 2 0, 6 3 0,
6 4 0 は、 入力画像の各プ レーンの 2 値データ を一時記 憶する フ レームメ モ リ である。 入力データ変換部 2 0 0 は、 镔域判定部 4 0 0 、 2.値化部 3 0 0 およびセ レ ク タ 5 0 0 から構成され、 モー ド指定信号や各種の領域判定 結果によ り 、 2 値化処理と と もに各フ レ ー ム メ モ リ に記 録する画像データ を選択する こ と にある。  640 is a frame memory for temporarily storing binary data of each plane of the input image. The input data conversion unit 200 is composed of an area determination unit 400, 2. a value conversion unit 300 and a selector 500, and is based on a mode designation signal and various area determination results. In addition to selecting the image data to be recorded in each frame memory together with the binarization processing.
入力画像に対して領域を判定する領域判定部 4 0 0 は、 カ ラ ースキヤ タ 1 0 0 から得られる R G B の 3 枚の多値 画像データ よ り 、 入力画像の各画素がカ ラー領域と モ ノ ク 口領域のいずれに属する かを識別するカ ラーノモ ノ ク 口識別部 4 1 0 、 入力画像の各画素が例えば赤や青な ど あ らか じめ定めた特定の色に属するか否かを判定する 色 識別部 4 2 0 、 多値のデジタル画像データ を入力 し、 入 力画像の各画素が文字な どの線図形領域と亨真な どの中 間調領域と のいずれに属するかを判定する文字ノ写真領 域判定部 4 3 0 から構成されている。 The area determination unit 400 that determines the area of the input image is based on three RGB multi-valued image data obtained from the color scatterer 100, and each pixel of the input image is defined as a color area and a model. Color identification block 4101 that identifies which of the nodal areas belongs, whether or not each pixel of the input image belongs to a predetermined color such as red or blue Color identification unit 420 inputs multi-valued digital image data and determines whether each pixel of the input image belongs to a line figure area such as a character or a halftone area such as a true Photograph territory to do It is composed of an area judging section 4300.
また、 R G B の多値画像^—タ をそれぞれ独立に 2値 ィ匕する 2値化部 3 0 0 は、 文字、 線図形などの画像を 2 値化する 2 値化処理部 3 4 0 と 、 擬似中間調処理によ り 2値化処理を施すディザ処理部 3 5 0 から構成されてい る。 2 値化処理部 3 4 0 は、 多値画像データ をある所定 の閾値によ って 2値化する もので、 文字や線図形な どの 画像を 2値化するのに適 している。 ディザ処理部 3 5 0 は、 画素の位置によ り 閾値を周期的に変化させて 2 値化 する も ので、 写真やカ ラ ー画像を 2値化するのに適 して いる。 擬似中間調処理と しては、 ディザ処理の他に平均 誤差最少法な どがあ り 、 これを用いて もよい。 平均誤差 最少法によ る 中間調処理は.、 網点画像のよ う に周期性を 持つ画像の 2値化に適 している。  Further, a binarizing unit 300 that binarizes RGB multi-valued images independently of each other includes a binarizing processing unit 340 that binarizes images such as characters and line figures, It is composed of a dither processing section 350 for performing binarization processing by pseudo halftone processing. The binarization processing section 340 binarizes multi-valued image data with a predetermined threshold, and is suitable for binarizing images such as characters and line figures. The dither processing section 350 is adapted to binarize by periodically changing the threshold value according to the position of the pixel, and is suitable for binarizing a photograph or a color image. As the pseudo halftone processing, besides dither processing, there is an average error minimum method, and this may be used. Halftone processing by the average error minimization method is suitable for binarization of periodic images such as halftone images.
セ レク タ 5 0 0 は、 入力モー ド指定部 1 5 0 力 らのモ 一 ド指定信号 F mo dおよび镇域判定部 4 0 0 からの各判 定結果によ り 、 R G B 3 枚の画像に対する 2種類の 2値 化処理結果から、 画像メ モ リ 6 0 0 に蓄積するデータ を 選択 して出力する ものである。  Based on the mode designation signal F mod from the input mode designation unit 150 and the judgment results from the area judgment unit 400, the selector 500 outputs three RGB images. The data to be stored in the image memory 600 is selected and output from the two types of binarization processing results for.
こ こで、 各モー ドにおいて、 画像メ モ リ 6 0 0 内の各 フ レーム メ モ リ 6 1 0 , 6 2 0 , 6 3 0 , 6 4 0 に記録 する 2 値画像データ の内容を第 1 0 図に示す。 なお、 こ こ では以後、 フ レーム メ モ リ 6 1 0 中に展開 されたデー タ を D A T A— 1 , 6 2 0 , 6 3 0, 6 4 0 に蓄積され たデータ を、 それぞれ D A T A— 2, D A T A— 3 , D A T A— 4 と 呼ぶ。 第 1 0 図中、 "一 " はデータ の記 録を行わないこ と を示す。 モー ド ( I ) で蓄積する 2値 画像データ は輝度デー タ Yのみであ り 、 フ レーム メ モ リ 6 1 0 に記録される。 モー ド( Π ) では 2プ レー ン、 モ ― ド(IE) では 3 プ レー ンの 2値画像データ を蓄積する。 さ ら にモー ド ( IV ) では、 4プ レー ンの 2値画像データ をフ レーム メ モ リ 6 1 0, 6 2 0 , 6 3 0 , 6 4 0 に蓄 積する。 Here, in each mode, the contents of the binary image data recorded in each frame memory 61 0, 62 0, 63 0, 64 0 in the image memory 600 are described. Figure 10 shows. Hereafter, the data developed in the frame memory 610 will be referred to as DATA-1, 620, 630, 640, and the data accumulated in DATA 620 will be referred to as DATA-2, respectively. DATA— 3, Called DATA-4. In FIG. 10, "1" indicates that data is not recorded. The binary image data stored in the mode (I) is only the luminance data Y and is recorded in the frame memory 610. In the mode (Π), two planes of binary image data are stored, and in the mode (IE), three planes of binary image data are stored. Further, in the mode (IV), four planes of binary image data are stored in the frame memories 61, 62, 63, and 64.
今、 本実施例の特徴を簡潔に説明するため、 力 ラ ース キヤナ 1 0 0 からは入力画像上の各画素の R G Bの多値 データが同時に出力される と考える。 信号線 1 1 0 は R データ、 信号線 1 2 0 は Gデータ、 信号線 1 3 0 は Bデ ータ をそれぞれ送る。 また.、 本実施例では、 説明の簡素 化のため、 輝度データ Yを Gデータで代用するが、 R G B 3種類の多値データ に対する演算処理によって輝 度データ Yを算出する こ と も可能である。  Now, in order to briefly describe the features of the present embodiment, it is assumed that the multi-value data of RGB of each pixel on the input image is simultaneously output from the force raster 100. Signal line 110 sends R data, signal line 120 sends G data, and signal line 130 sends B data. Further, in the present embodiment, the luminance data Y is substituted by G data for simplification of the description, but the luminance data Y can be calculated by performing arithmetic processing on three types of multi-valued data of RGB. .
カ ラ一 Zモノ ク ロ識別部 4 1 0 は、 入力 された R G B の多値データ よ り 、 既知の手段を用いて、 モー ド ( m ) および (IV) で用い られる 、 2値のカ ラー モ ノ ク ロ識 別子 F cmを出力する。  Based on the input RGB multi-value data, the color Z monochromatic discriminating section 410 uses a known method to generate binary colors used in the modes (m) and (IV). Outputs the mono identifier F cm.
一方、 色識別部 4 2 0 は、 モー ド ( Π ) において特定 色のプ レー ンに記録される画素を抽出する こ と を 目 的 と する。 本実施例では、 赤色の画素を抽出する場合を例に 説明するが、 抽出する特定色の数が 1 以上任意であ り 、 かつ色 自体も任意に設定 し う る。 色識別部 4 2 0 か ら 出 力 される識別子 F r bは、 抽出される色の数によ り 形式が 異な り 、 赤の一色を抽出す 場合 l b it の信号と なる。 こ こ で抽出する特定色の数 Cnbと識別子 F rbの bit 数 N と の間には、 以下の関係が存在する。 On the other hand, the purpose of the color identification section 420 is to extract the pixels recorded in the plane of the specific color in the mode (Π). In this embodiment, a case where a red pixel is extracted will be described as an example. However, the number of specific colors to be extracted is one or more, and the color itself is also set arbitrarily. Out of color identification section 420 The identifier F rb to be input has a different format depending on the number of colors to be extracted, and becomes a signal of lb it when one color of red is extracted. The following relationship exists between the number of specific colors Cnb extracted here and the number of bits N of the identifier F rb.
N≥ log2( Cnb+ 1 ) N≥ log 2 (Cnb + 1)
特定色の抽出は、 R G B間の値の偏 り な どを用いる手法 など各種の ものが既に公知 と なってお り 、 これら を用い ればよい。 Various methods for extracting a specific color, such as a method using deviation of values between R, G, and B, are already known, and these may be used.
一方、 文字 Z写真領域判定部 4 3 0 は、 2値化部  On the other hand, the character Z photograph area determination section 4
3 0 0 から得られる、 文字、 線図形に適 した単純 2値化 処理によ る 2値化データ と 写真やカ ラ 一画像に適 した擬 似中間調処理によ る 2値化データ と を選択する こ と を 目 的とする。 具体的な手段と.しては、 例えば特開昭 6 3 — 3 1 6 5 6 6 などに記載されている。 判定結果 F dmは 2値データ と なる。 判定結果 F dmが各色によ り 異なる と 、 セ レ ク タ 5 0 0 の出力が不安定と なるため、 文字/写真 鎮域の判定は輝度データ に対して実行する。 本実施例で は、 前述の通 り Gデータ にて輝度データ を代用する。  The binarized data obtained by the simple binarization process suitable for characters and line figures obtained from 300 and the binarized data obtained by the pseudo-halftone process suitable for photographs and color images The purpose is to make a selection. Specific means are described in, for example, JP-A-63-316656. The judgment result Fdm is binary data. If the determination result Fdm is different for each color, the output of the selector 500 becomes unstable. Therefore, the determination of the character / photo area is performed on the luminance data. In the present embodiment, the luminance data is substituted for the G data as described above.
第 1 1 図に、 入力モー ド指定部 1 5 0 よ り 入力 される モー ド指定コ ー ド Fmod の一例を示す。 4種類の入力モ — ドを選択する識別コー ドによ り 、 セ レ ク タ 5 0 0 を駆 動する。 セ レク タ 5 0 0 は、 2値化処理部 3 4 0および ディザ処理部 3 5 0 よ り それぞれ出力 される R G B各 3 プ レー ンの 2値画像データ , 計 6 プ レーンのデータ よ り 、 面像メ モ リ 6 0 0 内 の 4つ フ レーム メ モ リ 6 1 0 , 6 2 0, 6 3 0 , 6 4 0 中の :! 〜 4個に出力する 2 値デ —タ D A T A— 1〜D A T A— 4 を選択する。 FIG. 11 shows an example of the mode designation code Fmod input from the input mode designation section 150. The selector 500 is driven by an identification code for selecting four types of input modes. The selector 500 is composed of three planes of RGB binary image data output from the binarization processing section 340 and the dither processing section 350, respectively, and a total of 6 planes of data. The four frame memories in the plane image memory 600 Of 6 20, 6 3 0, 6 4 0:! Select the binary data to be output to 4 to DATA-4 to DATA-4.
本実施例におけるセ レク タ 5 0 0 の動作例を第 1 2 図 に示す。 図中、 セ レク タ 5 0 0 から出力 されるデータ は R c, G c, B cで示される ものが第 9 図中の 2値化処理 部 3 4 0 で得られる R , G , Bの 2値化処理結果、 R d, G d, B dで示される ものがディザ処理部 3 5 0 で得られ る R, G , Bの 2値化処理結果である。  FIG. 12 shows an operation example of the selector 500 in this embodiment. In the figure, the data output from selector 500 is represented by Rc, Gc, and Bc, and the data of R, G, and B obtained by binarization processing section 340 in FIG. The results of the binarization processing, denoted by R d, G d, and B d, are the binarization processing results of R, G, and B obtained by the dither processing section 350.
モー ド ( I ) においては、 輝度データ のみを出力 と し て、 G c も し く は G d の一方のみを フ レーム メ モ リ 6 1 0 に出力する。 こ こ で、 G c と G d の切 り 替えは、 文字 写真領域判定部 4 3 0 の出力 F dmに応 じて実行さ れる。 ただし、 入力対象 と-なる画像が、 文字あるいは写 真の一方のみから構成される場合、 入力モー ド指定部 1 5 0 を用いて外部よ り いずれか一方に指定する こ と も 可能であるが、 これについては後に述べる。  In the mode (I), only the luminance data is output, and only one of Gc or Gd is output to the frame memory 610. Here, switching between G c and G d is executed according to the output F dm of the character / photograph area determination unit 430. However, if the image to be input is composed of only characters or photos, it is possible to specify one of them externally using the input mode specification unit 150. This will be described later.
モー ド ( Π ) においては、 本実施例では、 2 プレーン 分の 2値画像データ をフ レーム メ モ リ 6 1 0, 6 2 0 に 蓄積する。 蓄積されるデータ の選択は、 文字 Z写真領域 判定部 4 3 0 の出力 F dmと 、 色識別部 4 2 0 の出力 F r b によ り 制御される。 こ こ で、 D A T A— 1 にはモー ド In the mode (Π), in the present embodiment, binary image data for two planes is stored in the frame memories 610 and 620. The selection of the data to be stored is controlled by the output Fdm of the character / Z photograph area determination unit 430 and the output Frb of the color identification unit 420. Where D ATA — 1 is in mode
( I ) と 同様に、 識別子 F dmに応 じて単純 2 値化処理結 果 G c とディザ処理結果 G d のいずれか一方を選択 して 記録する。 し力 も、 D A T A— 1 の輝度プ レー ンには、 黒画素のみを記録する のではな く 、 特定色で表示すべき 画素 も含めて記録する。 本実施例では、 識別子 F ibと し ては 1 b i t のコ一 ドデ一タ を用いた場合について示 して いる。 識別子 F r bは、 対象と なる画素が特定色の "赤 " である場合 " 1 " 、 そのほかの場合 " 0 " とする。 Similarly to (I), one of the simple binarization processing result Gc and the dither processing result Gd is selected and recorded according to the identifier Fdm. In addition, the brightness plane of DATA-1 should be displayed in a specific color instead of recording only black pixels. Record including pixels. This embodiment shows a case where 1-bit code data is used as the identifier F ib. The identifier F rb is “1” when the target pixel is “red” of a specific color, and is “0” otherwise.
D A T A— 2 は、 識別子 F r bが " 1 " の場合、 識別子 F dmに応じて単純 2 値化処理結果 G c とディザ処理結果 G d のいずれか一方を選択し、 識別子 F rbが " 0 " の場 合、 識別子 F dmにかかわ らず D A T A— 2 は " 0 " と な る。 モー ド ( Π ) において も、 G c と Gd の切 り 替えは モー ド ( I ) と同様に識別子 F dmによ り 選択される。 DATA—2 selects one of the simple binarization processing result G c and the dither processing result G d according to the identifier F dm when the identifier F rb is “1”, and the identifier F rb is “0” In this case, DATA-2 is "0" regardless of the identifier Fdm. In the mode (Π), the switching between G c and Gd is selected by the identifier F dm similarly to the mode (I).
モー ド ( ΠΙ ) においては、 画像は R , G, B 3 プ レー ンの 2値画像と して蓄積する。 こ こ で、 蓄積するデータ は R , G , B の各プレーンである。 そ して、 カ ラ ーノモ ノ ク ロ識別子 F cmが " 0 " の場合、 識別子 F dmに応じて 単純 2 値化処理結果 G c とディ ザ処理結果 G d 、 R d , B d のいずれか一方を選択 して 3 プ レー ン分を D A T A — 1〜 3 にそれぞれ蓄積する。 識別子 F cmが " 1 " の場 合、 識別子 F dmにかかわらずディザ処理結果 G d 、 R d B d を選択 して 3 プ レー ン分を D A T A— 1〜 3 にそれ ぞれ蓄積する。  In mode ((), images are stored as R, G, and B 3 plane binary images. Here, the data to be stored are the R, G, and B planes. When the Carono Mono identifier F cm is “0”, one of the simple binarization processing result G c and the dither processing result G d, R d, or B d is performed according to the identifier F dm. Select one and accumulate 3 planes in DATA-1 to 3 respectively. When the identifier Fcm is "1", the dither processing results Gd and RdBd are selected regardless of the identifier Fdm, and three planes are stored in DATA-1 to DAT-3, respectively.
一方、 モー ド ( IV ) においては、 R , G, B の各画像 データ及ぴ識別子 F cmを、 4個所のフ レーム メ モ リ 6 1 0 , 6 2 0 , 6 3 0, 6 4 0 にそれぞれ蓄積する。 こ こ で、 フ レーム メ モ リ 6 1 0 には、 Gプ レー ン と輝度 プ レー ンの一方を、 カ ラー/モ ノ ク ロ識別部 4 1 0 の出 力 F cmによ り 選択 して蓄積するが、 前述のよ う に、 本実 施例においては、 Gデータ と輝度'データ は同一である の で、 通常選択の必要はない。 しかしなが ら、 文字領域と 写真領域と が混在 した文書においては、 モ ノ ク 口 の線図 形領域は 2値化処理部 3 4 0 の出力を選択し、 そのほか の領域に対しては、 ディザ処理部 3 5 0 の出力を選択す る。 従って、 モー ド (IV) においては、 カ ラー Zモノ ク 口識別部 4 1 0 の出力 F cmが " 0 " の場合、 識別子 F dm に応 じて単純 2値化処理結果 G c と ディ ザ処理結果 G d のいずれか一方を選択して 1 プ レー ン分を D A T A— 1 に蓄積する。 そ して、 D A T A— 2 と D A T A— 3 には . 識別子 F dmに応 じて " 0 " とディザ処理結果 R ci , B d のいずれか一方を選択して、 そ ぞれ蓄積する。 一方、 識別子 F eraが " 1 " の場合、 識別子 F dmにかかわらずデ ィザ処理結果 G d 、 Rd , B d を選択して 3 プ レー ン分 を D A T A— 1〜 3 にそれぞれ蓄積する。 なお、 On the other hand, in the mode (IV), the image data of R, G, and B and the identifier Fcm are stored in four frame memories 61, 62, 63, and 60, respectively. Each accumulates. Here, one of the G plane and the luminance plane is added to the frame memory 610, and the output of the color / monochrome discriminating section 410 is provided. The data is selected and accumulated by the force Fcm, but as described above, in the present embodiment, the G data and the luminance 'data are the same, so there is usually no need to select. However, in a document in which a text area and a photo area are mixed, the output of the binarization processing unit 340 is selected for the line-shaped area of the mouth opening, and for the other areas, Select the output of the dither processing section 350. Therefore, in the mode (IV), when the output Fcm of the color Z monochromatic mouth identification unit 410 is “0”, the simple binarization processing result Gc and the dithering are performed according to the identifier Fdm. One of the processing results G d is selected and one plane is stored in DATA-1. Then, according to the identifier Fdm, “0” and one of the dither processing results R ci and B d are selected and stored in DATA-2 and DATA-3, respectively. On the other hand, when the identifier F era is “1”, the dither processing results G d, R d, and B d are selected regardless of the identifier F dm, and three planes are stored in DATA-1 to DATA-3. In addition,
D A T A— 4 には、 識別子 F cmを蓄積する。 D ATA — 4 stores the identifier F cm.
さ て、 こ こ まで述べた例は、 対象と なる文書が文字と 写真 と が混在 した文書である こ と を前提と していた。 し かし、 文書全体が文字、 ま たは写真から なる文書を入力 する場合には、 例えば入力モー ド指定部 1 5 0 によ り 、 モー ド ( I )〜(! V ) の指定の他に、 [文字] , [写真] , The examples described so far assume that the target document is a document in which characters and photographs are mixed. However, when inputting a document in which the entire document is composed of characters or photos, for example, the input mode specifying section 150 can be used to specify other modes (I) to (! V). , [Text], [Photo],
[混在] と いった領域の種類も指定する こ と によ り 、 文 字ノ写真領域判定部 4 3 0 と独立にセ レ ク タ 5 0 0 の動 作条件を定める こ と ができ る。 こ の場合、 入力モー ド指 定部 1 5 0 カゝ らセ レ ク タ 5 0 0 への信号は、 入力モー ド 4種の選択コー ドに、 対象支書によ る識別コー ドの By designating the type of area such as [mixed], the operating condition of the selector 500 can be determined independently of the character / photograph area determination unit 4300. In this case, the input mode finger The signal from the fixed section 150 to the selector 500 is input to the four input mode selection codes and the identification code according to the target book.
2 b i t が加わる。 2 b i t is added.
第 1 3 図にこ の場合の、 入力モー ド指定部 1 5 0 から の出力コー ドの一例を示す。 基本的に 4種類のモー ドそ れぞれに、 ディザ処理を選択しない [文字] と 、 必ず選 択する [写真] と , 文字 Z写真領域判定の出力に基づ く [混在] と が存在する。 ただし、 [文字] の場合、 通常、 2 値化処理部 3 4 0 の出力を蓄積する。 と こ ろが、 モー ド ( m ) およびモー ド ( IV ) では、 中間色の再現が必要 である ため、 カ ラ一領域に対して 2 値化処理部 3 4 0 の 出力を蓄積する こ と はない。 したがって、 モー ド ( II ) およびモー ド (IV) では、 . [文字] と指定する場合を除 外する。  FIG. 13 shows an example of the output code from the input mode specifying unit 150 in this case. Basically, for each of the four modes, there are two types: [Text], which does not select dither processing, [Photo], which must be selected, and [Mix], which is based on the output of the text Z photo area judgment. I do. However, in the case of [character], the output of the binarization processing section 340 is normally accumulated. However, in the mode (m) and the mode (IV), the intermediate colors need to be reproduced. Therefore, the output of the binarization processing section 340 is not stored in the color area. Absent. Therefore, in mode (II) and mode (IV), the case where. [Character] is specified is excluded.
こ こで [文字]と指定した場合のセ レク タ 5 0 0 の動作 の一例を第 1 4図に、 [写真] を指定した場合の動作の 一例を第 1 5 図にそれぞれ示す。 これらの動作は、 第 1 2 図に示 したセ レク タ 5 0 0 の動作を、 文字镇域の場 合と写真镇域の場合と に分けた もの と 同 じであ り 、 その 詳細の説明は省略する。  Here, an example of the operation of the selector 500 when [Character] is specified is shown in Fig. 14, and an example of the operation when [Photo] is specified is shown in Fig. 15 respectively. These operations are the same as the operations of the selector 500 shown in FIG. 12 divided into the case of the character area and the case of the photograph area. Is omitted.
次に、 セ レク タ 5 0 0 で選択された 2 値画像データ め 蓄積について述べる。 画像メ モ リ 6 0 0 內のフ レーム メ モ リ 6 1 0 , 6 2 0 , 6 3 0, 6 4 0 にそれぞれ蓄積さ れた D A T A— 1 , D A T A— 2, D A T A— 3 ,  Next, storage of the binary image data selected by the selector 500 will be described. DAT A—1, DAT A—2, D AT A—3, stored in the frame memories 61 0, 62 0, 63 0, and 64 0 of the image memory 600 mm, respectively.
D A T A— 4 の 2 値データ は、 既知の手段によ り 符号化 された後、 光ディ ス ク な どの大容量データ蓄積装置に蓄 積される'。 第 1 6 図を用いてデータ蓄積部 8 0 0 の一構 成例を説明する。 図中、 6 1 0, 6 2 0 , 6 3 0 , 6 4 0 は、 前述の通 り 、 1 プ レー ンごと の 2 値画像デ一 タ を蓄積する フ レーム メ モ リ であ り 、 8 0 0 が第 8 図に 示 したデータ蓄積部に相当する。 図中、 8 1 0 は各フ レ ー ム メ モ リ 中保持されているデータ を逐次読みだ して符 号復号処理部 8 2 0 に出力 し、 また符号復号処理部 8 2 0 で復号化されたデータ を各フ レー ム メ モ リ に出力 するセ レク タ である。 符号復号処理部 8 2 0 は、 既知の 手段によ り 2 値データ を符号化して、 光ディ スク な どデ —タ蓄積部 8 5 0 に出力 し、 またデータ蓄積部 8 5 0 に 蓄積されているデータ を復号化 してセ レ ク タ 8 1 0 に出 力する。 DATA— Binary data of 4 is encoded by known means After that, it is stored in a large-capacity data storage device such as an optical disk. An example of the configuration of the data storage unit 800 will be described with reference to FIG. In the figure, reference numerals 61, 62, 63, and 64 denote frame memories for storing binary image data for each plane, as described above. 0 0 corresponds to the data storage unit shown in FIG. In the figure, reference numeral 8100 sequentially reads out the data held in each frame memory and outputs the data to the code decoding processing unit 820, and the code decoding processing unit 820 decodes the data. This is a selector that outputs the obtained data to each frame memory. The encoding / decoding processing section 820 encodes the binary data by a known means, outputs the encoded data to a data storage section 850 such as an optical disk, and stores the data in the data storage section 850. The decrypted data is decrypted and output to the selector 810.
制御部 9 0 0 から、 データ蓄積の指示が与え られた場 合、 フ アイ リ ング装置はまず、 ヘッダ情報を光ディ ス ク 8 5 0 に転送 して蓄積する。 ヘッダ情報は、 例えば文書 の名称など検索時に用いる情報や、 文書のサイ ズな どか らなる。 ただ し、 本実施例においては、 へッダ情報の一 項目 と して、 入力時のモ一 ドをコ一 ドによ り 記録する。 ヘッダ情報を蓄積 した後、 モー ドに応 じて、 1〜 4 プ レ ーンの 2値画像データ を順次、 '符号復号処理部 8 2 0 に て符号化し、 データ蓄積部 8 5 0 に蓄積する。 蓄積する データ の順序は、 制御部 9 0 0 力 らの指示によ り 、 セ レ ク タ 8 1 0 で選択される。 こ こで、 データ蓄積装置 8 5 0 に蓄積されるデータ の 記録順について、 第 1 7 図 έ用いて説明する。 第 1 7 A 図〜第 1 7 D.図は、 それぞれ、 モー ド ( I )〜(! V ) で入 力 した画像データ の記録フォーマ トの一例である。 図中、 9 1 0 はヘッダ情報を記録する領域、 9 2 0 は D A T A 一 1 を、 9 3 0, 9 4 0 , 9 5 0 はそれぞれ D A T A — 2, D A T A— 3, D A T A— 4 を記録する镇域であ る。 When an instruction for data storage is given from the control unit 900, the filing apparatus first transfers the header information to the optical disk 850 and stores it. The header information includes, for example, information used at the time of retrieval, such as the name of the document, and the size of the document. However, in this embodiment, the mode at the time of input is recorded by a code as one item of the header information. After accumulating the header information, according to the mode, the binary image data of 1 to 4 planes is sequentially encoded by the encoding / decoding processing section 820 and accumulated in the data accumulation section 850 I do. The order of the data to be stored is selected by the selector 8100 according to an instruction from the control unit 900. Here, the recording order of the data stored in the data storage device 850 will be described with reference to FIG. FIGS. 17A to 17D are examples of recording formats of image data input in modes (I) to (! V), respectively. In the figure, 910 is an area for recording header information, 920 is DATA-11, and 930, 940, 950 are DATA-2, DATA-3, and DATA-4, respectively. It is a local area.
モー ド ( I ) においては、 蓄積する画像データは、 輝 度プ レー ンのみであ り 、 フ レーム メ モ リ 6 1 0 中の  In the mode (I), the image data to be stored is only the brightness plane, and is stored in the frame memory 61 0.
D A T A— 1 を蓄積する。 一方、 モー ド(Π ) 〜 ( m ) においては、 画像データ と して、 ヘッダ情報の次に輝度 プ レー ンを蓄積し、 その:^に各色のプ レーンを記録する。 モー ド ( Π ) において、 複数の特定色を表現する場合、 こ の輝度プ レーンの後に、 各色のプ レー ンを順に記録す る。 こ の結果、 画像を検索, 表示する場合、 ヘッダ情報 直後の 1枚目 のデータ を読みだすだけで、 モ ノ ク ロ 2値 画像を出力する こ と ができ る。 一方、 モー ド (IV) の場 合、 ヘッダ情報の直後には、 Gデータ を記録する。 Gデ ータ は R, G , B、 3 種類のデータ の う ち、 分光スぺ ク トルが中間に位置するため、 特定色が再現されない現象 が最 も生じに く いためである。 したがって、 この場合 も 表示する際には、 ヘッダ情報直後の 1 枚目 のデータ を読 みだすだけで、 モ ノ ク ロ 2値画像を出力する こ とができ る。 一方、 ヘッダ情報 9 1 0 中の記録領域 9 1 1 に、 各 画像の入力時のモ ー ドを表すコ ー ド情報を記録する。 次に、 データ蓄積部 8 0 0 に蓄積された画像データ を 読みだ し、 画像を表示する処理について述べる。 DATA— Stores 1. On the other hand, in modes (Π) to (m), the luminance plane is stored next to the header information as image data, and the plane of each color is recorded in: ^. When multiple specific colors are expressed in mode (Π), the plane of each color is recorded after this luminance plane. As a result, when searching and displaying images, a monochromatic binary image can be output simply by reading the first data immediately after the header information. On the other hand, in mode (IV), G data is recorded immediately after the header information. This is because the G data has the spectral spectrum located at the middle of the three types of data of R , G, and B, so that the phenomenon in which a specific color is not reproduced is least likely to occur. Therefore, even in this case, when displaying, it is possible to output a monochromatic binary image simply by reading the first data immediately after the header information. On the other hand, in the recording area 911 in the header information 910, Record the code information indicating the mode at the time of image input. Next, a process of reading out the image data stored in the data storage unit 800 and displaying the image will be described.
まず、 データ蓄積装置 8 5 0 中に蓄積された画像デ一 タ を読みだ し、 画像メ モ リ 6 0 0 內の フ レーム メ モ リ 6 1 0, 6 2 0, 6 3 0, 6 4 0 に入力する部分にっレ、 て、 第 1 6 図を用いて説明する。 まず、 は じめにデータ 蓄積装置 8 5 0 に記録されている各デー タ のヘッダ情報 を読みだし、 対象 と なるデータ を検索する。 対象と なる データ が確認されたな らば、 続いてへッダ情報中の記録 領域 9 1 1 に記録されているモー ド識別子 F m Q d によ り 、 読みだすプ レー ンの数を決定し、 データ 蓄積装置 8 5 0 に蓄積されているデータ を必要な枚数分読みだ し、 それ ぞれ符号復号処理部 8 2 0 にて 2 値データ に複号化 した 後、 フ レー ム メ モ リ 6 1 0 , 6 2 0 , 6 3 0 , 6 4 0 に D A T A - 1 から D A T A — 4 と して蓄積する。  First, the image data stored in the data storage device 850 is read, and the frame memory 610, 620, 630, 640 of the image memory 600 is read. A description will be given with reference to FIG. First, the header information of each data recorded in the data storage device 850 is first read, and the target data is searched. If the target data is confirmed, then the number of planes to be read is determined by the mode identifier F m Q d recorded in the recording area 911 in the header information. Then, the data stored in the data storage device 850 is read out for a required number of times, and each is decoded into binary data by the code decoding processing section 820, and then the frame memo is read. Re-store the data from DATA-1 to DATA-4 in 61 0, 62 0, 63 0, 64 0.
次に、 フ レーム メ モ リ 6 1 0, 6 2 0, 6 3 0,  Next, the frame memory 61 0, 62 0, 63 0,
6 4 0 中に展開 された D A T A — 1 から D A T A — 4 を 出力データ変換部 7 0 0 にて、 髙精細カ ラ一 C R Tな ど の画像表示部 7 5 0 の入力に適 した形式のデータ に変換 し、 画像表示部 7 5 0 に表示する。 出力データ変換部6 4 0 deployed in DATA - 1 from DATA - at 4 output data converter 7 0 0, the format of the data that is appropriate to the input of the image display unit 7 5 0 etc.髙精thinning La one CRT It is converted and displayed on the image display section 750. Output data converter
7 0 0 における動作は、 まず、 入力 された 1 〜 4 プ レ ー ンの 2 値画像データ よ り 、 R G B の 3 プ レー ン の表示用 画像データ を生成する こ と にある。 なお以.後、 こ こ では、 画像データ よ り再生 した R , G , B それぞれの表示デー タ を D A T A— R, D A T A— G , D A T A— B と呼ぶ。 こ こ で、 D A T A— R , D A T A - G , D A T A— B と 画像表示部 7 5 0 に表示される色の関係は第 6 図 と 同様 である。 D A T A— R, D A T A— G, D A T A— B の いずれもが " 1 " の場合、 "白 " が表示され、 " 0 " の 場合 "黒" が表示 される。 The operation at 700 is to generate three planes of display image data of RGB from the inputted one to four planes of binary image data. Hereafter, here, the display data of each of R, G, and B reproduced from the image data will be described. Are called DATA-R, DATA-G, and DATA-B. Here, the relationship between DATA-R, DATA-G, and DATA-B and the colors displayed on the image display section 750 is the same as in FIG. If all of DATA-R, DATA-G, and DATA-B are "1", "white" is displayed, and if "0", "black" is displayed.
次に第 1 8 図を用いて、 出力データ変換部の一構成例 を説明する。 図中、 データセ レク タ 7 1 0 は、 読み出 さ れたヘッダ情報中のモー ド識別子 F m 0 d に応 じて制御部 9 0 0 によ り 制御され、 D A T A— 1 , D A T A— 2 , Next, an example of the configuration of the output data converter will be described with reference to FIG. In the figure, a data selector 710 is controlled by a control unit 900 in accordance with a mode identifier Fm0d in the read header information, and DATA-1, DATA-2,
D A T A— 3 , D A T A— 4 の内必要なデータ を合成 し、 D A T A— R , D A T A— G , D A T A— B を出力する。 この動作の内容は後に述 る。 データセ レク タ 7 1 0 力 ら出力 された R G B の 3 プ レー ンの 2 値データ は多値化 処理部 7 2 0 にて、 画像表示部 7 5 0 に応 じた形式のデ ータ に変換される。 こ こ での処理は、 例えばビッ ト シフ ト な どによ り 、 2値データ から画像表示部の各画素の点 滅を制御する信号に変換する。 出力データ変換部 7 0 0 の動作は、 対象と なる画像のモー ドや、 表示の種別、 さ らにはデータ の内容によって異なる。 The required data of DTA- 3 and DTA- 4 are synthesized, and DTA-R, DTA-G, and DTA-B are output. The details of this operation will be described later. The RGB three-plane binary data output from the data selector 710 is converted to data in a format corresponding to the image display unit 750 by the multi-value processing unit 720. Is done. In this process, the binary data is converted into a signal for controlling the blinking of each pixel of the image display unit by, for example, a bit shift. The operation of the output data converter 700 depends on the mode of the target image, the type of display, and the content of the data.
第 1 9 図に、 データセ レク タ 7 1 0 の動作の一例を示 す。 こ こ で、 例えばモー ド ( Π ) の画像をカ ラーで表示 する場合、 D A T A— 1 , D A T A— 2 の論理演算によ り 、 D A T A— R , D A T A - G , D A T A— B は決定 される。 輝度情報 D A T A— 1 のみが " 1 " の場合は、 D A T A— R , D A T A— G, D A T A— B のいずれ も " 0 " と な り 、 '黒" を表示する。 D A T A— 1 と FIG. 19 shows an example of the operation of the data selector 710. Here, for example, when an image in mode (Π) is displayed in color, DATA-R, DATA-G, and DATA-B are determined by the logical operation of DATA-1 and DATA-2. If only luminance information DATA—1 is "1", DATA—R, DATA—G, and DATA—B all become “0” and “black” is displayed.
D A T A— 2 力 s " 1 " の場合は、 D A T A— Rのみ " 1 とする こ と によ り 、 "赤 " を表示する。  D ATA—2 force s If “1”, set “1” to D ATA—R only to display “red”.
—方、 画像を表示する タイ ミ ングは以下のよ う にでき る。 例えば、 モ ノ ク ロ画像を表示する場合、 フ レームメ モ リ 6 1 0 に輝度データ Yが入力 される と 同時に、 デー タ セ レ ク タ Ί 1 0 か ら R G B の 3 プ レー ンのデー タ と し て、 それぞれ輝度データ が出力 される。 そ して、 多値化 処理部 4 2 0 から R, G , B各プ レーンに等 しい値の画 像データ が画像表示部 7 5 0 へ送られる こ と によ り 、 モ ノ ク ロ の画像が画像表示部 7 5 0 上に表示される。  —On the other hand, the timing for displaying an image can be as follows. For example, when displaying a monochrome image, the luminance data Y is input to the frame memory 610, and at the same time, the data selector Ί10 to the RGB three-plane data are input. As a result, luminance data is output. Then, image data having values equivalent to the R, G, and B planes are sent from the multi-value processing section 420 to the image display section 750, so that The image is displayed on the image display section 7500.
一方、 モー ド( Π )のフルカ ラー画像を表示する場合は、 D A T A— R , D A T A— G , D A T A— B の値は、 そ れぞれ独立に D A T A— 1 , D A T A— 2, D A T A 一 3 によって決め られる。 また、 画像表示のタ イ ミ ング は、 D A T A— 1 , D A T A— 2, D A T A— 3 が フ レ ームメ モ リ に書き込まれる と 同時に、 それぞれ G, R , B プ レーンを順に表示する。  On the other hand, when displaying a full-color image in mode (Π), the values of DATA-R, DATA-G, and DATA-B are independently set by DATA-1, DATA-2, and DATA-13, respectively. I can decide. As for the timing of the image display, the G, R, and B planes are sequentially displayed at the same time as DATA-1, DATA-2, and DATA-3 are written to the frame memory.
モー ド( ΠΙ )の画像デー タ を表示する場合、 3 プ レー ン のデータ がフ レーム メ モ リ 3 1 0〜 3 3 0 に蓄積される まで、 最終的な色の決定はでき ない。 こ の場合、 は じめ モー ド ( I ) と 同様に輝度データ をモ ノ ク ロ 画像で表示 しておき 、 逐次書き換え る の も有効である。  When displaying image data in mode (ΠΙ), the final color cannot be determined until three planes of data are stored in the frame memories 310-330. In this case, it is also effective to display the luminance data in a monochromatic image as in the first mode (I) and to sequentially rewrite the luminance data.
一方、 制御部 9 0 0 力ゝ らの指示によ り 、 データセ レ ク タ 7 1 0 の動作を制御する こ と によ り 、 例えばカ ラー画 像をモ ノ ク ロ で表示する こ と もでき る。 具体的には、 例 えばモ ノ ク 口表示の場合は、 D A T A— 1 のみを読みだ し、 R, G , B共にこの D A T A— 1 を表示する こ と に よ り 、 実現でき る。 On the other hand, according to the instruction from the control unit 900, data selection is performed. By controlling the operation of the data 710, for example, a color image can be displayed in a monochromatic image. Specifically, for example, in the case of a monaco display, this can be realized by reading out only DATA-1 and displaying this DATA-1 in all of R, G, and B.
また、 例えばモー ド ( Π ) によ り 入力 したマルチカ ラ 一文書の 2 プ レーンの画像デー タ の う ち、 D A T A— 2 のみを表示する こ と によ り 、 赤プレーンのみを選択して 表示する こ と もでき る。  Also, for example, by displaying only DATA-2 of the image data of two planes of a multi-color document input in the mode (Π), only the red plane is selected and displayed. You can also do it.
さ て、 モー ド ( ΙΠ ) あるいは ( IV ) が対象とする フル カ ラー画像は、 本来、 中間調で濃淡を表現する必要があ る。 特にカ ラー写真な どは、 出力装置の特性によ る微妙 な色調の差が、 人間の視覚には大きな違い と なって感じ られる。 したがって、 フルカ ラ一画像を高画質に表示す るためには、 中間調データ に対する、 輝度や色度の補正 や変更が必要である。 本実施例では、 画像を 2 値データ と して蓄積しているため、 このためには、 2 値の画像デ ータ を、 多値データ に変換する こ とが必要である。  By the way, the full-color image targeted by the mode (ΙΠ) or (IV) originally needs to express halftone in halftone. In particular, in color photographs and the like, subtle differences in color tone due to the characteristics of the output device are perceived as significant differences in human vision. Therefore, in order to display a full-color image with high image quality, it is necessary to correct or change the luminance and chromaticity of the halftone data. In this embodiment, since the image is stored as binary data, for this purpose, it is necessary to convert the binary image data into multi-valued data.
第 2 0 図に、 多値化処理部 7 2 0 の一構成例を示す。 こ の例は、 D A T A— R, D A T A— G , D A T A— B の 3 種の 2 値データ を同時に入力 し、 画像表示部 7 5 0 へ出力する場合を示 しているが、 データ を一時蓄積する メ モ リ を用いる こ と によ り 1 プ レーンずつ変換する こ と もでき る。 図中、 7 3 1 , 7 3 2 , 7 3 3 は 2 値の画像 データ よ り 多値のデータ を再生する 中間調変換部、 7 4 1 , 7 4 2, 7 4 3 は得られた中間調データ を変換 する色調変換部、 7 5 1 , 7 5 2 , 7 5 3 は 2 値データ を特定倍する シフ ト レジス タ 、 7 7 0 は入力 されたデ一 タ が、 線図形などの 2値データか、 擬似中間調データ か を判定する領域判定部、 7 6 1, 7 6 2 , 7 6 3 は領域 判定部 7 7 0 の出力によ り 2種類の中間調データ の一方 を選択するセ レク タ である。 FIG. 20 shows an example of the configuration of the multi-value processing section 720. In this example, three types of binary data, DATA-R, DATA-G, and DATA-B, are simultaneously input and output to the image display section 750. It is possible to convert one plane at a time by using memory. In the figure, reference numerals 731, 7332, and 7333 denote halftone converters that reproduce multi-valued data from binary image data. 741, 742, and 743 are color tone conversion units that convert the obtained halftone data, and 751, 752, and 753 are shift registers that multiply binary data by a specific amount. Reference numeral 70 denotes an area judging section for judging whether the input data is binary data such as a line figure or pseudo halftone data, and 761, 762, and 763 are area judging sections. This selector selects one of the two types of halftone data based on the output of.
こ こでは、 簡単のため、 1 プレーン分の動作について 説明するが、 他のプ レー ンも同様である。 こ こ で、 中間 調変換部 7 3 1 は、 擬似中間調画像から多値の中間調デ ータ を再生する。 再生の手法は、 各種の ものが既に知 ら れてお り 、 例えば US se r i a l No . 07/272 , 447 (特開平 2 - 9 0 3 7 7 ) に開示 し 、 近傍の局所領域中での黒画 素の分布密度を抽出する方式な どが適用でき る。 中間調 に変換された画像は、 色調変換部によ り 必要な変換を、 R G B各プ レーンごと に施される。 色調変換部 7 4 1 は 例えば、 R A M (Read On I y Memor y) な どによって表現 でき る。 R A Mの內容は、 あ らか じめ設定 してお く ほか、 例えば制御部 9 0 0 よ り 転送 した り 、 あ らか じめ設定さ れた複数種類の内部装置に応 じて選択する方式な どで実 現でき る。  Here, for simplicity, the operation for one plane is described, but the same applies to other planes. Here, the halftone conversion section 731, reproduces multi-value halftone data from the pseudo halftone image. Various types of reproduction methods are already known, for example, disclosed in US Serial No. 07 / 272,447 (Japanese Patent Application Laid-Open No. 2-93037), A method of extracting the distribution density of black pixels can be applied. The image converted into the halftone is subjected to necessary conversion by the color tone conversion unit for each of the RGB planes. The color tone conversion unit 741 can be represented by, for example, RAM (Read On Iy Memory). In addition to setting the contents of the RAM in advance, for example, a method of transferring the data from the control unit 900 or selecting it according to a plurality of types of internal devices set in advance It can be realized by such as.
一方、 文字な ど線図形の領域においては、 黒画素の位 置関係が重要であ り 、 濃淡を表現する こ と は、 む しろ解 像度を低下させる こ と にな り 、 画質を劣化させる。 した がって、 例えばシス テム に接続された表示部 7 5 0 の入 力範囲が、 8 b i t の場合、 入力 された 2 値データ を単に 8 b i t シフ トする こ と によ り 、 画質の劣化を防ぐ。 On the other hand, in the area of a line figure such as a character, the positional relationship of the black pixels is important, and expressing the shading, rather, lowers the resolution and deteriorates the image quality. . Therefore, for example, input of the display unit 75 0 connected to the system When the input range is 8 bits, the image quality is prevented from deteriorating by simply shifting the input binary data by 8 bits.
セ レク タ 7 6 1 は、 色調変換部 7 4 1 の出力 と シフ ト レジス タ 7 5 1 の出力の一方を選択し、 出力する。 こ の 選択は、 出力の対象と なる領域が、 線図形領域と擬似中 間調領域のいずれに属するかを判定する鎮域判定部 7 7 0 の出力によ り 切 り 替えられる。 入力 された 2 値画 像の領域を判定する手段については、 すでに多数の手法 が公知であ り 、 本実施例でもそれらを利用する。  The selector 761 selects and outputs one of the output of the color tone conversion section 741 and the output of the shift register 751. This selection is switched by the output of the area determining unit 770 which determines whether the area to be output belongs to the linear graphic area or the pseudo halftone area. As a means for determining the region of the input binary image, many methods are already known, and these methods are also used in this embodiment.
セ レク タ 7 6 1 において選択された画像は、 C RTなど の画像表示部 7 5 0 に転送され、 表示される。  The image selected by the selector 761 is transferred to an image display unit 750 such as a CRT and displayed.
この結果、 カ ラー写真な ど中間調の画像を、 2 値デ一タ で蓄積した う えで、 中間調画像と して表示でき る。 また 濃度や色度な どの変換を施すこ と もでき る。 As a result, halftone images, such as color photos, can be stored as binary data and displayed as halftone images. It can also perform conversions such as density and chromaticity.
なお、 本実施例では、 3 プ レー ンの 2 値データを、 同 時に変換する場合の一例について説明 したが、 データ を 一時蓄積する手段を有する こ と によ り 、 各プ レーンをそ れぞれ順に変換する こ と もでき る。 また、 画像を C R T 上に表示する場合を例に説明 したが、 他の出力装置、 例 えばプ リ ンタな どに対して も同様に出力する こ とができ る。  In this embodiment, an example in which three planes of binary data are simultaneously converted has been described. However, the provision of a means for temporarily storing data allows each plane to be converted. They can also be converted in the same order. Also, the case where the image is displayed on the CRT has been described as an example, but the image can be similarly output to another output device, for example, a printer.
と こ ろで、 一般の事務処理で用いられるカ ラー文書に おいては、 黒と他 1 色も し く は 2 色によ り 記載されてい る文書が多い。 例えば、 朱色の印影を有する文書や、 朱 記訂正された文書な どである。 これら は、 黒と異なる 色 で記載されている こ と 自 体が重要であ り 、 色彩を正確に 再現する必要はない。 色プ ' ー ンは多 く の場合、 上述 し たよ う に、 文書中に大半の部分で空白 と なる ため、 2 値 画像を符号化 し、 蓄積する場合は高い符号化効率を得る こ と ができ る。 色情報は、 R G B 3種類の多値デ一夕 の 組合せによ り 入力 される。 したがって、 あ らか じめ抽出 すべき特定色の範囲を示す R G B 3 種類の値を、 指定す る こ と によ り 、 特定色の部分を抽出する こ と ができ る。 しか しなが ら、 線の輪郭部な ど色の急峻に変化する画素 は、 本来め色情報を正確に表現 していない。 こ の現象を ゴー ス ト と 呼ぶ。 ゴ一ス ト の生 じた画素に対しては正確 な色を判断する こと は困難である。 こ の場合は、 近傍画 素に対する色の分布状態 参照 して、 正確な色の判定す る必要がある。 However, many color documents used in general office work are described in black and one or two other colors. For example, a document having a vermilion imprint or a document with a redline correction. These are different colors from black It is important that the information described in the above is important, and it is not necessary to accurately reproduce colors. As described above, in most cases, color planes are blank in most parts of the document, so when encoding and storing binary images, high encoding efficiency can be obtained. it can. The color information is input by a combination of three types of multi-valued RGB data. Therefore, by specifying three types of RGB values indicating the range of a specific color to be extracted in advance, a specific color portion can be extracted. However, pixels with sharp changes in color, such as the outline of a line, do not accurately represent the original color information. This phenomenon is called ghost. It is difficult to judge the exact color of the pixel where the goster occurred. In this case, it is necessary to determine the correct color by referring to the color distribution state for the neighboring pixels.
抽出する 色相範囲を任意に指定する ためには、 色の指 定を、 例えば V C H系や L , a * , b * 系な ど人間に と つて指定 しやすい表色系で行う こ と が重要である。 つま り 、 人間の感覚に近い、 色差を中心と した表色系を用い る必要がある。 これには、 V C H系で指定された色相範 囲を表す R G B 系の値を算出 して、 判定部分を書き替え る こ と によ り 、 任意の色を任意の幅で指定する こ と がで き る。  In order to arbitrarily specify the hue range to be extracted, it is important to specify the color using a color system that is easy for humans to specify, such as VCH or L, a *, b *. is there. In other words, it is necessary to use a color system centered on color difference that is close to human senses. To do this, it is possible to specify an arbitrary color with an arbitrary width by calculating RGB values representing the hue range specified in the VCH system and rewriting the judgment part. Wear.
一方、 判定結果の確認は、 データ を蓄積する前に, 例 えば C R Tな どに画像を表示 し、 操作者が再入力を指定 する こ と に よ り 実現でき る。 こ こ で、 画像の表示におい ては、 判定結果に基づく カ ラ一画像を表示すれば良い。 しか し、 白黒 C R Tの場合でも 、 抽出部分を点滅する こ と な どによ り 、 表現する こ とができ る。 On the other hand, confirmation of the judgment result can be realized by displaying an image on a CRT, for example, before accumulating the data, and specifying the re-input by the operator. Here, the image display For example, a color image based on the determination result may be displayed. However, even in the case of a black-and-white CRT, it can be expressed by blinking the extracted part.
そこで、 次の実施例では、 上述したモー ド ( Π ) のマ ルチカ ラ—文書の蓄積に際して、 抽出する特定色の範囲 を操作者の感覚に合わせて 自 由 に指定でき、 また抽出結 果を確認しなが ら色相を指定でき る画像フア イ リ ング装 置について説明する。  Therefore, in the following embodiment, when storing a multi-color document in the above-described mode (で き), the range of a specific color to be extracted can be freely designated according to the operator's sense, and the extraction result can be obtained. The following describes an image filing device that can specify the hue while checking.
第 2 1 図に、 画像フアイ リ ング装置の基本構成を示す が、 その基本構成は上述した第 8 図の画像フ アイ リ ング 装置 と 同じである。 すなわち、 図中、 1 0 0 は、 カ ラー 文書を読み取り 、 R G B 3 面の多値画像データ を出力す るカ ラ ース キャ ナ等の画像入力装置、 2 0 0 は多値の画 像データ を 2値化する入力デ一タ変換部、 6 0 0 は 2 値 画像データ を一時的に記憶する面像メ モ リ で、 2 〜 4枚 の独立 した 2 値画像データ (プ レー ン) をそれぞれ蓄積 する フ レ ー ム メ モ リ 6 1 0 、 6 2 0 、 6 3 0 (図では 3 個のメ モ リ が示されているが、 抽出する特定色の数に応 じて変化する) 力 らなる。 そ して、 7 0 0 は R G B の 2 値画像データ よ り 多値のカ ラー画像データ を出力する 出 力データ変換部、 Ί 5 0 はカ ラー画像を表示する C R T (Cathode Ray T u b e )等の画像表示部、 8 0 0 は 2 値画像 データ を符号化 して光ディ ス ク な ど大容量デー タ蓄積装 置 8 5 0 にデータ を蓄積するデータ蓄積部であ り 、 これ らについては上述した実施例 と 同 じである。 本実施例の特徴は、 入力デー タ変換部 2 0 0 の構成に あ り 、 特に、 画像中の各画 に対 して、 当該画素の色が あ らかじめ設定 した範囲の色相であるか否かを判定する 特定色識別部 4 5 0 にある。 なお、 入力デー タ変換部 2 0 0 において、 3 0 0 は多値の R G B データ を入力 し て 2 値の画像データ を出力する 2 値化部、 5 1 0 および 5 1 5 は 2 値データ のセ レ ク タ 、 5 5 0 は特定の値を常 に出力する レジス タ である。 FIG. 21 shows the basic configuration of the image filing apparatus. The basic configuration is the same as that of the image filing apparatus shown in FIG. 8 described above. That is, in the figure, 100 is an image input device such as a color scanner that reads a color document and outputs RGB multi-valued image data, and 200 is a multi-valued image data. An input data conversion unit that binarizes the binary image data, 600 is a surface image memory that temporarily stores the binary image data, and converts two to four independent binary image data (planes). Frame memories 6 10, 6 2 0, 6 3 0 to be stored respectively (three memories are shown in the figure, but they change according to the number of specific colors to be extracted) Power. 700 is an output data converter that outputs color image data that is more multi-valued than RGB binary image data, and 500 is a CRT (Cathode Ray Tube) that displays color images. The image display unit 800 is a data storage unit that encodes binary image data and stores the data in a large-capacity data storage device 850 such as an optical disk. This is the same as the embodiment described above. The feature of the present embodiment lies in the configuration of the input data conversion unit 200. In particular, for each image in the image, whether the color of the pixel is a hue in a predetermined range is set. The specific color discriminating section 450 determines whether or not to perform the judgment. In the input data conversion unit 200, reference numeral 300 denotes a binarization unit that inputs multi-valued RGB data and outputs binary image data, and reference numerals 501 and 515 denote binary data. The selector 550 is a register which always outputs a specific value.
画像入力部 1 0 0 力 ら 出力 される R, G , B の多値画像 データ は、 2 値化部 3 0 0 に入力 される。 2 値化処理部 では、 R G B データ よ り 輝度データ を算出 し、 当該輝度 データ の 2値画像データ を画像メ モ リ 6 0 0 内のメ モ リ 6 1 0 に蓄積する。 こ の輝-度データ は、 上記の輝度デー タ の算出を行わずに、 Gデータ で近似する こ と も可能で ある。  The R, G, B multi-valued image data output from the image input unit 100 is input to the binarization unit 300. The binarization processing unit calculates luminance data from the RGB data and stores the binary image data of the luminance data in the memory 6100 in the image memory 600. The brightness data can be approximated by G data without calculating the brightness data.
—方、 R , G , B の多値データ は特定色識別部 4 5 0 に も入力 される。 特定色識別部 4 5 0 は、 入力 された R , G, Bデータ よ り 、 各画素があ らカ じめ設定された特定 の色を表現する ものか否かを識別する。 識別の方法は後 に詳 し く 述べる。  On the other hand, the multi-valued data of R, G, and B are also input to the specific color identification unit 450. The specific color identification section 450 identifies whether each pixel expresses a preset specific color based on the input R, G, and B data. The method of identification will be described in detail later.
本実施例では、 複数の色を同時に識別する こ と を 目 的 とする が、 こ こ では、 一例どして、 赤 と 宵の 2 色を他の 色と識別する場合を例に説明する。 こ の場合には、 "赤 " "靑 " "その他" の 3 種類の判定結果が存在する こ と に なる。 特定色識別部 4 5 0 の出力おょぴ、 セ レク タ 5 1 0 お よび 5 1 5 の動作の例を第 έ 2 図に示す。 In this embodiment, the purpose is to identify a plurality of colors at the same time. Here, as an example, a case where two colors, red and evening, are distinguished from other colors will be described. In this case, there are three types of judgment results: "red", "靑", and "other". FIG. 2 shows an example of the operation of the output of the specific color identification section 450 and the operation of the selectors 510 and 515.
こ こ で、 FB/W, FLGR, FLGBが特定色識別部 4 5 0 の出 力を表す。 FB/Wは対象の画素の輝度データ と おな じ値で 2値化後、 白で表現すべき画素は " 0 " 、 黒で表現すベ き画素は " 1 " と なる。 また、 F LGRは対象の画素が赤か 否かを示す赤色識別子、 FLGBは対象の画素が青か否かを 示す青色識別子である。  Here, FB / W, FLGR, and FLGB represent the output of the specific color identification unit 450. After FB / W is binarized with the same value as the luminance data of the target pixel, the pixel to be expressed in white is “0” and the pixel to be expressed in black is “1”. FLGR is a red identifier indicating whether the target pixel is red, and FLGB is a blue identifier indicating whether the target pixel is blue.
こ こで、 FLGRおよび FLGBは以下の条件によ り 定ま る。  Here, FLGR and FLGB are determined by the following conditions.
FLGR= 1 : 対象画素 = "赤"  FLGR = 1: Target pixel = "red"
かつ FB/W= 1  And FB / W = 1
FLGB = 1 : 対象画素 = "青"  FLGB = 1: Target pixel = "blue"
かつ FB/W = 1  And FB / W = 1
つま り 、 FLGR = 1 であるためには、 色の識別結果が " 赤" である と と もに、 輝度データ の 2 値化結果が黒であ る こ と が必要がある。  In other words, in order for FLGR to be 1, it is necessary that the color identification result is "red" and the binarization result of the luminance data is black.
第 2 1 図中のセ レク タ 5 1 0 および 5 1 5 は、 特定色 識別部 4 5 0 の出力に応 じて、 画像メ モ リ 6 0 ひ中のメ モ リ 6 2 0 および 6 3 0 に蓄積するデータ を選択する。 一方、 レジス タ 5 5 0 力 らは常に " 0 " が出力 されてい る。 こ こ で、 画像メ モ リ 5 0 0 中のメ モ リ 6 1 0 、 6 2 0 、 6 3 0 に蓄積される画像データ の一例を第 2 3 図に示す。 第 2 3 A図は、 赤色の捺印 と 青色の加筆訂正 がな されたモ ノ ク 口 の事務文書のイ メ ージである。 同図 において、 1 1 1 は赤色の捺印、 1 2 1 および 1 2 2 は 青で加筆された文字の領域を示す。 The selectors 51 and 51 in FIG. 21 correspond to the memories 62 and 63 of the image memory 60 in accordance with the output of the specific color identification unit 450. Select the data to be stored in 0. On the other hand, the register 550 always outputs "0". Here, FIG. 23 shows an example of image data stored in memories 610, 620, and 630 in the image memory 500. Fig. 23A is an image of the office document at the Monok-guchi with red stamping and blue corrections. In the figure, 1 1 1 is a red seal, 1 2 1 and 1 2 2 are Indicates the area of the character added in blue.
こ の文書画像を、 本装置で入力 した場合に、 3 個のメ モ リ 6 1 0 , 6 2 0 , 6 3 0 に蓄積される 2 値画像デ一 タ を、 それぞれ第 2 3 B 図, 第 2 3 C図, 第 2 3 D図に示 す。 第 2 3 B 図は、 メ モ リ 6 1 0 に蓄積される画像で、 Gデータ を 2 値化 した結果である。 こ の画像データ のみ を用いれば、 入力 した文書のモ ノ ク ロ 2 値画像を出力す る こ と ができ る。 ま た、 第 2 3 C図おょぴ第 2 3 D図は、 それぞれ、 メ モ リ 6 2 0 および 6 3 0 に蓄積される画像 データ を示す。 メ モ リ 6 2 0 には、 文書中の赤で記载さ れた部分のみが、 メ モ リ 6 3 0 には青で記載された部分 のみが蓄積される。  When this document image is input by this device, the binary image data stored in the three memories 61 0, 62 0, and 63 0 are shown in Fig. 23B and Fig. 23B, respectively. Figures 23C and 23D show it. FIG. 23B is an image stored in the memory 610 and is a result of binarizing the G data. If only this image data is used, a monochromatic binary image of the input document can be output. FIG. 23C and FIG. 23D show the image data stored in the memories 620 and 630, respectively. Only the portion marked in red in the document is stored in the memory 620, and only the portion marked in blue is stored in the memory 630.
画像データ の蓄積は、 こ の 3 枚の 2 値画像データ をそ れぞれ符号化して蓄積する。 画像データ の蓄積は、 上述 したモー ド ( Π ) のマルチカ ラ ー文書の蓄積 と 同 じであ り 、 その詳細は省略する。  The image data is stored by encoding each of the three binary image data. The storage of the image data is the same as the storage of the multi-color document in the mode (II) described above, and the details are omitted.
次に、 本実施例によ る画像フ ア イ リ ング装置の特徴部 分である、 特定色識別部 4 5 0 の構成について詳細に説 明する。  Next, the configuration of the specific color identification section 450, which is a characteristic part of the image filing apparatus according to the present embodiment, will be described in detail.
第 2 4 図に特定色識別部 4 5 0 の構成および、 そ の周 辺の一構成例を示す。 図中、 2 1 0 は 1 画素ごと の R , G , B 3 種類の多値画像データ の値の相対関係から 、 当 該画素があ らか じめ定めた色相の範囲に属するか否かを 判定する特定色画素抽出部、 4 4 0 は画素単位に下され . た判定結果から後に述べるカ ラーゴ一ス ト の影響を除去 する ゴース ト 除去部である。 FIG. 24 shows a configuration example of the specific color identification unit 450 and an example of a configuration around it. In the figure, 210 indicates whether or not the pixel belongs to a predetermined hue range based on the relative relationship between the values of the R, G, and B types of multi-valued image data for each pixel. The specific color pixel extraction unit to be determined is determined by the pixel unit. The effect of the color list described later is removed from the determination result. This is the ghost removal unit.
図中の各信号線 101 , 102, 103は、 それぞれ、 画像入力 部よ り 送られる R , G , B の多値データ を伝達し、 221, 222 , 223は判定結果である FB/W, FLGR , FLGBを、 また、 501は輝度データ を 2 値化した画像データ を伝達する。 信号線 211、 および 212から 出力 される判定結果 F LG R , FLGBiは、 当該画素の色相が、 あ らかじめ定めた範囲中 にあるか否かを示す。 しカゝしなが ら、 こ こ で、 例えば " 赤" と判定された画素の内には、 色相 自体は 11赤" の範疇 にあって も、 輝度が高いこ と によ り 2 値化後は白 とすべ き画素 も含まれる。 そこで、 ゲー ト 241、 242を用いて、 2値化画像データが " 1 " と なる画素のみを示す信号 PLGR2, FLGB2をゴース ト除.去部 4 4 0 へ出力する。 ゴ一 ス ト 除去部 4 4 0 の構成は、 後に詳し く 述べるが、 FLGR 2, FLGB2、 および 2 値画像データ を入力 し、 "赤" およ ぴ "青" の識別子 FLGR 222 , FLGB 223を出力する。 Each of the signal lines 101, 102, and 103 in the figure transmits multi-valued data of R, G, and B sent from the image input unit. Reference numerals 221, 222, and 223 denote FB / W and FLGR, which are determination results. , FLGB, and 501 transmits image data obtained by binarizing luminance data. The judgment results FLGR and FLGBi output from the signal lines 211 and 212 indicate whether or not the hue of the pixel is within a predetermined range. However, here, for example, among the pixels determined to be “red”, even if the hue itself is in the category of 11 red, it is binarized due to the high luminance. Therefore, the gates 241 and 242 are used to remove the pixels PLGR 2 and FLGB 2 that indicate only those pixels whose binary image data is “1”. 4 and outputs it to the 4 0. configuration Gore one be sampled removing unit 4 4 0, later for details described but, FLGR 2, FLGb 2, and inputs binary image data, "red" Oyo Pi "blue" Output the identifiers FLGR 222 and FLGB 223.
次に、 特定色画素抽出部 210で用いる判定の一例を、 第 2 5 図を用いて説明する。 第 2 5 A図〜第 2 5 C図は、 それぞれ、 多値画像データで表現する 色の空間を示す。 R , G, B 3 種の多値画像データ によ り 表現される 色は、 第 2 5 A図に示す立方体中の座標 と して表現する こ と が でき る。 図中の C l , C 2 , C 3 をそれぞれ R , G , B の値とする と 、 P 1 は黒、 P 8 は白を表わす。 こ こ で、 R , G , B が各 8 b i tのデー タ の場合、 C I , C 2 , C 3 の範囲は 0力 ら 255と な り 、 最大値 L m a xは 255と なる。 また、 P 2 , P 3 , P 4 は、 3 原色である赤、 緑、 青を 示 し、 P 5 , P 6 , P 7 は、" その補色であるイェロ ー( 黄)、 マゼンタ (空色)、 シアン(紫)の各色を示す。 特定 色の抽出は、 入力 した画像を各画素ごと に、 こ の空間中 の座標に展開 し、 あ らか じめ定めた一部の領域中に属す る画素を抽出する こ と によ り 実現でき る。 Next, an example of the determination used in the specific color pixel extraction unit 210 will be described with reference to FIG. FIGS. 25A to 25C each show a color space expressed by multi-valued image data. The colors represented by the R, G, and B types of multi-valued image data can be represented as the coordinates in the cube shown in Fig. 25A. If C l, C 2, and C 3 in the figure are the values of R, G, and B, respectively, P 1 represents black and P 8 represents white. Here, when R, G, and B are each 8-bit data, the range of CI, C2, and C3 is from 0 to 255, and the maximum value Lmax is 255. P 2, P 3, and P 4 indicate the three primary colors red, green, and blue, and P 5, P 6, and P 7 indicate the complementary colors, yellow (yellow) and magenta (sky blue). , And cyan (purple) The extraction of a specific color is performed by expanding the input image for each pixel to the coordinates in this space, and belonging to a part of a predetermined area. This can be achieved by extracting pixels.
"赤" および "青" の範囲の 2 つの例を第 2 5 B 図お よび第 2 5 C図に示す。 第 2 5 B 図の場合、 以下の式に 従つて FLGRiおよぴ FLGBri力 S出力 される。  Two examples of the "red" and "blue" ranges are shown in Figure 25B and Figure 25C. In the case of Fig. 25B, FLGRi and FLGBri force S are output according to the following equations.
FLGR ι = 1 : R ≥ G X L 1ノ Lmax  FLGR ι = 1: R ≥ G X L 1 Lmax
and R ≥ B X L 1 / Lmax  and R ≥ B X L 1 / Lmax
0 : R < G X L 1 / Lmax  0: R <G X L 1 / Lmax
o r R < B X L 1 / L max  o r R <B X L 1 / L max
FLGB ! = 1 : B ^ G X L l / Lmax  FLGB! = 1: B ^ G X L l / Lmax
and B ^ R X L l / Lmax  and B ^ R X L l / Lmax
0 : B < G X L L m a x  0: B <G X L L max
o r B < R X L 1 / Lmax  o r B <R X L 1 / Lmax
—方、 第 2 5 C図においては、 以下の式によ り FLGR 1 および FLGB 2が出力 される。 On the other hand, in Fig. 25C, FLGR 1 and FLGB 2 are output according to the following equations.
FLGR 1 = 1 : R 12≤ (Lmax-R) 2 + G2 + B2 FLGR 1 = 1: R 1 2 ≤ (Lmax-R) 2 + G 2 + B 2
0 : R I2 > (Lmax-R) 2 + G2 + B2 0: RI 2 > (Lmax-R) 2 + G 2 + B 2
FLGB ! = 1 : R 22≤ R2 + G2+(Lmax-B) 2 FLGB! = 1: R 2 2 ≤ R 2 + G 2 + (Lmax-B) 2
0 : R 22 > R2 + G2+ (Lmax-B) 2 0: R 2 2 > R 2 + G 2 + (Lmax-B) 2
上記の入出力関係を実現する特定色画素抽出部 2 1 0 は、 数値演算器またはメ モ リ によ り 実現でき る。 メ モ リ の場合、 高速な処理速度がえられるが、 入力する画像デ 一タの階調によ り 膨大なメ モ リ 量が必要と される。 こ の 場合、 入力データ の上位のデータ のみを用いて判定を行 う こ と によ り 、 メ モ リ 量を削減でき る。 また、 メ モ リ に よる判定と数値演算によ る補間処理を併用する こ と も可 能である。 The specific color pixel extraction unit 210 that realizes the above input / output relationship can be realized by a numerical calculator or a memory. memory In this case, a high processing speed can be obtained, but an enormous amount of memory is required depending on the gradation of the input image data. In this case, the amount of memory can be reduced by performing the determination using only the upper data of the input data. It is also possible to use both judgment by memory and interpolation by numerical operation.
第 2 6 図に、 特定色画素抽出部 2 1 0 をメ モ リ を用い て実現する場合の、 メ モ リ 内容の一例を示す。 こ の例で は、 入力 される R, G , B の各データ はそれぞれ 4 b i t の階調を有し、 Bが一定の場合の R , G と FLGR の関係 を表 している。 抽出する色の範囲を再設定する には、 こ の特定色画素抽出部 2 1 0 と して用い られるメ モ リ の內 容を書き替える こ と によ り.実現でき る。  FIG. 26 shows an example of memory contents when the specific color pixel extracting section 210 is realized by using memories. In this example, each of the input R, G, and B data has a gradation of 4 bits, and represents the relationship between R, G, and FLGR when B is constant. The range of colors to be extracted can be reset by rewriting the content of the memory used as the specific color pixel extraction unit 210.
しかし、 一般的に人間が特定の色を指定する場合、 R G B空間上で直接、 意 とする色の範囲を指定する こ と は困難である。 従って、 抽出する色相範囲を任意に指定 する場合、 色の指定を人間の感覚に近い色表現系で行 う こ と によ り 、 操作性を向上する こ とができ る。  However, in general, when a human specifies a specific color, it is difficult to directly specify a desired color range in the RGB space. Therefore, when the hue range to be extracted is arbitrarily specified, the operability can be improved by specifying the color using a color expression system that is close to human feeling.
第 2 7 A〜 2 7 C図に表色系の一例 と して、 V C H系 を用いた判定の原理を示す。 V C H系は、 輝度 V と彩度 C, 色相 Hによ り 色を表現する。 R G B 系から V C H系 への変換は、 例えば、 以下の式によ り 実行される。  Figures 27A to 27C show the principle of judgment using the VCH system as an example of the color system. The VCH system expresses a color using luminance V, saturation C, and hue H. The conversion from the RGB system to the VCH system is performed, for example, by the following equation.
V =0.299 R + 0.287 G + 0.114 B  V = 0.299 R + 0.287 G + 0.114 B
C = V V { C R - V ) + ( B - V) }  C = V V {C R-V) + (B-V)}
H = t a n - 1 { ( R - V ) / ( B - V ) } こ こ で、 彩度 はカ ラ一 とモ ノ ク ロ を識別する閾値、 色相 0 Ϊおよび 0 2は、 赤を表す色相の範囲、 0 3およびH = tan- 1 {(R-V) / (B-V)} Here, the saturation is a threshold value for distinguishing a color from a monochrome, and the hues 0 Ϊ and 0 2 are a range of hues representing red, 0 3 and
0 4は青を表す色相の範囲を示す。 こ の彩度閾値 C i と 色 相の閾値 0 3, θ 2 , Θ 3 , 0 4を制御する こ と によ り 、 抽出 する画素の色を任意の設定する こ と ができ る。 0 4 shows the range of the hue representing blue. Saturation threshold C i and the color phase threshold 0 3 this, theta 2, theta 3, 0 4 Ri by the and this for controlling the color of pixels to be extracted Ru can and this for any setting.
こ の表色系は、 印刷物での色を表現するのに広く 用い られ、 朱肉およびス タ ンプ用イ ン ク の規格 も本系で表現 されている。 従って、 文書を対象 とする シス テ ムにおい ては、 外部からの色の指定は こ の表色系で行い、 内部処 理は画像データ と 同様の R G B 系で実行する こ と によ り . 色指定を簡便に行 う シス テ ムを実現する こ と ができ る。  This color system is widely used to represent colors in printed matter, and the standards for vermilion and stamp ink are also expressed in this system. Therefore, in systems that target documents, external colors are specified in this color system, and internal processing is performed in the same RGB system as image data. A system that allows easy specification can be realized.
と こ ろで、 こ の機能を実現する ためには、 V C H系で 指定された色の範囲を R G. B系中に変換する手段を設け る必要がある。  In order to realize this function, it is necessary to provide a means for converting the color range specified by the VCH system into the RGB system.
第 2 8 図に、 抽出する 色の範囲を任意に設定する機能 を有する画像フ アイ リ ング装置のための特定色画素抽出 部 2 1 0 の一構成例を示す。 図中、 3 1 0は抽出する 色の 範囲を外部から指定する ためのパラ メ ータ入力部、 3 2 0 は入力 されたパラ メ ータ よ り 抽出雨素判定部 2 4 0の內部 を算出するパラ メ ータ設定部、 3 3 0はパラ メ —タ設定部 から抽出画素判定部 2 4 0へのデータ の ¾f き込みを iliij御す る制御部である。  FIG. 28 shows a configuration example of the specific color pixel extraction unit 210 for an image filing apparatus having a function of arbitrarily setting a range of colors to be extracted. In the figure, 310 is a parameter input section for specifying the range of colors to be extracted from outside, and 320 is a part of the rain element determination section 240 extracted from the input parameters. A parameter setting unit to be calculated, 330 is a control unit for controlling the writing of data from the parameter setting unit to the extracted pixel determination unit 240.
特定色画素抽山部 2 1 0は、 抽出面素判定部 2 4 0、 彩度演 算部 2 2 0および色相演算部 2 3 0によ り 構成される。 彩度判 定部 2 2 0および色相判定部 2 3 0は、 それぞれ、 R G B 3 種 . The specific color pixel extraction section 210 includes an extraction surface element determination section 240, a saturation calculation section 220, and a hue calculation section 230. The saturation judgment section 220 and the hue judgment section 230 each have three types of RGB. .
54 54
の多値データ を入力 し、 多値の彩度データ C と 色相デー タ Hを出力する変換器である'。 It is a converter that inputs multi-valued data and outputs multi-valued saturation data C and hue data H.
R G B系から V C H系への変換は、 前述の式を用いた 演算処理によ り 実行でき るが、 メ モ リ を用いる こ と によ り 、 さ らに簡単に実現でき る。 但し、 入力 される R G B データ の階調数が大きい場合、 メ モ リ の規模も膨大な も の と なる。 その場合、 データの上位 b i t のみを入力す る。 さ らに、 階調数を低下させないため、 下位 b i t 分 を演算によ り 補間する こ と も可能である。  The conversion from the RGB system to the VCH system can be performed by the arithmetic processing using the above-described equation, but can be more easily realized by using the memory. However, when the number of gradations of the input RGB data is large, the scale of the memory becomes enormous. In that case, enter only the upper bits of the data. Furthermore, in order not to reduce the number of gradations, it is possible to interpolate the lower bits by calculation.
今、 画素 P ( X , y )の R G B データ が入力 された場合の 彩度抽出部 220の出力を C (x, y) , 色相演算部 230の出力を H (x, y) とする。 抽出画素判定部 240では、 彩度 C (x, y) および色相 H (X, y)を、 そ ぞれの閾値 C 0 0 2, 6 3, 0 4と比較する こ と によ り 、 判定結果 FLGR 1および FLGB 1を、 例えば、 以下の式に従って決定し、 出力する。 When the RGB data of the pixel P (X, y) is input, the output of the saturation extraction unit 220 is C (x, y), and the output of the hue calculation unit 230 is H (x, y). The extraction pixel determination unit 240 makes a determination by comparing the saturation C (x, y) and the hue H (X, y) with respective thresholds C 0 2 , 6 3 , and 0 4. Result FLGR 1 and FLGB 1 are determined and output according to the following formula, for example.
FLGR 1 = C (x, y) ≥ C 1  FLGR 1 = C (x, y) ≥ C 1
and Θ i≤ H (x, y) ≤ θ 2 and Θ i≤ H (x, y) ≤ θ 2
FLGB 1 = C (χ, y) ≥ C 1  FLGB 1 = C (χ, y) ≥ C 1
and 0 3≤ H (x, y) ≤ Q Λ and 0 3 ≤ H (x, y) ≤ Q Λ
なお、 抽出する画素の範囲の設定は、 パラ メ ータ入力 部 310よ り 、 こ の閾値 C! , Θ !, 0 2, Θ 3, G aを入力する。 入力 された C】, 0 1 , 0 2, Θ 3 , 0 4によ り 、 ノ ラ メ ータ設 定部 320で、 抽出画素判定部 240に記録する メ モ リ 内容を 演算 し、 制御部 330の制御によ り 、 抽出雨素判定部 240へ 転送する。 こ の結果、 抽出する画素を任意に設定する こ と ができ る。 The range of the pixels to be extracted is set by the parameter input unit 310 using the threshold C! , Θ! , 0 2 , Θ 3, G a Based on the input C], 0 1, 0 2 , Θ 3, 04, the memory contents to be recorded in the extracted pixel determination section 240 are calculated in the noram setting section 320, and the control section is operated. Under the control of 330, it is transferred to the extracted rain element determination unit 240. As a result, the pixels to be extracted can be set arbitrarily. And can be.
こ の場合も、 前述の R G Bデータ によ る判定 と 同様に、 輝度の 2 値化処理結果 F B/Wと の論理積を取る こ と に よ り 、 不要な画素の抽出を避ける こ と ができ る。 こ の結果, ゴ In this case as well, similar to the above-mentioned judgment based on the RGB data, by performing the AND operation with the luminance binarization processing result FB / W, unnecessary pixel extraction can be avoided. You. As a result,
—ス ト除去部 4 00へは、 判定結果と して、 F L G R 2および F L G B 2が入力 される。 — FLGR 2 and FLGB 2 are input to the test strip 400 as the determination result.
—方、 パラ メ 一タ入力部 3 1 0では、 5 種類の閾値を操 作者が 自在に設定するため、 各閾値を操作者の感覚に近 い形で表現する こ と が重要である。 第 2 9 図に、 パラ メ ータ入力部 3 1 0 の一例を示す。 図中、 3 1 1は、 彩度の 閾値 C!を設定する ス ラ イ ドスイ ッチである。 閾値 C!は 単独で設定する こ と ができ る。 一方、 3 1 2は赤と して設 定する色相の範囲の中心 を入力するためのダイ アル、 3 1 3'は抽出する 色相の幅 H b iを入力する ス ライ ドスイ ツ チである。 閾値 0 ]および 6 2は、 H ]および H 1 に よ り 、 以下の式で決定される。 On the other hand, in the parameter input section 310, five types of thresholds can be set freely by the operator, so it is important to express each threshold in a form that is close to the operator's feeling. FIG. 29 shows an example of the parameter input section 310. In the figure, 3 1 1 is the saturation threshold C! This is a slide switch for setting. Threshold C! Can be set independently. On the other hand, 312 is a dial for inputting the center of the hue range set as red, and 313 'is a slide switch for inputting the width Hbi of the hue to be extracted. Threshold 0] and 6 2, Ri by the H] and H 1, is determined by the following equation.
.Θ 1 = H i - H b!  .Θ 1 = H i-H b!
0 2 = H 1 + H b 1  0 2 = H 1 + H b 1
同様に青の範囲 もダイ アル 3 1 4およびス ライ ドスィ ッ チ 3 1 5にて設定される。 また、 こ こ で、 0 2≥ 0 3な ど、 指定 した 2 個所の色相が ffl複する場合は、 必要に応 じて 中央点を境界 と した り 、 一方を優先する な どの処置を施 す。 さ らに、 色相の指定において、 全色相を含むよ う に 0 を設定する こ と によ り 、 こ の特定色識別部 4 5 0 は前 述のカ ラ一 モノ ク ロ識別部 4 1 0 と して用レ、る こ と 力 s でき る。 Similarly, the blue range is set with the dial 314 and the slide switch 315. Also, if the specified two hues are ffl duplicated, such as 0 2 ≥ 0 3 , take measures such as setting the center point as a boundary or giving priority to one as necessary. . Further, by specifying 0 so as to include all hues in the specification of hue, the specific color identification section 450 can be used as the color / monochrome identification section 4100 described above. And the power s it can.
続いて、 ゴ一ス 卜除去部 4 4 0 の構成について詳細に 述べる。 カ ラーゴース ト は、 入力装置での R G B 間の位 置ずれや、 光電変換特性の違いから、 判定結果において 本来存在しない色が生じる現象である。 例えば、 白背景 中の黒文字の輪郭部分の画素を赤や青と判断する こ と で ある。  Subsequently, the configuration of the gore removing unit 450 will be described in detail. Color ghosting is a phenomenon in which colors that do not exist in the judgment result are generated due to misalignment between RGB in the input device and differences in photoelectric conversion characteristics. For example, a pixel in the outline of a black character in a white background is determined to be red or blue.
ゴース ト の除去は、 近傍の画素に対する判定結果のパ ターンによ り 、 中心画素に対する判定結果を修正する こ とで実現でき る。 例えば、 連続する 白画素と黒画素の間 に生じたゴ一ス ト は、 上下左右それぞれ 2画素づつに対 する判定結果を見る こ と によ り 修正でき る。  Ghost elimination can be realized by correcting the judgment result for the center pixel by the pattern of the judgment result for the neighboring pixels. For example, a ghost that occurs between consecutive white and black pixels can be corrected by looking at the determination results for each of the two pixels, top, bottom, left, and right.
—例 と して上下左右各 2 _画素の判定結果を参照する場 合について説明する。 こ の時、 参照する画素は第 3 0 図 に示す 9 画素で、 用レ、るデータ は FLGR 2 , FLGB 2, FB/W の 3 種類と なる。 こ こ で、 330が最終的な判定を出力す る画素である。 — As an example, a case where the determination result of each of the top, bottom, left and right 2_pixels is referred to will be described. At this time, the pixel to be referred to by 9 pixels shown in 3 0 Figure, use record, Ru data becomes three FLGR 2, FLGB 2, FB / W. Here, reference numeral 330 denotes a pixel for outputting a final judgment.
第 3 1 図に、 ゴ一ス ト除去部 4 4 0 の一構成例を示す。 図中、 450, 460, 470は、 それぞれ、 FLGR 2, FLGB z , FB/ Wを一時蓄積し、 判定に必要な 9 画素分づっを同時に出 力するデーター時保存部、 480は入力 された 2 7 b i ί分の 2 値データ よ り 最終的な判定結果を決定する ゴース 卜書 替え処理部である。 FIG. 31 shows an example of the configuration of the guest elimination section 4400. In the figure, 450, 460, 470, respectively, FLGR 2, FLGb z, and temporarily stores the FB / W, data upon storage unit to simultaneously output force nine pixels Dzu' necessary determination, 480 is input 2 A ghost rewriting processor that determines the final judgment result from 7 bi-volumes of binary data.
こ こ で、 450 , 460 , 470は同 じ構成で実現でき る。 第  Here, 450, 460, and 470 can be realized with the same configuration. No.
3 2 図に、 データ ー時保存部 450の一構成例を示す。 図 中、 219は特定色画素抽出部 210から FLGR 2を入力する信 号線、 また、 401 , 411 , 421 , 431 , 441および 422 , 423, 424 , 425はラ ツチ、 405 , 415, 435 , 445は入力 されたデータ のタ ィ ミ ン グを揃え る ための シフ ト レジス タ 、 410, 420, 430, 440は入力画像の走査線 1 本分の間データ を保存 してお く ラ イ ンメ モ リ である。 今、 信号線 219から信号 FLGR 2(x + 2, y + 3)が入力 された場合、 ラ ツチ 401, 411, 431, 441 から は、 それぞれ、 FLGR 2 (x+2, y + 2) , FLGR 2(χ+1, y+2) , FLGR 2 (χ-1, y + 2) , FLGR 2 (χ- 2, y + 2)が出力 され、 421, 422 , 423 , 424, 425カ らは、 それぞれ、 FLGR 2 (x + 2, ) , FLGR 2 (x+1, ) , FLGR 2 (x - 1 , y) , FLGR 2 (x, y), FLGR 2 (x - 2, 力 s 出力 される。 また、 シフ ト レジス タ 405,415, 435, 445か らはそれぞれ FLGR 2 (X , y + 2) , FLGR 2 ( x, y+ 1) , FLGR 2(x, y - 1) , FLGR 2(x, y-2)が出力 される。 3 2 shows an example of the configuration of the data storage unit 450. Figure Among them, 219 is a signal line for inputting FLGR 2 from the specific color pixel extraction unit 210, 401, 411, 421, 431, 441 and 422, 423, 424, 425 are latches, 405, 415, 435, 445 are 415 Shift registers 410, 420, 430, and 440 are used to align the timing of input data. Line memory stores data for one scan line of the input image. It is. Now, when the signal FLGR 2 (x + 2, y + 3) is input from the signal line 219, the latches 401, 411, 431, and 441 respectively output FLGR 2 (x + 2, y + 2), FLGR 2 (χ + 1, y + 2), FLGR 2 (χ-1, y + 2), FLGR 2 (χ-2, y + 2) are output, and 421, 422, 423, 424, 425 Are FLGR 2 (x + 2,), FLGR 2 (x + 1,), FLGR 2 (x-1, y), FLGR 2 (x, y), FLGR 2 (x-2, power s output From shift registers 405, 415, 435, and 445, FLGR 2 (X, y + 2), FLGR 2 (x, y + 1), FLGR 2 (x, y-1), and FLGR 2 2 (x, y-2) is output.
同様の回路を 3 個持つこ と によ り 、 FLGB a, FB/Wも同 様に 9 画素分同時に出力する こ と ができ る。  By having three similar circuits, FLGBa and FB / W can also be output simultaneously for nine pixels.
第 3 1 図中の書替え処理部 480は、 入力 された 2 7 b i t の 2 値データ によ り 中心画素に対する判定結果 FLGR, FLGBを決定する。 参照する画素数が少ない場合、 ゴース 卜書替え部 480はメ モ リ によ って も実現でき るが、 こ こ では、 論理回路に よ り ゴ一ス ト の除去を行 う 場合の一例 を示す。  The rewriting processing unit 480 in FIG. 31 determines the judgment results FLGR and FLGB for the center pixel based on the input binary data of 27 bit. When the number of pixels to be referred to is small, the ghost rewriting unit 480 can be realized by memory, but here, an example in which the ghost is removed by a logic circuit is shown. .
今、 書替えを行 う 条件 と して、 ( 2 画素以上の 白画素 と 、 2 画素以上の黒画素にはさ まれた、 幅 i 画素の赤) と定めた場合、 第 3 3 A〜 3 3 D図に示す 4種類のパタ —ンが対象と なる。 なお、 本実施例では、 F LGR 2 = 1 の 画素が入力 され、 FLGR= 0 ¾r出力する場合のみを例に説 明 したが、 同様な構成で FLGB 2 = 0 が入力 された場合に、 FLGB = 1 を出力する こ と に も対処し得る。 また、 抽出す る色相を指定する際に、 と θ 2、 も しく は θ 3と 0 4の どち らか一方で、 全色相を含むよ う に抽出する色相を設 定する な らば、 こ の ゴ一ス ト除去部は、 前述のカラ一 Ζ モノ ク 口識別においてもそのまま適用する こ と ができ る。 Now, if the rewriting condition is defined as (red of width i pixels, sandwiched between two or more white pixels and two or more black pixels), Four types of patterns shown in Figure D Are targeted. In the present embodiment, only the case where a pixel of FLGR 2 = 1 is input and FLGR = 0 ¾r is output is described as an example.However, when FLGB 2 = 0 is input in a similar configuration, FLGB 2 = 0 is input. Outputting = 1 can also be handled. Also, when specifying extracted hue, and theta 2, also properly the theta 3 0 4 Dochi et al or in one, Do set the hue to be extracted cormorants by including all hues mules, This guest elimination unit can be applied as it is to the above-described color / monochrome mouth identification.
続いて、 判定結果の確認について説明する。 カ ラー C R Tな ど、 カ ラ一画像を表現でき る表示装置がシステ ムに接続されている場合、 蓄積されるカ ラーの 2 値画像 を表示する こ と によ り 、 判定結果の確認ができ る。 し力 しなが ら、 接続されている-表示装置が 白黒の場合で も、 抽出個所を明滅 (ブリ ンキング) する こ と な どによ り 、 判定結果の確認が実現でき る。  Next, confirmation of the determination result will be described. If a display device that can display a color image, such as a color CRT, is connected to the system, displaying the accumulated color binary image allows the judgment result to be confirmed. You. However, even if the connected display device is black and white, it is possible to confirm the judgment result by blinking the extracted portion (blinking).
第 3 4図に、 白黒表示部によ り 判定結果を確認する場 合の装置の一構成例を示す。 こ こ では、 簡単のため、 赤 と判定された部分のみを明滅する場合を例に説明する。 図中、 800は 3 枚の 2 値画像データ から 1 面の表示画面 を作成する画像変換部であ り 、 810は明滅(ブ リ ンキング) のタイ ミ ングを制御する ク 口 ッ ク 、 820は排他的論理和 を求める論理素子、 830は入力 される 2種類のデータ を 選択するセ レク タ である。 入力 されるデータ は、 メ モ リ 610および 620に蓄積されている輝度データおよび赤プ レ—ンのデータである。 画像表示時には、 セ レ ク タ 7 1 0の選択によ り 、 信号線 7 1 1からは、 輝度の 2 値データ が出力 され、 信号線 8 2 1か らは上記 2値デ-タか ら赤 と判定された部分を除いた画 像が出力される。 セ レク タ 8 3 0は こ の 2種類の 2 値画像 データ を、 ク ロ ッ ク 8 1 0の制御によ り 切 り 替えて、 交互 に表示する。 FIG. 34 shows an example of the configuration of a device for checking the judgment result on a black-and-white display unit. Here, for the sake of simplicity, an example will be described in which only the portion determined to be red blinks. In the figure, reference numeral 800 denotes an image conversion unit for creating a one-screen display screen from three pieces of binary image data, reference numeral 810 denotes a blink controlling blinking timing, and reference numeral 820 denotes a blinking control. A logic element for obtaining exclusive OR, 830 is a selector for selecting two types of input data. The input data is the luminance data and red plane data stored in the memories 610 and 620. At the time of image display, by selecting the selector 710, binary data of luminance is output from the signal line 711, and the above-mentioned binary data is output from the signal line 821. An image excluding the part judged to be red is output. The selector 830 switches between these two types of binary image data under the control of the clock 810, and displays them alternately.
本実施例では、 カ ラ一文書を黒と特定の 1 色または 2 色で表現し蓄積する ため、 文書画像中 よ り 特定の色で表 現された画素を抽出する場合について説明 した。 しか し 現実には特定の色で表現されてはいないが、 画像中で特 定の色 と して記録すべき部分を、 外部から指定する こ と によ って も、 同様にカ ラ一文書を効率良 く 蓄積する こ と ができ る。 この場合、 画像中で特定色 と して抽出すべき 領域は外部から指示されるため、 特定色抽出部を除 く こ と ができ る。  In the present embodiment, a case has been described in which a pixel represented in a specific color is extracted from a document image in order to represent and store a color document in black and one or two specific colors. However, although it is not actually represented by a specific color, the part of the image that should be recorded as a specific color can be similarly specified by specifying from the outside. Can be efficiently accumulated. In this case, the region to be extracted as a specific color in the image is designated from the outside, so that the specific color extraction unit can be omitted.
第 3 5 図に、 こ の場合の画像フ アイ リ ング装置の一構 成例を示す。 図中、 6 7 0はマ ウ スな ど既知の座標指定装 置、 6 5 0は座標指定装置 6 7 0にて指示された領域の座標を 読みだす領域指定部、 6 6 0は領域指定部 6 5 0にて指定され た領域中の画像データ を、 画像メ モ リ 6 1 0から読み出 し、 画像メ モ リ 6 2 0ま たは 6 3 0 へ転送する画像切 り 出 し部であ る。  FIG. 35 shows a configuration example of the image filing apparatus in this case. In the figure, 670 is a known coordinate designation device such as a mouse, 650 is an area designation section that reads the coordinates of the area designated by the coordinate designation device 670, and 660 is an area designation Image extraction unit that reads out image data in the area specified by the unit 650 from the image memory 610 and transfers it to the image memory 620 or 630. It is.
文書は、 画像入力部 1 0 0か ら 多値画像データ と して入 力 され、 2 値化後、 画像メ モ リ 6 1 0に記録され、 同時に、 画像表示部 7 5 0上に表示 される。 操作者は、 画像表示部 7 50上に表示される画像とマ ウ スの位置から 、 任意の镇 域をマ ウスによ り 指定する。 マ ウスによ り 指定された領 域の座標は、 領域指定部 6 5 0にて読み出される。 こ こ で、 画像切 り 出 し部 6 6 0は、 指定された領域中に対応する輝 度画像データ の内容を画像メ モ リ 6 1 0中よ り 読みだし、 画像メ モ リ 6 2 0、 あるいは画像メ モ リ 6 3 0へ複写する。 こ の結果、 特定色抽出機能を用いずと も、 人手によ る操作 を行 う こ と によ り 、 カ ラ一文書画像を記録する こ と が可 能と なる。 The document is input as multi-valued image data from the image input unit 100, binarized, recorded in the image memory 610, and simultaneously displayed on the image display unit 750. You. The operator can use the image display 7 Specify an arbitrary area with the mouse from the image displayed on the screen and the position of the mouse. The coordinates of the area specified by the mouse are read out by the area specifying unit 650. Here, the image clipping unit 660 reads the content of the brightness image data corresponding to the specified area from the image memory 610, and the image memory 620 Or Copy to image memory 630. As a result, it is possible to record a color document image by performing a manual operation without using the specific color extraction function.
なお、 本実施例では、 指定した镇域の座標を保存する こ と によ り 、 統一形式の文書を連続して入力する場合に 一度指定した領域で各文書を連続して入力する こ と が可 能である。 .  In the present embodiment, by storing the coordinates of the specified area, it is possible to successively input each document in the once specified area when continuously inputting unified format documents. It is possible. .
また、 白黒の文書画像を入力する場合でも、 特定の色 で着色すべき部分を指定する こ と によ り 、 指定した部分 をカ ラープ レーン と して蓄積する こ と も可能である。  Even when a black-and-white document image is input, it is possible to store the specified portion as a color lane by specifying a portion to be colored with a specific color.

Claims

請 求 の 範 囲 The scope of the claims
1 . 文書に対応する画像を多値デー タ と して入力す る入力手段と 、 1. An input means for inputting an image corresponding to a document as multi-valued data;
該多値デー タ を 2 値データ に変換する入力デー タ変換 手段であって、  Input data conversion means for converting the multi-valued data into binary data,
上記多値データから.上記画像に含まれる特定色で 表示すべき画素の領域を抽出する 色識別手段を少な く と も有する領域判定手段、  Area determination means having at least a color identification means for extracting a pixel area to be displayed with a specific color included in the image from the multi-valued data;
上記多値データから上記画像の輝度情報を上記特 定色で表示すべき画素の領域を含めて 2 値化する 2 値化手段、 および  Binarizing means for binarizing the luminance information of the image from the multi-valued data, including a pixel area to be displayed in the specific color, and
該 2 値化手段の出力.を上記領域判定手段の出力に 応 じて選択する選択手段  Selection means for selecting the output of the binarization means in accordance with the output of the area determination means
から なる入力デー タ変換手段と 、 Input data conversion means comprising:
該 2 値デー タ を一時的に記憶する画像メ モ リ 手段であ つて、  An image memory means for temporarily storing the binary data,
上記特定色で表示すべき画素の領域を含めて 2 値 化された上記輝度情報(Y ; G c /G (i ) を第 1 のプ レ ー ン と して記憶する第 1 の メ モ リ 手段、 および  A first memory for storing the binarized luminance information (Y; Gc / G (i)) including a pixel area to be displayed in the specific color as a first plane; Means, and
上記特定色で表示すべき画素の領域の 2 値化 され た上記輝度情報を第 2 のプ レー ン と して記憶する第 2 のメ モ リ 手段  Second memory means for storing the binarized luminance information of the pixel area to be displayed in the specific color as a second plane
からなる画像メ モ リ 手段と 、 Image memory means comprising:
該画像メ モ リ 手段に記憶されている 2 値デー タ を符号 化 して蓄積する と と もに、 蓄積されたデータ を復号化し て上記画像メ モ リ 手段に出力する画像蓄積手段 と 、 Sign the binary data stored in the image memory means Image storage means for decoding the stored data and outputting the decoded data to the image memory means;
該画像メ モ リ 手段の 2 値画像データ に基づいて所望の 画像データ を出力する出力データ変換手段と 、  Output data conversion means for outputting desired image data based on the binary image data of the image memory means;
該出力データ変換手段からの画像データに基づいて所 望の画像を表示する画像表示手段と 、  Image display means for displaying a desired image based on the image data from the output data conversion means;
を備えた画像フ アイ リ ング装置。 Image filing device equipped with
2 . 上記 2 値化手段は、 上記多値データ を所定の閾 値で 2 値化する 2 値化処理手段と上記多値データ を擬(以 中間処理して 2 値化するディザ処理手段と を有する こ と を特徴とする請求項 1 記載の画像フ アイ リ ング装置。  2. The binarization means includes a binarization processing means for binarizing the multi-valued data with a predetermined threshold value and a dither processing means for pseudo-multiplying the multi-valued data (hereinafter, intermediate processing to binarize). The image filing apparatus according to claim 1, wherein the image filing apparatus has:
3 . 上記領域判定手段は、 上記面像の各部が文字領 域と写真領域のいずれに属-するかを判定する文字 Z写真 領域判定手段を有 し、  3. The area determining means has a character Z photograph area determining means for determining whether each part of the surface image belongs to a character area or a photograph area,
上記選択手段は、 上記第 1 のプ レーンと して記憶する 上記輝度情報と して上記 2 値化処理手段の出力 と上記デ ィザ処理手段の出力の一方を上記文字 写真領域判定手 段の出力に応 じて選択する、  The selection means stores one of the output of the binarization processing means and the output of the dither processing means as the luminance information stored as the first plane in the character / photograph area determination means. Select according to output,
こ と を特徴とする請求項 2記載の画像フア イ リ ング装置3. An image filing apparatus according to claim 2, wherein:
4 . 上記選択手段は、 上記第 2 のプ レ ー ンと して記 憶する上記輝度情報と して、 上記特定色で表示すべき画 素の镇域に対しては上記 2 値化処理手段の出力 と上記デ ィザ処理手段の出力の一方を上記文字 Z写真領域判定手 段の出力に応じて選択し、 上記特定色で表示すべき画素 以外の領域に対しては上記文字ノ写真領域判定手段の出 力にかかわらず " 0 " を選択する、 4. The selection means includes, as the luminance information to be stored as the second plane, the binarization processing means for a pixel area to be displayed in the specific color. One of the output of the dither processing means and the output of the dither processing means is selected in accordance with the output of the character Z photograph area determination means. Judgment means output Select "0" regardless of power,
こ と を特徴とする請求項 3 載の画像フ アイ リ ング装置。 4. The image filing apparatus according to claim 3, wherein:
5 . 上記色識別手段は、  5. The color identification means is
上記多値データ と して G , R , B 3 種類の多値デ ータ を入力 してそれら の値の相対関係から 当該画素 が上記特定色で表示すべき画素であるか否かを判定 する特定色画素抽出手段と 、  G, R, and B types of multi-valued data are input as the multi-valued data, and it is determined whether or not the pixel is a pixel to be displayed in the specific color based on the relative relationship between the values. Specific color pixel extracting means,
各画素毎にその近傍画素に対する上記特定色画素 抽出手段の判定結果と上記 2 値化手段から得られる 2 値の上記輝度情報 と の組合せか ら 当該画素に対す る上記判定結果を書き替える ゴ― ス ト除去手段と 、 を有する こ と を特徴とする請求項 1 から 4 のいずれかに 記載の画像フ アイ リ ング装.置。  For each pixel, rewrite the above determination result for the pixel from the combination of the determination result of the specific color pixel extraction means for the neighboring pixels and the binary luminance information obtained from the above-mentioned binarization means. The image filing apparatus according to any one of claims 1 to 4, further comprising: a stall removing means.
6 . 上記色識別手段は、 さ らに  6. The above color identification means
上記特定色及びその色相の範囲を外部か ら指定す るパラ メ ータ入力手段と 、  Parameter input means for externally specifying the specific color and its hue range,
上記パラ メ ータ入力手段で指定された色を  The color specified by the above parameter input means
R G B 3 原色系に変換するパラ メ ー タ設定手段 と 、 を有する こ と を特徴とする請求項 5 記載の画像フ ァ イ リ ング装置。  The image filing apparatus according to claim 5, further comprising: a parameter setting unit configured to convert the image into an RGB 3 primary color system.
7 . 上記特定色画素抽出手段は、  7. The specific color pixel extracting means is as follows:
上記 G , R , B 3 種類の多値デー タか ら彩度を演 算する彩度演算手段と 、  Saturation calculating means for calculating the saturation from the three types of multi-valued data of G, R, and B;
上記 G, R , B 3 種類の多値デー タ から色相を演 算する色相演算手段 と 、 該演算 した彩度および色相を上記パラ メ ータ設定 手段の出力 と比較し、 上記特定色で表示すべき画素 であるか否かを判定する抽出画素判定手段 Hue calculation means for calculating the hue from the three types of multi-valued data of G, R, and B; Extracted pixel determining means for comparing the calculated saturation and hue with the output of the parameter setting means and determining whether or not the pixel is to be displayed in the specific color.
を有する こ と を特徴とする請求項 6 記載の画像フ アイ リ ング装置。 7. The image filing apparatus according to claim 6, comprising:
8 . 上記画像蓄積手段は、 読みだす場合に上記第 1 のプ レー ンのデータ が先に読みだせる順序で、 上記第 1 及び第 2 のプ レー ンのデータ を蓄積するデータ蓄積装置 を有する こ と を特徴とする請求項 1 から 7 のいずれかに 記載の画像フ アイ リ ング装置。  8. The image storage means has a data storage device for storing the data of the first and second planes in the order in which the data of the first plane can be read first when reading. The image filing apparatus according to any one of claims 1 to 7, wherein:
9 . 上記画像表示手段は、 上記第 1 プ レー ンの 2 値 データ を白黒画像と して表示する こ と を特徴とする請求 項 1 から 8 のいずれかに記-載の画像フ アイ リ ング装置。  9. The image filing according to any one of claims 1 to 8, wherein the image display means displays the binary data of the first plane as a black and white image. apparatus.
1 0 . 上記入力手段は、 上記文書に対応する画像を G R , B 3 種類の多値データ と して入力するカ ラ 一スキヤ ナからなる こ と を特徴とする請求項 1 から 9 のいずれか に記載の画像フ アイ リ ング装置。  10. The input device according to claim 1, wherein the input means comprises a color scanner for inputting an image corresponding to the document as three types of multi-value data of GR and B. 10. The image filing device described in the above item.
1 1 . 上記輝度情報と して、 G の多値データ に対する 上記 2 値化手段の 2 値化処理出力を用いる こ と を特徴と する請求項 1 0 記載の画像フ アイ リ ン グ装置。  11. The image filing apparatus according to claim 10, wherein, as said luminance information, a binarization processing output of said binarization means for multi-value data of G is used.
1 2 . 上記領域判定手段は、 上記入力 された画像の各 画素に対して当該画素が白黒で記載されたモ ノ ク ロ領域 か色情報を含む力 ラ 一領域かを判定するカ ラー Zモ ノ ク 口識別手段を有し、 .  12. The area determining means determines whether each pixel of the input image is a monochrome area described in black and white or a color area including color information. It has a nozzle identification means.
上記画像メ モ リ 手段は、 さ らに第 3 の メ モ リ 手段を有 し、 The image memory means further has a third memory means. And
上記選択手段は、 上記カ ラ一 /モノ ク ロ識別手段に よ り カ ラ 一領域と判定された画素に対しては、 上記 2 値化 手段で上記 G, R, B 3 種類の多値データ を疑似中間処 理によ り 2 値化 したディザ処理出力を選択 して上記第 1、 第 2及ぴ第 3 の メ モ リ 手段に出力する  The above-mentioned selection means provides the above-described G, R, and B three-valued multi-valued data to the above-mentioned binarization means for a pixel determined as a color area by the above-mentioned color / monochrome identification means. Is selected by the pseudo-intermediate processing, and is output to the first, second and third memory means.
こ と を特徴とする請求項 1 0記載の画像フ ア イ リ ング装  10. The image filing device according to claim 10, wherein:
1 3 . 上記選択手段は、 上記カ ラーノモ ノ ク ロ識別手 段によ り モ ノ ク 口領域と判定された画素に対 ては、 当 該画素が文字領域と写真領域の何れに属するかを判定 し 写真領域に属する画素に対 して上記 2 値化手段で上記 G R, B 3 種類の多値デー ダを疑似中間処理によ り 2 値化 したディザ処理出力を選択 して上記第 1 、 第 2 及び第 3 のメ モ リ 手段に出力する 13. The selection means determines whether the pixel belongs to a character area or a photograph area for a pixel determined to be a monaural opening area by the color / monochrome identification means. Judgment: For the pixels belonging to the photographic area, select the dither processing output obtained by binarizing the above three types of multi-valued data by the pseudo-intermediate processing by the above-mentioned binarizing means. Output to 2nd and 3rd memory means
こ と を特徴とする請求項 1 2 記載の画像フ ア イ リ ング装 置。 The image filing apparatus according to claim 12, characterized in that:
1 4 . 上記選択手段は、 フルカ ラ ー文書と モー ド指定 された画像に対しては、 上記文字領域に属する画素に対 して上記 2 値化手段で上記 Gの多値データ を所定の閾値 によ り 2 値化 した出力を選択 して上記第 1 、 第 2及び第 3 の メ モ リ 手段に同 じ値を出力する 14. The selecting means sets the multi-level data of G to a predetermined threshold value for the pixels belonging to the character area by the binarizing means for a full-color document and an image specified in the mode. And outputs the same value to the first, second and third memory means.
こ と を特徴とする請求項 1 3 記載の画像フ ア イ リ ング装 置。 14. The image filing apparatus according to claim 13, wherein:
1 5 . 上記選択手段は、 モ ノ ク ロ'領域と カ ラ 一領域と が混在する文書と モー ド指定された画像に対しては、 上 記文字領域に属する画素に対して上記 2値化手段で上記 Gの多値データ を所定の閾値によ り 2値化した出力を選 択して上記第 1 のメ モ リ 手段に出力する と共に " ◦ " を 第 2及び第 3 のメ モ リ 手段に出力する 15 5. The above-mentioned selection means is divided into a monochromatic area and a color area. In the case of a document in which characters are mixed and an image whose mode is specified, the binary data is binarized by the above-mentioned binarization means for the pixels belonging to the above-mentioned character area using a predetermined threshold. And outputs “◦” to the second and third memory means while outputting to the first memory means.
こ と を特徴とする請求項 1 3 記載の画像フ ア イ リ ング装 14. The image filing device according to claim 13, wherein:
1 6 . 上記画像メ モ リ 手段は、 モ ノ ク ロ領域とカ ラ 一 镇域と が混在する文書とモー ド指定された画像に対して 上記カ ラー Zモ ノ ク 口識別手段の識別結果を記憶する第 4 のメ モ リ 手段を有する こ と を特徴とする請求項 1 5 記 載の画像フ アイ リ ング装置。 16. The image memory means described above uses the color Z monok mouth identification means for the document in which both the monochrome area and the color area are mixed and the mode-specified image. 16. The image filing apparatus according to claim 15, further comprising a fourth memory means for storing the information.
1 7 . 上記出力データ変換手段は、  1 7. The output data conversion means
上記画像メ モ リ 手段に記億されている 2値データ から所望のデータ を選択するセ レク タ と 、  A selector for selecting desired data from the binary data stored in the image memory means,
該セ レク タカ らのデータから各色ごと の多値の画 像データ を生成する多値化処理手段  Multi-value processing means for generating multi-value image data for each color from the data of the selectors
を有する こ と を特徴とする請求項 1 から 1 6 のいずれか に記載の面像フ アイ リ ング装置。 The plane image filing apparatus according to any one of claims 1 to 16, characterized by having:
1 8 . 上記画像表示手段は、 上記多値化処理手段で生 成された各色ごと の多値の画像データ を合成 し、 多値の 力 ラ一画像データ を表示する こ と を特徴とする請求項 18. The image display means combines the multi-value image data for each color generated by the multi-value processing means and displays the multi-value image data. Term
1 7 記載の画像フ アイ リ ング装置。 17. The image filing device according to item 7.
1 9 . 上記多値化処理手段は、 1 9. The multi-value processing means is
上記セ レ ク タ か ら の 2—値データ によ り 当該画素が 文字領域と写真領域のいずれに属するか判定する手 段と、  Means for determining whether the pixel belongs to a character area or a photograph area based on the binary data from the selector;
上記セ レク タからの 2 値データ によ り 多値の画像 データ を生成する手段 と 、  Means for generating multi-valued image data from the binary data from the selector,
上記セ レク タ か ら の 2 値データ をシフ トする手段 と 、  Means for shifting the binary data from the selector,
上記多値データ生成手段の出力 と 上記シフ ト手段 の出力の一方を上記判定手段の判定結果によ り 選択 する手段  Means for selecting one of the output of the multi-value data generation means and the output of the shift means based on the result of the judgment by the judgment means
を有する こ と を特徴とする請求項 1 7 または 1 8 記載の 画像フ アイ リ ング装置。 .  The image filing apparatus according to claim 17, wherein the image filing apparatus has: .
20 . 上記出力データ変換手段は、  20. The above output data conversion means,
上記画像メ モ リ 手段に第 1 のプ レ ー ン と して記憶 された上記 2 値の輝度情報 と 第 2 のプ レー ン と して 記憶された上記特定色で表示すべき画素の領域の上 記 2 値の輝度 報 と の排他的論理和を算出する手段 と 、  The binary luminance information stored as the first plane in the image memory means and the pixel area to be displayed in the specific color stored as the second plane are stored in the image memory means. Means for calculating an exclusive OR of the binary luminance information and
該算出 された 2 値画像と 該輝度情報の 2 値画像 と を交互に選択する手段  Means for alternately selecting the calculated binary image and the binary image of the luminance information
を有する こ と を特徴とする請求項 1 から 1 6 のいずれか に記載の画像フ アイ リ ング装置。 The image filing apparatus according to any one of claims 1 to 16, characterized by having:
2 1 . 文書に対応する画像を多値デー タ.と して入力 するステップと 、 該多値データ を 2 値データ に変換する ス テ ップであつ て、 2 1. Inputting the image corresponding to the document as multi-valued data. A step of converting the multi-valued data into binary data,
上記多値データから上記画像に含まれる特定色で 表示すべき画素の領域を抽出する 色識別ス テ ッ プを 少な く と も含む領域判定ス テ ッ プ、  An area determination step including at least a color identification step for extracting a pixel area to be displayed in a specific color included in the image from the multi-valued data,
上記多値データから上記画像の輝度情報を上記特 定色で表示すべき画素の領域を含めて 2 値化するス テ ツプ、 および  A step of binarizing the luminance information of the image from the multi-valued data, including a pixel area to be displayed in the specific color, and
該 2 値化手段の出力を上記領域抽出結果に応じて 選択する ステ ッ プ  A step of selecting the output of the binarizing means in accordance with the result of the region extraction
からなるデータ変換ステ ッ プ と 、 A data conversion step consisting of
上記特定色で表示すべき画素の領域を含めて 2 値化さ れた上記輝度情報を第 1 の.プレー ン と し、 上記特定色で 表示すべき画素の領域の 2 値化された上記輝度情報を第 2 のプレーン と して、 画像メ モ リ 手段に一時的に記憶す るステ ップと 、  The binarized luminance information including the pixel area to be displayed in the specific color is defined as a first plane, and the binarized luminance in the pixel area to be displayed in the specific color is set as the first plane. A step of temporarily storing the information as a second plane in the image memory means,
該画像メ モ リ 手段に記憶されている 2 値データ を符号 化してデータ蓄積装置に蓄積するステ ッ プ と 、  Encoding the binary data stored in the image memory means and storing the encoded data in a data storage device;
を備えた画像フ アイ リ ング方法。 Image filing method with
2 2 . 上記データ蓄積装置に蓄積されたデータ を復号 化 して上記画像メ モ リ 手段に出力するステ ップ、  2 2. a step of decoding the data stored in the data storage device and outputting it to the image memory means;
該画像メ モ リ 手段の 2 値画像データ を所望の画像デー タ に変換して出力するステ ップ、 および  Converting the binary image data of the image memory means into desired image data and outputting the image data; and
該所望の画像データ に基づいて所望の画像を表示する ステ ッ プ を備えた請求項 2 1 記載の画像フ アイ リ ング方法。 A step of displaying a desired image based on the desired image data 22. The image filing method according to claim 21, comprising:
2 3 . 上記 2 値化ス テ ッ プは、 上記多値データ を所定 の閾値で 2 値化する単純 2 値化処理ステ ッ プと上記多値 データ を擬 ί以中間処理して 2 値化するディザ処理ステ ツ プと からなる こ と を特徴とする請求項 2 1 または 2 2 記 載の画像フ ア イ リ ング方法。  23. The binarization step consists of a simple binarization processing step of binarizing the multi-valued data with a predetermined threshold and a binarization by intermediately processing the multi-valued data. The image filing method according to claim 21, comprising a dither processing step for performing dithering.
2 4 . 上記領域抽出ステ ップは、 上記画像の各部が文 字領域と写真領域のいずれに属するかを判定する文字// 写真領域判定ステ ップを有し、  24. The area extraction step includes a character / photo area determination step for determining whether each part of the image belongs to a text area or a photo area.
上記選択ス テ ッ プは、 上記第 1 のプ レー ン と して記憶 する上記輝度情報 と して上記単純 2 値化処理結果と上記 ディザ処理結果の一方を上記文字ノ写真鎮域判定結果に 応じて選択する .  In the selection step, one of the simple binarization processing result and the dither processing result is used as the luminance information stored as the first plane as the character / photograph area determination result. Select according to.
こ と を特徴とする請求項 2 3 記載の画像フ アイ リ ング方 法。  The image filing method according to claim 23, characterized in that:
2 5 . 上記選択ステ ップは、 上記第 2 のプ レー ン と し て記憶する上記輝度情報と して、 上記特定色で表示すベ き画素の領城に対 しては上記単純 2 値化処理結果と上記 ディザ処理結果の一方を上記文字 写真領域判定結果に 応 じて選択し、 上記特定色で表示すべき雨素以外の領域 に対しては上記文字ノ写真領域判定結果にかかわ らず " 0 " を選択する  25. The selection step is the luminance information stored as the second plane, and the simple binary value for the territory of the pixel to be displayed in the specific color is used as the luminance information. One of the digitization processing result and the dither processing result is selected according to the character / photograph area determination result, and the area other than rain element to be displayed in the specific color is determined by the character / photograph area determination result. Select "0"
こ と を特徴と する請求項 2 4 記載の画像フ ア イ リ ング方 法。 The image filing method according to claim 24, characterized by this.
2 6 . 上記色識別ステ ッ プは、 上記多値データ と して G, R, B 3 種類の多値デ ータ を入力 してそれら 値の相対関係から 当該画素 が上記特定色で表示すべき画素であるか否かを判定 する特定色画素抽出ス テ ッ プ と 、 2 6. The above color identification steps G, R, and B three types of multi-valued data are input as the multi-valued data, and a determination is made based on the relative relationship between the values to determine whether the pixel is a pixel to be displayed in the specific color. Color pixel extraction step and
各画素毎にその近傍画素に対する上記特定色画素 抽出結果と上記 2値化ステ ッ プで得られる 2 値の上 記輝度情報との組合せから 当該画素に対する上記判 定結果を書き替える ゴー ス ト除去ステ ッ プ  For each pixel, rewrite the above-mentioned judgment result for the relevant pixel from the combination of the above-mentioned specific color pixel extraction result for the neighboring pixel and the above-mentioned binary luminance information obtained in the above-mentioned binarization step. Step
を有する こ と を特徴とする請求項 2 1 から 2 5 のいずれ かに記載の画像フアイ リ ング方法。 The image filing method according to any one of claims 21 to 25, comprising:
27 . 上記色識別ステ ッ プは、 さ らに  27. The above color identification steps are
上記特定色及びその色相の範囲を外部から指定す るパラ メ 一タ入力ステ -ップと 、  A parameter input step for externally specifying the specific color and its hue range,
上記パラ メ 一タ入力ステ ッ プで指定された色を R G B 3 原色系に変換するバラメ ー タ設定ステ ッ プ を有する こ と を特徴とする請求項 2 6 記載の画像フ アイ リ ング方法。  27. The image filing method according to claim 26, further comprising a parameter setting step for converting a color specified in the parameter input step into an RGB 3 primary color system.
2 8 . 上記特定色画素抽出ステ ッ プは、  2 8. The above specific color pixel extraction step
上記 G, R, B 3 種類の多値デー タから彩度を演 算する彩虔演算ステ ッ プ と 、  A godsend operation step for calculating the saturation from the three types of multi-valued data of G, R, and B;
上記 G, R , B 3 種類の多値データから色相を演 算する色相演算ステ ッ プ と 、  A hue calculation step for calculating the hue from the three types of multi-value data of G, R, and B;
該演算 した彩度および色相を上記パラ メ —タ設定 ステ ッ プの結果と比較し、 上記特定色で表示すべき 画素であるか否かを判定する抽出画素判定ステ ッ プ を有する こ と を特徴とする請求項 2 7 記載の画像フ ア イ リ ング方法。 An extracted pixel determination step of comparing the calculated saturation and hue with the result of the parameter setting step to determine whether or not the pixel should be displayed in the specific color. 28. The image filing method according to claim 27, comprising:
2 9 . 上記画像蓄積ス テ ッ プは、 デー タ蓄積装置に、 読みだす場合に上記第 1 のプ レ ー ンのデー タ が先に読み だせる順序で、 上記第 1 及び第 2 のプ レ ー ンのデータ を 蓄積する こ と を特徴とする請求項 2 1 から 2 8 のいずれ かに記載の画像フ アイ リ ング方法。  29. The image storage steps are stored in the data storage device in the order in which the data of the first plane can be read first when read out. 30. The image filing method according to claim 21, wherein data of the image is stored.
3 0 . 上記画像表示ス テ ッ プは、 上記第 1 プ レー ンの 2 値データ を 白黒画像と して表示する こ と を特徴と する 請求項 2 1 から 2 9 のいずれかに記載の画像フ アイ リ ン グ方法。  30. The image according to any one of claims 21 to 29, wherein the image display step displays the binary data of the first plane as a black and white image. The firing method.
3 1 . 上記入力ス テ ッ プは、 上記文書に対応する画像 をカ ラ ース キ ャ ナによ り G-, R , B 3 種類の多値データ と して入力する こ と を特徴とする請求項 2 1 力ゝら ' 3 0 の いずれかに記載の画像フ アイ リ ング方法。  31. The input step is characterized in that an image corresponding to the document is input as three types of multi-valued data of G-, R, and B by a color scanner. 21. The image filing method according to any one of claims 21 to 30, wherein
3 2 . 上記輝度情報と して、 Gの多 ί直データ に対する 上記 2 値化処理結果を用いる こ と を特徴とする請求項 32. The result of the binarization processing on the G serial data is used as the luminance information.
3 1 記載の画像フ アイ リ ング方法。 31 The image filtering method described in 1.
3 3 . 上記領域判定ス テ ッ プは、 上記入力 された画像 の各画素に対して当該画素が白黒で記載されたモ ノ ク 口 領城か色情報を含むカ ラ ー領城かを判定する カ ラ一ノモ ノ ク ロ 識別ス テ ッ プを有 し、  33. The above-mentioned area determination step determines whether each pixel of the input image is a black-and-white area or a color area including color information. Has a color identification step,
上記選択ス テ ッ プは、 上記カ ラ一ノモ ノ ク 口 識別結果 によ り カ ラ 一領域と 判定された画素に対 しては、 上記 2 値化ステ ッ プで上記 G, R , Β 3 種類の多値データ を疑 似中間処理によ り 2 値化 したディザ処理結果を選択して 上記面像メ モ リ 手段内の第 ϊ 、 第 2及び第 3 のメ モ リ 手 段に出力する The selection step is performed on the G, R, and Β pixels in the binarization step for a pixel determined to be a color area based on the result of the color / monochrome port identification. Suspect three types of multi-valued data The dither processing result binarized by the similar intermediate processing is selected and output to the second, third, and third memory means in the plane image memory means.
こ と を特徴とする請求項 3 1 記載の画像フ アイ リ ング方 法。 31. The image filing method according to claim 31, wherein:
3 4 . 上記選択ステ ップは、 上記カ ラ一ノモ ノ ク ロ識 別ステ ッ プによ り モ ノ ク ロ髌域と判定された画素に対し ては、 当該画素が文字領域と写真領域の何れに属するか を判定 し、 写真領域に属する画素に対して上記 2 値化ス テ ツプで上記 G, R, Β 3 種類の多値データ を疑似中間 処理によ り 2値化 したディ ザ処理結果を選択 して上記画 像メ モ リ 手段内の第 1 、 第 2及び第 3 のメ モ リ 手段に出 力する .  3 4. The above selection step is performed for a pixel determined to be a monochrome area by the above-mentioned color identification area, the pixel is a character area and a photograph area. Of the G, R, and Β3 types of multi-valued data are binarized by pseudo intermediate processing in the binarization step for the pixels belonging to the photographic area. The image processing result is selected and output to the first, second, and third memory means in the image memory means.
こ と を特徴とする請求項 3 3 記載の画像フアイ リ ング方 法。  34. The image filing method according to claim 33, wherein:
3 5 . 上記選択ステ ッ プは、 フルカ ラ 一文書とモー ド 指定された画像に対しては、 上記文字領域に属する画素 に対して上記 2 値化ステ ッ プで上記 G の多値データ を所 定の閾値によ り 2 値化 した単純 2 値化処理結果を選択 し て上記画像メ モ リ 手段内の第 1 、 第 2及び第 3 のメ モ リ 手段に同 じ値を出力する  35. The above selection step is for the full color one document and the image specified in the mode. A simple binarization processing result binarized by a predetermined threshold value is selected and the same value is output to the first, second and third memory means in the image memory means.
こ と を特徴と する請求項 3 4記載の画像フ アイ リ ング方 法。  The image filing method according to claim 34, characterized by this.
3 6 . 上記選択ス テ ッ プは、 モ ノ ク ロ領域と カラ ー鎮 域と が混在する文書とモー ド指定された画像に対しては、 上記文字領域に属する画素に対して上記 2 値化ステ ッ プ で上記 Gの多値デー タ を所 の閾値によ り 2 値化 した単 純 2 値化処理結果を選択 して上記第 1 の メ モ リ 手段に出 力する と共に " 0 " を第 2及び第 3 の メ モ リ 手段に出力 する 36. The above selection step is used for documents in which both the monochrome area and the color area are mixed, and the mode-specified image. For the pixels belonging to the character area, select the simple binarization processing result obtained by binarizing the multi-valued data of G with the predetermined threshold in the binarization step and select the first binarization result. Output "0" to the second and third memory means while outputting to the memory means.
こ と を特徴と する請求項 3 4 記載の画像フ ア イ リ ング方 法。 The image filing method according to claim 34, characterized by this.
3 7 . モノ ク ロ領域と カ ラ 一領域と が混在する文書と モー ド指定された画像に対 して、 上記カ ラ一ノモ ノ ク ロ 識別ス テ ッ プの識別結果を上記画像メ モ リ 手段内の第 4 のメ モ リ 手段に記憶する こ と を特徴と する請求項 3 6 記 載の画像フ アイ リ ング方法。  37. For a document in which both a monochrome area and a color area are mixed and an image specified in the mode, the identification result of the above color identification step is displayed in the above image memo. 37. The image filing method according to claim 36, wherein the image is stored in a fourth memory means in the memory means.
PCT/JP1990/001630 1989-12-15 1990-12-13 Picture filing device and method thereof WO1991009488A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP91900331A EP0458978B1 (en) 1989-12-15 1990-12-13 Picture filing device and method thereof
DE69030178T DE69030178T2 (en) 1989-12-15 1990-12-13 DEVICE AND METHOD FOR STORING IMAGES

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP1/323719 1989-12-15
JP32371989A JP3144788B2 (en) 1989-12-15 1989-12-15 Color document image processing device
US07/479,615 US5128748A (en) 1989-02-15 1990-02-13 Image processing system and apparatus for processing color documents
JP19748990A JPH0481979A (en) 1990-07-24 1990-07-24 Method and device for processing document image
JP2/197489 1990-07-24

Publications (1)

Publication Number Publication Date
WO1991009488A1 true WO1991009488A1 (en) 1991-06-27

Family

ID=27327382

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP1990/001630 WO1991009488A1 (en) 1989-12-15 1990-12-13 Picture filing device and method thereof

Country Status (1)

Country Link
WO (1) WO1991009488A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60145770A (en) * 1983-12-14 1985-08-01 ドクトル‐インジエニエール・ルードルフ・ヘル・ゲゼルシヤフト・ミツト・ベシユレンクテル・ハフツング Fue of color original in case of producing color separation block and method and device for selectively correcting color
JPS62236260A (en) * 1986-04-08 1987-10-16 Canon Inc Image retrieving device
JPS63109655A (en) * 1986-10-27 1988-05-14 Nec Corp Picture signal processing circuit
JPH10180346A (en) * 1996-12-26 1998-07-07 Ube Ind Ltd Extruding method using double-acting type extruding press and its device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60145770A (en) * 1983-12-14 1985-08-01 ドクトル‐インジエニエール・ルードルフ・ヘル・ゲゼルシヤフト・ミツト・ベシユレンクテル・ハフツング Fue of color original in case of producing color separation block and method and device for selectively correcting color
JPS62236260A (en) * 1986-04-08 1987-10-16 Canon Inc Image retrieving device
JPS63109655A (en) * 1986-10-27 1988-05-14 Nec Corp Picture signal processing circuit
JPH10180346A (en) * 1996-12-26 1998-07-07 Ube Ind Ltd Extruding method using double-acting type extruding press and its device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP0458978A4 *

Similar Documents

Publication Publication Date Title
JP3376129B2 (en) Image processing apparatus and method
JP2720924B2 (en) Image signal encoding device
JP4688515B2 (en) Image processing method and image processing apparatus
US5231482A (en) Image filing apparatus and method for thereby encoding and storing various documents
JP3813387B2 (en) Information embedding method and apparatus, and recording medium
US7308155B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium
US5225911A (en) Means for combining data of different frequencies for a raster output device
CN101242469B (en) Image processing apparatus
JPH04217176A (en) Picture processor
JP4156631B2 (en) Image processing method and image processing apparatus
JP2611012B2 (en) Character separation encoding method
US20050036694A1 (en) Compression of mixed raster content (MRC) image data
US7139442B2 (en) Template matching applied to selector planes for multiple raster content (MRC) representation of documents
JP3144788B2 (en) Color document image processing device
WO1991009488A1 (en) Picture filing device and method thereof
JP2007088912A (en) Image processing apparatus and program
JPH0481979A (en) Method and device for processing document image
JP3738807B2 (en) Image processing apparatus and image processing method
JPS59128873A (en) Picture signal converting system of color facsimile
JP2831954B2 (en) Image encoding / decoding device and image processing device
JP2810363B2 (en) Color image coding device
JP2871570B2 (en) Character recognition apparatus and method
JP2686258B2 (en) Image data processing device
JPH07336675A (en) Image encoding and decoding method
JP3092194B2 (en) Image synthesis device

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FR GB GR IT LU NL SE

WWE Wipo information: entry into national phase

Ref document number: 1991900331

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1991900331

Country of ref document: EP

WWG Wipo information: grant in national office

Ref document number: 1991900331

Country of ref document: EP