Embodiments described herein relate generally to an image formation device and an image formation method.
An image formation device stores an image after reading a document and transmits the image as being attached to a mail. However, when the image formation device includes a memory having small size, the size of an image file is to be limited.
Aspects of this disclosure will become apparent upon reading the following detailed description and upon reference to the accompanying drawings. The description and the associated drawings are provided to illustrate embodiments of the invention and not limited to the scope of the invention.
Embodiments according to the invention will be hereinafter described with reference to the drawings.
According to one aspect of the invention, an image formation device includes an image reading unit to read a document according to a scan parameter to obtain an image data having a first data size; a control unit to control changing the first data size to the second data size due to change of the scan parameter, and calculate the second data size based on the changed scan parameter; and a displaying unit to display the second data size and a preview of image based on the second data size.
According to another aspect of the invention, an image formation device includes means for reading a document according to a scan parameter to obtain an image data having a first data size; means for controlling changing the first data size to the second data size due to change of the scan parameter; means for calculating the second data size based on the changed scan parameter; and means for displaying the second data size and a preview of image based on the second data size.
According to another aspect of the invention, an image formation method includes reading a document according to a scan parameter to obtain an image data having a first data size; controlling changing the first data size to the second data size due to change of the scan parameter; calculating the second data size based on the changed scan parameter; and displaying the second data size and a preview of image based on the second data size.
In the first embodiment, when a document is read as image data, an image formation device calculates provisional data size of the read image data, and then, displays the provisional data size and a preview of the image based on the provisional data size at a displaying unit. A user verifies the data size and the image preview and changes image resolution so that the data size of the read image is to be desired data size.
The scanner 11, the scanner controller 12 and the memory 13 operate as an image reading unit 10 to supply an image to the image formation device 101 in the copying function and the scanning function. The scanner 11 reads a document as color image data (i.e., multi-values image data) or monochrome image data by optically scanning a document surface. The scanner controller 12 controls the scanner 11. The memory 13 stores the color image data or the monochrome image data read by the scanner 11.
The image processing unit 14 performs a digital signal process on the image data stored in the memory 13.
The host I/F controller 15 supplies the image data to the image formation device 101 in the printing function. The host I/F controller 15 receives print data (i.e., code data such as character codes to create image data, or image data) from an external host device 100. For example, the external host device 100 is a client computer (PC) or a portable electronic device. There may be two or more external host devices 100. The image formation device 101 and the external host device 100 are connected via the host I/F controller 15 with local connection such as IEEE 1284 and USB, or wired or wireless network connection, for example.
The printer engine 16, the printer controller 17 and the image input unit 18 output image data in the copying function, the scanning function and the print function. The printer engine 16 forms image data on a printing medium by utilizing an image-forming method such as a laser method, an LED method and an ink-jet method. The printer controller 17 controls the printer engine 16. The image input unit 18 inputs image data to the printer engine 16.
A processor 20 (i.e., a control unit) controls each component of the image formation device 101 via the bus 19. Programs to be executed by the processor 20 are stored in the ROM 21. The processor 20 performs calculation of data size of the image data of the document read by the image reading unit 10 and making a change of the data size. Here, the processing performance may be enhanced by mounting plural processors 20.
The RAM 22 is utilized to temporally store processing data to be used by each component including the processor 20 via the RAM controller 23. The image data is stored in the RAM 22, for example. Here, a memory may be included in addition to the RAM 22.
The NVRAM 24 is a non-volatile memory and stores intrinsic information of the image formation device 101.
The displaying unit 25 is a user interface (UI) to display device operation. The displaying unit 25 may be a touch button to display operation of the image formation device 101 or an indicator (i.e., an indicator such as LED and LCD, and a speaker) to indicate operational status. In the first embodiment, the displaying unit 25 displays data size of image data and an image preview based on the data size. The displaying unit I/F controller 26 manages data input/output between the displaying unit 25 and other components.
Next, an image formation method in the image formation device 101 will be described with reference to
When the data size is determined not to be desirable as verifying “Data Size” 27 on the displaying unit 25, a user presses the “Select Resolution” button 30 to change “Resolution” 29. When the user determines that “Data size” 27 is larger than desired data size, for example, “Resolution” 29 (i.e., 600 dpi) is changed to 300 dpi with the “Select Resolution” button 30.
The user presses the “Re-scan” button 31 to perform re-scanning. Further, the user presses the “OK” button 32 to determine setting. The user presses the “Previous” button 33 to shift “Preview” 28 to the previous page. The user presses the “Next” button 34 to shift “Preview” 28 to the next page.
As described above, when the user verifies “Data size” 27 and presses the “Select Resolution” button 30 to change “Resolution” 29, the displaying unit 25 displays “Resolution Selecting Unit” 35 as shown in
Resolution setting can be performed for each page of the image data. That is, even in the image data of one file having plural pages, the resolution may be 600 dpi or 300 dpi according to each page. Switching of pages is performed by pressing the “Previous” button 33 or the “Next” button 34.
In the flowchart of
In the flowchart of
Next, a calculation method of the hypothetic data size will be described. The data size after changing of “Resolution” 29 is acquired by following Equation (1).
File size after changing=((Changing resolution)2/(Scanned resolution)2)×(Scanned file size) (1)
Here, it is assumed that “Resolution” 29 is changed from 600 dpi to 300 dpi and the scanned data size is 400 KB, for example. A calculation result of 100 KB is acquired by substituting the above values into Equation (1). That is, when “Resolution” 29 is changed from 600 dpi to 300 dpi, the data size after changing is to be 100 KB.
Next, a creation method of “Preview” 28 of the image data when “Resolution” 29 is changed to be half will be described with reference to
In the first embodiment, when the resolution is changed, processing is performed sequentially from the left side for each column from the upper side. That is, processing is performed sequentially from the pixel at the left-upper side as pixels positioning at (0, 0), (0, 1), (0, 2), . . . in
The operation to obtain the image data A as changing the resolution of the scanned image data to be half will be described with reference to a flowchart of
Next, in S10, it is determined whether or not the processed pixel count of the X-axis of the scanned image data is smaller than the maximum value in the X-axis being the lateral direction (i.e., the pixel count aligning in the X-axis direction). Here, the processed pixel count of the X-axis denotes the number of pixels having the process to change resolution completed in one row of the lateral direction (i.e., the X-axis direction) including the pixel assigned by the variables (X, Y). For example, assuming the pixel at (0, 0) in
Here, it is assumed that the variables (X, Y) assigns (0, 0). The processed pixel count of the X-axis is “0” being the same as X. Accordingly, in S10, the processed pixel count of the X-axis is determined as being smaller than the maximum value (i.e., 99) of X of the X-axis including the pixel assigned by the variables (X, Y) (“Yes” in S10). Next, it is determined whether or not a processed pixel count of the Y-axis being the same as Y is smaller than the maximum value (i.e., 99) of Y of the Y-axis (i.e., the vertical direction) including the pixel assigned by the variables (X, Y) (S11). Here, the processed pixel count of the Y-axis direction denotes the number of pixels having the process to change resolution completed in one column of the vertical direction (i.e., the Y-axis direction) including the pixel assigned by the variables (X, Y). For example, assuming the pixel at (0, 0) in
Here, it is assumed that the variables (X, Y) assigns (0, 0). The processed pixel count of Y-axis is “0”. Accordingly, the processed pixel count of the Y-axis is determined as being smaller than the maximum value (i.e., 99) of Y of the vertical column (i.e., the Y-axis) including the pixel assigned by the variables (X, Y) (“Yes” in S11). Consequently, the pixels of the scanned image data are copied to the image data A (S12). Then, the pixel assignment position is moved and the process is performed on the next pixel (S13). “Y=Y+2” denotes that “Y” is shifted by two. Accordingly, “Y=0” results in “Y=2”. “B=B+1” denotes that “B” is shifted by one. Accordingly, “B=0” results in “B=1”.
Returning to S11 thereafter, the processes of S11, S12 and S13 are repeated until the processing on all pixels of the vertical column (i.e., the Y-axis direction) assigned by the variables (X, Y) is completed. After processing on all pixels of the vertical column (i.e., the Y-axis direction) is completed, the black-filled pixels of the first column of
When the processed pixel count of the X-axis becomes larger than the pixel count of the lateral row (i.e., the X-axis) including the pixel assigned by the variables (X, Y) (“No” in S10), it is determined that the processing on the entire image is completed. Then, “Preview” 28 of the image data A and “Data Size” 27 of the image data A are displayed on the displaying unit 25 (S15). In the above, the method to change “Resolution” 29 to be half is described. The method is adoptable when “Resolution” 29 is changed to be half not only in the case of changing from 600 dpi to 300 dpi.
Next, a creation method of “Review” 28 of the image data when “Resolution” 29 is changed to be two thirds will be described with reference to
The operation to obtain the image data A as changing the resolution of the scanned image data to be two thirds will be described with reference to a flowchart of
First, the variables (X, Y) of the scanned image data and the variables (A, B) of the image data A are initialized in S9. Next, in S10, it is determined whether or not the processed pixel count of the X-axis being the same as X is smaller than the maximum value of the lateral row (i.e., the X-axis) including the pixel assigned by the variables (X, Y). Here, it is assumed that the pixel at (0, 0) is assigned, for example. The processed pixel count of the X-axis is “0” at that time. Accordingly, the processed pixel count of the X-axis is determined as being smaller than the maximum value of the X-axis including the pixel assigned by the variables (X, Y) (“Yes” in S10). Next, it is determined whether or not the processed pixel count of the Y-axis being the same as Y is smaller than the maximum value of the vertical column (i.e., the Y-axis) including the pixel assigned by the variables (X, Y) (S11).
For example, when the variables (X, Y) assigns (0, 0), the processed pixel count of the Y-axis is “0”. Accordingly, the processed pixel count of the Y-axis is determined as being smaller than the maximum value of the vertical column (i.e., the Y-axis) including the pixel assigned by the variables (X, Y) (“Yes” in S11). Consequently, the pixels of the scanned image data are copied to the image data A. That is, (X, Y) of the scanned image data is copied to (A, B) of the image data A. Further, (X+1, Y+1) of the scanned image data is copied to (A+1, B+1) of the image data A. Then, the pixel assignment position is moved and the process is performed on the next pixel (S17). “Y=Y+3” denotes that “Y” is shifted by three. Accordingly, “Y=0” results in “Y=3”. “B=B+2” denotes that “B” is shifted by two. Accordingly, “B=0” results in “B=2”.
Returning to S11 thereafter, the processes of S11, S16 and S17 are repeated until the processing on all pixels of one column in the vertical direction (i.e., the Y-axis direction) assigned by the variables (X, Y) is completed. After processing on all pixels of the vertical column (i.e., the Y-axis direction) is completed, the black-filled pixels of the first column of
The method to decrease the resolution to be two thirds may adopt not only the nearest neighbor method but also the straight-line approximation method. With the straight-line approximation method, image data is doubled and one pixel out of three pixels is obtained as a converted pixel from the doubled data. The straight-line approximation method is to obtain a value between adjacent numerals. In the case of data of “11, 34, 79”, for example, “22” (=11/2+34/2) is inserted between “11” and “34” in order to double the data. Similarly, “56” (=34/2+79/2) is inserted between “34” and “79”. In this manner, by obtaining one out of three from the doubled data, the data can be compressed to be two thirds. For example, “11” and “56” are obtained out of “11, 22, 34, 56, 79”.
In the above, the method to change “Resolution” 29 to be two thirds is described. The method is also adoptable when “Resolution” 29 is changed to be two thirds the case of being changed from 300 dpi to 200 dpi. In this case, it is only required to change the positions and number of pixels to be copied to the image data A and the movement method of the variables (X, Y) and (A, B) in S12 to S14 of
According to the first embodiment, when reading image data with the image formation device 101, a user can change resolution so that data size of the image data is to be desirable for the user and verify the changed data size and preview of the changed image data at the displaying unit 25.
In the second embodiment, when reading image data with the image formation device 101, a user changes resolution and color so that data size of the image data is to be desirable for the user and verify the changed data size and preview of the changed image data at the displaying unit. That is, in the second embodiment, color change is added to the first embodiment. By changing not only resolution but also color, the data size of the image data can be finely adjusted. Here, the same numeral is given to the same structural portion as the first embodiment and detailed description will not be repeated.
When the data size is determined not to be desirable as verifying “Data Size” 27, a user presses the “Select Color” button 36 to change “Data Size” 27. When the user determines that “Data Size” 27 is larger than desired data size, the mode is changed from color to monochrome, for example. In the second embodiment as well being similar to the first embodiment, it is possible to change only “Resolution” 29 by pressing the “Select Resolution” button 30. Further, it is also possible to change only the color/monochrome mode by pressing the “Select Color” button 36. Furthermore, it is also possible to change both “Resolution” 29 and color.
Here, the setting of the resolution and color can be performed for each page of the image data. That is, the image data of a file constituting with plural pages may have a page of resolution of 600 dpi, a page of resolution of 300 dpi, a color page and a monochrome page. Switching pages is performed by pressing the “Previous” button 33 or the “Next” button 34.
As a method of color conversion from color to monochrome, an intermediate value method or a weighted average method with an NTSC coefficient can be adopted, for example. The intermediate value method is a method of obtaining grayscale as calculating an intermediate value by adding the maximum value and the minimum value among three values of Red (R), Green (G) and Blue (B) and dividing by two. The three values of R, G, B are arbitrary integers between 0 and 255 inclusive. When the maximum value among the three values of R, G, B is denoted by max and the minimum value is denoted by min, the value Z after grayscale conversion is obtained by following Equation (2). Here, the range of Z is an integer between 0 and 255 inclusive.
Z=(max+min)/2 (2)
A round-off process is appropriately performed on Z corresponding to the processing system. An example will be described in the following. Respective values of R, G, B are assumed to be as (R, G, B)=(48, 170, 255). Accordingly, max=255 and min=48. By substituting the above values into Equation (2), Z is to be 151 (=(255+48)/2). In this manner, the value Z after grayscale conversion can be obtained as being 151.
Meanwhile, the weighted average method with an NTSC coefficient is a method of obtaining grayscale as calculating an average value by adding respectively weighted values of R, G, B and dividing by three. The three values of R, G, B are arbitrary integers between 0 and 255 inclusive. The value Z after grayscale conversion is obtained by following Equation (3). Here, the range of Z is an integer between 0 and 255 inclusive.
Z=(0.298912×R+0.586611×G+0.114478×B) (3)
Alternately, it is also possible to obtain the value Z after grayscale conversion by an approximation as Equation (4).
Z=(2×R+4×G+B)/7 (4)
Not limited to the intermediate value method and the weighted average method with an NTSC coefficient, another conversion method may be adopted as the conversion method from color to monochrome.
According to the second embodiment, when reading image data with the image formation device 101, a user can change resolution and color so that data size of the image data is to be desirable for the user and verify the changed data size and preview of the changed image data at the displaying unit 25.
In the third embodiment, when reading image data with the image formation device 101, a user changes resolution so that data size of the image data is to be desirable for the user and verify at the displaying unit with thumbnail display having a number of previews of the changed image data placed. Here, the same numeral is given to the same structural portion as the first embodiment and detailed description will not be repeated.
According to the third embodiment, when reading image data with the image formation device 101, a user can change resolution so that data size of the image data is to be desirable for the user and verify the changed data size and preview of the changed image data with the thumbnails based on different resolution as sight. Then, the user can select an appropriate thumbnail from the list. In addition, by changing both resolution and color being similar to the second embodiment, adjustment of image data may be performed more finely.
As used in this application, entities for executing the actions can refer to a computer-related entity, either hardware, a combination of hardware and software, software, or software in execution. For example, an entity for executing an action can be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and a computer. By way of illustration, both an application running on an apparatus and the apparatus can be an entity. One or more entities can reside within a process and/or thread of execution and a entity can be localized on one apparatus and/or distributed between two or more apparatuses.
The program for realizing the functions can be recorded in the apparatus, can be downloaded through a network to the apparatus and can be installed in the apparatus from a computer readable storage medium storing the program therein. A form of the computer readable storage medium can be any form as long as the computer readable storage medium can store programs and is readable by the apparatus such as a disk type ROM and a Solid-state computer storage media. The functions obtained by installation or download in advance in this way can be realized in cooperation with an OS (Operating System) or the like in the apparatus.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel systems described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Number | Date | Country | Kind |
---|---|---|---|
2010-150690 | Jul 2010 | JP | national |
This application is based upon and claims the benefit of priority from: U.S. provisional application 61/249,663, filed on Oct. 8, 2009, the entire contents of which are incorporated herein by reference. This application is also based upon and claims the benefit of priority from the Japanese Patent Application No. 2010-150690, filed on Jul. 1, 2010, the entire contents of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
61249663 | Oct 2009 | US |