Method and apparatus for generating images of reduced size

Abstract: Representative pixel data is extracted for each predetermined region in an original image according to priority of color codes representing colors. The representative pixel data constitute a reduced image. The reduced image is a clear and complete reproduction of the original image without line missings and distortion of a desired linework. M pieces of pixel data on each scanning line are successively read until the pixel data reaches a maximum value Xmax in a main scanning direction. One pixel data having a color code with the highest priority is selected from the read pixel data according to a priority code table TBL. The results of selection for two adjacent scanning lines are compared based on the priority code table TBL, and final representative pixel data is selected.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a method of and an apparatus for generating image data of a reduced image based on multi-color image data consisting of pixel codes, which represent an original image including characters or plane figures. Description of the Prior Art Since image processing workstations generally deal with image data with a relatively high resolution, such image data is reduced by lowering the resolution before it is output to a printer or a display of a relatively lower resolution. Here the reduction denotes decrease in the number of pixels constituting one image, and does not always mean contraction of an actual image size. A reduced image generator for generating a reduced image, for example, successively extracts image data of one pixel at a predetermined position from every 2x2 pixel unit in a whole image and forms a reduced image with the extracted image data. The reduction factor is four in this case. Fig. 1A shows an example of such reduction process. The image of Fig. 1A includes lines consisting of pixels with a predetermined color code, which are filled with slant lines. Pixel data at the left upper position within each 2x2 pixel unit is extracted. The left upper position is given an open circle in Fig. 1A. For example, pixel data D(1,1) is extracted from the unit including pixel data D(1,1), D(2,1), D(1,2), and D(2,2). Pixel data D(3,1) is extracted from another unit including pixel data D(3,1), D(4,1), D(3,2), and D(4,2). The extraction process is repeated for the whole image, and a reduced image shown in Fig. 1B is generated based on the extracted pixel data. Since the conventional reduced image generator extracts a pixel data at a predetermined position in each pixel unit, a line of one pixel width sometimes disappears from a resultant reduced image. For example, part of the lines in the original image of Fig. 1A disappears in the reduced image shown in Fig. 1B. In a linework image including characters or figures, such line missing causes distortion of the characters or plane figures. SUMMARY OF THE INVENTION An object of the present invention is to provide an improved reduced image generator and a method therefor which generates a reduced image of an original image without line missing nor image distortion. The present invention is directed to a method of and an apparatus for generating reduced image data based on original image data including pixel data representing an original image with respect to each pixel. An apparatus and a method defining the invention are set out in claims 1 and 11, respectively. Preferred embodiments and further aspects of the invention are defined in the dependent claims. The objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1A is an explanatory view showing an example of an original linework image; Fig. 1B is an explanatory view showing an example of a reduced image generated by the prior art apparatus; Fig. 2 is a block diagram showing a basic structure of an apparatus for generating a reduced image according to the present invention; Fig. 3 is a block diagram schematically illustrating structure of a reduced image generator embodying the present invention; Fig. 4 is a flowchart showing image processing steps by a processing unit 10; Figs. 5A and 5B are flowcharts showing steps for generating a reduced image in the first embodiment of the invention; Fig. 6 is an explanatory view illustrating a priority code table stored in a RAM; Fig. 7 is an explanatory view showing an example of image data to be processed by the generator of the embodiment; Fig. 8 is an explanatory view illustrating process of data reduction in the first embodiment; Fig. 9 is an explanatory view showing an example of a resultant reduced image produced by processing the image data of Fig. 7 with the generator of the embodiment; Fig. 10 is an explanatory view showing another example of a reduced image produced by the generator of the embodiment; Fig. 11 is a flowchart illustrating steps for generating a reduced image in a second embodiment of the invention; Fig. 12 is an explanatory view illustrating process of data reduction in the second embodiment; and Fig. 13 is an explanatory view showing another example of a priority code table. DESCRIPTION OF THE PREFERRED EMBODIMENTS Fig. 2 is a block diagram showing a basic structure of an apparatus for generating a reduced image according to the present invention. The apparatus includes a priority memory unit M1, an extraction unit M2, and an reduced image generation unit M3. The extraction unit M2 includes a judging unit M21 and a representative pixel data selection unit M22. The priority memory unit M1 stores an order of priority of at least one color code representing a color. The extraction unit M2 extracts representative pixel data from plural pixel data within each region of a predetermined shape in the original image according to the order of priority. The judging unit M21 judges whether a color code of the plural pixel data is stored in the priority memory M1. The representative pixel data selection unit M22 selects the representative pixel data according to the order of priority when at least one color code of the plural pixel data is stored in the priority memory unit M1, and selects pixel data at a predetermined pixel position in each region as the representative pixel data when the color code of the plural pixel data is not stored in the priority memory unit M1. The reduced image generation unit M3 generates a reduced image represented by the representative pixel data for each region in the original image. Here the color code includes information of a hue, saturation, and density of middle tone color; the color code is not just a hue indicative of primary colors including magenta, cyan, and yellow. In the apparatus, representative pixel data of a predetermined color with a high priority is extracted. A reduced image reproduced by those representative pixel data represents lineworks of the high priority color without line missing. Fig. 3 is a block diagram showing a structure of a reduced image generator of a first embodiment of the present invention. The reduced image generator includes a processing unit 10, which has a CPU 1, a ROM 3, and a RAM 5, an image scanner 12 for reading an original image to produce raster data, an interactive terminal 14 for giving instructions to execute data reduction process and for displaying a resultant image, and an external magnetic disk unit 16 for storing various data. The processing unit 10 is an arithmetic logical operation circuit. The CPU 1 executes various processes according to programs stored in the ROM 3, and transmits data via a common bus 17 from or to an image input port 20 connected to the image scanner 12, a terminal controller 22 connected to the interactive terminal 14, and a disk controller 24 connected to the magnetic disk unit 16. The image scanner 12 optically scans a black and white image of an original 12a placed on a stand to obtain binary image data, and outputs the binary image data in a run-length data format. Here the original image includes a linework such as a character or a plane figure. The interactive terminal 14 includes a keyboard, a tablet, and a mouse for giving instructions, and a CRT display 14a for displaying a resultant image. The CPU 1 executes the following processes according to the instructions input through the terminal 14: storing image data of a high resolution (for example, 2,400 lines/inch) read by the image scanner 12 into the magnetic disk unit 16; specifying a color code representing a color for each image portion to produce a color linework image; and reducing the color linework image by lowering the resolution of the image and output the reduced image to the magnetic disk unit 16 or the CRT display 14a. The terminal 14 gives instructions to execute such a series of image processing to the processing unit 10 and displays processed intermediate images or a resultant image on the CRT display 14a. Figs. 4, 5A, and 5B are flowcharts showing image processing executed by the processing unit 10. The processing unit 10 firstly executes input processing of image data at step 100 of Fig. 4. In this step, run-length data read by the image scanner 12 is sent to the processing unit 10 via the image input port 20, and developed into raster data in the processing unit 10. The raster data is also stored in a predetermined region of the RAM 5. The raster data is also stored in the magnetic disk unit 16 at step 200. The program then proceeds to step 300, at which color codes are semi-automatically allocated to image portions of the image represented by the raster data stored in the RAM 5 as follows: The processing unit 10 first automatically allocates a different temporary color or a predetermined color to each closed area of the image. An operator then specifies respective colors for areas other than the closed areas, and modifies the allocated colors, whereby color codes for all of the pixel are determined. In specifying colors, the operator defines an area to be colored with the mouse, and allocates a color code to the area through the keyboard of the terminal 14. The program then proceeds to step 400 at which the processing unit 10 creates a priority code table TBL representing a selectable order of priority of color codes. The priority code table TBL includes at least one color code, and is used for extracting representative pixels which constitute a reduced image. As shown in Fig. 6, the priority of the color code increases as the position of the color code in the table goes up. In the embodiment, color codes indicative of colors C1, C2, and C3 have decreasing priorities in this order. In this embodiment, the priorities of other colors C4 and C5 are not required and thus not registered in the table TBL. At step 400, the operator inputs the color codes indicative of the colors C1, C2, and C3 in the order of priority through the terminal 14. The processing unit 10 creates the priority code table TBL on the RAM 5 based on the operator's input. At step 500, data reduction processing is executed for reducing the raster data to which color codes are specified. Figs. 5A and 5B show details of such data reduction processes. The processing unit 10 firstly clears a variable j to zero at step 510; and clears a variable i and a flag F to zero, and sets a variable k to one at step 520. The program then proceeds to step 530 at which pixel data D shown below are read out of the raster data. The pixel data is a piece of the raster data for one pixel. The position of the pixel data D is defined by coordinates (x,y) consisting of a variable x in a main scanning direction and a variable y in a subscanning direction. At step 530, M pieces of the following pixel data D, where M is the number of the pixel data, on a first scanning line are read out: pixel data D(M*i+1, N*j+k), pixel data D(M*i+2, N*j+k), ... pixel data D(M*i+M, N*j+k) where M and N are integers, and the symbol * denotes multiplication. The integers M and N are reduction factors in the main scanning direction and the subscanning direction, respectively. Suppose both of the reduction factors M and N are equal to two, the pixel data D(1,1) and D(2,1) are read out at step 530 of the first cycle of processing, where i=0, j=0, and k=1. The color codes of the pixel data D read out at step 530 are compared with those in the priority code table TBL at step 540. When the color code of the pixel data D is registered in the priority code table TBL, the program proceeds to step 550 at which pixel data D with a color code of the highest priority is selected as temporary representative pixel data out of all the pixel data D read out at step 530. On the other hand, when an identical color code does not exist in the priority code table TBL at step 540, the program proceeds to step 560 at which the first pixel data D(M*i+1, N*j+k) is selected as temporary representative pixel data out of the all pixel data D read out at step 530. Alternatively, any one of the pixel data read out at step 530 may be selected at step 560. In the example of Fig. 7, since both of the pixel data D(1,1) and D(2,1) have a color code C5, the identical color code is not found in the priority code table TBL at step 540 and the pixel data D(1,1) is selected at step 560. On the contrary, when pixel data D(3,1) and D(4,1) are read out at step 530 in the second cycle of processing (where i=1,j=0,and k=1), an identical color code is found in the priority code table TBL step 540, and the pixel data D(3,1) with the color code C1 is selected at step 550. After step 550 or step 560, it is judged whether the value of the flag F (described later) is equal to one or not at step 570. Since the flag F is cleared to zero at step 520, the answer is NO at step 570, and the program skips step 580 (described later) and proceeds to step 590. At step 590, the pixel data D selected at step 550 or 560 is stored in a predetermined position of a frame buffer FB in the RAM 5, that is, a position B( i ) dependent on the variable i . The program then proceeds to step 600 at which the variable i is increased by one. At step 610, the product of the reduction factor M multiplied by the variable i is compared with a maximum value Xmax in the main scanning direction. When the product is smaller than Xmax, the program returns to step 530 and steps 530 through 610 are repeated. Fig. 8 schematically illustrates the process of pixel data selection. Arrows in solid lines in Fig. 8 denote pixel data which are selected, and those in broken lines denote pixel data which are not selected. In the example of Fig. 7, two pixel data D(1,1) and D(2,1) on a first scanning line, where the coordinate in the subscanning direction y is equal to one, are read out at step 530, and the first pixel data D(1,1) is selected out of the two pixel data at step 560. The next two pixel data D(3,1) and D(4,1) on the first scanning line are then read out at step 530, and the pixel data D(3,1) with the color code C1 of the higher priority is selected at step 550. A pair of pixel data D on the first scanning line are thus successively read out until the pixel data reaches the maximum of the first scanning line, Xmax. Pixel data with a color code of the higher priority is then selected according to the priority code table TBL and stored in the predetermined position B(i) in the frame buffer FB. When the product of the reduction factor M multiplied by the variable i is equal to or greater than the maximum value Xmax at step 610, the program proceeds to step 620 of Fig. 5B. At step 620, the flag F is set to one and the variable i is cleared to zero, and the variable k is increased by one at step 630. The program then proceeds to step 640 at which the variable k is compared with the reduction factor N in the subscanning direction. When k is not greater than N, the program returns to step 530 and steps 530 through 640 are executed for a second scanning line. When the value of the flag F is set to one at step 620, the answer is YES at step 570 in the repeated routine, and the program proceeds to step 580, at which the color code of the pixel data selected at step 550 or 560 is compared with that of the temporary representative pixel data D previously stored in the predetermined position B(i) in the frame buffer FB, and the pixel data with the higher priority of the two is selected. This selection is also executed according to the priority code table TBL. When at least one of the color codes of the two selected pixel data exists in the priority code table TBL, pixel data D with a color code of the highest priority is selected. On the other hand, when both of the color codes of the two selected pixel data do not exist in the priority code table TBL, the temporary representative pixel data D stored in the predetermined position B(i) in the frame buffer FB is selected. The process from step 530 through step 640 is explained in detail based on the example of Fig. 7 along with Fig. 8. After the processing of the first scanning line, two pixel data D(1,2) and D(2,2) on the second scanning line are read out as shown in Fig. 8. The pixel data D(1,2) has a color code C5 and the pixel data D(2,2) has a color code C2. Since the color code C2 exists in the priority code table TBL, the pixel data D(2,2) with C2 is selected. The next two pixel data D(3,2) and D(4,2) are then read out. Since the two pixel data have the same color code C2, the first pixel data D(3,2) is selected. A pair of pixel data D on the second scanning line are thus successively read out until the pixel data reaches the maximum Xmax in the main scanning direction. The pixel data D selected on the second scanning line are successively compared with the temporary representative pixel data D on the first scanning line previously stored in the frame buffer FB. The pixel data of the higher priority of the two is then stored or rewritten in the predetermined position B(i) in the frame buffer FB at steps 580 and 590. In the example of Fig. 7, the pixel data D(2,2), D(3,2), and D(5,2) which are selected on the second line are compared with the temporary representative pixel data D on the first scanning line previously stored in the frame buffer FB. The pixel data D with the color codes C2, C1, C2, ... are thus stored in line in the frame buffer FB after the processing of the first and second scanning lines. When the variable k is judged to be greater than the reduction factor N at step 640, the program proceeds to step 650 at which image data in the frame buffer FB is output to the magnetic disk unit 16 or the CRT display 14a of the terminal 14 (more precisely, a refresh memory of the CRT). Namely, reduced image data including only one scanning line obtained by processing the first and second scanning lines is output, for example, the CRT display 14a. The program then proceeds to step 660 at which the variable j is increased by one, and to step 670 at which it is judged whether processing of all the raster data is completed. When the answer is NO, the program returns to step 520, and steps 520 through 670 are repeated. By repeated execution of the routine, reduced image data for the third and fourth scanning lines and those for the fifth and sixth scanning lines are successively displayed, for example, on the CRT display 14a. When completion of the processing is recognized at step 670, the program goes to the end of Fig. 4 and exits the routine. As described above, in the data reduction process of Figs. 5A and 5B, a pair of pixel data D on the first scanning line are successively read out until the pixel data reaches the maximum Xmax in the main scanning direction. Pixel data D with a color code of the higher priority of the two is selected according to the priority code table TBL and stored in the frame buffer FB as temporary reduced image data. The same processing is repeated for the second scanning line, and pixel data D with a color code of the higher priority of the two is selected. The selected pixel data D of the second scanning line is then compared with that of the first scanning line previously stored in the frame buffer FB. From the two pixel data selected in the first and second scanning lines, the pixel data with a color code of the higher priority is stored in the frame buffer FB as representative pixel data and output, for example, to the CRT display 14a. Such processing is repeated for the third and fourth scanning lines, the fifth and sixth scanning lines, and the following scanning lines, and the selected pixel data are successively displayed on the CRT display 14a. When the maximum Xmax in the main scanning direction is not an integral multiple of the reduction factor M or when a maximum value Ymax in the subscanning direction is not an integral multiple of the reduction factor N, virtual pixels are added to the peripheral of the image so as to change the number of pixels in the main scanning direction and that of the subscanning direction into integral multiples of M and N, respectively. For the virtual pixels, pixel data with a color code of the lowest priority is allocated for example. Accordingly, the pixel data of the higher priority is efficiently extracted even when Xmax or Ymax is not an integral multiple of M or N. By the data reduction process described above, pixel data D with a desired color code is extracted from a pixel unit including MxN pixels as representative pixel data for a reduced image. The resultant reduced image is a clear, complete reproduction of the original image without line missings and damages of the desired linework part. Since the original color image includes characters or plane figures in the above embodiment, part of the desired linework sometimes disappears according to the conventional method and the resultant reduced image is far different from the original image. The method of the embodiment, however, allocates a higher priority to the color code of a desired linework, thus forming a reduced image of improved reproducibility. The advantage of the embodiment is also seen in Fig. 9 illustrating a resultant reduced image produced from the image data of Fig. 7, and in Fig. 10 illustrating a resultant reduced image produced by giving the highest priority to the color code of the pixels which are shaded in Fig. 1A. Namely, the desired linework in the original image is completely reproduced. Another advantage of the embodiment is that the color code (the value on the priority code table TBL) of the desired linework for a reduced image is freely changed through the terminal 14, thus forming any desired reduced image. A second embodiment of the invention is described below along with Fig. 11. The second embodiment is similar to the first embodiment except the data reduction process executed by the CPU 1; the apparatus has the same structure as Fig. 3 and executes the same main routine as Fig. 4. Steps 810, 820, 840, 850, 860, 880, 890, 900, and 910 of Fig. 11 are respectively the same as steps 510, 520, 540, 550, 560, 600, 610, 660, and 670 of Figs. 5A and 5B. When the program starts the routine, variables j and i are cleared to zero at steps 810 and 820. Pixel data for MxN pixels starting from D(M*i+1, N*j+1) are successively read out of image data at step 830. Here M and N respectively denote reduction factors in a main scanning direction and subscanning direction. When both of the reduction factors M and N are equal to two, pixel data D(1,1), D(2,1), D(1,2), and D(2,2) are read out in the first cycle of the routine, where i=0 and j=0. A collection of four pixel data is thus successively read out in the repetition of the routine; in the second cycle, pixel data D(3,1), D(4,1), D(3,2) and D(4,2) are read out. The color codes of the pixel data D read out at step 830 are compared with those in the priority code table TBL stored in the RAM 5 at step 840. When at least one color code of the four pixel data D exists in the priority code table TBL, the program process to step 850 at which pixel data D with a color code of the highest priority is selected out of the four pixel data D. On the other hand, when no identical color codes are found in the priority code table TBL at step 840, the program proceeds to step 860 at which the first pixel data D(M*i+1, N*j+1) is selected out of the four pixel data D read out at step 830. In the example of Fig. 7, the pixel data D(2,2) with the color code C2 is selected out of the four pixel data D(1,1), D(2,1), D(1,2), and D(2,2), and the pixel data D(3,1) with the color code C1 is selected out of the pixel data D(3,1), D(4,1), D(3,2), and D(4,2) as shown in Fig. 12. The program then proceeds to step 870 at which the pixel data selected is output as the representative pixel data to the CRT display 14a. At step 880, the variable i is increased by one, and at step 890 the product of the reduction factor M and the variable i is compared with the maximum Xmax in the main scanning direction. When the product is smaller than Xmax, the program returns step 830, and steps 830 through 890 are repeated. By repeated execution of these steps, representative pixel data D(i) is selected for every MxN pixel unit along the main scanning direction, and is output to the CRT display 14a. The variable j is then increased by one at step 900, and it is judged whether processing of all the raster data is completed or not at step 910. When the answer is NO, the program returns to step 820, and steps 820 through 910 are repeated. Pixel data of the highest priority are thus extracted for every MxN pixel unit in the whole image to form a reduced image on the CRT display 14a. When the processing of the whole image is completed at step 910, the program exits the routine. The reduced image on the CRT display 14a of the second embodiment includes a linework with a color of the highest priority, and is a complete reproduction of the original image without line missings and damages of the desired linework as the first embodiment. Although in the priority code table TBL the priority increases as the position of the color code goes up in the first and second embodiments, another table can be used instead where only the order of priority is registered at each address of the RAM 5 as shown in Fig. 13 and where a color code is allocated to each address. In such a table, the equivalent priority can be given to two or more color codes. The allocation of the equivalent priority to plural color codes may be admitted either when image data with color codes of the equivalent priority are not adjacent to one another or when either of those adjacent image data can be selected without any trouble. Although the present invention has been described and illustrated in detail, it is clearly understood that the same is by way of illustration and example only and is not to be taken by way of limitation, the scope of the present invention being limited only by the terms of the appended claims. The features disclosed in the foregoing description, in the claims and/or in the accompanying drawings may, both, separately and in any combination thereof, be material for realising the invention in diverse forms thereof.

Claims: An apparatus for generating a reduced image based on original image data representing an original image having linework including plural pixels, the original image data including pixel data for each pixel in said original image, each said pixel data being expressed in one of plural color codes, the apparatus comprising: an image memory for storing original image data representing said original image, said original image being divided into a plurality of regions each having a predetermined shape and comprising plural pixels; a priority memory (M1) for storing an order of priority of said color codes; extraction means (M2) for extracting, for each of said regions, only one representative pixel data from the plural data within said each region according to said order of priority, wherein said extraction means includes judging means (M21) for judging whether said color code of each of said plural pixel data is stored in said priority memory (M1) and representative pixel data selection means (M22) for selecting, as said only one representative pixel data, the pixel data of that pixel from said plural pixels within said each region which has a color code with the highest priority according to said order of priority if at least one color code of said plural pixels in said region is stored in said priority memory (M1); and reduced image generation means (M3) for receiving said extracted only one representative pixel data and displaying a reduced image based upon said extracted only one representative pixel data, for each region in said original image, thus effecting by the assignment of color code priorities an improved reproduction of the linework of the original image by the reduced image. An apparatus in accordance with claim 1, wherein said representative pixel data selection means (M22) of said extraction means (M2) is also for selecting pixel data at a predetermined pixel position in each region as said representative pixel data if none of said color codes of said plural pixels in a said each region is stored in said priority memory (M1). An apparatus in accordance with claim 2, wherein said region has a rectangular shape defined by M pixels in a main scanning direction and N pixels in a subscanning direction on said original image, where M and N are integers. An apparatus in accordance with claim 3, wherein said extraction means (M2) further comprises: a plural pixel data selection means for selecting plural pixel data within each region of said rectangular shape; and said representative pixel data selection means (M22) selects said representative pixel data from the selected plural pixel data. An apparatus in accordance with claim 3, wherein said extraction means (M2) further comprises: a plural pixel data selection means for successively selecting M pieces of pixel data for pixels located consecutively on a scanning line in the main scanning direction; and first extraction means for extracting one pixel data from said M pieces of pixel data as temporary pixel data, said extracted pixel data being the one having the highest priority according to said order or priority; and wherein said representative pixel data selection means (M22) selects said one representative pixel data from a number N of said temporary pixel data extracted from a same number N of consecutive scanning lines in said main scanning direction, wherein said number N of temporary pixel data represent a consecutive positions in said subscanning direction. An apparatus in accordance with claim 5, wherein said priority memory (M1) stores a priority table containing said color codes such that said order of priority is determined by respective addresses of said color codes in said priority memory. An apparatus in accordance with claim 5, wherein said priority memory (M1) stores a priority table containing numbers each representing a position in said order of priority such that said color codes can be used as respective addresses of said numbers in said priority memory. An apparatus in accordance with claim 7, wherein at least two of said numbers representing a position in said order of priority ar equal to each other. An apparatus in accordance with claim 3, further comprising: image reading means (12) for optically reading said original image to obtain first image data; original image generation means (10) for allocating a specified color code to a defined area of said original image to generate said original image data on the basis of said first image data; and reduced image outputting means (10) for outputting said reduced image supplied from said reduced image generation means (M3) to an external memory (16). An apparatus in accordance with claim 9, wherein said extraction means (M2) further comprises: means for adding virtual pixels not included in the linework of the original image, said virtual pixels having virtual pixel data and representing positions at the peripheral of said original image to make the numbers of pixels in the main scanning direction and the subscanning direction integral multiples of M and N, respectively. A method of generating a reduced image based on original image data representing an original image having linework including plural pixels, the original image data including pixel data for each pixel in said original image, each said pixel data being expressed in one of plural color codes, the method comprising the steps of: (a) storing original image data representing said original image, said original image being divided into a plurality of regions each having a predetermined shape and comprising plural pixels; (b) determining an order of priority of said color codes and storing the order of priority in a priority memory; (c) extracting, for each of said regions, only one representative pixel data from the plural data within said each region according to said order of priority, (c-1) judging whether said color code of each of said plural pixel date is stored in said priority memory; and (c-2) selecting, as said only one representative pixel data, the pixel data of that pixel from said plural pixels within said each region which has a color code with the highest priority according to said order of priority if at least one color code of said plural pixels in said region is stored in said priority memory; and (d) receiving said extracted only one representative pixel data and generating and/or displaying a reduced image based upon said extracted only one representative pixel data, for each region in said original image, thus effecting by the assignment of color code priorities an improved reproduction of the linework of the original image by the reduced image. A method in accordance with claim 11, comprising the step of selecting pixel data at a predetermined pixel position in each region as said one representative pixel data if none of said color codes of said plural pixels in said each region is stored in said priority memory. A method in accordance with claim 11 or 12, wherein said region has a rectangular shape defined by M pixels in a main scanning direction and N pixels in a subscanning direction on said original image, where N and M are integers. A method in accordance with claim 13, wherein said step (c) further comprises the step of: (c-3) selecting plural pixel data within each region of said rectangular shape before said step (c-2); and at said step (c-2), selecting said representative pixel data from the selected plural pixel data. A method in accordance with claim 13, wherein before said step (c-2), said step (c) further comprises the steps of: (c-3) successively selecting M pieces of pixel data for pixels located consecutively on a scanning line in the main scanning direction; and (c-4) extracting one pixel data from said M pieces of pixel data as temporary pixel data, said extracted pixel data being the one having the highest priority according to said order of priority; and wherein at said step (c-2), said one representative pixel data is selected from a number N of said temporary pixel data extracted from a same number N of consecutive scanning lines in said main scanning direction, wherein said number N of temporary pixel data represent consecutive positions in said subscanning direction. A method in accordance with claim 13, further comprising the steps of: (e) optically reading said original image to obtain first image data before said step (a); (f) allocating a specified color code to a defined area of said original image to generate said original image date on the basis of said first image data before said step (a); and (g) outputting said reduced image to an external memory after said generating in said step (d). A method in accordance with claim 16, wherein said step (c) further comprises the step of: (h) adding virtual pixels not included in said linework of plural pixels of the original image, said virtual pixels having virtual pixel data and representing positions at the peripheral of said original image to make the numbers of pixels in the main scanning direction and the subscanning direction integral multiples of M and N, respectively.

Inventors: YAMAGUCHI KATSUYA DAINIPPON SC, YAMAGUCHI, KATSUYA, YAMAGUCHI, KATSUYA, DAINIPPON SCREEN MFG. CO., LTD
Applicants: DAINIPPON SCREEN MFG, DAINIPPON SCREEN MFG. CO., LTD.
Application year: 1991
Main classification: G06T11
IPC codes: G06T1, G09G5, G06T3, H04N1