Now, preferred embodiments of the present invention will be described in detail by referring to the accompanying drawings.
The image analysis unit 10 analyzes the image data stored in the image memory 15 and converts it into image data the print control unit 14 can handle. The trimming unit 12 analyzes the image data stored in the image memory 15 according to a command output from the print setting specification unit 11. The trimming unit 12 then specifies a method of generating edge surrounding area data for an edge surrounding area data interpolating unit 13 and also specifies a direction of printing the image data, thereby converting the image data stored in the image memory 15 into image data that can be printed by the print control unit 14. Based on the image data converted by the image analysis unit 10 and the edge surrounding area data generation method specified by the trimming unit 12, the edge surrounding area data interpolating unit 13 generates image data in the edge surrounding areas in four directions.
The image data developed by the image analysis unit 10 or the trimming unit 12 and the edge surrounding area data generated by the edge surrounding area data interpolating unit 13 are sent to the print control unit 14. The print control unit 14 prints an image on a print medium according to the data received.
In the following, embodiments of outputting a variety of images with no blank margins will be explained in detail by using the multifunction printer 1 shown in
Once the processing is started, at step S101 the print setting specification unit 11 sets a command as specified by the user through the user interface. In this embodiment, a “marginless copy mode with unity magnification factor” is set.
At the next step S102, the scanner unit 16 reads an original put on the scanning table and stores the image data scanned in the image memory 15. More specifically, the scanner unit 16 optically reads a reflection density of the entire image area of the original at a specified resolution and stores the readings as brightness data for red (R), green (G) and blue (B) in the image memory 15 for each pixel.
At step S103 the data stored in the image memory 15 is processed for each pixel by the image analysis unit 10 for conversion into image data that can be printed by the print control unit 14. The print control unit 14 of this embodiment uses six color inks—cyan (C), light cyan (LC), magenta (M), light magenta (LM), yellow (Y) and black (Bk)—to form an image using an ink jet printing method. The image analysis unit 10 therefore performs color separation on the R, G, B brightness data stored in the image memory 15 to convert the brightness data into density data for C, LC, M, LM, Y and Bk for each pixel.
In the case of other than the marginless copying, the density data thus obtained is transferred as is to the print control unit 14 for printing. However, in the marginless copying as in this embodiment, density data for the print medium edge surrounding areas needs to be generated.
As a preliminary step, variables L, S, N and CopyMode are set to their initial values at step S104.
The shifting of the window 300 is performed from the inside toward the outside of the original's edge portions, as indicated by blank arrows in
At step S104, CopyMode is a variable that determines whether the method of generating data for the pixels included in the edge surrounding portions is made random (Random) or constant (Const). It is set to Const as an initial value.
In the subsequent step S105, an average density Avg(N) in the window 300 at the current pixel position N is determined. Then, a density difference between the average density Avg(N) and an average density Avg(N+3) of an area shifted in the L direction by one window, ΔN=|Avg(N)−Avg(N+3), is determined. In the case of
Step S106 compares ΔN determined by step S105 with a preset threshold Th. If ΔN<Th, it is decided that the density change between the area of pixel of interest and the adjoining area is small. The processing moves to step S107. If ΔN>=Th, it is decided that the density change between the areas is large. Then the processing moves to step S110.
At step S107, a check is made as to whether CopyMode is Random or not. If CopyMode is not Random, i.e., CopyMode is Const, it is decided that data at the edge surrounding portions can be generated in the constant CopyMode in at least an area from S to N in the current line L. The processing moves to step S114.
If, on the other hand, step S107 finds that CopyMode=Random, the processing proceeds to step S108, which causes the edge surrounding area data interpolating unit 13 to generate image data at the edge surrounding portions. Executing step S108 means that step S106 has decided that the grayscale change between the adjoining pixel areas is small and also that step S107 has decided that CopyMode is set in Random. That is, since the grayscale variation is large in the area from the data generation start pixel S to the current pixel of interest N, the data generation should appropriately be performed in the Random mode in this area.
For example, in parts of the picture portion at the lower right of
Step S110 checks whether CopyMode is Const or not. If it is not Const, i.e., CopyMode is Random, the step decides that at least in the area from S to N, the data for the edge surrounding portions should be generated in the Random CopyMode, before moving to step S114.
If step S110 finds that CopyMode=Const, it moves to step S111. Executing step S111 means that step S106 has decided that the grayscale change between the adjoining pixel areas is large and also that step S110 has decided that CopyMode is set in Const. That is, since the grayscale variation is small in the area from the data generation start pixel S to the current pixel of interest N, the data generation should appropriately be performed in the Const mode in this area.
In the original shown in
After the CopyMode setting is finished at step S109 or S112, the processing moves to step S113 where it sets the area start pixel S to the current pixel N of interest, before proceeding to step S114.
Step S114 makes a decision as to whether the scan has been performed until N becomes the final pixel of the current line L. If it is found that pixels to be scanned still remain in the current line (the scan has not reached the end of the original), the processing moves to step S115 where it increments the pixel of interest N by three pixels, which is equal to the window size, before returning to step S105. On the other hand if step S114 decides that the window scan has been performed up to the last pixel of the current line, the processing moves to step S116.
Step S116 generates, according to the current CopyMode, density data for the areas where the density data has yet to be created on the current line. With this step, the whole process to be performed on the line of interest L is completed.
In the subsequent step S117, a check is made as to whether the window scan and the density data generation have been finished for all lines. If it is decided that there are lines for which the scan and the density data generation have not been completed, step S118 increments the line L and returns the variables S and N to the initial value 1. Then, the processing returns to step S105 to start the scan on the next line L.
If step S117 has found that the window scan and the density data generation have been performed for all lines in the original, the processing moves to step S119 where it generates density data for four corners of the edge surrounding portions.
When the density data for the four corners have been created by step S119, the processing moves to step S120. At step S120, the print control unit 14 combines the density data of the original's size generated by the image analysis unit 10 and the density data of the edge surrounding portions generated by the edge surrounding area data interpolating unit 13 to create one piece of marginless copy data. Then, using this density data of the copy data, the marginless copying is executed. Now, this processing is complete.
Referring again to
In this embodiment, the processing for a marginless photograph printing using the multifunction printer of
When the processing starts, at step S201 the print setting specification unit 11 sets a command specified from the user through the user interface. Here, a “marginless photograph print mode” is set.
In the next step S202, the card reader unit 17 reads image data from a memory card and stores it in the image memory 15.
The processing in and after step S203 is the same as that for the marginless copying with a unity magnification factor that was explained in embodiment 1. So, detailed explanations for each step are omitted.
The flow charts described above for the two embodiments (
In the above embodiments, the brightness data stored in the image memory 15 has been described to be color-separated by the image analysis unit 10 into the density data in order to generate image data in the edge surrounding portions. This invention, however, is not limited to this process. For example, the image data in the edge surrounding portions may be generated by first determining the amount of change in each RGB brightness data of the edge portions stored in the image memory and by comparing the change with a predetermined threshold. This also produces the intended effect of this invention and is included in the scope of this invention.
Where the image data in the edge surrounding portions is created by using the amount of change in the brightness data, rather than the density data, there is no need to newly generate the image data in the edge surrounding portions by using the density data, assuring an efficient generation of print data. For example, when one wishes to output image data enlarged from the image read by a scanner, the enlargement processing is done using the brightness data. So, the image processing unit needs only to be configured so that the enlargement processing is done using the brightness data and that the data in the edge surrounding portions is generated. This obviates the need to configure the image processing unit in a way that generates the image data in the edge surrounding portions using the density data.
Although the density data in the edge portions has been described to be detected by using the window 300 made up of 3×3 pixels, the window applicable to the above embodiment is not limited to this size. Changes in density or brightness may be detected by averaging the density or brightness in a wider area or by shifting one pixel at a time. It should be noted, however, that the smaller the window size gets, the greater the density difference or brightness difference between the adjoining areas tends to become. It is therefore desired that a proper relation be maintained between the window size and the threshold Th.
In this embodiment we will explain a marginless copy mode in which a trimming area is specified in an original image.
When the processing is started, the print setting specification unit 11 at step S301 outputs a command corresponding to the setting specified by the user through the user interface. In this embodiment, “marginless copy mode with a unity magnification factor” and a trimming area are set.
In the next step S302, the scanner unit 16 reads the original put on the scanning table and stores the image data taken in by the scanner into the image memory 15.
At step S303, the trimming unit 12 cuts an area from the original image stored in the image memory 15 based on the trimming range specified by the print setting specification unit 11 and temporarily determines the printing direction and the upper, lower, left and right edge surrounding portions.
Step S304 checks if in the printing direction temporarily determined by step S303, there is enough original data to be used for the rear edge surrounding portion in the transport direction of the print medium. If it is decided that there is enough original data for the rear edge surrounding portion, the printing direction and the upper, lower, left and right edge surrounding areas that were temporarily set by step S303 are set as final. Then the processing moves to step S306. If it is found that there is not enough original data for the rear edge surrounding portion in the transport direction, the processing moves to step S305 where it changes or converts the printing direction and the upper, lower, left and right edge surrounding areas so that there is enough original data for the rear edge surrounding portion. In a case where there is not enough original data for any of the four edge surrounding portions, as when the trimming area extends over the entire original image, the printing direction is changed or converted in a way that will provide the greatest volume of original data for the rear edge surrounding portion. That is, the printing direction is changed so that the edge surrounding portion with the largest volume of original data lies at the rear end in the transport direction. Then, based on the changed printing direction, the edge surrounding areas are set.
Let us return to the flow chart of
When the data for all the edge surrounding portions in four directions have been generated with the above steps, the processing moves to step S308 where the print control unit 14 combines the trimmed original image data and the generated data for the edge surrounding portions into one piece of marginless copy data. Then, according to the copy data and the printing direction that is set as final, the marginless copying is executed. Now, this processing is completed.
We have explained the process of “marginless copying with a unity magnification factor”. The similar process can also be executed to marginless-print a photograph shot by a digital camera.
When the processing is started, the print setting specification unit 11 at step S401 outputs a command corresponding to the setting specified by the user through the user interface. In this example, a “marginless photograph print mode with a unity magnification factor” and a trimming area are set.
At next step S402 the card reader unit 17 reads image data from a memory card and stores it in the image memory 15.
The processing in and after step S403 is the same as that for the marginless copying with a unity magnification factor that was explained with reference to
As explained above, if, when executing the “marginless printing” in this embodiment, the edge surrounding areas at four ends of a print medium differ in size, the areas for which image data is generated by interpolation can be minimized. So, if errors should occur in the print positions when printing the end portions of the print medium, the “marginless printing” can be realized without producing unnatural, noticeable difference between the trimming area and the edge surrounding areas.
The embodiment 3 has taken up an example case where the rear edge surrounding area is larger than the front, left and right edge surrounding areas and has been described to allocate more original data to the image data of the rear edge surrounding portion. It should be noted, however, that the present invention is not limited to this case. The sizes of the edge surrounding portions required in four directions of a print medium differ from one printing apparatus to another, and the rear end portion does not always require a greater edge surrounding area than other end portions. Whatever the sizes of the edge surrounding portions in four directions and their ratio, as long as a step is included which adjusts the printing direction so as to be able to copy as much of the original data to the image data in any edge surrounding portion as possible, the process is within the scope of this invention.
The embodiment 3 has been described in a case where the trimmed original image and a print medium are similar in shape. Although this case can be said to most efficiently take advantage of the effect of this invention, the invention is not limited to such a case. In a case where the trimmed original image and the print medium are not similar in shape, the original image may be enlarged or reduced in a vertical or horizontal direction so that the trimmed image is inscribed in or circumscribed on an area of the print medium. If the trimmed image is inscribed, there may occur an area even in the print medium in which there is not enough original image data. In such a case, the required data may be created by the interpolation method described earlier. If the trimmed image is circumscribed, there may occur a case where a part of the original image gets out of the print medium. In this case, the areas outside the print medium may be used as the edge surrounding portions outside the trimming frame.
Furthermore, although the above embodiments have used the multifunction printer of
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Laid-Open Nos. 2006-202327, filed Jul. 25, 2006, and 2006-268311, Filed Sep. 29, 2006, which are hereby incorporated by reference herein in their entirety.
Number | Date | Country | Kind |
---|---|---|---|
2006-202327 | Jul 2006 | JP | national |
2006-268311 | Sep 2006 | JP | national |