The present invention relates to a technology of capturing of a large sized image with a small capacity of a memory in an image capturing device of capturing an image (still image or moving image).
The image size being possible of capturing has become growing steadily with the increasing function of an image capturing device, especially of a still image capturing device (camera).
Here, the technology which can easily get correlation between divided image data obtained from dividing an image and image information on divided image data thereof is proposed. The technology includes a buffer memory, an image signal generating unit that generates readout signal by dividing an image from the buffer memory, an image information generating unit that generates image information of an image that is divided and readout, a multiplexing unit that multiplexes the image signal and the image information, a synchronization code detecting unit that separates the divided image data and the image information from the multiplexed image signal, an image encoding unit that encodes the separated divided image data, and a multiplexing unit that multiplexes the separated image information and an encoded bit stream (for example, refer to patent document 1).
Patent document 1: Japanese Patent Laid-Open No. 2000-244912
However, since the image encode processing is performed after all images are obtained in the related technology, a large memory as much as for the image size in the image capturing device is necessary, and the large amount of capacity with the increase of an image size has made difficult on the implement.
Especially, when a rotation is required, memory for two images is required before and after the rotation (because the original image cannot be processed by the form of replacement in a rotational process), therefore the capacity required will increase further.
It is an object of the present invention to provide an image capturing device, encoding method, and program that can reduce the capacity of a memory necessary for a process even if capturing of a large sized image is required.
In order to achieve the object, the present invention will have the following features.
The image capturing device of the present invention comprises a division transfer means for individually outputting arbitrary rectangular areas in captured images, a division encoding means for encoding the data from the said division transfer means using a partial encoder, and an combining means for combining the encoded data at the end.
Furthermore, the encoding method of the present invention comprises a division transfer step for individually outputting arbitrary rectangular areas in captured images, a division encoding step for encoding the data from the said division transfer means using a partial encoder, and an combining step for combining the encoded data at the end.
Furthermore, the program of the present invention is characterized by comprising a division transfer step for individually outputting arbitrary rectangular areas in captured images, a division encoding step for encoding the data from the said division transfer means using a partial encoder, and an combining step for combining the encoded data at the end.
According to the present invention, even when the capturing of a large sized image is required, the capacity of a memory required for processing can be reduced.
Hereinafter, preferred embodiments of the present invention will be described in detail with referent to the drawings. The basic structure of the present invention is shown in
A camera module has a sensor, and converts the image formed in a sensor by a built-in lens or an external lens to digital data (image data).
An input buffer is a RAM which accumulates image data that the camera module outputted.
An image encoder has a function to encode image data in the format of storage, and JPEG encoder and the like is used.
An output buffer is a memory which outputs encoded image data.
A control unit is a program or a system which controls each part according to the operation and the like by a user.
The structure itself of
As a typical example, when an image of 5 Mpixel with 16 bit/pixel is divided into three parts, only 1.67 Mpixel (3.3 Mbyte) is required according to the method of the present invention whereas normally 5 Mpixel (10 Mbyte) would be required.
A lens has a function to form an image of incident ray on a sensor. The lens may be external.
A readout, image processing unit generates image data (raster image) by converting and processing a signal that is readout from the sensor.
An image RAM is a RAM which holds generated image data. The size of one picture is required for the image RAM.
A rectangular readout unit has a function to cut out arbitrary rectangular areas designated by a control unit from an image (of one picture) stored in the image RAM, and to give to a host interface.
The host interface has a function to receive the direction from a host device (in this embodiment, the image capturing device), and a function to transfer an image to the host device.
The control unit is a program or a system, which controls each part under the direction from the host device.
Among the configuration of
The partial encoder is a process configured as to encode one part of an image when only that one part of an image is inputted.
In a general image encoding method (JPEG, etc.), an image is divided into small blocks (such as 16×16 pixel), each of which is encoded to construct a stream data with a header.
The partial encoder is equivalent to the encoding process of each block extracted from the above method, and has a function to perform the encode processing of each block included in an inputted image and to write the intermediate result in a memory.
The stream combining process has a function of adding a header by having the configuration as the intermediate result stored in the partial stream holding buffer as one stream.
Since the partial stream holding buffer holds an encoded image, not a raster image, the partial stream holding buffer should keep only the capacity according to the size after an encoding. Typically, it is about 1 Mbyte to 2 Mbyte in a JPEG image of 5 Mpixel. Furthermore, the partial stream holding buffer and an output buffer may be in common.
Next, an operation of this embodiment will be described. First, the control unit gives a capturing direction to the camera module, the camera module acquires a sensor image, and generates an image on an image RAM inside the camera module.
Next, by the method shown in
Each part being divided will be processed as follows.
(1) One area divided from a camera module is acquired. The acquired data is stored in an input buffer.
(2) By the partial encoder of an image encoder, an image stored in an input buffer is partially encoded. The result of the encoding is stored in a partial stream holding buffer. At this point, it is a partial stream and because a header is not added yet, it is in an incomplete state as an encoded image data.
(3) (1)˜(2) is repeated as many times as the division number.
(4) By the stream concatenation process of an image encoder, partial streams stored in the partial stream holding buffer are combined. The combined stream is outputted to an output buffer as the encoded data, to which a header is added.
After the all of the above is being performed, a control unit directs the elimination of the image and disconnection of the power to a camera module, and completes the process by storing the encoded image data to an external storage device and the like if necessary.
Further, although it is divided in a horizontally long reed shape in
Another embodiment of the present invention is shown in
In
Unlike the case in
According to this embodiment, an image is divided in a horizontal direction on an image RAM of the camera module. Depending on the division number, a capacity of the intermediate buffer and the input buffer is determined as follows.
The length of the divided side=horizontal width on the image RAM the number of the division
The capacity of the intermediate buffer=the length of the divided side×the capacity that can store an image of the length of the divided side
The capacity of the input buffer=longitudinal width on the image RAM×the capacity that can store an image of the length of the divided side
Referring now to
First, a square area corresponding to the length of the divided side×the length of the divided size is acquired from the camera module. The image data acquired will be stored in an intermediate buffer.
Next, the image of the intermediate buffer is rotated in an image rotational process, and stored in an input buffer. At this time, the squared area is stored in order to be stored in the input buffer in the rotated state of the divided area.
The above-mentioned two steps are repeated as many times as the longitudinal width the division number, on the image RAM.
Then, the image stored in the input buffer is partially encoded by a partial encoder of an image encoder. The result of the encoding is stored in a partial stream holding buffer.
The above-mentioned four steps are repeated as many times as the number of the division.
Finally, by the stream concatenation process of an image encoder, partial streams stored in the partial stream holding buffer are combined. The combined stream is outputted to an output buffer as the encoded data, to which a header is added.
As described above, even when a rotation is necessary, by adding a small capacity of a memory according to the number of the division to the intermediate buffer, the function of encoding by rotating can be realized.
According to this embodiment, even if the capturing of a large sized image is required, the capacity of a memory required for processing, and especially, the additional capacity of a memory required for the rotation can be reduced.
In addition, each embodiment mentioned above is the preferred embodiment of the present invention, and various changes can be made without departing from the scope of the invention. For example, a process of realizing a function of a device may be performed by having the device to read the program for realizing a function of an image capturing device. Further, the program thereof may be transmitted to other computer systems by a CD-ROM that is computer readable recording medium, or a magneto optical disk, or an internet being as a transmission medium, or a transmitted wave via telephone lines and the like.
In addition, this application claims the priority of Japanese patent application No. 2007-303094 filed on Nov. 22, 2007, the disclosure of which is incorporated herein in its entirety by reference.
The present invention, for example, is applicable to an image capturing device capturing an image (still image or moving image).
Number | Date | Country | Kind |
---|---|---|---|
2007-303094 | Nov 2007 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2008/070819 | 11/14/2008 | WO | 00 | 4/14/2010 |