The present invention relates to a technique of reducing the number of pixels of an image signal read out from an image sensing element.
Of digital still cameras, products having a function capable of photographing at almost the same number of recording pixels as the number of effective pixels of an image sensing element and also photographing at a smaller number of recording pixels than the number of effective pixels become commercially available. As the number of pixels of an image sensing element increases year by year, comfortable photographing without any stress on the user requires an increase in speed at the building components of a digital camera, and also reduction in the data amount of a signal subjected to an image process in photographing at a smaller number of recording pixels than the number of effective pixels.
To meet this request, Japanese Patent Laid-Open No. 11-308560 proposes a method of achieving an image process and recording at high speeds by performing a reduction process for data of the Bayer array of an original image and obtaining data of a Bayer array with a smaller number of pixels. According to the method of the data reduction process disclosed in this reference, however, the barycentric positions of pixel signals of data of a Bayer array after the reduction process are localized, and an image obtained as a result of a subsequent signal process degrades, a detailed description of which will be omitted.
The transformations of the conventional reduction process are given by
G′1=(G1+G2+G6+G7)/4
R′1=(R1+R2+R6+R7)/4
B′1=(B1+B2+B6+B7)/4
g′1=(g1+g2+g6+g7)/4
As shown in
The present invention has been made to overcome the conventional drawbacks, and has as its object to prevent degradation of an image as much as possible when data of the number of original pixels of an image sensing element is converted into data of a smaller number of pixels.
To solve the above problems and achieve the above object, according to the first aspect of the present invention, an image data reduction apparatus which converts first image data in which elements of a plurality of colors are arrayed within a plane into second image data having a smaller number of elements than the first image data by reducing the number of elements in a longitudinal direction, a lateral direction, or both the longitudinal direction and the lateral direction within the plane comprises first image processing means for performing one or both of a process of assigning one element of the first image data to one element of the second image data, and a process of processing a plurality of elements of the first image data and assigning the elements to one element of the second image data, so as to array barycenters of the elements of the second data at equal intervals in a direction in which the number of elements is reduced out of the longitudinal direction, the lateral direction, or both the longitudinal direction and the lateral direction.
According to the second aspect of the present invention, an image sensing apparatus comprises the image data reduction apparatus, second image processing means for performing a predetermined process for second image data output from the image data reduction apparatus to generate third image data, and recording means for recording the third image data.
According to the third aspect of the present invention, an image sensing apparatus comprises first image processing means for converting first image data in which elements of a plurality of colors are arrayed within a plane into second image data having a smaller number of elements than the first image data by reducing the number of elements in a longitudinal direction, a lateral direction, or both the longitudinal direction and the lateral direction within the plane, the first image processing means performing an addition process for signals of elements of the same color in the first image data and a decimation process for signals of a plurality of elements in the first image data so as to array barycenters of the elements of the second data at equal intervals in the longitudinal direction, the lateral direction, or both the longitudinal direction and the lateral direction, and second image processing means for processing the second image data output from the first image processing means, the second image processing means performing a process of interpolating a first color signal of the second image data by a second color signal.
According to the fourth aspect of the present invention, an image data reduction method of converting first image data in which elements of a plurality of colors are arrayed within a plane into second image data having a smaller number of elements than the first image data by reducing the number of elements in a longitudinal direction, a lateral direction, or both the longitudinal direction and the lateral direction within the plane comprises performing one or both of a process of assigning one element of the first image data to one element of the second image data, and a process of processing a plurality of elements of the first image data and assigning the elements to one element of the second image data, so as to array barycenters of the elements of the second data at equal intervals in a direction in which the number of elements is reduced out of the longitudinal direction, the lateral direction, or both the longitudinal direction and the lateral direction.
According to the fifth aspect of the present invention, a program causes a computer to execute the image data reduction method.
According to the sixth aspect of the present invention, a storage medium computer-readably stores the program.
Other objects and advantages besides those discussed above shall be apparent to those skilled in the art from the description of a preferred embodiment of the invention which follows. In the description, reference is made to accompanying drawings, which form a part hereof, and which illustrate an example of the invention. Such example, however, is not exhaustive of the various embodiments of the invention, and therefore reference is made to the claims which follow the description for determining the scope of the invention.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
For example, the transformations of the reduction process according to the first embodiment are given by
As shown in
In addition to equations (1-1) to (1-4), the first embodiment provides transformations that implement equal pitches between the barycenters of data after the reduction process, which is the gist of the present invention. These transformations can also implement the present invention. For example, equations (1-2) and (1-3) are replaced by
The following transformations which process the G and g colors as the same color are also applicable to the present invention:
For example, the transformations of the reduction process according to the second embodiment are given by
G′(m,n)=(G(2m−1,n)+G(2m,n))/2 (2-1)
R′(m,n)=(R(2m−1,n)+2×R(2m,n)+R(2m+1,n))/4 (2-2)
B′(m,n)=(B(2m−1,n)+B(2m,n))/2 (2-3)
g′(m,n)=(g(2m−1,n)+2×g(2m,n)+g(2m+1,n))/4 (2-4)
As shown in
In addition to equations (2-1) to (2-4), the second embodiment provides transformations that implement equal pitches between the barycenters of data after the reduction process, which is the gist of the present invention. These transformations can also implement the present invention. For example, equations (2-2) and (2-4) are replaced by
R′(m,n)=R(2m,n) (2-2′)
g′(m,n)=g(2m,n) (2-4′)
The second embodiment has described the reduction process in only the lateral direction, but a reduction process in only the longitudinal direction can also similarly be achieved.
In
The outline of operation from photographing to recording will be explained step by step.
When the microcomputer 6 recognizes an operation to the release button of the operation switch 7, the microcomputer 6 forms an object image on the image sensing element 1 via an image sensing optical system (not shown). After a proper exposure period, analog image data is read out column by column from the image sensing element 1. The analog image data is converted into digital data by the A/D converter 2, and the digital data is supplied as the first digital image data to the reduction processing circuit 3.
The reduction processing circuit 3 receives pixel count selection information of the pixel count selection button of the operation switch 7 from the microcomputer 6. If a reduction process is unnecessary, the first digital image data is directly sent to the digital signal processing circuit 4; if a reduction process is necessary, digital image data having undergone the reduction process is sent as the second digital image data to the digital signal processing circuit 4.
The digital signal processing circuit 4 sequentially sets control signals to respective units such as the system controller 13 from the microcomputer 6 via the microcomputer interface 14 and bus 9. The second digital image data undergoes a predetermined image process by the image processor 10. The image processor 10 executes the following process. The third embodiment adopts a color image sensing element of a Bayer array. Pixels covered with green filters are interpolated by signals from pixels covered with red filters on two sides of each of the green filters in the horizontal direction, forming signals of a red component. Also, the pixels covered with green filters are interpolated by signals from pixels covered with blue filters on two sides of each of the green filters in the vertical direction, forming signals of a blue component. The same interpolation process is done for pixels on which red filters or blue filters are arranged. After the process by the image processor, if necessary, the second digital image data is contracted by the contraction circuit 11, for example, JPEG-compressed by the compression circuit 12, and recorded on the recording medium 8 in a proper file format via the recording medium interface 15.
The second digital image signal changes in format through a series of processes, and is exchanged between the building units of the digital signal processing circuit 4 and the memory 5 via the bus 9. When the second digital signal is obtained by reducing the number of pixels by the reduction processing circuit 3, the processing amount by the units of the digital signal processing circuit 4 and the traffic of the bus 9 decrease in comparison with a digital signal subjected to no reduction process, shortening the time of a series of processes.
In the third embodiment, the processing method changes as follows between a case in which an image is obtained without decreasing the resolution and a case in which an image is obtained by decreasing the resolution.
The case in which the resolution is not decreased will be explained.
A signal is input to the digital signal processing circuit and undergoes a signal process without performing any reduction process by the reduction processing circuit 3 regardless of selecting a still picture mode in which one still picture is taken every time the release switch is pressed or a sequential shooting mode in which a plurality of still pictures are sequentially taken every time the release switch is pressed.
The case in which the resolution is decreased will be explained.
A signal undergoes a reduction process by the reduction processing circuit 3, is input to the digital signal processing circuit 4, and undergoes a signal process regardless of selecting the still picture mode in which one still picture is taken every time the release switch is pressed or the sequential shooting mode in which a plurality of still pictures are sequentially taken every time the release switch is pressed.
The third embodiment is particularly effective for the sequential shooting mode in which sequential shooting is performed by decreasing the resolution because the number of pixels is reduced before input to the digital signal processing circuit 4.
The reduction processing circuit 3 is configured in accordance with transformations as described in the first and second embodiments so as to make the pitches between the barycenters of data after a reduction process equal to each other. Thus, a final image which hardly degrades in comparison with a conventional image can be attained.
The contraction circuit 11 generates a final image by contraction in a direction in which no reduction process is done when the reduction processing circuit 3 executes a reduction process in only the lateral or longitudinal direction, as described in the second embodiment.
In the first and second embodiments, the planar layout of signals is a so-called Bayer array. However, the present invention can also be applied to an array of another type.
As described above, according to the embodiments, the data amount in subsequent processes can be decreased, and a high-quality final image can be obtained by performing a reduction process in the longitudinal or lateral direction or both the longitudinal and lateral directions.
The object of the embodiments is also achieved when a storage medium (or recording medium) which stores software program codes for realizing the functions of the above-described embodiments is supplied to a system or apparatus, and the computer (or the CPU or MPU) of the system or apparatus reads out and executes the program codes stored in the storage medium. In this case, the program codes read out from the storage medium realize the functions of the above-described embodiments, and the storage medium which stores the program codes constitutes the present invention. The functions of the above-described embodiments are realized when the computer executes the readout program codes. Also, the functions of the above-described embodiments are realized when an OS (Operating System) or the like running on the computer performs some or all of actual processes on the basis of the instructions of the program codes.
Furthermore, the functions of the above-described embodiments are also realized when the program codes read out from the storage medium are written in the memory of a function expansion card inserted into the computer or the memory of a function expansion unit connected to the computer, the CPU of the function expansion card or function expansion unit performs some or all of actual processes on the basis of the instructions of the program codes.
The present invention is not limited to the above embodiments and various changes and modifications can be made within the spirit and scope of the present invention. Therefore, to apprise the public of the scope of the present invention the following claims are made.
This application claims priority from Japanese Patent Application No. 2003-361134 filed on Oct. 21, 2003, which is hereby incorporated by reference herein.
Number | Date | Country | Kind |
---|---|---|---|
2003-361134 | Oct 2003 | JP | national |