Image processing apparatus

Abstract: At the time of registration, an image processing apparatus registers color information (R, G, B) from a host computer as permanently registered information in a buffer and as temporarily registered information in a table in accordance with an command from the host computer. The data registered in the buffer also is registered in the table and is used as internal data until initialization is performed. At the time of initialization, the data registered in the table is initialized with the exception of the data that has been registered from the buffer, if the command is indicative of a soft reset. In case of a hard reset, all of the data in the table is initialized.

Description: This invention relates to an image processing apparatus and, more particularly, to an image processing apparatus having memory means, which is referred to as a color table, color palette or the like, for storing information relating to color. A prior art color recording apparatus such as a color printing apparatus disclosed in European Patent Specification EP-A-0,425,253 has color memory means for storing information relating to color, which is referred to as a color table, color palette or the like. This specification was published after the priority date of the present application. In the conventional apparatus of this kind, the contents of the color memory means is always initialized by an initializing command from a host computer or by a reset operation performed at a control panel. As a consequence, even if the contents currently stored in the memory means have been registered personally by the user, the information relating to color must be re-registered whenever initialization is performed, or the contents that have been stored must be saved temporarily in another area before initialization. This constitutes a drawback in the conventional apparatus. A concern of the present invention is to provide an image processing apparatus in which the foregoing drawback of the prior art can be eliminated. Thus an embodiment of the present invention provides an image processing apparatus in which registration of color code can be easy. A further concern of the present invention is to provide an image processing apparatus in which it is unnecessary to perform a troublesome operation such as saving, in another location, the content of data personally registered by the user at the time of initialization. Japanese Patent Abstract No. JP-A-63246263 discloses a control table which enables a character pattern memory to be rewritten without interrupting a printing operation. In accordance with a first aspect of the present invention there is provided image processing apparatus as set out in claim 1. In accordance with a second aspect of the present invention there is provided an image processing method as set out in claim 6. Other features and advantages of the present invention will be apparent from the following detailed description of embodiments of the present invention with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram illustrating the construction of a color recording apparatus according to an embodiment of the present invention; Fig. 2 is a diagram illustrating the structure of a color table shown in Fig. 1; Fig. 3 is a flowchart for describing registration and reset processing performed by a CPU according to this embodiment; Fig. 4 is a flowchart for describing temporary registration processing performed by a CPU according to this embodiment; Fig. 5 is a block diagram illustrating a modification of the color recording apparatus of this embodiment; and Fig. 6 is a flowchart for describing registration and reset processing performed by the CPU in the arrangement of Fig. 5. DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the invention will now be described in detail with reference to the accompanying drawings. Fig. 1 is a block diagram illustrating the construction of a color recording apparatus according to an embodiment of the invention. As shown in Fig. 1, numeral 100 denotes a host computer for outputting printing information, which comprises print data (character code, image data or the like), a control code including a color code for color assignment, and a command for registering color component data corresponding to a color code or the like, to a recording apparatus 2. The recording apparatus 2 includes a controller 21, a color memory unit 22 and a color printing unit 23. The controller 21 includes control means in accordance with the present invention. The memory unit 22 includes a color table 221 serving as memory means according to a feature of the invention, as well as a memory 222 for color-table default values, and a buffer 223 for permanent registration. These memories serve as working areas for color-table initialization and registration update. The memory 222 is constituted by a ROM or a RAM comprising a circuit for back-up. The color printing unit 23 is a color printing mechanism for forming a permanent visible image on recording paper based upon printing information read from the host computer 100. For example, the color printing unit 23 is constituted by an electrophotography printer (laser beam printer) for forming and visualizing a latent image on photoreceptor. The controller 21 has a CPU 3 for executing the actual control operation, a ROM 4 which stores programs executed by the CPU 3, that are in accordance with the flowcharts of Figs. 3 and 4, and a RAM 5 used as the working area of each program and as an area for temporarily saving data at the time of error processing. Fig. 2 is a diagram showing the structure of the color table 221 illustrated in Fig. 1. The color table 221, which is placed in a rewritable random-access memory, has areas for storing the values of standard RGB components serving as color information indicative of color, and areas for storing information relating to registration levels, described below. More specifically, the color table 221 stores, in correlation with table numbers #1 through #n, registration levels indicated by 0 or 1, whether rewriting (updating) is allowed or is not, respectively, and color information (R1, G1, B1) through (Rn, Gn, Bn). The operation of this embodiment will now be described. Fig. 3 is a flowchart for describing registration and reset processing executed by the CPU 3 according to this embodiment, and Fig. 4 is a flowchart for describing temporary registration processing executed by the CPU 3 according to this embodiment. First, the user's own colors (RGB components data) are permanently registered (the registration level is made "1") at numbers 1 through 40 in color table 221 by a color-table registration command from the host computer 100. At this time the host computer 100 makes a permanent registration of registration level "1", which is one of the parameters of the color-table registration command, and outputs the command. In addition, the user's own colors (the data of RGB components) are temporarily registered (the registration level is made "0") at numbers 41 through 64 of the color table 221. In this case, the host computer 100 makes a temporary registration of registration level "0", and outputs the command. More specifically, in response to receipt of the color-table registration command from the host computer 100 at step S1 in the flowchart of Fig. 3, the controller 21 temporarily stores the color information from table numbers #1 through #40 in the permanent registration buffer 223 at step S2, after which the controller 21 updates the contents of table numbers #1 through #40 in the color table 221 using the color information of table numbers #1 through #40 stored in the buffer. At this time, the registration level of each updated table number is set to "1" at step S3. The controller 21 then stores the color information of table numbers #41 through #64 directly in the color table 221 at step S4. In the temporary registration of table numbers #41 through #64 at step S4, a counter indicated by n is set to 41 at step S31 in Fig. 4. If the registration level of table number #n is "1", control is executed in such a manner that the content of this table number is not updated (step S32). If the registration level is not "1", on the other hand, the contents of the color table 221 are updated by the color information from the host computer 100 at step S33. This operation is repeated in this fashion until n = 64 is attained. When the operation ends at n = 64, the processing returns to Fig. 3. Thus, the controller 21 executes control to portion out the storage destinations of the color information, depending upon the indication of the registration level from the host computer 100, and the contents of the registration levels of the color table, and updates the contents of the areas of the color table 221. A case where the apparatus is initialized will now be described. First, in the initialization operation, it is assumed that several resetting commands have been prepared in dependence upon the range over which the initialization is to be made. Two types of reset are made here, namely a hard reset and a soft reset. The former returns memorized contents of the color table 221 to default values stored in the memory 222 and clears buffer 223. The latter preserves permanently registered information, such as color pallet data fonts or the like downloaded through the buffer 223 in color table 221 and user-defined patterns, and clears temporarily registered information (the registration level "0"). Accordingly, when a command from the host computer 100 is indicative of the hard reset (steps S5 and S6 in Fig. 3), all of the contents of the color table 221 are updated at step S7 by the contents of the color-table default-value memory 222 in which the color-table default values have already been registered. Then the registration level is "0". When the command is indicative of the soft reset, on the other hand, control is performed in such a manner that only the temporarily registered contents (the registration level "0") are updated by the contents of the memory 222 for the color-table default values; table contents for which the registration level is "1" are not updated (step S8). According to the soft reset, therefore, the contents of numbers #1 through #40 are preserved and the contents of numbers #41 - #64 are initialized. As a result of the foregoing processing, the user is capable of preserving the permanently registered color table 221 even if other parameters in the apparatus are initialized. In addition, the color table 221 can be utilized more efficiently depending upon the combination of the registration level and reset level. In the description of the flowchart given above, a method of holding a color-table registration command or reset command sent from the host computer 100 is not discussed. In this embodiment, however, it is assumed the command is stored in the RAM 5, regardless of its type. Further, though no illustration is given in Fig. 3, an operation for erasing the color-table registration command or reset command is included in the processing in each of steps S4, S7 and S8. In the embodiment described above, the buffer 223 for permanent registration is provided, besides the color table 221, as a working area. However, this area need not necessarily be provided. In addition, the memory area of Fig. 1 which includes the color table 221 need not be a RAM or ROM, for an external storage device such as a hard disk may be used instead. Further, the color printing unit 23 may be a color laser-beam printer, a color ink-jet printer, a color thermal-transfer printer or a color dot printer. In particular, the ink-jet printer includes a so-called bubble jet printer, of the type in which it utilizes the jet's liquid droplets by film boiling that relies upon thermal energy. Thus, in accordance with the present invention as described above, when recording is performed by employing a user's own color table, initialization of the color table can be utilized efficiently and in a very convenient manner. A modification of the foregoing embodiment will now be described. Fig. 5 is a block diagram illustrating a modification of the color recording apparatus of this embodiment, and Fig. 6 is a flowchart for describing registration and reset processing performed by the CPU in the arrangement of Fig. 5. In Fig. 5, a color recording apparatus 12 in this modification includes the arrangement of Fig. 1 and the reset switches 24 and 25 on an operation panel 26 provided with the apparatus 12. The switches 24 and 25 are electrically connected to the controller in apparatus 12. As for the signals applied to the controller 21, information similar to the reset command described in the foregoing embodiment is delivered. Specifically, the foregoing embodiment does not deal with a case in which the color recording apparatus 2 executes the resetting operation itself, merely by receiving a reset command from the host computer 100. By contrast, this modification is adapted so that the color recording apparatus 12 is itself capable of performing a resetting operation similar to that of the foregoing embodiment. The operation of this modification will be described with reference to Fig. 6. In this modification, also as in the foregoing embodiment, a color-table registration command and a reset command are received from the host computer 100. Since the operations in accordance with each of these commands have already been described in connection with Fig. 3, they need not be described again. The difference between Fig. 3 and Fig. 6, which illustrates the operation of this modification, is step S9. As shown in Fig. 6, this step follows step S5, which is for determining whether the reset command has been received from the host computer 100. Step S9 is for sensing an input from the operation panel 26. If the user presses reset switches 24 or 25 to enter the hard or soft reset command, reset switches 24 or 25 sends a signal indicative of whether or not the reset is to be made to the RAM 5 of the controller in the apparatus 12. This signal is stored in an area different from the area in which the command from the host computer 100 is stored. Based upon the stored reset command, the CPU determines whether the reset command is indicative of the hard or soft reset. The operation from this determination step onward is similar to that of the foregoing embodiment and need not be described again. Furthermore, step S7 or S8 includes an operation for erasing the reset command from the RAM 5 after each updating processing operation ends. Thus, it is possible for the color recording apparatus 12 to perform the resetting operation even by itself without starting up the host computer 100. This makes the resetting operation even simpler than that in the foregoing embodiment. The signal corresponding to the hard reset switch 24 may be provided from a circuit switch of the apparatus 12. Furthermore, a single switch can be provided and adapted to select either the hard or soft resetting operation in accordance with the number of switching. Furthermore, storing color components is not limited to RGB components; it can include Y(Yellow), M(Magenta), C(Cyan) components or Y, I, Q components or L*,a*,b* components. Y, I, Q are parameters defined in a Y, I, Q color space, and L*,a*,b* are parameters defined in a L*, a*, b* color space. In addition, according to the above-mentioned embodiment, a memory area is divided into table numbers #1 - #40 and table numbers #41 - #64. However, the data of color components can be also stored at random. As many apparently widely different embodiments of the present invention can be made without departing from the scope thereof, it is to be understood that the invention is not limited to the specific embodiments thereof, except as defined in the appended claims.

Claims: An image processing apparatus comprising: memory means (22) for storing a plurality of items of color data which plurality of items forms a color table (221), at least one of said items being stored with a first registration level indicating that rewriting is allowed and at least one of said items being stored with a second registration level indicating that rewriting is not allowed; and control means (21) for controlling storage of the color data in said memory means (22), wherein said control means (21), in a first reset mode, is adapted to update the items stored with said first and second registration levels to color-table default values (S7 in Fig. 3), and in a second reset mode, to update the items stored with said first registration level to color-table default values (S8 in Fig. 3). Apparatus according to claim 1, wherein said control means (21) controls storage of the color data in accordance with command data from an external apparatus. Apparatus according to either of claims 1 to 2, wherein the color data comprises red, green and blue components. Apparatus according to any one of claims 1 to 3, wherein the color data is supplied from a host computer. Apparatus according to any one of claims 1 to 4, further comprising non-volatile memory (222) for storing the color-table default values. An image processing method comprising the steps of: storing a plurality of items of color data into a memory (22), which plurality of items forms a color table (221), at least one of said items being stored with a first registration level indicating that rewriting is allowed and at least one of said items being stored with a second registration level indicating that rewriting is not allowed; and controlling storage of the color data in the memory (22), wherein said controlling step, in a first reset mode, updates the items stored with said first and second registration levels to color-table default values (S7 in Fig. 3), and in a second reset mode, updates the items stored with said first registration level to color-table default values (S8 in Fig. 3).

Inventors: MITSUHASHI SHUNYA, MITSUHASHI, SHUNYA
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1991
Main classification: G06K15
IPC codes: B41J29, B41J5, B41J2, G06K15