1. Field of the Invention
The present invention relates to a stereoscopic image pickup apparatus capable of photographing stereoscopic images.
2. Description of the Related Art
In recent years, digital cameras and video cameras capable of photographing an object stereographically are produced commercially. Images photographed by two lenses are reproduced as stereographic images by using left and right parallax. In an image photographing apparatus not having a convergence angle and an angle adjustment function, an area where stereographic images are photographable is decided by a relation between a distance to the object and a focal length.
Lenses 1102L and 1102R respectively photograph images for left eyes and right eyes of cameras. Both object distances 1104 of
In other words, when users operates to the telephoto side so as to perform zooming, the users cannot view stereoscopically since a parallax amount between the left and right becomes too large.
Lenses 1202L and 1202R respectively photograph images for left eyes and right eyes of cameras. As illustrated in
In other words, when the object distance is too close, the users cannot view stereoscopically since a parallax amount between the left and right becomes too large.
Japanese Patent Laid-Open No. 2008-205758 discloses a system where a distance from a camera to an object is measured and a zoom magnification is adjusted when the object is positioned at a close distance.
However, in Japanese Patent Laid-Open No. 2008-205758, the object becomes smaller and is hard to watch since a focal length is changed to a wide side and an angle of view is changed when the distance between the camera and the object becomes shorter.
In view of these problems, it is an object of the present invention to provide a stereoscopic image pickup apparatus capable of properly setting a size of an object while maintaining an appropriate parallax amount.
A stereoscopic image pickup apparatus as an aspect of the present invention includes a plurality of image pickup units configured to acquire a plurality of images at each viewpoint by photographing an object from a plurality of different viewpoints, a measuring unit configured to measure an object distance which is a distance between the plurality of image pickup units and the object, a calculation unit configured to calculate an effective range where the plurality of images becomes parallax viewable stereoscopically, a control unit configured to control a focal length of the plurality of the image pickup units so that the object distance and the focal length are within the effective range and an image expanding and reduction unit configured to expand each image region of the plurality of images according to a control of the focal length by the control unit
Further features of the present invention will become apparent from the following description of exemplary embodiments (with reference to the attached drawings).
Exemplary embodiments of the present invention will be described below with reference to the accompanied drawings.
A camera unit 100 has two image pickup units which comprise a lens unit, an image pickup element and an A/D processing unit so as to create a stereoscopic image by photographing from left and right viewpoints. Additionally, though it is not illustrated in
Lens units 101R and 101L include a fix lens group for collecting a light, a variable power lens group, an aperture and a correction lens group which corrects an imaging position moving according to movement of the variable power lens group and performs focusing. The lens units 101R and 101L respectively form optical images of an object on imaging surfaces of image pickup elements 102R and 102L. The image pickup elements 102R and 102L are photoelectric conversion elements constituted by a CCD sensor or a CMOS sensor, and output image pickup signals by photoelectrically converting the object formed on the imaging surfaces. The A/D processing units 103R and 103L perform a predetermined processing to the image pickup signals output from the image pickup elements 102R and 102L, and output digital image data.
A microphone unit 104 is used for collecting sound in the case of photographing, and performs a predetermined amplification and a band limiting. An A/D processing unit 105 outputs a digital sound data in response to the output of the microphone unit 104.
An encoder unit 106 receives the digital image date from the A/D processing units 103R and 103L and the digital sound data from the A/D processing unit 105 so as to compress a video by a control of a CPU (a Central Processing Unit) 120. The digital image data has parallax for a right and left eye input from the two image pickup units. Data compressed a video is further multiplexed in chronological order so as to generate a compression video data. Additionally, the encoder unit 106 notices information, for example, necessary for conversion of a data position and a frame position to the CPU 120.
A recording and reproducing circuit 107 has an interface with the encoder unit 106, a memory 108, a memory card 109, a decoder unit 110, and a bus 111. The recording and reproducing circuit 107 controls transfer of data by the control of the CPU 120 connected to the bus 111. The recording and reproducing circuit 107 has a direct memory access (DMA) function that reading data and writing data are automatically transferred by specifying the leading address and the data amounts of the memory 108 and the write leading address of the memory card 109.
Video data photographed is stored in the memory card 109. The memory card 109 is not only a recording medium and has an interface connectable to the recording and reproducing circuit 107 so as to read/write data to the memory card 109.
The decoder unit 110 sequentially reads a compression video data and a compression still image data from the address of the memory 108 specified by the CPU 120.
The read compression video data and compression still image data is converted to a digital video signal and a digital sound signal, e.g., ITU-R BT.656 (CCIR656) so as to output. A reduction processing is performable, if necessary, in the case of reproducing the compression still image data.
The buss 111 is connected to each block and is a transmission path which transfers a data according to the control of the CPU 120.
A sound output unit 112 converts the digital sound data converted by the decoder unit 110 to a predetermined signal so as to output the signal to the outside and is connected to a television receiver.
An on screen display (hereinafter referred to as “an OSD”) 113 overlaps a video output with information such as a menu screen so as to perform various settings, a title and a time. Additionally, the OSD 113 captures a digital video signal input from the decoder unit 110, processes a reduction processing to the signal and overlaps the signal at an arbitrary position. A video output unit 114 converts the digital sound data converted by the decoder unit 110 to a predetermined signal so as to output the signal to the outside and is connected to a television receiver.
An EVF (Electronic View Finder) 115 is used as a small window so as to look into the object. A liquid crystal panel 116 is used as a monitor screen so as to display the object. A touch panel operation unit 117 is used along with the liquid crystal panel 116. Thumbnail images and virtual buttons are displayed by the liquid crystal panel 116 and accept the operation of the users by the touch panel operation unit 117. A screen control unit 118 calculates input from the touch panel operation unit 117 and decides pushing of the virtual buttons. Further, the screen control unit 118 also performs a control of the virtual buttons so as to output to the liquid crystal panel 116.
A camera control CPU 119 controls the camera unit 100 according to the control of the CPU 120. Additionally, the camera control CPU 119 transmits information of the camera unit 100, e.g., focus information and image stabilization information acquired from the camera unit 100, to the CPU 120.
The CPU 120 controls the whole system. The CPU 120 has a non-volatile memory (a ROM) storing programs, a volatile memory (a RAM) which becomes an operation region, an external bus so as to transfer data to other hardware and access to a control register, and a timer measuring time. The CPU 120 includes software handling a predetermined file system. According to this file system, reading and writing of data to the memory card 109 are performed. An EEPROM 121 is rewritable ROM. A switch operation unit 122 includes a switch which starts a recording of a video and a zoom button which changes the focal length. The CPU 120 decides input signals by operations of the users so as to operate the switch operation unit 122.
A face detection unit 123 performs a face detection processing to the image data photographed by the image pickup elements 102R and 102L so as to detect face area of figures included in the image. The face detection processing is performed by the well-known algorithm. For example, feature points such as each end point of eyes, noses and mouths and a contour point of faces are extracted from data of a through image or an image by the well-known processing which extracts feature points, and the face area of the objects and the size of the faces are detected based on these feature points.
A face recognition unit 124 generates face authentication data which indicates the feature of the face as the authentication object based on the output of the face detection unit 123. For example, the face recognition unit 124 generates the face authentication data from the position of the feature points of the detected face, the size of the face part acquired from the feature points, and a relative distance of each feature point.
A depth measuring unit 125 performs a depth detection processing by the well known detection method and measures distance information between the camera and the object.
A focal length changing unit 126 changes the focal length according to the zooming from the user.
An image segmentation unit 127 segments a part of the image region from the image and an image expanding and reduction unit 128 performs expanding and constructing of image so as to realize a digital zoom.
An object detection unit 129 includes the face detection unit 123 and the face recognition unit 124, and detects the object of the image input from the camera unit 100.
The focal length changing unit 126 has a focal length calculation unit 126A, an optical zoom variable range restriction unit 126B, and a focal length control unit 126C.
The focal length calculation unit 126A calculates an optical zoom effective range viewable stereoscopically according to a distance between the camera detected by the depth measuring unit 125 and the object. Calculation of the focal length viewable stereoscopically is determined with reference to the focal length variable range table in the EEPROM 121. In this embodiment, since the convergence angle and the base length of the lens units 101R and 101L are always fixed, the focal length variable range table is previously prepared.
The optical zoom variable range restriction unit 126B sets the optical zoom effective range calculated by the focal length calculation unit 126A to the focal length control unit 126C. The switch operation unit 122 notifies focal length change instruction to the focal length changing unit 126C according to the zooming of the user.
The focal length control unit 126C changes the focal length of the lens unit according to instructed focal length. When the user sets the focal length control unit 126C to a focal length outside the optical zoom effective range, the focal length control unit 126C restricts a focal length to the restriction value of the optical zoom variable range restriction unit 126B.
A segmentation region calculation unit 130 calculates a segmentation position of the image according to the output from the focal length control unit 126C. The segmentation region calculation unit 130, as described later, calculates the segmentation position viewable stereoscopically.
The image segmentation unit 127 segments a part of image region from an image based on the segmentation region calculation unit 130. The segmented image is expanded and constructed by the image expanding and constructing unit 128 and is displayed on the liquid crystal panel 116.
When the focal length input from the switch operation unit 122 is within the optical zoom effective range, the image segmentation unit 127 outputs original images to the liquid crystal panel 116 without segmenting the image.
The operation at the change of the focal length is explained by using the flowchart of
In S301, the face detection unit 123 detects the object from the input image and the face recognition unit 124 recognizes the object.
In S302, the depth measuring unit 125 measures a distance between the camera and the object.
In S303, the optical zoom variable range restriction unit 126B sets the optical zoom effective range calculated by the focal length calculation unit 126A to the focal length control unit 126C.
In S304, the focal length operated by the user is compared with the optical zoom effective range set in S303. When the focal length operated by the user is within the optical zoom effective range, the optical zoom is set in S307. The optical zoom sets the focal length input from the switch operation part 122 to the focal length control unit 126C and changes the focal length of the lens units 101R and 101L. When the focal length operated by the user exceeds the optical zoom effective range, the focal length input from the switch operation unit 122 is restricted to the restriction value of the optical zoom variable range and the restriction value of the optical zoom variable range is set to the focal length control unit 126C in S305. The difference value of the focal length restricted in S305 is set to the segmentation region calculation unit 130. The segmentation region calculation unit 130 calculates the segmentation position corresponding to the difference value of the focal length.
In S306, it is judged whether the digital zoom of the stereoscopic image pickup apparatus of this embodiment is effective or not. When the digital zoom is not effective, the optical zoom is set to the restricted focal length. When the digital zoom is effective, it is judged whether the user operates the focal length of the switch operation part 122 to the telephoto side or not in S308.
In S308, when the user operates the focal length to the telephoto side, it proceeds to S309. In S309, the digital zoom is set and the segmentation position is changed.
The operation of the segmentation region calculation unit 130 is explained by using
Here, if the digital zoom magnification is set to “m” times, data multiplied an area, which is multiplied by “1/m” times longitudinally and horizontally from the image R for the right eyes in
When the image segmentation unit 127 segments the calculated segmentation region and the image expanding and constructing unit 128 expands it, digital zoom is realized.
When the user does not operate the focal length to the telephoto side in S308, it proceeds to S310. In S310, the optical zoom is performed from the restriction value on the wide side restricted by the optical zoom variable range restriction unit 126B and it returns to S301.
Therefore, when the zooming is operated in the stereoscopic image pickup apparatus which does not have an angular adjustment function, a stereoscopic image is performable without damaging the stereoscopic effect by restricting a range where the focal length is variable according to a distance to the object.
A lens position acquiring unit 131 acquires the focal length of the present camera unit 100 from the camera control CPU 119.
An object distance calculation unit 132 calculates an object distance effective range viewable stereoscopically relative to setting focal length. Calculation of the focal length viewable stereoscopically is determined with reference to the object distance effective range table in the EEPROM 121. In this embodiment, since the convergence angle and the base length of the lens units 101R and 101L are always fixed, the relation of the focal length and the object distance is previously prepared as the object distance effective range table.
A viewable distance determining unit 133 determines whether the object is within a distance viewable stereoscopically or not by comparing the distance to the object measured by the depth measuring unit 125 with the object distance effective range of the object distance calculation unit 132.
The focal length changing unit 126 sets the camera control CPU 119 to the focal length according to the focal length set by the viewable distance determining unit 133. The camera control CPU 119 changes the focal length of the camera unit 100.
The segmentation region calculation unit 130 calculates a segmentation position of an image according to a magnification of the viewable distance determining unit 133.
A recording unit 134 includes the recording and reproducing circuit 107 and the memory card 109, and records the image viewable stereoscopically from the image expanding and constructing unit 128.
When the object is within a distance viewable stereoscopically, the image segmentation unit 127 outputs original images to the liquid crystal panel 116 without segmenting the image.
The operation when the object is close is explained by using the flowchart of
In S501, the face detection unit 123 detects the object from the input image and the face recognition unit 124 recognizes the object.
In S502, the depth measuring unit 125 measures a distance between the camera and the object.
In S503, the object distance calculation unit 132 calculates the object distance effective range viewable stereoscopically from the focal length according to setting focal length.
In S504, the viewable distance determining unit 133 determinates whether the object distance is within the object distance effective range viewable stereoscopically or not. When the object distance is within the object distance effective range, it returns to S501. When the object distance is outside the object distance effective range, it proceeds to S505.
In S505, it is determined whether the object is closer than the object distance effective range or not from the distance to the object. When the object does not approach, it returns to S501. When the object is closer than the object distance effective range, it proceeds to S506.
In S506, the optical zoom and the digital zoom are set so as to maintain the angle of view constantly and keep the stereoscopic effect. The optical zoom is set to the wide side so that the object distance is within the object distance effective range. The focal length is calculated from the object distance and the object distance effective range and is set to the focal length changing unit 126. The digital zoom, as described later, controls parallax amounts by changing the segmentation position from images for the right and left eyes. The segmentation region calculation unit 130 calculates the segmentation position based on the focal length set from the viewable distance determining unit 133.
The operation of the segmentation region calculation unit 130 is explained by using
The operation of the segmentation region calculation unit 130 is explained by using
In this embodiment, when the object distance changes from d0 to d1 in the case the focal length is f0, the focal distance f1 viewable stereoscopically at the object distance d1 is calculated referring to the object distance effective range table. Calculated focal length f1 is set to the focal length changing unit 126 and the optical zoom is changed from f0 to f1.
An image when setting the optical zoom to the wide side is illustrated in
As stated above, the digital zoom is performed so that the focal length is changed and parallax amounts are constant according to the object distance. The image segmentation unit 127 segments the calculated segmentation region and the image expanding and constructing unit 128 enlarges the segmented region so as to realize the digital zoom.
Therefore, when the object moves in a stereoscopic image pickup apparatus does not have the angle adjustment function, the stereoscopic photographing is possible without damaging the stereoscopic effect by using both the optical zoom and the digital zoom so as to maintain the angle of view according to the distance to the object.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2013-020246, filed on Feb. 5, 2013, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2013-020246 | Feb 2013 | JP | national |