This Nonprovisional application claims priority under 35 U.S.C. §119(a) on Patent Applications No. 2006-104605 filed in Japan on Apr. 5, 2006 and No. 2006-111169 filed in Japan on Apr. 13, 2006, the entire contents of which are hereby incorporated by reference.
The present invention relates to an image processing apparatus and an image processing method for storing image data and attribute data obtained by extracting a feature of the image data, and an image forming apparatus having the image processing apparatus.
In recent years, along with an increase in speed or the amount of information, as represented by the Internet, a digital multifunction product installed in an office has functions, such as a document filing process in which created documents, drawings, etc., are merged into a database and filed, in addition to processes such as facsimile, print, and copying. Thus, the digital multifunction product is shared by many users and has begun to process a large amount of image data at high speed.
Conventionally, a digital multifunction product has a fast accessible semiconductor memory as a primary storage device (image memory) and a hard disk drive (HDD) with a relatively low access speed as a secondary storage device. Image data obtained by reading a document is compressed and the compressed image data is stored on the HDD while being buffered in the primary storage device, whereby a large amount of image data is processed as fast as possible and the storage capacity of the entire storage device is reduced. Alternatively, image data obtained by reading a document is compressed and the compressed image data is stored on the HDD. Then, the compressed image data is read from the HDD where necessary, data for image formation is generated based on the read compressed image data, and the generated data for image formation is subjected to image formation (printing process) while being buffered in the primary storage device, whereby a large amount of image data is processed as fast as possible and the storage capacity of the entire storage device is reduced.
As an example of a reduction in storage capacity, Japanese Patent Application Laid-Open No. 11-239321 proposes a digital camera in which a compression process by JPEG format is performed on camera data and compressed image data is overwritten so as to avoid a camera data area that is not subjected to the compression process, whereby the storage capacity is reduced.
In a digital multifunction product, to implement reproduction of high image quality for a variety of documents, in addition to image data, a feature (e.g., concentration information or a concentration gradient of an area around an observed pixel which is obtained by a local mask) of the image data is extracted. Then, based on a result of the extraction, attribute data (e.g., characters or a photo) to be used for determination of a document type and a necessary process is generated. The image data is different from the attribute data and their compression methods are also different from each other.
Thus, when image data and attribute data are compressed and buffered in a primary storage device (image memory), different storage areas need to be provided for the image data and the attribute data, respectively. For example,
When there are a plurality of pages of documents, memory areas for compressed image data and memory areas for compressed attribute data d2, a2, d3, a3, . . . (none of which is shown) are further contiguously provided for storing compressed image data and compressed attribute data corresponding to image data units obtained from a document of the second page, a document of the third page, . . . , respectively. The memory sizes of the memory area d1 for compressed image data and the memory area a1 for compressed attribute data are set by determining in advance the compression ratios of respective image data and attribute data.
When compressed image data and compressed attribute data are decompressed and data for image formation is generated based on the decompressed image data and the decompressed attribute data and then buffered in a primary storage device (image memory), different storage areas need to be provided for the decompressed image data and the decompressed attribute data, respectively.
For example,
The compressed image data and the compressed attribute data which are stored in the image memory are read, the read compressed image data and compressed attribute data are decompressed, and data for image formation (YMCK data) is generated based on image data and attribute data obtained by the decompression. The data for image formation is written in a memory area that is different from the memory areas where the compressed image data and the compressed attribute data are stored, whereby buffering of the data for image formation is performed.
In the example of Japanese Patent Application Laid-Open No. 11-239321, however, although the memory capacity can be reduced by overwriting compressed data in an area where non-compressed data is stored, data to be processed is of only one type; thus, there is a demand for a digital multifunction product in which the memory capacity can be reduced even when different data units, such as image data and attribute data, are handled.
In the conventional example such as the one shown in
In the conventional example such as the one shown in
The present invention is made in view of such circumstances and an object of the present invention is to provide an image processing apparatus and an image processing method, in which a storage area is divided into a plurality of contiguous divided areas having a predetermined data length, each divided area is divided into two areas, i.e., a first area having a first data length and a second area having a second data length, compressed image data is stored in the first areas, and compressed attribute data is stored in the second areas, whereby the capacity of an image memory can be reduced and use efficiency can be improved, and an image forming apparatus having the image processing apparatus.
Another object of the present invention is to provide an image processing apparatus and an image processing method, in which, when image data is read, compressed image data and compressed attribute data are stored in divided areas set in a storage area where the image data is stored, whereby an image memory is used in a shared manner for image data and compressed data and the capacity of the image memory can be further reduced and use efficiency can be improved, and an image forming apparatus having the image processing apparatus.
Still another object of the present invention is to provide an image processing apparatus and an image processing method, in which a storage area is divided into a plurality of contiguous divided areas having a predetermined data length, each divided area is divided into two areas, i.e., a first area having a first data length and a second area having a second data length, processed image data is stored in the first areas, and attribute data is stored in the second areas, whereby even when different data units need to be handled, the capacity of an image memory can be reduced and use efficiency can be improved, and an image forming apparatus having the image processing apparatus.
Still another object of the present invention is to provide an image processing apparatus and an image processing method, in which a storage area is divided into a plurality of contiguous divided areas having a predetermined data length, each divided area is divided into two areas, i.e., a first area having a first data length and a second area having a second data length, compressed image data is stored in the first areas, compressed attribute data is stored in the second areas, the stored compressed image data and compressed attribute data are sequentially read from the upper address side or the lower address side, data for image formation is generated based on image data and attribute data that are obtained by decompressing the read compressed image data and compressed attribute data, a plurality of contiguous divided areas where compressed image data and compressed attribute data corresponding to the generated data for image formation are stored are set on the lower address side or the upper address side of a storage area where the data for image formation is stored, and the generated data for image formation is sequentially stored from the upper address side or the lower address side of the storage area, whereby an image memory is used in a shared manner for decompressed data and compressed data and the capacity of the image memory can be reduced and use efficiency can be improved, and an image forming apparatus having the image processing apparatus.
Still another object of the present invention is to provide an image processing apparatus and an image processing method, in which a first data length or a second data length is changed, whereby regardless of the sizes of compressed image data and compressed attribute data, a split image memory is minimized and use efficiency can be improved, and an image forming apparatus having the image processing apparatus.
Still another object of the present invention is to provide an image processing apparatus and an image processing method, in which a first data length or a second data length is changed based on the compression ratio(s) of image data and/or attribute data, whereby even when the compression ratio is changed according to a variety of images, a split image memory is minimized and use efficiency can be improved, and an image forming apparatus having the image processing apparatus.
Still another object of the present invention is to provide an image processing apparatus and an image processing method, in which based on compression ratios calculated on a per image data basis and/or on a per attribute data basis, a statistical value (e.g., an average compression ratio) of the compression ratios of image data and/or attribute data is calculated and a first data length or a second data length is changed based on the calculated statistical value, whereby the use efficiency of an image memory can be improved according to user's use conditions, and an image forming apparatus having the image processing apparatus.
The present invention is directed to an image processing apparatus in which image data and attribute data obtained by extracting a feature of the image data are compressed and the compressed image data and the compressed attribute data are stored. The image processing apparatus includes means for dividing a storage area into a plurality of contiguous divided areas having a predetermined data length; and means for dividing each of the divided areas into two areas, a first area having a first data length and a second area having a second data length, wherein the compressed image data is stored in the first areas and the compressed attribute data is stored in the second areas.
A storage area (e.g., a storage area of an image memory) is divided into a plurality of contiguous divided areas having a predetermined data length, from the upper address to the lower address. Each divided area is divided into two areas, i.e., a first area having a first data length and a second area having a second data length. When compressed image data and compressed attribute data are stored starting from the upper memory address to the lower memory address, the compressed image data is sequentially stored in the first areas of the divided areas and the compressed attribute data is sequentially stored in the second areas of the divided areas. The compressed image data and the compressed attribute data each are sequentially stored starting from a divided area on the upper address side. The storage area is sequentially occupied by the compressed image data and the compressed attribute data from the upper address side to the lower address side.
By this, in the case in which, as in conventional cases, a storage area for compressed image data and a storage area for compressed attribute data are contiguously reserved from the upper address side to the lower address side of the storage areas and compressed image data and compressed attribute data are stored starting from the upper memory address to the lower memory address, when the sizes of the compressed image data and the compressed attribute data are smaller than expected, the generation of a relatively large unused split storage area in each of the storage area for compressed image data and the storage area for compressed attribute data is suppressed and an unused split storage area is made smaller than that for conventional cases.
As described above, by dividing a storage area into a plurality of contiguous divided areas having a predetermined data length, dividing each divided area into two areas, i.e., a first area having a first data length and a second area having a second data length, storing compressed image data in the first areas, and storing compressed attribute data in the second areas, the capacity of an image memory can be reduced and the use efficiency of the image memory can be improved. In addition, by reducing the size of an image memory to be installed, costs can be reduced, making is possible to further miniaturize an image processing apparatus. Furthermore, when a secondary storage device such as an HDD is used, it becomes possible to reserve a sufficient buffer area in an image memory (primary storage device). Accordingly, without being limited to a data transfer rate to the secondary storage device, the secondary storage device can be easily used in a shared manner with other functions than buffering between the secondary storage device and the image memory.
The image processing apparatus according to the present invention may include means for storing image data; setting means for contiguously setting a plurality of the divided areas in a storage area where the image data is stored; and reading means for reading the stored image data, wherein when the image data is read by the reading means, compressed image data and compressed attribute data which are obtained based on the image data may be stored in the divided areas set in the storage area where the image data is stored.
When image data is read, compressed image data and compressed attribute data which are obtained based on the image data are stored in first areas and second areas of divided areas set in a storage area where the image data is stored. By this, when the image data stored in the storage area is sequentially read starting from the upper address to the lower address, compressed image data and compressed attribute data corresponding to the read image data are overwritten in the storage area whose data has been read and which has been brought into an unused state, whereby a storage area is used in a shared manner for image data and for compressed image data and compressed attribute data.
As described above, when image data is read, by storing compressed image data and compressed attribute data in divided areas set in a storage area where the image data is stored, an image memory is used in a shred manner for image data and for compressed data, making it possible to further reduce the capacity of the image memory and improve use efficiency.
The present invention is directed to an image processing apparatus in which processed image data obtained by performing a predetermined process on image data and attribute data obtained by extracting a feature of the image data are stored. The image processing apparatus includes means for dividing a storage area into a plurality of contiguous divided areas having a predetermined data length; and means for dividing each of the divided areas into two areas, a first area having a first data length and a second area having a second data length, wherein the processed image data is stored in the first areas and the attribute data is stored in the second areas.
A storage area is divided into a plurality of contiguous divided areas having a predetermined data length, from the upper address to the lower address. Each divided area is divided into two areas, i.e., a first area having a first data length and a second area having a second data length. When processed image data and attribute data are stored starting from the upper memory address to the lower memory address, the processed image data is sequentially stored in the first areas of the divided areas and the attribute data is sequentially stored in the second areas of the divided areas. By this, the processed image data and the attribute data each are sequentially stored starting from a divided area on the upper address side and the storage area is sequentially occupied by the processed image data and the attribute data from the upper address side to the lower address side. By this, an unused split storage area is made smaller than that for conventional cases.
As described above, by dividing a storage area into a plurality of contiguous divided areas having a predetermined data length, dividing each divided area into two areas, i.e., a first area having a first data length and a second area having a second data length, storing processed image data in the first areas, and storing attribute data in the second areas, when different data units are handled, even if there is a need to reserve buffering areas for the respective different data units, the capacity of an image memory can be reduced and use efficiency can be improved.
The present invention is directed to an image processing apparatus in which image data and attribute data obtained by extracting a feature of the image data are stored. The image processing apparatus includes means for dividing a storage area into a plurality of contiguous divided areas having a predetermined data length; means for dividing each of the divided areas into two areas, a first area having a first data length and a second area having a second data length; compressing means for compressing the image data and the attribute data; means for storing the compressed image data in the first areas and stores the compressed attribute data in the second areas; reading means for sequentially reading the stored compressed image data and compressed attribute data from an upper address side or a lower address side; decompressing means for decompressing the read compressed image data and compressed attribute data; generating means for generating data for image formation based on the decompressed image data and attribute data; and setting means for setting a plurality of contiguous divided areas where compressed image data and compressed attribute data corresponding to data for image formation to be generated by the generating means are stored, on a lower address side or an upper address side of a storage area where the data for image formation is stored, wherein the data for image formation generated by the generating means is sequentially stored from the upper address side or the lower address side of the storage area.
A storage area (e.g., a storage area of an image memory) is divided into a plurality of contiguous divided areas having a predetermined data length from the upper address to the lower address. Each divided area is divided into two areas, i.e., a first area having a first data length and a second area having a second data length. Compressed image data and compressed attribute data each are sequentially stored starting from a divided area on the upper address side. The storage area is sequentially occupied by the compressed image data and the compressed attribute data from the upper address side to the lower address side. When the stored compressed image data and compressed attribute data are read, the compressed image data and the compressed attribute data are sequentially read from the upper address side or the lower address side. The read compressed image data and compressed attribute data are decompressed and data for image formation is generated based on the decompressed image data and attribute data. A plurality of contiguous divided areas where compressed image data and compressed attribute data corresponding to the generated data for image formation are stored are set on the lower address side or the upper address side of a storage area where the data for image formation is stored and the data for image formation is sequentially stored from the upper address side or the lower address side of the storage area. By this, a storage area for compressed data (a plurality of contiguous divided areas) is disposed on the lower address side or the upper address side of a storage area where data for image formation is stored, compressed image data and compressed attribute data are sequentially read from the upper address side or the lower address side to generate data for image formation, and the generated data for image formation is sequentially stored from the upper address side or the lower address side of the storage area, whereby the stored compressed image data and compressed attribute data are prevented from being overwritten by the data for image formation and a storage area is used in a shared manner for data for image formation and for compressed image data and compressed attribute data.
As described above, by dividing a storage area into a plurality of contiguous divided areas having a predetermined data length, dividing each divided area into two areas, i.e., a first area having a first data length and a second area having a second data length, storing compressed image data in the first areas, storing compressed attribute data in the second areas, sequentially reading the stored compressed image data and compressed attribute data from the upper address side or the lower address side, generating data for image formation based on image data and attribute data which are obtained by decompressing the read compressed image data and compressed attribute data, setting a plurality of contiguous divided areas where compressed image data and compressed attribute data corresponding to the generated data for image formation are stored, on the lower address side or the upper address side of a storage area where the data for image formation is stored, and sequentially storing the generated data for image formation from the upper address side or the lower address side of the storage area, an image memory is used in a shared manner for decompressed data that is decompressed for image formation, and for compressed data and the capacity of the image memory can be reduced and use efficiency can be improved. In addition, by reducing the size of an image memory to be installed, costs can be reduced, making is possible to further miniaturize an image processing apparatus. Furthermore, when a secondary storage device such as an HDD is used, it becomes possible to reserve a sufficient buffer area in an image memory (primary storage device). Accordingly, without being limited to a data transfer rate to the secondary storage device, the secondary storage device can be easily used in a shared manner with other functions than buffering between the secondary storage device and the image memory.
The image processing apparatus according to the present invention may include changing means for changing the first data length or the second data length.
The first data length or the second data length is changed by the changing means. For example, when by increasing the first data length (or by reducing the second data length) the size of compressed image data occupied in a single divided area is increased (or the size of compressed attribute data is reduced) and compressed image data and compressed attribute data are stored starting from the upper address to the lower address of a storage area, the occupancy degree of the storage area by the compressed image data is increased. When by reducing the first data length (or by increasing the second data length) the size of compressed attribute data occupied in a single divided area is increased (or the size of compressed image data is reduced) and compressed image data and compressed attribute data are stored starting from the upper address to the lower address of a storage area, the occupancy degree of the storage area by the compressed attribute data is increased.
As described above, by changing the first data length or the second data length, regardless of the sizes of compressed image data and compressed attribute data, a split image memory is minimized and use efficiency can be improved.
The image processing apparatus according to the present invention may include calculating means for calculating a compression ratio of the image data, wherein the changing means may change the first data length or the second data length based on the compression ratio calculated by the calculating means.
The compression ratio of image data (the ratio of the size of compressed image data to the size of original image data) is calculated and the first data length or the second data length is changed based on the calculated compression ratio. For example, in the case in which the compression ratio of image data is high (the compression degree is low), when the first data length is increased (or the second data length is reduced) and compressed image data and compressed attribute data are stored starting from the upper address to the lower address of a storage area, the occupancy degree of the storage area by the compressed image data is increased. In the case in which the compression ratio of image data is low (the compression degree is high), when the first data length is reduced (or the second data length is increased) and compressed image data and compressed attribute data are stored starting from the upper address to the lower address of a storage area, the occupancy degree of the storage area by the compressed image data is reduced.
The image processing apparatus according to the present invention may include calculating means for calculating, based on compression ratios calculated on a per image data basis, a statistical value of the compression ratios of image data, wherein the changing means may change the first data length or the second data length based on the statistical value calculated by the calculating means.
Based on compression ratios calculated on a per image data basis, a statistical value (e.g., an average compression ratio or a maximum compression ratio) of the compression ratios of image data is calculated and based on the calculated statistical value, the first data length or the second data length is changed. For example, when image data for a plurality of pages are processed by the first job, a compression ratio of image data for each page is calculated and an average compression ratio for the first job is calculated. When processing the second job, based on the average compression ratio obtained at the first job, the first data length or the second data length is changed. In subsequent processes, likewise, based on an average compression ratio to be calculated on a per job basis, the first data length or the second data length for a next job is changed. By this, the compression degree of image data to be used by a user is grasped for each job and the compression degree is applied to a next job.
The image processing apparatus according to the present invention may include calculating means for calculating a compression ratio of the attribute data, wherein the changing means may change the first data length or the second data length based on the compression ratio calculated by the calculating means.
The compression ratio of attribute data (the ratio of the size of compressed attribute data to the size of original attribute data) is calculated and the first data length or the second data length is changed based on the calculated compression ratio. For example, in the case in which the compression ratio of attribute data is high (the compression degree is low), when the second data length is increased (or the first data length is reduced) and compressed image data and compressed attribute data are stored starting from the upper address to the lower address of a storage area, the occupancy degree of the storage area by the compressed attribute data is increased. In the case in which the compression ratio of attribute data is low (the compression degree is high), when the second data length is reduced (or the first data length is increased) and compressed image data and compressed attribute data are stored starting from the upper address to the lower address of a storage area, the occupancy degree of the storage area by the compressed attribute data is reduced.
The image processing apparatus according to the present invention may include calculating means for calculating, based on compression ratios calculated on a per attribute data basis, a statistical value of the compression ratios of attribute data, wherein the changing means may change the first data length or the second data length based on the statistical value calculated by the calculating means.
Based on compression ratios calculated on a per attribute data basis, a statistical value (e.g., an average compression ratio or a maximum compression ratio) of the compression ratios of attribute data is calculated and based on the calculated statistical value, the first data length or the second data length is changed. For example, when attribute data for a plurality of pages are processed by the first job, a compression ratio of attribute data for each page is calculated and an average compression ratio for the first job is calculated. When processing the second job, based on the average compression ratio obtained at the first job, the first data length or the second data length is changed. In subsequent processes, likewise, based on an average compression ratio to be calculated on a per job basis, the first data length or the second data length for a next job is changed. By this, the compression degree of attribute data corresponding to image data to be used by a user is grasped for each job and the compression degree is applied to a next job.
As described above, by changing the first data length or the second data length based on the compression ratio(s) of image data and/or attribute data, even when the compression ratio is changed according to a variety of images, without depending on the compression ratio, a split image memory is minimized and use efficiency can be improved.
By calculating, based on compression ratios calculated on a per image data basis and/or on a per attribute data basis, a statistical value (e.g., an average compression ratio) of the compression ratios of image data and/or attribute data and changing the first data length or the second data length based on the calculated statistical value, for example, image data to be used by a user is determined for each job and the use efficiency of an image memory can be improved.
An image forming apparatus according to the present invention includes any of the above-described image processing apparatuses and image forming means for forming an image based on image data on which image processing is performed by the image processing apparatus.
The above and further objects and features of the invention will more fully be apparent from the following detailed description with accompanying drawings.
The present invention will be described in detailed below based on the drawings showing embodiments thereof
A digital multifunction product as an exemplary image forming apparatus having an image processing apparatus according to the present invention will be described below.
The image reading unit 30 is an automatic document feeder (ADF), for example. The image reading unit 30 detects, by a document sensor (not shown), a document placed on a tray and transports the detected document and at the same time irradiates light onto the transported document. The mage reading unit 30 then photoelectrically converts, by a CCD (not shown), reflected light from the document into an analog signal and converts the obtained analog signal into a digital signal by an A/D converter (not shown). The image reading unit 30 outputs the digital signal (RGB data) obtained by the conversion to the image processing apparatus 10.
The image input unit 11 has an interface function for outputting the RGB data (image data) inputted from the image reading unit 30, to the image memory control unit 12.
The image memory control unit 12 includes an address specification register that specifies an address for storing (buffering) image data, compressed image data, compressed attribute data, or data for image formation (YMCK data) in the image memory 16; a signal generating unit that provides an instruction for writing or reading of data, neither of which is shown; and the like. The image memory control unit 12 divides the image data inputted from the image input unit 11, e.g., image data on a document of a single page, into a plurality of data blocks, generates a write signal for writing the image data into the image memory 16 on a per data block basis, and stores the image data in the image memory 16. When there is image data for a plurality of pages, the image data is sequentially stored in the image memory 16.
In addition, the image memory control unit 12 divides the image data on the document of a single page stored in the image memory 16 into a plurality of data blocks and generates a read signal for reading the image data from the image memory 16 on a per data block basis. The image memory control unit 12 then reads the image data from the image memory 16 and outputs the read image data to the image processing unit 13. When there is image data for a plurality of pages, the image data is sequentially read from the image memory 16 and the read image data is outputted to the image processing unit 13.
The image processing unit 13 performs editing processes, such as a correction process in which various distortions that occur in an illuminating system, an image forming system, an imaging system, and the like, of the image reading unit 30 are removed, a process of adjusting the color balance of image data, a concentration conversion process, a scaling factor conversion process, and a concentration inversion, on the inputted image data. The image processing unit 13 outputs the processed image data to the image data compressing unit 14.
In addition, the image processing unit 13 generates, based on the inputted image data, attribute data for determining whether each pixel in the image of the document is of a character area, a photo area, or an area other than those areas and separating the areas. More specifically, the image processing unit 13 generates, based on the inputted image data, attribute data on a per pixel basis (or on a per pixel block basis) by setting an M×N pixel mask (e.g., 3×3 pixels) including an observed pixel in the image, and extracting a feature such as concentration information or a concentration gradient of the observed pixel and its neighboring pixels. The image processing unit 13 then outputs the generated attribute data to the attribute data compressing unit 15.
The image data compressing unit 14 has a data compression function by a JPEG-method, for example. The image data compressing unit 14 performs data compression by lossy compression on the image data inputted from the image processing unit 13. The image data compressing unit 14 sequentially outputs the compressed image data to the image memory control unit 12 on a per predetermined data size data block basis. Note that the compression method is not limited to the JPEG method and any other method can be used.
The attribute data compressing unit 15 has a data compression function by an LHA-method or the like, for example. The attribute data compressing unit 15 performs data compression by lossless compression on the attribute data inputted from the image processing unit 13. The attribute data compressing unit 15 sequentially outputs the compressed attribute data to the image memory control unit 12 on a per predetermined data size data block basis. Note that the compression method is not limited to the LHA-method or the like and any other method can be used.
The image memory control unit 12 divides the compressed image data and the compressed attribute data which are inputted from the image data compressing unit 14 and the attribute data compressing unit 15, respectively, into a plurality of data blocks. The image memory control unit 12 then generates a write signal for writing the compressed image data and the compressed attribute data into the image memory 16 on a per data block basis and stores the compressed image data and the compressed attribute data in the image memory 16. By this, the image memory control unit 12 buffers the compressed image data and the compressed attribute data in the image memory 16 before storing the compressed image data and the compressed attribute data in the storage unit 17 (e.g., a secondary storage device composed of an HDD).
The image memory control unit 12 includes a compression ratio calculator 12a that calculates a compression ratio of each of the image data and the attribute data based on a data size before a compression process and a data size after a compression process. In addition, the image memory control unit 12 includes a statistical value calculator 12b that stores the compression ratios computed for each of the image data and the attribute data and calculates, based on the plurality of compression ratios, a statistical value (an average compression ratio, a maximum compression ratio, or the like) of the compression ratios. In addition, the image memory control unit 12 includes a changer 12c that changes, based on the calculated compression ratios or statistical value, a numerical value to be set in the address specification register and changes a continuous data length Ld of a memory area D1 for compressed image data and a continuous data length La of a memory area A1 for compressed attribute data, as will be described later (see
As shown in
The image memory control unit 12 generates a read signal for reading the compressed image data and the compressed attribute data which are stored (buffered) in the image memory 16. The image memory control unit 12 then reads the compressed image data and the compressed attribute data from the image memory 16 such that the compressed image data and the compressed attribute data each are divided into a plurality of data blocks, and stores the read compressed image data and compressed attribute data in the storage unit 17.
When an image is formed (printed) on a recording sheet based on the compressed image data and the compressed attribute data which are stored in the storage unit 17, the image memory control unit 12 reads the compressed image data and the compressed attribute data from the storage unit 17 and outputs the read compressed image data and compressed attribute data to the image data decompressing unit 21 and the attribute data decompressing unit 22, respectively.
The image data decompressing unit 21 performs a decompression process on the compressed image data inputted from the image memory control unit 12 and outputs the processed image data to the print image generating unit 23. The attribute data decompressing unit 22 performs a decompression process on the compressed attribute data inputted from the image memory control unit 12 and outputs the processed attribute data to the print image generating unit 23.
The control unit 18 is composed of a microcomputer, for example, and controls the overall processing of the image processing apparatus 10. Specifically, the control unit 18 loads a control program which is stored in the ROM 19 and provides control steps of the control unit 18, into the RAM 20 and thereby controls the operation of the image processing apparatus 10 according to the control steps provided by the control program. For example, by the control unit 18 performing job management, the control unit 18 can instruct the image memory control unit 12 to calculate an average compression ratio of compression ratios of a plurality of image data units that are processed by a single job, and instruct to set a data length Ld of the memory area D1 for compressed image data and a data length La of the memory area A1 for compressed attribute data which are used when image data to be processed by a next job is compressed using the calculated average compression ratio and the compressed image data is stored in the image memory 16.
The print image generating unit 23 converts RGB data into YMCK data based on the inputted image data and the attribute data corresponding to the image data. The print image generating unit 23 then outputs the converted image data (YMCK data) to the print processing unit 40 through the image memory control unit 12. More specifically, the print image generating unit 23 converts the RGB data to a CMYK color space and performs, for example, a color correction process, a tone correction process, or binarization or a predetermined tone image generation process according to the characteristics of the print processing unit 40, based on the attribute data.
The print processing unit 40 forms an image on a sheet based on the image data inputted from the image processing apparatus 10 and discharges the sheet having the image formed thereon. The print processing unit 40 includes, for example, a photosensitive drum, a charger that charges the photosensitive drum to a predetermined potential, a laser writing device that forms an electrostatic latent image on a surface of the photosensitive drum, a development device that supplies toner to the electrostatic latent image on the surface of the photosensitive drum for visualization, and a transfer device that transfers the toner image on the surface of the photosensitive drum onto a sheet (none of which is shown). Note that the print processing unit 40 is not limited to that of an electrophotographic method and any other method such as an ink-jet method or a thermal transfer method may be used.
Now, the operation of the image processing apparatus 10 will be described.
The image memory control unit 12 generates a read signal for reading the RGB data stored in the image memory 16, at time t2 where a predetermined period of time (the time necessary to write the RGB data) has elapsed from the point in time when the generation of the write signal is started at time t1. The image memory control unit 12 then performs a process of reading the RGB data from the image memory 16 on a per predetermined data block basis.
The image memory control unit 12 outputs to the image processing unit 13 the RGB data read from the image memory 16. At time t3, the image processing unit 13 outputs the RGB data and attribute data generated based on the RGB data to the image data compressing unit 14 and the attribute data compressing unit 15, respectively.
The image data compressing unit 14 and the attribute data compressing unit 15 respectively output compressed image data and compressed attribute data which are obtained through a compression process, to the image memory control unit 12 on a per predetermined data block basis. The image memory control unit 12 generates, at time t4, a write signal for storing (buffering) the compressed image data and the compressed attribute data in the image memory 16. The image memory control unit 12 then performs a process of writing the compressed image data and the compressed attribute data into the image memory 16 on a per predetermined data block basis.
At time t5 where a predetermined period of time (the time necessary to write the compressed image data and the compressed attribute data) has elapsed from the point in time when the generation of the write signal is started at time t4, the image memory control unit 12 generates a read signal for reading the compressed image data and the compressed attribute data which are stored in the image memory 16. The image memory control unit 12 then performs a process of writing the compressed image data and the compressed attribute data into the storage unit 17 on a per predetermined data block basis. By this, the compressed image data and the compressed attribute data are retained in the storage unit 17. The same process is also performed on image data read from documents of the second and subsequent pages.
The contiguous data length Ld for image data can be set, for example, as follows. Specifically, Ld=Ls×(Ds×RD)/(Ds×RD+As×RA). Here, Ls is the data length per line. (the data length of a divided area), Ds is the size of image data before compression, RD is the compression ratio of the image data, As is the size of attribute data before compression, and RA is the compression ratio of the attribute data.
As shown in
As shown in
Although the first embodiment describes storing (buffering) of image data and attribute data that have been subjected to a compression process, in the image memory 16, the present invention is not limited thereto; even when a compression process is not performed, the present invention can be applied. Specifically, the present invention can also be applied to the case of storing (buffering) in the image memory 16 different data units, i.e., processed image data having been subjected to image processing and attribute data, instead of compressed image data and compressed attribute data. By this, when different data units are handled, even if there is a need to reserve buffering areas for the respective different data units, the capacity of an image memory can be reduced and use efficiency can be improved.
Now, a second embodiment will be described in which, in addition to compressed image data and compressed attribute data, data for image formation (YMCK data) generated based on image data and attribute data is also stored (buffered) in the image memory 16. Note that the configuration of the digital multifunction product 100 that implements the second embodiment is the same as that described in the first embodiment.
When the image memory control unit 12 writes compressed image data and compressed attribute data into the image memory 16, the image memory control unit 12 sequentially writes the compressed image data, starting from the upper address to the lower address of the memory area D1 for compressed image data, and sequentially writes the compressed attribute data, starting from the upper address to the lower address of the memory area A1 for compressed attribute data. By this, the compressed image data and the compressed attribute data each are sequentially stored from the upper address side of the image memory 16 and the storage areas are sequentially occupied by the compressed image data and the compressed attribute data from the upper address side to the lower address side. Thus, it is possible to prevent the generation of an unused split storage area.
The image memory control unit 12 generates a read signal for reading the compressed image data and the compressed attribute data which are stored (buffered) in the image memory 16. The image memory control unit 12 then reads the compressed image data and the compressed attribute data from the image memory 16 such that the compressed image data and the compressed attribute data each are divided into a plurality of data blocks, and stores the read compressed image data and compressed attribute data in the storage unit 17.
When the image memory control unit 12 forms (prints) an image on a recording sheet based on the compressed image data and the compressed attribute data which are stored in the storage unit 17, the image memory control unit 12 reads the compressed image data and the compressed attribute data from the storage unit 17, generates a write signal for writing the read compressed image data and compressed attribute data into the image memory 16, and stores (buffers) the compressed image data and the compressed attribute data in the image memory 16. In this case too, the image memory control unit 12 sequentially writes the compressed image data, starting from the upper address to the lower address of the memory area D1 for compressed image data, and sequentially writes the compressed attribute data, starting from the upper address to the lower address of the memory area A1 for compressed attribute data.
The image memory control unit 12 generates a read signal for reading from the image memory 16 the compressed image data and the compressed attribute data which are stored in the image memory 16 and reads the compressed image data and the compressed attribute data from the image memory 16. The image memory control unit 12 then outputs the read compressed image data and compressed attribute data to the image data decompressing unit 21 and the attribute data decompressing unit 22, respectively. In this case, the image memory control unit 12 sequentially reads the compressed image data, starting from the upper address to the lower address of the memory area D1 for compressed image data, and sequentially reads the compressed attribute data, starting from the upper address to the lower address of the memory area A1 for compressed attribute data. The reading of the compressed image data and the reading of the compressed attribute data are concurrently performed.
The print image generating unit 23 converts RGB data into YMCK data based on image data inputted from the image data decompressing unit 21 and attribute data corresponding to the image data and inputted from the attribute data decompressing unit 22. The print image generating unit 23 then outputs the converted YMCK data (data for image formation) to the image memory control unit 12. More specifically, the print image generating unit 23 converts the RGB data to a CMYK color space and performs, for example, a color correction process, a tone correction process, or binarization or a predetermined tone image generation process according to the characteristics of the print processing unit 40, based on the attribute data.
The image memory control unit 12 generates a write signal for writing the YMCK data inputted from the print image generating unit 23 into the image memory 16 and stores the YMCK data in the image memory 16. In this case, the image memory control unit 12 sequentially writes the YMCK data, starting from the upper address to the lower address of a storage area for storing the YMCK data. By this, the YMCK data is stored (buffered) in the image memory 16.
As shown in
By this, a storage area can be used in a shared manner for YMCK data and for compressed image data and compressed attribute data, making it possible to reduce the storage capacity of the image memory 16.
The image memory control unit 12 outputs the YMCK data stored (buffered) in the image memory 16 to the print processing unit 40.
Now, the operation of the image processing apparatus 10 will be described.
At time t12 where a predetermined period of time (the time necessary for writing) has elapsed from the point in time when the generation of the write signal is started at time t11, or later, the image memory control unit 12 generates a read signal for reading the compressed image data and the compressed attribute data which are stored in the image memory 16 and performs a process of reading the compressed image data and the compressed attribute data from the image memory 16.
The image memory control unit 12 outputs the compressed image data and the compressed attribute data that have been read from the image memory 16, to the image data decompressing unit 21 and the attribute data decompressing unit 22, respectively. The image data decompressing unit 21 and the attribute data decompressing unit 22 respectively output, at time t13 or later, decompressed RGB data and decompressed attribute data to the print image generating unit 23.
The print image generating unit 23 generates YMCK data based on the inputted RGB data and attribute data and outputs the generated YMCK data to the image memory control unit 12.
The image memory control unit 12 generates, at time t14, a write signal for storing (buffering) in the image memory 16 the YMCK data inputted from the print image generating unit 23, and writes the YMCK data into the image memory 16.
At time t15 where a predetermined period of time (e.g., the time necessary to write the YMCK data or the time set according to data transfer time to the HDD, or the like) has elapsed from the point in time when the generation of the write signal is started at time t14, the image memory control unit 12 reads the YMCK data stored in the image memory 16 and outputs the read YMCK data to the print processing unit 40. By this, image formation of a document of a single page is performed. When there are a plurality of pages of documents for image formation, the same process is performed.
The relationship between the compression ratio of image data and the data size after compression is the same as that described in the first embodiment (
In the second embodiment too, as with the first embodiment, when compressed image data and compressed attribute data are stored in the image memory 16, the difference between the number of divided areas occupied by the image data and the number of divided areas occupied by the attribute data is reduced, making it possible to minimize an unused split memory. In addition, in the second embodiment, when stored compressed image data and compressed attribute data are concurrently read from the image memory 16, a storage area is sequentially brought into an unused state from the upper address side to the lower address side; thus, without the storage area being split, a usable area can be made larger than that of conventional cases.
Note that in the above-described example, when YMCK data is written into the image memory 16, the YMCK data can be divided into Y data, M data, K data, and C data and written.
As shown in
Although the second embodiment describes storing (buffering) of image data and attribute data that have been subjected to a compression process and YMCK data (data for image formation), in the image memory 16, the present invention is not limited thereto; even when a compression process is not performed, the present invention can be applied. Specifically, the present invention can also be applied to the case of storing (buffering) in the image memory 16 different data units, such as image data and attribute data, and YMCK data instead of compressed image data and compressed attribute data. By this, when different data units are handled, even if there is a need to reserve buffering areas for the respective different data units, the capacity of an image memory can be reduced and use efficiency can be improved.
Although in the second embodiment the configuration is such that divided areas where compressed image data and compressed attribute data are stored are set (disposed) within a storage area(s) where YMCK data is stored and on the lower address side of the storage area(s), the present invention is not limited thereto; for example, the configuration may be such that the upper address side of divided areas where compressed image data and compressed attribute data are stored and the lower address side of a storage area(s) where YMCK data is stored are a common side.
As described above, in the present invention, the capacity of an image memory can be reduced and the use capacity of the image memory can be improved. In addition, by reducing the size of an image memory to be installed, costs can be reduced, making is possible to further miniaturize an image processing apparatus. Furthermore, when a secondary storage device such as an HDD is used, it becomes possible to reserve a sufficient buffer area in an image memory (primary storage device). Accordingly, without being limited to a data transfer rate to the secondary storage device, the secondary storage device can be easily used in a shared manner with other functions than buffering between the secondary storage device and the image memory. By using an image memory in a shared manner for image data and compressed data or by using an image memory in a shared manner for YMCK data and compressed data, the capacity of the image memory can be further reduced and use efficiency can be further improved.
Although in the embodiments the configuration is such that the contiguous data length Ld of a memory area D1 for compressed image data and the contiguous data length La of a memory area A1 for compressed attribute data are changed according to the compression ratio of image data and the compression ratio of attribute data, the present invention is not limited thereto; the data lengths Ld and La may be changed based on one of the compression ratio of image data and the compression ratio of attribute data.
In the embodiments, when the contiguous data length Ld of a memory area D1 for compressed image data and the contiguous data length La of a memory area A1 for compressed attribute data are changed according to the compression ratio of image data and the compression ratio of attribute data, a table in which compression ratios are associated with contiguous data lengths may be stored in the storage unit 17 or calculation may be performed using an arithmetic circuit or the like.
In the embodiments, the values of data lengths Ls, Ld, and La are merely examples and the present invention is not limited thereto.
As this invention may be embodied in several forms without departing from the spirit of essential characteristics thereof, the present embodiment is therefore illustrative and not restrictive, since the scope of the invention is defined by the appended claims rather than by the description preceding them, and all changes that fall within metes and bounds of the claims, or equivalence of such metes and bounds thereof are therefore intended to be embraced by the claims.
Number | Date | Country | Kind |
---|---|---|---|
2006-104605 | Apr 2006 | JP | national |
2006-111169 | Apr 2006 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5371610 | Sugawa | Dec 1994 | A |
5550640 | Tsuboi et al. | Aug 1996 | A |
5699117 | Uramoto et al. | Dec 1997 | A |
5801776 | Tamura et al. | Sep 1998 | A |
5959672 | Sasaki | Sep 1999 | A |
6404919 | Nishigaki et al. | Jun 2002 | B1 |
6661452 | Nishikawa | Dec 2003 | B1 |
7295712 | Hattori | Nov 2007 | B2 |
7436440 | Tagawa | Oct 2008 | B2 |
20070237405 | Harada et al. | Oct 2007 | A1 |
20070245395 | Masuda | Oct 2007 | A1 |
20080263012 | Jones | Oct 2008 | A1 |
Number | Date | Country |
---|---|---|
5-109199 | Apr 1993 | JP |
11-187261 | Jul 1999 | JP |
11-239321 | Aug 1999 | JP |
2002-29101 | Jan 2002 | JP |
Number | Date | Country | |
---|---|---|---|
20070237405 A1 | Oct 2007 | US |