WO2012140919A1 - Stereo image generation device and stereo image generation method - Google Patents

Stereo image generation device and stereo image generation method Download PDF

Info

Publication number
WO2012140919A1
WO2012140919A1 PCT/JP2012/002602 JP2012002602W WO2012140919A1 WO 2012140919 A1 WO2012140919 A1 WO 2012140919A1 JP 2012002602 W JP2012002602 W JP 2012002602W WO 2012140919 A1 WO2012140919 A1 WO 2012140919A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
unit
captured image
pixels
imaging
Prior art date
Application number
PCT/JP2012/002602
Other languages
French (fr)
Japanese (ja)
Inventor
孝幸 有馬
東郷 仁麿
和之 田中
井村 康治
中村 剛
郁雄 渕上
Original Assignee
パナソニック株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2011090395A external-priority patent/JP2014132700A/en
Priority claimed from JP2011090396A external-priority patent/JP2014132701A/en
Application filed by パナソニック株式会社 filed Critical パナソニック株式会社
Publication of WO2012140919A1 publication Critical patent/WO2012140919A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/204Image signal generators using stereoscopic image cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/204Image signal generators using stereoscopic image cameras
    • H04N13/25Image signal generators using stereoscopic image cameras using two or more image sensors with different characteristics other than in their location or field of view, e.g. having different resolutions or colour pickup characteristics; using image signals from one sensor to control the characteristics of another sensor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/40Extracting pixel data from image sensors by controlling scanning circuits, e.g. by modifying the number of pixels sampled or to be sampled
    • H04N25/44Extracting pixel data from image sensors by controlling scanning circuits, e.g. by modifying the number of pixels sampled or to be sampled by partially reading an SSIS array
    • H04N25/443Extracting pixel data from image sensors by controlling scanning circuits, e.g. by modifying the number of pixels sampled or to be sampled by partially reading an SSIS array by reading pixels from selected 2D regions of the array, e.g. for windowing or digital zooming

Definitions

  • the present invention relates to a stereo image generating apparatus and a stereo image generating method suitable for use in a compound-eye camera for capturing a stereo image that captures a stereo image.
  • the compound-eye camera described in Patent Document 1 includes a plurality of imaging means (i.e., cameras) having a maximum number of pixels that can be photographed and an angle of view, and one camera has an angle of view compared to the other camera. Is narrow, and the maximum number of pixels that can be shot is small.
  • the image captured by a camera with a high number of pixels is reduced or cut out according to the number of pixels of the image captured with a camera with a low number of pixels and the angle of view.
  • the number of pixels of the image and the angle of view are combined to generate a stereo image.
  • one of the cameras with a large number of pixels is used to reduce the number of pixels of an image captured by a camera with a large number of pixels.
  • the number of pixels of a stereo image that can be photographed is limited to the number of pixels of a camera with a low number of pixels.
  • the present invention has been made in view of the above circumstances, and a stereo image of high pixels can be taken without using two high pixel number imaging means, and a stereo image that can be sufficiently stereoscopically viewed.
  • An object of the present invention is to provide a generating device and a stereo image generating method.
  • a stereo image generating device has a first number of pixels, has an optical zoom function, and has a first imaging unit for picking up a first captured image, and a second smaller than the first number of pixels.
  • a second imaging unit configured to capture a second captured image having the number of pixels and having an electronic zoom function, and a resolution adjustment unit configured to adjust a difference in resolution between right and left based on a zoom magnification designated in stereo image shooting; Equipped with
  • two imaging units with different resolutions pick up two images, and adjust the left and right resolution differences based on the specified zoom magnification, so two imaging units with high pixels can be used. Therefore, the cost can be reduced and the mounting area can be reduced.
  • the first imaging unit performs an optical zoom operation based on the zoom magnification specified in stereo image shooting
  • the second imaging unit performs an electronic zoom operation
  • the zoom magnification is a predetermined magnification.
  • the first and second captured images are converted to the third pixel number and the predetermined magnification is exceeded, the first and second captured images are processed.
  • An image resizing unit configured to convert the image data into a fourth pixel number smaller than the third pixel number; an image encoding unit configured to encode the first captured image and the second captured image converted by the image resizing unit; A stereo image file for converting the first captured image and the second captured image encoded by the image encoding unit into a stereo image format to generate a stereo image And Tsu door conversion unit, equipped with.
  • the first imaging unit having high pixels and the second imaging unit having pixels lower than the first imaging unit are provided, and when the optical zoom magnification is equal to or less than the predetermined magnification, the first imaging unit is
  • the first captured image captured by the imaging unit and the second captured image captured by the second imaging unit have a third pixel count, specifically, a pixel count higher than the pixel count of the second imaging unit.
  • the first captured image and the enlarged second captured image are encoded, and the encoded first and second captured images are converted into a stereo image format to generate a stereo image.
  • the first captured image captured by the first imaging unit and the second captured image captured by the second imaging unit are used as the third pixel count.
  • the resized and resized first captured image and second captured image to a smaller fourth pixel number, and the encoded first captured image and second captured image are converted to a stereo image format Generate a stereo image.
  • the optical zoom magnification is equal to or less than the predetermined magnification
  • the number of pixels of the captured image of the low pixel imaging unit is higher than that of the low pixel imaging unit without using two high pixel imaging units. It becomes possible to capture a stereo image.
  • the number of pixels of the stereo image generated when the optical zoom magnification is equal to or less than the predetermined magnification is smaller than the first captured image and the second While suppressing the resolution of the captured image to a certain ratio or less, it is possible to capture a stereo image that has a pixel size higher than the number of pixels of the captured image of the low pixel imaging unit and that is easy to view stereoscopically.
  • the conversion of the first captured image and the conversion of the second captured image, which are performed by the image resizing unit, are enlargement, reduction, or equal-scale conversion.
  • the configuration it is possible to match the number of pixels of the first captured image captured by the first imaging unit with the number of pixels of the second captured image captured by the second imaging unit.
  • the image processing apparatus further includes a zoom magnification threshold storage unit configured to hold a predetermined magnification of the optical zoom magnification as a zoom magnification threshold, and the image resizing section includes the first captured image and the second imaged image based on the zoom magnification threshold. Resize the captured image of.
  • the difference in resolution between the first captured image and the second captured image can be limited to within a certain fixed value.
  • the third number of pixels is the first number of pixels.
  • the first imaging unit includes a first angle of view
  • the second imaging unit includes a second angle of view narrower than the first angle of view
  • the first imaging is performed.
  • An angle of view correction unit that trims the first or second captured image according to the optical zoom magnification of the unit; the image encoding unit is trimmed by the angle of view correction unit; and the image resizing unit The first captured image in which the number of pixels is converted and the second captured image in which the number of pixels is converted in the image resizing unit are encoded.
  • the angle of view correction unit by providing the angle of view correction unit, the first captured image can be made smaller.
  • the image capturing apparatus further includes an angle of view information holding unit that holds angle of view correction information for each optical zoom magnification of the first imaging unit, and the angle of view correction unit trims based on the angle of view correction information.
  • a position correction unit that corrects at least one of vertical shift, horizontal shift, rotational shift, or size shift with respect to either the first captured image or the second captured image.
  • the image encoding unit is corrected by the position correction unit, and the first resized image is converted by the image resizing unit to the predetermined number of pixels, and the image correction unit is corrected by the position correction unit. And encode the second captured image converted into the predetermined number of pixels.
  • the position correction unit corrects at least one of vertical deviation, horizontal deviation, rotational deviation, or size deviation with respect to either the first captured image or the second captured image.
  • the position correction unit corrects at least one of vertical deviation, horizontal deviation, rotational deviation, or size deviation with respect to either the first captured image or the second captured image.
  • the image pickup apparatus further includes a position correction information holding unit that holds position correction information for each optical zoom magnification of the first imaging unit, and the position correction unit is vertically offset, horizontal offset, or rotational offset based on the position correction information. Or correct at least one of the size deviations.
  • a color for performing color correction on the first captured image and / or the second captured image with respect to the difference in color between the first captured image and the second captured image is provided, and the image encoding unit encodes the first captured image whose color is corrected by the color correction unit and the second captured image.
  • color correction of the first captured image and / or the second captured image can be performed by providing the color correction unit.
  • an image filter unit that performs averaging processing on peripheral portions of respective images of the first captured image and the second captured image
  • the image encoding unit includes pixels in the image resizing unit. After the number conversion is performed, the first captured image subjected to the averaging process by the image filter unit and the pixel number conversion performed by the image resizing unit are averaged by the image filter unit. And encoding the second captured image subjected to the processing.
  • the image filter unit by providing the image filter unit, it is possible to blur the periphery of each of the first captured image and the second captured image, and between the first and second imaging units. It is possible to reduce the deterioration of the image quality of the stereo image due to the difference in lens distortion.
  • the magnitude relationship between the first pixel number, the third pixel number, and the fourth pixel number is: first pixel number ⁇ third pixel number> fourth pixel number.
  • a stereo image generating method includes a first imaging step of capturing a first captured image with a first number of pixels in a first imaging unit having an optical zoom function, and a second imaging step having an electronic zoom function.
  • An image resizing step for converting the number of pixels to a fourth number of pixels smaller than the number of pixels; an image encoding step for encoding the first captured image and the second captured image converted in the image resizing step; Enko And stereo image format conversion step of generating a stereo image by converting the first captured image and the second captured image encoded in de step to the stereo image format, with a.
  • the first imaging unit with high pixels and the second imaging unit with pixels lower than the first imaging unit using the first imaging unit with high pixels and the second imaging unit with pixels lower than the first imaging unit, the first imaged image imaged by the first imaging unit To a predetermined number of pixels, and the second picked-up image picked up by the second image pickup unit to a predetermined number of pixels, and thus the resized first picked-up image and the second picked-up image are encoded And convert the encoded first and second captured images into a stereo image format to generate a stereo image, so that a high-pixel stereo image is captured without using two high-pixel imaging means. It is possible to
  • the number of pixels of the stereo image generated when the optical zoom magnification is equal to or less than the predetermined magnification is smaller than the number of pixels of the stereo image. While suppressing the resolution of the image to a certain ratio or less, it is possible to capture a stereo image that is higher in pixels than the number of pixels of the captured image of the low pixel imaging unit and that is easy to view stereoscopically.
  • the first imaging unit has both an optical zoom function and an electronic zoom function, and in stereo image shooting, the first imaging unit performs an optical zoom operation and an electronic operation based on a zoom magnification designated.
  • the zoom operation is performed, the second imaging unit performs the electronic zoom operation, and the first imaging unit performs the optical zoom operation when the zoom magnification is equal to or less than a predetermined magnification smaller than the upper limit magnification of the optical zoom function.
  • the second imaging unit performs the electronic zoom operation, and when the predetermined magnification is exceeded, the subsequent zoom operations perform the electronic zoom operation with the first imaging unit and the second imaging unit.
  • Image pickup control unit for controlling the image pickup control unit, an image resizing unit for converting the first picked-up image and the second picked-up image into a predetermined number of pixels, and the first picked-up image converted by the image resizing unit.
  • An image encoding unit encoding the image and the second captured image; and converting the first captured image and the second captured image encoded by the image encoding unit into a stereo image format to generate a stereo image And a stereo image format converter.
  • the first imaging unit having high pixels and the second imaging unit having pixels lower than the first imaging unit are provided, and the zoom magnification is a predetermined magnification smaller than the upper limit magnification of the optical zoom function.
  • the first captured image captured by the first imaging unit by the optical zoom and the second captured image captured by the electronic zoom by the second imaging unit have a predetermined number of pixels.
  • the resized and encoded first captured image and the enlarged second captured image are converted, and the encoded first and second captured images are converted to a stereo image format to generate a stereo image.
  • the first imaging unit optically zooms to a predetermined magnification, and the zoom magnification thereafter is imaged by the electronic zoom Resizing the first captured image and the second captured image captured by the electronic zoom in the second imaging unit to a predetermined number of pixels, and encoding the resized first captured image and the second captured image;
  • the encoded first and second captured images are converted into a stereo image format to generate a stereo image.
  • the imaging of the low pixel imaging portion is performed without using two high pixel imaging means. It is possible to capture a stereo image with a pixel higher than the number of pixels of the image.
  • the resolution of the first captured image and the second captured image can be suppressed to a certain ratio or less, and a stereoscopic image which is easy to view stereoscopically is captured. be able to.
  • the conversion of the first captured image and the conversion of the second captured image, which are performed by the image resizing unit, are enlargement, reduction, or equal-scale conversion.
  • the configuration it is possible to match the number of pixels of the first captured image captured by the first imaging unit with the number of pixels of the second captured image captured by the second imaging unit.
  • the zoom magnification threshold storage unit stores the switching magnification of the zoom magnification as a zoom magnification threshold
  • the imaging control unit is configured to capture the first imaging unit and the second imaging based on the zoom magnification threshold. Switch control of the zoom operation of the unit.
  • the imaging control unit performs switching control of the zoom operation of the first imaging unit and the second imaging unit based on the zoom magnification threshold value, whereby the first imaging image and the second imaging image are displayed.
  • the difference in resolution can be limited within a certain value.
  • the predetermined number of pixels is the first number of pixels.
  • the first imaging unit includes a first angle of view
  • the second imaging unit includes a second angle of view narrower than the first angle of view
  • the first imaging is performed.
  • the image encoding unit includes the first captured image that has been trimmed by the angle of view correction unit and has the number of pixels converted by the image resizing unit, and the image resizing unit. And encoding the second captured image in which the number of pixels has been converted.
  • the angle of view correction unit by providing the angle of view correction unit, the first captured image can be made smaller.
  • the image capturing apparatus further includes an angle of view information holding unit that holds angle of view correction information for each optical zoom magnification of the first imaging unit, and the angle of view correction unit trims based on the angle of view correction information.
  • a position correction unit that corrects at least one of vertical shift, horizontal shift, rotational shift, or size shift with respect to either the first captured image or the second captured image.
  • the image encoding unit is corrected by the position correction unit, and the first resized image is converted by the image resizing unit to the predetermined number of pixels, and the image correction unit is corrected by the position correction unit. And encode the second captured image converted into a predetermined number of pixels.
  • the position correction unit corrects at least one of vertical deviation, horizontal deviation, rotational deviation, or size deviation with respect to either the first captured image or the second captured image.
  • the position correction unit corrects at least one of vertical deviation, horizontal deviation, rotational deviation, or size deviation with respect to either the first captured image or the second captured image.
  • the image pickup apparatus further includes a position correction information holding unit that holds position correction information for each optical zoom magnification of the first imaging unit, and the position correction unit is vertically offset, horizontal offset, or rotational offset based on the position correction information. Or correct at least one of the size deviations.
  • color correction is performed to correct the color of the first captured image and / or the second captured image with respect to the difference in color between the first captured image and the second captured image.
  • the image encoding unit encodes the first captured image whose color is corrected by the color correction unit and the second captured image.
  • color correction of the first captured image and / or the second captured image can be performed by providing the color correction unit.
  • an image filter unit that performs averaging processing on peripheral portions of respective images of the first captured image and the second captured image
  • the image encoding unit includes pixels in the image resizing unit.
  • the peripheral portion of each of the first captured image and the second captured image can be blurred, and a lens between the first and second imaging units It is possible to reduce the deterioration of the image quality of the stereo image due to the difference in distortion.
  • a stereo image generating method comprises: a first imaging step of imaging a first captured image with a first number of pixels in a first imaging unit having an optical zoom function and an electronic zoom function; A second imaging step for imaging a second captured image with a second number of pixels smaller than the first number of pixels in a second imaging unit having an electronic zoom function;
  • the magnification is smaller than the upper limit magnification of the zoom function
  • the first imaging unit performs the optical zoom operation
  • the second imaging unit performs the electronic zoom operation.
  • the magnification exceeds the predetermined magnification
  • the first image pickup unit and the second image pickup unit perform a zoom control step to perform electronic zoom operation, the first image pickup image, and the second image pickup image.
  • the first imaging unit with high pixels and the second imaging unit with pixels lower than the first imaging unit using the first imaging unit with high pixels and the second imaging unit with pixels lower than the first imaging unit, the first imaged image imaged by the first imaging unit To a predetermined number of pixels, and the second captured image captured by the second imaging unit to a predetermined number of pixels, and thus the resized first captured image and the second captured image are encoded. Since the encoded first captured image and the second captured image are converted to a stereo image format to generate a stereo image, a high pixel stereo image is captured without using two high pixel imaging means. It becomes possible.
  • zoom magnification exceeds a predetermined magnification, by suppressing the resolution of the first captured image and the second captured image to a certain ratio or less, a high-pixel stereo image that is easy to view stereoscopically is captured. And zoom operation is also possible.
  • the present invention since two images are captured by two imaging means having different resolutions and the left-right resolution difference is adjusted based on the designated zoom magnification, two high-pixel imaging means are used. Therefore, the cost can be reduced and the mounting area can be reduced.
  • Block diagram showing a schematic configuration of a stereo image generating apparatus according to Embodiment 1 of the present invention A flowchart showing the entire photographing process of the stereo image generating apparatus of FIG. 1 The flowchart which shows the photographing processing of optical zoom magnification below predetermined magnification of the stereo image generation device of Drawing 1 The figure which shows the process result in each step of step S30-step S32 of imaging processing of FIG. 3, and step S34.
  • a flowchart showing photographing processing when the optical zoom magnification exceeds a predetermined magnification in the stereo image generation device of FIG. 1 The figure which shows the processing result in each step of step S30-step S32 of imaging processing of FIG. 5, and step S40.
  • FIG. 8 Block diagram showing a schematic configuration of a stereo image generating apparatus according to Embodiment 2 of the present invention
  • FIG. 1 is a block diagram showing a schematic configuration of a stereo image generating apparatus according to Embodiment 1 of the present invention.
  • the stereo image generating device 1 according to the first embodiment includes a high pixel imaging unit 10-1 having an optical zoom function, a low pixel imaging unit 10-2 having an electronic zoom function, and zoom control.
  • the imaging units 10-1 and 10-2 each include an imaging element such as a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS), and output an imaging signal.
  • an image obtained by imaging by the imaging unit 10-1 is taken as a first captured image
  • an image obtained by imaging by the imaging unit 10-2 is taken as a second captured image.
  • the imaging unit 10-1 has a first angle of view
  • the imaging unit 10-2 has a second image narrower than the first angle of view of the imaging unit 10-1. It has a horn.
  • the imaging unit 10-1 also has an optical zoom function.
  • the imaging unit 10-1 may further include an electronic zoom function.
  • the imaging unit 10-2 does not have an optical zoom function, but only an electronic zoom function.
  • the zoom control unit 11 performs zoom control of the imaging units 10-1 and 10-2.
  • the autofocus control unit 12 performs autofocus control of the imaging units 10-1 and 10-2.
  • the shutter control unit 13 performs shutter control of the imaging units 10-1 and 10-2.
  • the exposure control unit 14 performs exposure control of the imaging units 10-1 and 10-2.
  • the white balance control unit 15 performs white balance control of the imaging units 10-1 and 10-2.
  • the camera operation unit 16 is for operating the stereo image generating device 1, and a signal at the time of operation such as a zoom magnification designated by the operator is input to the control unit 17.
  • the control unit 17 outputs an operation signal corresponding to the operation in the camera operation unit 16 to the imaging units 10-1 and 10-2.
  • the camera signal processing unit 18-1 resizes the first captured image captured by the imaging unit 10-1 to the size of the display unit 32 in the preview processing.
  • the camera signal processing unit 18-2 resizes the second captured image captured by the imaging unit 10-2 to the size of the display unit 32 in the preview processing.
  • the camera signal processing unit 18-1 outputs a first captured image (L: left image) of 9.7 megapixels, and the camera signal processing unit 18-2 outputs It is assumed that a second captured image (R: right image) of 2 megapixels is output.
  • the view angle correction unit 19 reduces the view angle of the first captured image captured by the imaging unit 10-1 based on the view angle correction information stored in the view angle information storage unit 20.
  • the field angle is 5.7 megapixels.
  • the angle of view of the second captured image captured by the imaging unit 10-2 may be corrected.
  • the position correction unit 21 corrects the position of the first captured image captured by the imaging unit 10-1 based on the position correction information stored in the position correction information storage unit 22. In this case, at least one of “vertical shift”, “horizontal shift”, “rotational shift”, or “size shift” is performed as the position correction.
  • the position correction may be performed on the second captured image captured by the imaging unit 10-2. That is, even if the position correction unit 21 performs position correction on either the first captured image captured by the imaging unit 10-1 or the second captured image captured by the imaging unit 10-2. Good.
  • the color correction unit 23 performs the first color difference between the second captured image captured by the imaging unit 10-2 and the first captured image captured by the imaging unit 10-1 after position correction. Color correction is performed on the captured image and the second captured image (the first captured image or the second captured image).
  • the image resizing unit 24 converts the first captured image captured by the imaging unit 10-1 into a predetermined number of pixels, and converts the second captured image captured by the imaging unit 10-2. The number of pixels is the same as that of the first captured image.
  • the image resizing unit 24 converts the first captured image captured by the imaging unit 10-1 into a predetermined number of pixels based on the zoom magnification threshold stored in the zoom magnification threshold storage unit 41, and captures an image.
  • the second captured image captured by the unit 10-2 is also converted into a predetermined number of pixels. Specifically, when the zoom magnification is equal to or less than a predetermined magnification, the first captured image and the second captured image are converted into a third number of pixels, and the predetermined magnification is exceeded. The first captured image and the second captured image are converted into a fourth pixel number. Note that the conversion of the first captured image and the conversion of the second captured image performed by the image resizing unit 24 include “equal magnification” in addition to “enlargement” and “reduction”.
  • the super-resolution processing unit 25 When the conversion of the second captured image is enlargement conversion, the super-resolution processing unit 25 performs enlargement processing by super-resolution processing without performing enlargement processing in the image resizing unit 24. It is possible to select whether to perform enlargement processing by the resize unit 24 or enlargement by super resolution processing.
  • the super-resolution processing is processing for enhancing the sharpness of the blurred portion by enlarging the image (that is, processing for achieving high image quality).
  • the image filter unit 26 reduces the pixel shift of the left and right images due to the difference in lens distortion of the two imaging units 10-1 and 10-2 so that the images of the first and second captured images are not displayed. Perform averaging processing to blur the periphery. By providing the image filter unit 26, it is possible to reduce the deterioration of the image quality of the stereo image due to the difference in lens distortion between the two imaging units 10-1 and 10-2.
  • the image encoding unit 27 conversion of the number of pixels is performed by the image resizing unit 24, and the first captured image subjected to averaging processing by the image filter unit 26 and conversion of the number of pixels by the image resizing unit 24 are performed. Furthermore, the second captured image subjected to the averaging process in the image filter unit 26 is encoded (compressed). In this case, for example, compression is performed in JPEG (Joint Photographic Experts Group) format.
  • the stereo image format conversion unit 28 converts the first captured image and the second captured image encoded by the image encoding unit 27 into a stereo image format to generate a stereo image. In this case, for example, the JPEG format is converted to an MPO (Multi-Picture Format) format.
  • the image storage unit 29 has a flash memory (SD memory or the like), and stores the stereo image generated by the stereo image format conversion unit 28.
  • the format conversion unit 30 converts the first captured image and the second captured image converted into the number of pixels matching the display unit 32 by the image resizing unit 24 into a format for displaying on the display unit 32.
  • the display control unit 31 controls the display unit 32 to display the first captured image and the second captured image converted to a format (for example, pixel by pixel) to be displayed on the display unit 32 by the format conversion unit 30. I do.
  • the display unit 32 is, for example, a liquid crystal display.
  • the user instructs activation of the imaging units 10-1 and 10-2 from the camera operation unit 16 (step S10).
  • the control unit 17 Based on this user instruction, the control unit 17 outputs an instruction to activate the imaging units 10-1 and 10-2 to the imaging control unit 40 (step S11).
  • the control unit 17 sets the optical zoom magnification of the imaging unit 10-1 to 1 ⁇ for the imaging control unit 40 (step S12).
  • steps S14 to S21 are repeated until the user instructs the camera operation unit 16 to end shooting.
  • the determination for repeating the process of step S14 to step S21 is performed in step S13 and step S22.
  • the control unit 17 detects whether the user has performed control of the camera by the camera operation unit 16 (step S14). If not detected, the processes of steps S13, S14 and S22 are repeated. On the other hand, when it is detected, the control unit 17 determines whether it is a photographing instruction (step S15). If it is the shooting instruction, the control unit 17 determines whether the current optical zoom magnification is equal to or less than the zoom magnification threshold read from the zoom magnification threshold storage unit 41 (step S16). If the determination in step S16 is "Yes", the first photographing process is performed (step S18). The details of the shooting process No. 1 will be described later. On the other hand, if the determination in step S16 is "No", the second photographing process is performed (step S19). The details of the shooting process 2 will be described later.
  • step S17 determines whether a zoom magnification change instruction has been issued (step S17). If it is the zoom magnification change instruction (that is, if the determination in step S17 is "Yes"), the control unit 17 instructs the imaging control unit 40 to change the zoom magnification, and the imaging control unit 40 receives the imaging unit 10 An instruction to change the optical zoom magnification is issued to -1 (step S20). On the other hand, the imaging control unit 40 designates the trimming position of the image according to the zoom magnification to the camera signal processing unit 18-2. The trimming here is the electronic zoom function. If it is an instruction other than the zoom magnification change (that is, if the determination in step S17 is "No"), control according to that is performed (step S21). For example, the process of changing the size of a captured image is performed.
  • step S22 the control unit 17 stops the operation of each of the imaging units 10-1 and 10-2 (step S23), and then the present process ends.
  • step S18 the first photographing processing of step S18 when the zoom magnification is equal to or less than the zoom magnification threshold will be described.
  • the zoom magnification threshold is 1.8.
  • the case where the optical zoom magnification at the time of shooting of the imaging unit 10-1 is 1.5 will be described as an example.
  • FIG. 3 is a flowchart for explaining the photographing process 1 in FIG.
  • the camera signal processing unit 18-1 resizes the first captured image captured by the imaging unit 10-1 to the image size set by the user, while the camera signal processing unit 18-2 resizes the imaging unit.
  • the second captured image captured by 10-2 is trimmed in accordance with the user-set electronic zoom magnification, and resized in accordance with the user-set image size (step S30).
  • the field angle correction unit 19 reads out the field angle correction information from the field angle information holding unit 20, and trims the first captured image captured by the imaging unit 10-1 (step S31).
  • the position correction unit 21 reads out the position correction information from the position correction information holding unit 22, and the “vertical shift”, “horizontal shift”, “rotation” with respect to the first captured image captured by the imaging unit 10-1 At least one of the deviations "or the size deviation” is corrected (step S32).
  • the color correction unit 23 corrects the difference in color of the left and right images (step S33). That is, the difference in color between the second captured image captured by the imaging unit 10-2 and the first captured image captured by the imaging unit 10-1 after position correction is corrected.
  • the control unit 17 compares the current optical zoom magnification with the zoom magnification threshold stored in the zoom magnification threshold storage unit 41, and the current zoom magnification is equal to or less than the zoom magnification threshold.
  • the size of the first captured image after the angle of view correction is indicated as the third number of pixels, which is the number of pixels after resizing, and the image resizing unit 24 is adjusted to the size of the first captured image after the angle of view correction.
  • the second captured image captured by the imaging unit 10-2 is enlarged (step S34).
  • the image encoding unit 27 encodes the left and right images (for example, compresses them into the JPEG format). That is, the second captured image captured by the imaging unit 10-2 and the first captured image captured by the imaging unit 10-1 after position correction are encoded (step S35).
  • the stereo image format conversion unit 28 converts the left and right images encoded by the image encoding unit 27, that is, the first captured image and the second captured image into a stereo image format (step S36). This process ends when the left and right images are converted to the stereo image format.
  • FIG. 4 is a diagram showing the processing result in each of steps S30 to S32 and step S34 when the specifications of the imaging units 10-1 and 10-2 are determined as follows.
  • Imaging unit 10-1 13 megapixel camera, focal length 27 mm equivalent (35 mm film equivalent), 3 ⁇ optical zoom function, captured image size 9.7 megapixel (aspect ratio 16: 9)
  • Imaging unit 10-2 3 megapixel camera, 35 mm focal length equivalent (35 mm film equivalent), electronic zoom function, 2 megapixel captured image size (aspect ratio 16: 9)
  • the case where the optical zoom magnification of the imaging unit 10-1 at the time of shooting is 1.5 times will be described as an example.
  • the first captured image is H2336 pixels and W4160 pixels.
  • the second captured image is H1080 pixels and W1920 pixels.
  • the first captured image is approximately H1796 pixels and approximately W3200 pixels.
  • the number of pixels becomes about 1 / 1.3.
  • the image size after trimming varies because of variations in the angle of view.
  • the first captured image is trimmed to match the angle of view of the second captured image, but the pixel is higher than the trimming size according to the zoom magnification of the second captured image.
  • the second captured image remains H1080 pixels and W1920 pixels.
  • the first captured image is H (1796- ⁇ ) pixels and W (3200- ⁇ ) pixels.
  • the second captured image remains H1080 pixels and W1920 pixels.
  • the first captured image is H (1796- ⁇ ) pixels and W (3200- ⁇ ) pixels.
  • the second captured image is H (1796- ⁇ ) pixels and W (3200- ⁇ ) pixels, and has the same number of pixels as the first captured image.
  • the meanings of ⁇ and ⁇ are reduced by correcting the shift of the optical axis when the two cameras are arranged in the stereo image generating device, the shift of the angle of view of each camera itself, and the shift of the optical axis. It shows the number of pixels.
  • FIGS. 7A to 7G show the optical axis deviation that occurs when two cameras are arranged in the stereo image generating device 1.
  • FIG. 7A to 7G show the optical axis deviation that occurs when two cameras are arranged in the stereo image generating device 1.
  • step S19 Next, the second photographing process of step S19 when the zoom magnification is larger than the zoom magnification threshold will be described.
  • the case where the optical zoom magnification of the imaging unit 10-1 at the time of shooting is doubled will be described as an example.
  • FIG. 5 is a flowchart for explaining the photographing process 2 in FIG.
  • steps S30 to S33 are the same processes as the photographing process 1 described above.
  • the control unit 17 compares the current optical zoom magnification with the zoom magnification threshold, and the current optical zoom magnification is twice and larger than the zoom magnification threshold 1.8 times, so resizing with respect to the image resizing unit 24
  • the image resizing unit 24 resizes the first captured image to the third number of pixels and resizes the second captured image to the third number of pixels by indicating the third number of pixels, which is the number of subsequent pixels (see FIG. Step S40).
  • the third number of pixels is set so that the ratio of the number of pixels during trimming by the electronic zoom in step S30 and the number of pixels after resizing in step S40 is equal to or less than a certain ratio. decide.
  • the ratio of the number of pixels is set to 6.25 times (2.5 times each in the horizontal and vertical length ratios of the image) or less. The number of pixels of was determined.
  • Horizontal pixel count ratio 2400/960 2.5 ...
  • 2400 The number of pixels in the horizontal direction 1350 of the second captured image in step S40: The number of pixels in the vertical direction of the second captured image in step S40 960: With respect to the second captured image in step S30 Pixels in the horizontal direction of the image to be trimmed by the electronic zoom 540: the number of pixels in the vertical direction of the image to be trimmed by the electronic zoom with respect to the second captured image in step S30
  • the reason for resizing in step S40 so that the ratio of the number of pixels is equal to or less than a certain ratio is that when the number of pixels of the first captured image and the second captured image are trimmed by electronic zoom
  • the ratio to the number of pixels of the image is increased, the difference in resolution between the left and right images of the generated stereo image is increased, resulting in a stereo image which is difficult to view stereoscopically.
  • the resolution is the fineness of the image.
  • steps S35 and S36 the same processing as the photographing processing 1 described above is performed, a stereo image is generated, and the present processing ends.
  • FIG. 6 is a diagram showing the processing result in each of steps S30 to S32 and step S40 when the specifications of the imaging units 10-1 and 10-2 are determined as follows.
  • Imaging unit 10-1 13 megapixel camera, focal length 27 mm equivalent (35 mm film equivalent), 3 ⁇ optical zoom function, captured image size 9.7 megapixel (aspect ratio 16: 9)
  • Imaging unit 10-2 3 megapixel camera, 35 mm focal length equivalent (35 mm film equivalent), electronic zoom function, 2 megapixel captured image size (aspect ratio 16: 9)
  • the first captured image is H2336 pixels and W4160 pixels.
  • the second captured image is H1080 pixels and W1920 pixels.
  • the first captured image is approximately H1796 pixels and approximately W3200 pixels.
  • the number of pixels becomes about 1 / 1.3.
  • the image size after trimming varies because of variations in the angle of view.
  • the first captured image is trimmed to match the angle of view of the second captured image, but the area is wider than the trimming size according to the zoom magnification of the second captured image.
  • step S31 the second captured image remains H1080 pixels and W1920 pixels.
  • step S32 the first captured image is H (1796- ⁇ ) pixels and W (3200- ⁇ ) pixels.
  • the second captured image remains H1080 pixels and W1920 pixels.
  • step S40 the first captured image is H1530 pixels and W2400 pixels.
  • the second captured image has H1530 pixels and W2400 pixels, and has the same number of pixels as the first captured image.
  • the meanings of ⁇ and ⁇ are reduced by correcting the shift of the optical axis when the two cameras are arranged in the stereo image generating device, the shift of the angle of view of each camera itself, and the shift of the optical axis. It shows the number of pixels.
  • the first imaging unit 10-1 having high optical zoom function and pixels lower than the first imaging unit 10-1 are provided.
  • the second imaging unit 10-2 having the electronic zoom function, the zoom magnification threshold storage unit 41 for storing the zoom magnification threshold, the zoom magnification threshold and the optical zoom magnification at the time of shooting are compared, and the optical zoom magnification is
  • the first captured image and the second captured image are converted to the third pixel number when the magnification is smaller than a predetermined magnification, and the first captured image and the second imaging are extracted when the predetermined magnification is exceeded.
  • FIG. 8 is a block diagram showing a schematic configuration of a stereo image generating apparatus according to Embodiment 2 of the present invention.
  • a stereo image generating apparatus 1B according to the second embodiment includes an imaging unit 10-1B of high pixel having an optical zoom function and an electronic zoom function, and an imaging unit 10 of low pixel having an electronic zoom function.
  • the imaging units 10-1B and 10-2B each include an imaging element such as a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS), and output an imaging signal.
  • an image obtained by imaging by the imaging unit 10-1B is taken as a first captured image
  • an image obtained by imaging by the imaging unit 10-2B is taken as a second captured image.
  • the imaging unit 10-1B has a first angle of view
  • the imaging unit 10-2B has a second image narrower than the first angle of view of the imaging unit 10-1B. It has a horn.
  • the imaging unit 10-1B also has an optical zoom function and an electronic zoom function.
  • the imaging unit 10-2B does not have an optical zoom function, but only an electronic zoom function.
  • the zoom control unit 11 performs zoom control of the imaging units 10-1B and 10-2B.
  • the autofocus control unit 12 performs autofocus control of the imaging units 10-1B and 10-2B.
  • the shutter control unit 13 performs shutter control of the imaging units 10-1B and 10-2B.
  • the exposure control unit 14 performs exposure control of the imaging units 10-1B and 10-2B.
  • the white balance control unit 15 performs white balance control of the imaging units 10-1B and 10-2B.
  • the camera operation unit 16 is for operating the stereo image generating device 1, and a signal at the time of operation such as a zoom magnification designated by the operator is input to the control unit 17.
  • the control unit 17 outputs an operation signal corresponding to the operation in the camera operation unit 16 to the imaging units 10-1B and 10-2B.
  • the camera signal processing unit 18-1 resizes the first captured image captured by the imaging unit 10-1B to the size of the display unit 32 in the preview processing.
  • the camera signal processing unit 18-2 resizes the second captured image captured by the imaging unit 10-2B to the size of the display unit 32 in the preview processing.
  • the camera signal processing unit 18-1 outputs a first captured image (L: left image) of 9.7 megapixels, and the camera signal processing unit 18-2 outputs It is assumed that a second captured image (R: right image) of 2 megapixels is output.
  • the view angle correction unit 19 reduces the view angle of the first captured image captured by the imaging unit 10-1B based on the view angle correction information stored in the view angle information storage unit 20.
  • the field angle is 5.7 megapixels.
  • the angle of view of the second captured image captured by the imaging unit 10-2B may be corrected.
  • the position correction unit 21 performs position correction on the first captured image captured by the imaging unit 10-1B based on the position correction information stored in the position correction information storage unit 22. In this case, at least one of “vertical shift”, “horizontal shift”, “rotational shift”, or “size shift” is performed as the position correction.
  • the position correction may be performed on the second captured image captured by the imaging unit 10-2B. That is, even if the position correction unit 21 performs position correction on either the first captured image captured by the imaging unit 10-1B or the second captured image captured by the imaging unit 10-2B. Good.
  • the color correction unit 23 performs the first color difference between the second captured image captured by the imaging unit 10-2B and the first captured image captured by the imaging unit 10-1B after position correction. Color correction is performed on the captured image and the second captured image (the first captured image or the second captured image).
  • the image resizing unit 24 converts the first captured image captured by the imaging unit 10-1B into a predetermined number of pixels, and converts the second captured image captured by the imaging unit 10-2B, The number of pixels is the same as that of the first captured image.
  • the image resizing unit 24 converts the first captured image captured by the imaging unit 10-1B into a predetermined number of pixels, and the second captured image captured by the imaging unit 10-2B is also a predetermined pixel. Convert to a number. Specifically, the number of pixels of the second captured image is resized in accordance with the number of pixels of the first captured image. Note that the conversion of the first captured image and the conversion of the second captured image performed by the image resizing unit 24 include “equal magnification” in addition to “enlargement” and “reduction”.
  • the super-resolution processing unit 25 When the conversion of the second captured image is enlargement conversion, the super-resolution processing unit 25 performs enlargement processing by super-resolution processing without performing enlargement processing in the image resizing unit 24. It is possible to select whether to perform enlargement processing by the resize unit 24 or enlargement by super resolution processing.
  • the super-resolution processing is processing for enhancing the sharpness of the blurred portion by enlarging the image (that is, processing for achieving high image quality).
  • the image filter unit 26 makes each image of the first captured image and the second captured image Perform averaging processing to blur the periphery. By providing this image filter unit 26, it is possible to reduce the deterioration of the image quality of the stereo image due to the difference in lens distortion between the two imaging units 10-1B and 10-2B.
  • the image encoding unit 27 conversion of the number of pixels is performed by the image resizing unit 24, and the first captured image subjected to averaging processing by the image filter unit 26 and conversion of the number of pixels by the image resizing unit 24 are performed. Furthermore, the second captured image subjected to the averaging process in the image filter unit 26 is encoded (compressed). In this case, for example, compression is performed in JPEG (Joint Photographic Experts Group) format.
  • the stereo image format conversion unit 28 converts the first captured image and the second captured image encoded by the image encoding unit 27 into a stereo image format to generate a stereo image. In this case, for example, the JPEG format is converted to an MPO (Multi-Picture Format) format.
  • the image storage unit 29 has a flash memory (SD memory or the like), and stores the stereo image generated by the stereo image format conversion unit 28.
  • the format conversion unit 30 converts the first captured image and the second captured image converted into the number of pixels matching the display unit 32 by the image resizing unit 24 into a format for displaying on the display unit 32.
  • the display control unit 31 controls the display unit 32 to display the first captured image and the second captured image converted to a format (for example, pixel by pixel) to be displayed on the display unit 32 by the format conversion unit 30. I do.
  • the display unit 32 is, for example, a liquid crystal display.
  • FIGS. 9 and 10 The variables used in FIGS. 9 and 10 are described below.
  • Current zoom factor Z_now User-set zoom factor:
  • Z_next Zoom switching threshold Z_th Digital zoom ratio setting for the image captured by the imaging unit 10-1B: Z_e1 Digital zoom ratio setting for the image captured by the imaging unit 10-2B: Z_e2
  • the user instructs activation of the imaging units 10-1B and 10-2B through the camera operation unit 16 (step S50).
  • the control unit 17 outputs an instruction to activate the imaging units 10-1B and 10-2B to the imaging control unit 40 (step S51).
  • the control unit 17 sets the optical zoom magnification of the imaging unit 10-1B to 1 ⁇ for the imaging control unit 40, and sets the zoom switching threshold Z_th read from the zoom magnification threshold storage unit 41 in the imaging control unit 40 (see Step S52).
  • steps S 54 to S 69 are repeated until the user instructs the end of shooting using the camera operation unit 16.
  • the determination for repeating the process of steps S54 to S69 is performed in steps S53 and S70.
  • the control unit 17 detects whether the user has performed control of the camera by the camera operation unit 16 (step S54). If not detected, the processes of steps S53, S54 and S70 are repeated. If it is detected, the control unit 17 determines whether it is a photographing instruction (step S55).
  • step S56 If it is a photographing instruction, the photographing process is performed (step S56). Details of the imaging process will be described later. If the determination in step S55 is "No", the control unit 17 determines whether a zoom magnification change instruction has been issued (step S57). When it is the zoom magnification change instruction (that is, when the determination in step S57 is "Yes"), the control unit 17 passes the information Z_next of the zoom magnification set by the user to the imaging control unit 40, and the imaging control unit 40 The current zoom magnification Z_now is compared with the zoom switching threshold Z_th (step S58).
  • FIG. 11 is a flow chart for explaining the photographing process in FIG. 9 and FIG.
  • the camera signal processing unit 18-1 resizes the first captured image captured by the imaging unit 10-1B to the image size set by the user, and trims it to the electronic zoom magnification Z_e1.
  • the camera signal processing unit 18-2 resizes the second captured image captured by the imaging unit 10-2B according to the image size set by the user, and performs trimming processing according to the electronic zoom magnification Z_e2 (step S80).
  • the field angle correction unit 19 reads out the field angle correction information from the field angle information holding unit 20, and trims the first captured image captured by the imaging unit 10-1B (step S81).
  • the position correction unit 21 reads the position correction information from the position correction information holding unit 22, and the “vertical shift”, “horizontal shift”, “rotation” with respect to the first captured image captured by the imaging unit 10-1B. At least one of the "deviation” or "magnitude deviation” is corrected (step S82).
  • the color correction unit 23 corrects the difference in color of the left and right images (step S83). That is, the color difference between the second captured image captured by the imaging unit 10-2B and the first captured image captured by the imaging unit 10-1B after position correction is corrected.
  • the image resizing unit 24 enlarges the second captured image captured by the imaging unit 10-2B according to the size of the first captured image after the angle of view correction (step S84).
  • the image encoding unit 27 encodes the left and right images (for example, compresses them into the JPEG format). That is, the second captured image captured by the imaging unit 10-2B and the first captured image captured by the imaging unit 10-1B after position correction are encoded (step S85).
  • the stereo image format conversion unit 28 converts the left and right images encoded by the image encoding unit 27, that is, the first captured image and the second captured image into a stereo image format (step S86). This process ends when the left and right images are converted to the stereo image format.
  • FIG. 12 is a diagram showing processing results in each step of steps S80 to S82 and step S84 when the specifications of the imaging units 10-1B and 10-2B are determined as follows.
  • Imaging unit 10-1B 13 mega pixel camera, focal length 27 mm equivalent (35 mm film equivalent), 3 ⁇ optical zoom function, captured image size 9.7 mega pixel (aspect ratio 16: 9)
  • Imaging unit 10-2B 3 megapixel camera, 35 mm focal length equivalent (35 mm film equivalent), electronic zoom function, 2 megapixel captured image size (aspect ratio 16: 9)
  • FIG. 12 illustrates the case where the zoom magnification set by the user at the time of shooting is 1.5.
  • the first captured image is H2336 pixels and W4160 pixels.
  • the second captured image is H1080 pixels and W1920 pixels. Since the zoom magnification is 1.5 times, it is necessary to perform electronic zoom on the imaging unit 10-2B side. Of the captured image on the imaging unit 10-2B side, H 720 pixels and W 1280 pixels in the central part of the image are trimmed and resized to H 1080 pixels and W 1920 pixels.
  • the first captured image is approximately H1796 pixels and approximately W3200 pixels.
  • the angle of view of the focal lengths of 35 mm and 27 mm due to the difference in the angle of view of the focal lengths of 35 mm and 27 mm, it is possible to shoot at a wide angle of about 1.3 times in both the vertical and horizontal directions when shooting with a 27 mm camera. Therefore, when the camera image of 27 mm is trimmed by the angle of view correction unit 19, the number of pixels becomes about 1 / 1.3. However, even with a camera with the same number of pixels, the image size after trimming varies because of variations in the angle of view.
  • the first captured image is trimmed to match the angle of view of the second captured image, but the pixel is higher than the trimming size according to the zoom magnification of the second captured image.
  • step S81 the second captured image remains at H1080 pixels and W1920 pixels.
  • step S82 the first captured image is H (1796- ⁇ ) pixels and W (3200- ⁇ ) pixels.
  • the second captured image remains H1080 pixels and W1920 pixels.
  • step S84 the first captured image is H (1796- ⁇ ) pixels and W (3200- ⁇ ) pixels.
  • the second captured image is H (1796- ⁇ ) pixels and W (3200- ⁇ ) pixels, and has the same number of pixels as the first captured image.
  • the meanings of ⁇ and ⁇ are reduced by correcting the shift of the optical axis when the two cameras are arranged in the stereo image generating device, the shift of the angle of view of each camera itself, and the shift of the optical axis. It shows the number of pixels.
  • FIGS. 7A to 7G described above show the optical axis deviation that occurs when two cameras are arranged in the stereo image generating device 1B.
  • FIG. 13 is a diagram showing processing results in each step of steps S80 to S82 and step S84 when the specifications of the imaging units 10-1B and 10-2B are determined as follows.
  • Imaging unit 10-1B 13 mega pixel camera, focal length 27 mm equivalent (35 mm film equivalent), 3 ⁇ optical zoom function, captured image size 9.7 mega pixel (aspect ratio 16: 9)
  • Imaging unit 10-2B 3 megapixel camera, 35 mm focal length equivalent (35 mm film equivalent), electronic zoom function, 2 megapixel captured image size (aspect ratio 16: 9)
  • the first captured image is H2336 pixels and W4160 pixels.
  • the second captured image is H1080 pixels and W1920 pixels.
  • the zoom magnification threshold is 1.5 times and the zoom magnification specified by the user is 2 times
  • the zoom operation by the optical zoom is performed up to 1.5 times, and the zoom operation from there is the electronic zoom
  • the following is performed.
  • the electronic zoom operation is performed by trimming an image of H1557 pixels and W2773 pixels with respect to the image center of the first captured image.
  • the trimmed image of H1557 pixels and W2773 pixels may be enlarged to H2336 pixels and W4160 pixels.
  • the case of not enlarging will be described.
  • an image of H540 pixels and W960 pixels is trimmed with respect to the image center of the second captured image, and this is H1080 pixels, Resize to W 1920 pixels.
  • the first captured image is approximately H1196 pixels and approximately W2130 pixels.
  • the first captured image is trimmed to match the angle of view of the second captured image, but the area is wider than the trimming size according to the zoom magnification of the second captured image.
  • step S81 the second captured image remains at H1080 pixels and W1920 pixels.
  • step S82 the first captured image is H (1196- ⁇ ) pixels and W (2130- ⁇ ) pixels.
  • the second captured image remains H1080 pixels and W1920 pixels.
  • step S84 the first captured image is H (1196- ⁇ ) pixels and W (2130- ⁇ ) pixels.
  • the second captured image is H (1196- ⁇ ) pixels and W (2130- ⁇ ) pixels, and has the same number of pixels as the first captured image.
  • the meanings of ⁇ and ⁇ are reduced by correcting the shift of the optical axis when the two cameras are arranged in the stereo image generating device, the shift of the angle of view of each camera itself, and the shift of the optical axis. It shows the number of pixels.
  • the first imaging unit 10-1B of high pixel having the optical zoom function and the electronic zoom function and the first imaging unit 10-1B.
  • An imaging control unit 40 that controls the first imaging unit 10-1B and the second imaging unit 10-2B to perform electronic zoom operations, a first captured image and a second captured image with a predetermined number of pixels Image resize to convert to 24, an image encoding unit 27 encoding the first captured image and the second captured image converted by the image resizing unit 24, and a first captured image and a second captured image encoded by the image encoding unit 27
  • the stereo image format conversion unit 28 that generates a stereo image by converting the image data into the stereo image format, so that high-pixel stereo images can be captured without using two high-pixel imaging means.
  • the imaging unit 10-1B changes from optical zoom to electronic zoom By switching, it is possible to generate a high-pixel stereo image that is easy to view stereoscopically.
  • the resolution is the fineness of the image.
  • the upper limit magnification of the optical zoom function here is the maximum magnification on the specifications of the optical module to be used.
  • the magnification is in a state where the zoom magnification is moved to the limit in the direction in which the zoom magnification is increased.
  • the present invention can capture a high-pixel stereo image without using two high-pixel imaging means, and also has a difference in resolution between the first and second captured images when zooming. It has an effect that it is possible to generate a stereo image easy to view stereoscopically, within a fixed value, and it is possible to apply to a compound eye camera or the like for capturing a stereo image that captures a stereo image.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Studio Devices (AREA)

Abstract

A first image capture unit (10-1) has an optical zoom function and outputs a high-pixel first captured image. A second image capture unit (10-2) has an electronic zoom function and outputs a second captured image which has fewer pixels than the first image capture unit (10-1). When the zoom magnification is less than or equal to a prescribed magnification, an image resizing unit (24) converts the first and second captured images to images having a third number of pixels, and when the zoom magnification exceeds the prescribed magnification, the image resize unit (24) converts the first and second captured images to images having a fourth number of pixels. An image encoding unit (27) encodes each respective first and second captured image converted by the image resize unit (24). A stereo image format conversion unit (28) converts each respective first and second captured image encoded by the image encode unit (27) to a stereo image format and generates a stereo image.

Description

ステレオ画像生成装置およびステレオ画像生成方法Stereo image generating apparatus and stereo image generating method
 本発明は、ステレオ画像を撮像するステレオ画像撮像用の複眼カメラに用いて好適なステレオ画像生成装置およびステレオ画像生成方法に関する。 The present invention relates to a stereo image generating apparatus and a stereo image generating method suitable for use in a compound-eye camera for capturing a stereo image that captures a stereo image.
 ステレオ画像を生成する方法として、特許文献1に記載された複眼カメラおよび画像処理方法が知られている。特許文献1に記載された複眼カメラは、最大撮影可能な画素数、および画角の異なる複数の撮像手段(即ちカメラ)を備えており、一方のカメラは、他方のカメラに比べて、画角が狭く最大撮影可能な画素数が少ない構成になっている。ステレオ画像を撮影する場合は、低い画素数を備えたカメラで撮影した画像の画素数、および画角にあわせて、高い画素数のカメラで撮影した画像を縮小もしくは切り出し処理を行い、それぞれのカメラの画像の画素数、および画角をあわせてステレオ画像を生成する。 As a method of generating a stereo image, a compound eye camera and an image processing method described in Patent Document 1 are known. The compound-eye camera described in Patent Document 1 includes a plurality of imaging means (i.e., cameras) having a maximum number of pixels that can be photographed and an angle of view, and one camera has an angle of view compared to the other camera. Is narrow, and the maximum number of pixels that can be shot is small. When capturing a stereo image, the image captured by a camera with a high number of pixels is reduced or cut out according to the number of pixels of the image captured with a camera with a low number of pixels and the angle of view. The number of pixels of the image and the angle of view are combined to generate a stereo image.
日本国特開2010-252186号公報Japanese Unexamined Patent Publication No. 2010-252186
 しかしながら、上述した特許文献1に記載された複眼カメラの構成では、低い画素数のカメラに合わせて、高い画素数のカメラで撮影した画像の画素数を縮小するため、一方は高い画素数のカメラを備えているにもかかわらず、撮影できるステレオ画像の画素数は、低い画素数のカメラの画素数に制限されてしまうという課題がある。 However, in the configuration of the compound-eye camera described in Patent Document 1 described above, one of the cameras with a large number of pixels is used to reduce the number of pixels of an image captured by a camera with a large number of pixels. However, the number of pixels of a stereo image that can be photographed is limited to the number of pixels of a camera with a low number of pixels.
 また、低解像度のカメラと高解像度のカメラのように、解像度の異なるカメラでステレオ画像を撮影すると、立体視が十分にできない(即ち立体視し難い)という課題もあった。 In addition, when a stereo image is taken with a camera with different resolution, such as a low resolution camera and a high resolution camera, there is also a problem that stereoscopic vision can not be performed sufficiently (that is, it is difficult to achieve stereoscopic vision).
 本発明は、係る事情に鑑みてなされたものであり、高い画素数の撮像手段を2つ使用することなく高画素のステレオ画像を撮像することができ、また、十分に立体視ができるステレオ画像生成装置およびステレオ画像生成方法を提供することを目的とする。 The present invention has been made in view of the above circumstances, and a stereo image of high pixels can be taken without using two high pixel number imaging means, and a stereo image that can be sufficiently stereoscopically viewed. An object of the present invention is to provide a generating device and a stereo image generating method.
 本発明のステレオ画像生成装置は、第1の画素数を備え、光学ズーム機能を有する、第1の撮像画像を撮像する第1の撮像部と、前記第1の画素数よりも小さい第2の画素数を備え、電子ズーム機能を有する、第2の撮像画像を撮像する第2の撮像部と、ステレオ画像撮影において指定されるズーム倍率に基づき、左右の解像度差を調整する解像度調整部と、を備える。 A stereo image generating device according to the present invention has a first number of pixels, has an optical zoom function, and has a first imaging unit for picking up a first captured image, and a second smaller than the first number of pixels. A second imaging unit configured to capture a second captured image having the number of pixels and having an electronic zoom function, and a resolution adjustment unit configured to adjust a difference in resolution between right and left based on a zoom magnification designated in stereo image shooting; Equipped with
 上記構成によれば、解像度の異なる2つの撮像部で2つの画像を撮像し、指定されるズーム倍率に基づき、左右の解像度差を調整するので、高画素の撮像部を2つ使用することがなく、コストを低く抑えることができるとともに、実装面積も小さく抑えることができる。 According to the above configuration, two imaging units with different resolutions pick up two images, and adjust the left and right resolution differences based on the specified zoom magnification, so two imaging units with high pixels can be used. Therefore, the cost can be reduced and the mounting area can be reduced.
 上記構成において、ステレオ画像撮影において指定されるズーム倍率に基づき、前記第1の撮像部は光学ズーム動作を行い、前記第2の撮像部は電子ズーム動作を行い、前記ズーム倍率が、所定の倍率以下の時には、前記第1の撮像画像および前記第2の撮像画像を第3の画素数に変換し、前記所定の倍率を超えた場合は、前記第1の撮像画像および前記第2の撮像画像を前記第3の画素数より小さい第4の画素数に変換する画像リサイズ部と、前記画像リサイズ部で変換された前記第1の撮像画像および前記第2の撮像画像をエンコードする画像エンコード部と、前記画像エンコード部でエンコードされた前記第1の撮像画像および前記第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成するステレオ画像フォーマット変換部と、を備えた。 In the above configuration, the first imaging unit performs an optical zoom operation based on the zoom magnification specified in stereo image shooting, the second imaging unit performs an electronic zoom operation, and the zoom magnification is a predetermined magnification. At the following times, when the first and second captured images are converted to the third pixel number and the predetermined magnification is exceeded, the first and second captured images are processed. An image resizing unit configured to convert the image data into a fourth pixel number smaller than the third pixel number; an image encoding unit configured to encode the first captured image and the second captured image converted by the image resizing unit; A stereo image file for converting the first captured image and the second captured image encoded by the image encoding unit into a stereo image format to generate a stereo image And Tsu door conversion unit, equipped with.
 上記構成によれば、高画素の第1の撮像部と、この第1の撮像部よりも低画素の第2の撮像部を備え、光学ズーム倍率が所定の倍率以下の時は、第1の撮像部で撮像された第1の撮像画像、および第2の撮像部で撮像された第2の撮像画像を第3の画素数、具体的には第2の撮像部の画素数より高い画素数に拡大し、第1の撮像画像および拡大した第2の撮像画像をエンコードし、エンコードした第1の撮像画像および第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成する。 According to the above configuration, the first imaging unit having high pixels and the second imaging unit having pixels lower than the first imaging unit are provided, and when the optical zoom magnification is equal to or less than the predetermined magnification, the first imaging unit is The first captured image captured by the imaging unit and the second captured image captured by the second imaging unit have a third pixel count, specifically, a pixel count higher than the pixel count of the second imaging unit. The first captured image and the enlarged second captured image are encoded, and the encoded first and second captured images are converted into a stereo image format to generate a stereo image.
 光学ズーム倍率が所定の倍率を超えた場合は、第1の撮像部で撮像された第1の撮像画像、および第2の撮像部で撮像された第2の撮像画像を前記第3の画素数より小さい第4の画素数にリサイズし、リサイズした第1の撮像画像、および第2の撮像画像をエンコードし、エンコードした第1の撮像画像、および第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成する。 When the optical zoom magnification exceeds the predetermined magnification, the first captured image captured by the first imaging unit and the second captured image captured by the second imaging unit are used as the third pixel count. The resized and resized first captured image and second captured image to a smaller fourth pixel number, and the encoded first captured image and second captured image are converted to a stereo image format Generate a stereo image.
 このような構成にすることにより、光学ズーム倍率が所定の倍率以下の時は、高画素の撮像手段を2つ使用することなく、低画素の撮像部の撮影画像の画素数よりも高画素のステレオ画像を撮像することが可能となる。 With such a configuration, when the optical zoom magnification is equal to or less than the predetermined magnification, the number of pixels of the captured image of the low pixel imaging unit is higher than that of the low pixel imaging unit without using two high pixel imaging units. It becomes possible to capture a stereo image.
 また、光学ズーム倍率が所定の倍率を超えた場合においても、光学ズーム倍率が所定の倍率以下の時に生成されるステレオ画像の画素数よりは小さくなるが、第1の撮像画像と、第2の撮像画像の解像度をある比率以下に抑えながら、低画素の撮像部の撮影画像の画素数より高画素で、かつ立体視しやすいステレオ画像を撮像することが可能となる。 In addition, even when the optical zoom magnification exceeds the predetermined magnification, the number of pixels of the stereo image generated when the optical zoom magnification is equal to or less than the predetermined magnification is smaller than the first captured image and the second While suppressing the resolution of the captured image to a certain ratio or less, it is possible to capture a stereo image that has a pixel size higher than the number of pixels of the captured image of the low pixel imaging unit and that is easy to view stereoscopically.
 さらに、高画素の撮像手段を2つ使用せず、かつ光学ズーム機能を備えた撮像手段を2つ使用しないことから、コストを安くでき、また実装面積も小さくできる。 Furthermore, since two high-pixel imaging means are not used and two imaging means having an optical zoom function are not used, the cost can be reduced and the mounting area can be reduced.
 上記構成において、前記画像リサイズ部が行う、前記第1の撮像画像の変換、および前記第2の撮像画像の変換は、拡大、縮小、または等倍の変換である。 In the above configuration, the conversion of the first captured image and the conversion of the second captured image, which are performed by the image resizing unit, are enlargement, reduction, or equal-scale conversion.
 上記構成によれば、第1の撮像部で撮像された第1の撮像画像の画素数と第2の撮像部で撮像された第2の撮像画像の画素数を合わせることができる。 According to the configuration, it is possible to match the number of pixels of the first captured image captured by the first imaging unit with the number of pixels of the second captured image captured by the second imaging unit.
 上記構成において、前記光学ズーム倍率の所定の倍率をズーム倍率閾値として保持するズーム倍率閾値保存部を備え、前記画像リサイズ部は前記ズーム倍率閾値に基づき、前記第1の撮像画像と、前記第2の撮像画像のリサイズを行う。 In the above configuration, the image processing apparatus further includes a zoom magnification threshold storage unit configured to hold a predetermined magnification of the optical zoom magnification as a zoom magnification threshold, and the image resizing section includes the first captured image and the second imaged image based on the zoom magnification threshold. Resize the captured image of.
 上記構成によれば、第1の撮像画像と第2の撮像画像の解像度の差をある一定値以内に制限することができる。 According to the above configuration, the difference in resolution between the first captured image and the second captured image can be limited to within a certain fixed value.
 上記構成において、前記第3の画素数は、前記第1の画素数である。 In the above configuration, the third number of pixels is the first number of pixels.
 上記構成によれば、第1の撮像部で撮像された第1の撮像画像の画素数に第2の撮像部で撮像された第2の撮像画像の画素数を合わせることができる。 According to the above configuration, it is possible to match the number of pixels of the second captured image captured by the second imaging unit with the number of pixels of the first captured image captured by the first imaging unit.
 上記構成において、前記第1の撮像部は、第1の画角を備え、前記第2の撮像部は、前記第1の画角よりも狭い第2の画角を備え、前記第1の撮像部の光学ズーム倍率に応じて、前記第1、もしくは前記第2の撮像画像をトリミングする画角補正部を備え、前記画像エンコード部は、前記画角補正部でトリミングされ、前記画像リサイズ部で画素数が変換された前記第1の撮像画像と前記画像リサイズ部で画素数が変換された前記第2の撮像画像と、をエンコードする。 In the above configuration, the first imaging unit includes a first angle of view, and the second imaging unit includes a second angle of view narrower than the first angle of view, and the first imaging is performed. An angle of view correction unit that trims the first or second captured image according to the optical zoom magnification of the unit; the image encoding unit is trimmed by the angle of view correction unit; and the image resizing unit The first captured image in which the number of pixels is converted and the second captured image in which the number of pixels is converted in the image resizing unit are encoded.
 上記構成によれば、画角補正部を備えたことで、第1の撮像画像を小さくすることができる。 According to the above configuration, by providing the angle of view correction unit, the first captured image can be made smaller.
 上記構成において、前記第1の撮像部の光学ズーム倍率毎の画角補正情報を保持する画角情報保持部を備え、前記画角補正部は、前記画角補正情報に基づきトリミングする。 In the above configuration, the image capturing apparatus further includes an angle of view information holding unit that holds angle of view correction information for each optical zoom magnification of the first imaging unit, and the angle of view correction unit trims based on the angle of view correction information.
 上記構成によれば、画角補正情報を保持する画角情報保持部を備えたことで、トリミングにおける処理時間の短縮化を図ることができる。 According to the above configuration, by providing the angle-of-view information holding unit that holds the angle-of-view correction information, it is possible to shorten the processing time in trimming.
 上記構成において、前記第1の撮像画像、もしくは前記第2の撮像画像のいずれかに対して、上下ずれ、水平ずれ、回転ずれ、または大きさずれの中で少なくとも1つを補正する位置補正部を備え、前記画像エンコード部は、前記位置補正部で補正され、前記画像リサイズ部で所定の画素数に変換された前記第1の撮像画像と、前記位置補正部で補正され、前記画像リサイズ部で前記所定の画素数に変換された前記第2の撮像画像と、をエンコードする。 In the above configuration, a position correction unit that corrects at least one of vertical shift, horizontal shift, rotational shift, or size shift with respect to either the first captured image or the second captured image. The image encoding unit is corrected by the position correction unit, and the first resized image is converted by the image resizing unit to the predetermined number of pixels, and the image correction unit is corrected by the position correction unit. And encode the second captured image converted into the predetermined number of pixels.
 上記構成によれば、第1の撮像画像、もしくは第2の撮像画像のいずれかに対して、上下ずれ、水平ずれ、回転ずれ、または大きさずれの中で少なくとも1つを補正する位置補正部を備えたことで、第1の撮像画像と第2の撮像画像とから精度の高いステレオ画像を生成することが可能となる。 According to the above configuration, the position correction unit corrects at least one of vertical deviation, horizontal deviation, rotational deviation, or size deviation with respect to either the first captured image or the second captured image. Thus, it is possible to generate a high-precision stereo image from the first captured image and the second captured image.
 上記構成において、前記第1の撮像部の光学ズーム倍率毎の位置補正情報を保持する位置補正情報保持部を備え、前記位置補正部は、前記位置補正情報に基づき上下ずれ、水平ずれ、回転ずれ、または大きさずれの中で少なくとも1つを補正する。 In the above configuration, the image pickup apparatus further includes a position correction information holding unit that holds position correction information for each optical zoom magnification of the first imaging unit, and the position correction unit is vertically offset, horizontal offset, or rotational offset based on the position correction information. Or correct at least one of the size deviations.
 上記構成によれば、位置補正情報を保持する位置補正情報保持部を備えたことで、位置補正における処理時間の短縮化を図ることができる。 According to the above configuration, by providing the position correction information holding unit that holds the position correction information, it is possible to shorten the processing time in the position correction.
 上記構成において、前記第1の撮像画像と前記第2の撮像画像との間の色の違いについて、前記第1の撮像画像および/または前記第2の撮像画像に対して色の補正を行う色補正部を備え、前記画像エンコード部は、前記色補正部で色の補正が行われた前記第1の撮像画像と、前記第2の撮像画像と、をエンコードする。 In the above configuration, a color for performing color correction on the first captured image and / or the second captured image with respect to the difference in color between the first captured image and the second captured image. A correction unit is provided, and the image encoding unit encodes the first captured image whose color is corrected by the color correction unit and the second captured image.
 上記構成によれば、色補正部を備えたことで、第1の撮像画像および/または前記第2の撮像画像の色補正を行うことができる。 According to the above configuration, color correction of the first captured image and / or the second captured image can be performed by providing the color correction unit.
 上記構成において、前記画像リサイズ部が行う、前記第1の撮像画像の変換、および前記第2の撮像画像の変換が拡大の変換である場合、超解像処理を用いる。 In the above configuration, when the conversion of the first captured image and the conversion of the second captured image performed by the image resizing unit are enlargement conversions, super-resolution processing is used.
 上記構成によれば、超解像処理を行うことで、撮像画像を拡大することによってぼけた部分が生じてもくっきり感を上げることができる。即ち、高画質化を図ることができる。 According to the above configuration, by performing the super-resolution processing, it is possible to increase the sense of sharpness even if a blurred portion is generated by enlarging the captured image. That is, high image quality can be achieved.
 上記構成において、前記第1の撮像画像および前記第2の撮像画像のそれぞれの画像の周辺部に対して平均化処理を行う画像フィルタ部を備え、前記画像エンコード部は、前記画像リサイズ部で画素数の変換が行われた後、前記画像フィルタ部により平均化処理を行った前記第1の撮像画像と、前記画像リサイズ部で画素数の変換が行われた後、前記画像フィルタ部により平均化処理を行った前記第2の撮像画像と、をエンコードする。 In the above configuration, an image filter unit that performs averaging processing on peripheral portions of respective images of the first captured image and the second captured image is provided, and the image encoding unit includes pixels in the image resizing unit. After the number conversion is performed, the first captured image subjected to the averaging process by the image filter unit and the pixel number conversion performed by the image resizing unit are averaged by the image filter unit. And encoding the second captured image subjected to the processing.
 上記構成によれば、画像フィルタ部を備えたことで、第1の撮像画像および前記第2の撮像画像のそれぞれの画像の周辺部をぼかすことができ、第1,第2の撮像部間のレンズ歪の差によるステレオ画像の画質の劣化を少なくすることができる。 According to the above configuration, by providing the image filter unit, it is possible to blur the periphery of each of the first captured image and the second captured image, and between the first and second imaging units. It is possible to reduce the deterioration of the image quality of the stereo image due to the difference in lens distortion.
 上記構成において、前記第1の画素数と前記第3の画素数と前記第4の画素数の大小関係は、第1の画素数≧第3の画素数>第4の画素数である。 In the above configuration, the magnitude relationship between the first pixel number, the third pixel number, and the fourth pixel number is: first pixel number ≧ third pixel number> fourth pixel number.
 本発明のステレオ画像生成方法は、光学ズーム機能を備えた第1の撮像部において第1の画素数で、第1の撮像画像を撮像する第1撮像ステップと、電子ズーム機能を備えた第2の撮像部において前記第1の画素数よりも小さい第2の画素数で、第2の撮像画像を撮像する第2撮像ステップと、指定されるズーム倍率が、所定の倍率以下の時には、前記第1の撮像画像、および前記第2の撮像画像を第3の画素数に変換し、前記所定の倍率を超えた場合は、前記第1の撮像画像、および前記第2の撮像画像を前記第3の画素数よりも小さい第4の画素数に変換する画像リサイズステップと、前記画像リサイズステップで変換された前記第1の撮像画像および前記第2の撮像画像をエンコードする画像エンコードステップと、前記画像エンコードステップでエンコードされた前記第1の撮像画像および前記第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成するステレオ画像フォーマット変換ステップと、を備えた。 A stereo image generating method according to the present invention includes a first imaging step of capturing a first captured image with a first number of pixels in a first imaging unit having an optical zoom function, and a second imaging step having an electronic zoom function. A second imaging step for imaging a second captured image with a second number of pixels smaller than the first number of pixels in the imaging unit, and when the designated zoom magnification is equal to or less than a predetermined magnification, The first captured image and the second captured image are converted to the third pixel number, and when the predetermined magnification is exceeded, the first captured image and the second captured image are converted to the third An image resizing step for converting the number of pixels to a fourth number of pixels smaller than the number of pixels; an image encoding step for encoding the first captured image and the second captured image converted in the image resizing step; Enko And stereo image format conversion step of generating a stereo image by converting the first captured image and the second captured image encoded in de step to the stereo image format, with a.
 上記方法によれば、高画素の第1の撮像部と、この第1の撮像部よりも低画素の第2の撮像部を使用し、第1の撮像部で撮像された第1の撮像画像を所定の画素数にするとともに、第2の撮像部で撮像された第2の撮像画像を所定の画素数にし、このようにしてリサイズした第1の撮像画像および第2の撮像画像とをエンコードし、エンコードした第1の撮像画像および第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成するので、高画素の撮像手段を2つ使用することなく、高画素のステレオ画像を撮像することが可能となる。 According to the above method, using the first imaging unit with high pixels and the second imaging unit with pixels lower than the first imaging unit, the first imaged image imaged by the first imaging unit To a predetermined number of pixels, and the second picked-up image picked up by the second image pickup unit to a predetermined number of pixels, and thus the resized first picked-up image and the second picked-up image are encoded And convert the encoded first and second captured images into a stereo image format to generate a stereo image, so that a high-pixel stereo image is captured without using two high-pixel imaging means. It is possible to
 また、光学ズーム倍率が所定の倍率を超えた場合においても、光学ズーム倍率が所定の倍率以下の時に生成されるステレオ画像の画素数より小さくなるが、第1の撮像画像と、第2の撮像画像の解像度をある比率以下に抑えながら、低画素の撮像部の撮影画像の画素数より高画素で、かつ立体視しやすいステレオ画像を撮像することが可能となる。 In addition, even when the optical zoom magnification exceeds the predetermined magnification, the number of pixels of the stereo image generated when the optical zoom magnification is equal to or less than the predetermined magnification is smaller than the number of pixels of the stereo image. While suppressing the resolution of the image to a certain ratio or less, it is possible to capture a stereo image that is higher in pixels than the number of pixels of the captured image of the low pixel imaging unit and that is easy to view stereoscopically.
 上記構成において、前記第1の撮像部は、光学ズーム機能と電子ズーム機能の双方を有し、ステレオ画像撮影において、指定されるズーム倍率に基づき、前記第1の撮像部は光学ズーム動作および電子ズーム動作を行い、前記第2の撮像部は電子ズーム動作を行い、前記ズーム倍率が、光学ズーム機能の上限倍率より小さい所定の倍率以下の時には、前記第1の撮像部は光学ズーム動作を行い、前記第2の撮像部は電子ズーム動作を行い、前記所定の倍率を超えた場合は、それ以降のズーム動作は、前記第1の撮像部、前記第2の撮像部ともに電子ズーム動作を行うように制御する撮像制御部と、前記第1の撮像画像、および前記第2の撮像画像を所定の画素数に変換する画像リサイズ部と、前記画像リサイズ部で変換された前記第1の撮像画像および前記第2の撮像画像をエンコードする画像エンコード部と、前記画像エンコード部でエンコードされた前記第1の撮像画像および前記第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成するステレオ画像フォーマット変換部と、を備えた。 In the above configuration, the first imaging unit has both an optical zoom function and an electronic zoom function, and in stereo image shooting, the first imaging unit performs an optical zoom operation and an electronic operation based on a zoom magnification designated. The zoom operation is performed, the second imaging unit performs the electronic zoom operation, and the first imaging unit performs the optical zoom operation when the zoom magnification is equal to or less than a predetermined magnification smaller than the upper limit magnification of the optical zoom function. The second imaging unit performs the electronic zoom operation, and when the predetermined magnification is exceeded, the subsequent zoom operations perform the electronic zoom operation with the first imaging unit and the second imaging unit. Image pickup control unit for controlling the image pickup control unit, an image resizing unit for converting the first picked-up image and the second picked-up image into a predetermined number of pixels, and the first picked-up image converted by the image resizing unit. An image encoding unit encoding the image and the second captured image; and converting the first captured image and the second captured image encoded by the image encoding unit into a stereo image format to generate a stereo image And a stereo image format converter.
 上記構成によれば、高画素の第1の撮像部と、この第1の撮像部よりも低画素の第2の撮像部を備え、ズーム倍率が、光学ズーム機能の上限倍率より小さい所定の倍率以下の時は、第1の撮像部にて光学ズームにより撮像された第1の撮像画像、および第2の撮像部にて、電子ズームにより撮像された第2の撮像画像を所定の画素数にリサイズし、第1の撮像画像および拡大した第2の撮像画像をエンコードし、エンコードした第1の撮像画像および第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成する。 According to the above configuration, the first imaging unit having high pixels and the second imaging unit having pixels lower than the first imaging unit are provided, and the zoom magnification is a predetermined magnification smaller than the upper limit magnification of the optical zoom function. In the following cases, the first captured image captured by the first imaging unit by the optical zoom and the second captured image captured by the electronic zoom by the second imaging unit have a predetermined number of pixels. The resized and encoded first captured image and the enlarged second captured image are converted, and the encoded first and second captured images are converted to a stereo image format to generate a stereo image.
 ズーム倍率が、光学ズーム機能の上限倍率より小さい所定の倍率を超えた場合は、第1の撮像部にて、所定の倍率までは光学ズームされ、それ以降のズーム倍率は電子ズームにより撮像された第1の撮像画像、および第2の撮像部で電子ズームにより撮像された第2の撮像画像を所定の画素数にリサイズし、リサイズした第1の撮像画像および第2の撮像画像をエンコードし、エンコードした第1の撮像画像および第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成する。 When the zoom magnification exceeds a predetermined magnification smaller than the upper limit magnification of the optical zoom function, the first imaging unit optically zooms to a predetermined magnification, and the zoom magnification thereafter is imaged by the electronic zoom Resizing the first captured image and the second captured image captured by the electronic zoom in the second imaging unit to a predetermined number of pixels, and encoding the resized first captured image and the second captured image; The encoded first and second captured images are converted into a stereo image format to generate a stereo image.
 このような構成にすることにより、光学ズーム倍率が、光学ズーム機能の上限倍率より小さい所定の倍率以下の時は、高画素の撮像手段を2つ使用することなく、低画素の撮像部の撮影画像の画素数よりも高画素のステレオ画像を撮像することが可能となる。 With such a configuration, when the optical zoom magnification is equal to or less than a predetermined magnification smaller than the upper limit magnification of the optical zoom function, the imaging of the low pixel imaging portion is performed without using two high pixel imaging means. It is possible to capture a stereo image with a pixel higher than the number of pixels of the image.
 また、光学ズーム倍率が所定の倍率を超えた場合においても、第1の撮像画像と、第2の撮像画像の解像度をある比率以下に抑えることが可能となり、立体視しやすいステレオ画像を撮像することができる。また、低画素の撮像部の撮影画像の画素数よりも高画素のステレオ画像を撮像することが可能となり、かつズームによるステレオ撮影も可能となる。 In addition, even when the optical zoom magnification exceeds a predetermined magnification, the resolution of the first captured image and the second captured image can be suppressed to a certain ratio or less, and a stereoscopic image which is easy to view stereoscopically is captured. be able to. Moreover, it becomes possible to capture a stereo image of a pixel higher than the number of pixels of a captured image of a low pixel imaging unit, and also possible to perform stereo photography by zooming.
 さらに、高画素の撮像手段を2つ使用せず、かつ光学ズーム機能を備えた撮像手段を2つ使用しないことから、コストを安くでき、また実装面積も小さくできる。 Furthermore, since two high-pixel imaging means are not used and two imaging means having an optical zoom function are not used, the cost can be reduced and the mounting area can be reduced.
 上記構成において、前記画像リサイズ部が行う、前記第1の撮像画像の変換、および前記第2の撮像画像の変換は、拡大、縮小、または等倍の変換である。 In the above configuration, the conversion of the first captured image and the conversion of the second captured image, which are performed by the image resizing unit, are enlargement, reduction, or equal-scale conversion.
 上記構成によれば、第1の撮像部で撮像された第1の撮像画像の画素数と第2の撮像部で撮像された第2の撮像画像の画素数を合わせることができる。 According to the configuration, it is possible to match the number of pixels of the first captured image captured by the first imaging unit with the number of pixels of the second captured image captured by the second imaging unit.
 上記構成において、前記ズーム倍率の切り替え倍率をズーム倍率閾値として保存するズーム倍率閾値保存部を備え、前記撮像制御部は、前記ズーム倍率閾値に基づき、前記第1の撮像部と前記第2の撮像部のズーム動作の切り替え制御を行う。 In the above configuration, the zoom magnification threshold storage unit stores the switching magnification of the zoom magnification as a zoom magnification threshold, and the imaging control unit is configured to capture the first imaging unit and the second imaging based on the zoom magnification threshold. Switch control of the zoom operation of the unit.
 上記構成によれば、撮像制御部がズーム倍率閾値に基づき、第1の撮像部と第2の撮像部のズーム動作の切り替え制御を行うことで、第1の撮像画像と第2の撮像画像の解像度の差をある一定値以内に制限することができる。 According to the above configuration, the imaging control unit performs switching control of the zoom operation of the first imaging unit and the second imaging unit based on the zoom magnification threshold value, whereby the first imaging image and the second imaging image are displayed. The difference in resolution can be limited within a certain value.
 上記構成において、前記所定の画素数は、前記第1の画素数である。 In the above configuration, the predetermined number of pixels is the first number of pixels.
 上記構成によれば、第1の撮像部で撮像された第1の撮像画像の画素数に第2の撮像部で撮像された第2の撮像画像の画素数を合わせることができる。 According to the above configuration, it is possible to match the number of pixels of the second captured image captured by the second imaging unit with the number of pixels of the first captured image captured by the first imaging unit.
 上記構成において、前記第1の撮像部は、第1の画角を備え、前記第2の撮像部は、前記第1の画角よりも狭い第2の画角を備え、前記第1の撮像画像をトリミングする画角補正部を備え、前記画像エンコード部は、前記画角補正部でトリミングされ、前記画像リサイズ部で画素数が変換された前記第1の撮像画像と、前記画像リサイズ部で画素数が変換された前記第2の撮像画像と、をエンコードする。 In the above configuration, the first imaging unit includes a first angle of view, and the second imaging unit includes a second angle of view narrower than the first angle of view, and the first imaging is performed. The image encoding unit includes the first captured image that has been trimmed by the angle of view correction unit and has the number of pixels converted by the image resizing unit, and the image resizing unit. And encoding the second captured image in which the number of pixels has been converted.
 上記構成によれば、画角補正部を備えたことで、第1の撮像画像を小さくすることができる。 According to the above configuration, by providing the angle of view correction unit, the first captured image can be made smaller.
 上記構成において、前記第1の撮像部の光学ズーム倍率毎の画角補正情報を保持する画角情報保持部を備え、前記画角補正部は、前記画角補正情報に基づきトリミングする。 In the above configuration, the image capturing apparatus further includes an angle of view information holding unit that holds angle of view correction information for each optical zoom magnification of the first imaging unit, and the angle of view correction unit trims based on the angle of view correction information.
 上記構成によれば、画角補正情報を保持する画角情報保持部を備えたことで、トリミングにおける処理時間の短縮化を図ることができる。 According to the above configuration, by providing the angle-of-view information holding unit that holds the angle-of-view correction information, it is possible to shorten the processing time in trimming.
 上記構成において、前記第1の撮像画像、もしくは前記第2の撮像画像のいずれかに対して、上下ずれ、水平ずれ、回転ずれ、または大きさずれの中で少なくとも1つを補正する位置補正部を備え、前記画像エンコード部は、前記位置補正部で補正され、前記画像リサイズ部で所定の画素数に変換された前記第1の撮像画像と、前記位置補正部で補正され、前記画像リサイズ部で所定の画素数に変換された前記第2の撮像画像と、をエンコードする。 In the above configuration, a position correction unit that corrects at least one of vertical shift, horizontal shift, rotational shift, or size shift with respect to either the first captured image or the second captured image. The image encoding unit is corrected by the position correction unit, and the first resized image is converted by the image resizing unit to the predetermined number of pixels, and the image correction unit is corrected by the position correction unit. And encode the second captured image converted into a predetermined number of pixels.
 上記構成によれば、第1の撮像画像、もしくは第2の撮像画像のいずれかに対して、上下ずれ、水平ずれ、回転ずれ、または大きさずれの中で少なくとも1つを補正する位置補正部を備えたことで、第1の撮像画像と第2の撮像画像とから精度の高いステレオ画像を生成することが可能となる。 According to the above configuration, the position correction unit corrects at least one of vertical deviation, horizontal deviation, rotational deviation, or size deviation with respect to either the first captured image or the second captured image. Thus, it is possible to generate a high-precision stereo image from the first captured image and the second captured image.
 上記構成において、前記第1の撮像部の光学ズーム倍率毎の位置補正情報を保持する位置補正情報保持部を備え、前記位置補正部は、前記位置補正情報に基づき上下ずれ、水平ずれ、回転ずれ、または大きさずれの中で少なくとも1つを補正する。 In the above configuration, the image pickup apparatus further includes a position correction information holding unit that holds position correction information for each optical zoom magnification of the first imaging unit, and the position correction unit is vertically offset, horizontal offset, or rotational offset based on the position correction information. Or correct at least one of the size deviations.
 上記構成によれば、位置補正情報を保持する位置補正情報保持部を備えたことで、位置補正における処理時間の短縮化を図ることができる。 According to the above configuration, by providing the position correction information holding unit that holds the position correction information, it is possible to shorten the processing time in the position correction.
 上記構成において、前記第1の撮像画像と前記第2の撮像画像との間の色の違いについて、前記第1の撮像画像および/または前記第2の撮像画像に対して色の補正する色補正部を備え、前記画像エンコード部は、前記色補正部で色の補正がなされた前記第1の撮像画像と、前記第2の撮像画像と、をエンコードする。 In the above configuration, color correction is performed to correct the color of the first captured image and / or the second captured image with respect to the difference in color between the first captured image and the second captured image. The image encoding unit encodes the first captured image whose color is corrected by the color correction unit and the second captured image.
 上記構成によれば、色補正部を備えたことで、第1の撮像画像および/または前記第2の撮像画像の色補正を行うことができる。 According to the above configuration, color correction of the first captured image and / or the second captured image can be performed by providing the color correction unit.
 上記構成において、前記画像リサイズ部が行う、前記第1の撮像画像の変換、および前記第2の撮像画像の変換が拡大の変換である場合、超解像処理を用いる。 In the above configuration, when the conversion of the first captured image and the conversion of the second captured image performed by the image resizing unit are enlargement conversions, super-resolution processing is used.
 上記構成によれば、超解像処理を行うことで、撮像画像を拡大することによってぼけた部分が生じてもくっきり感を上げることができる。即ち、高画質化を図ることができる。 According to the above configuration, by performing the super-resolution processing, it is possible to increase the sense of sharpness even if a blurred portion is generated by enlarging the captured image. That is, high image quality can be achieved.
 上記構成において、前記第1の撮像画像および前記第2の撮像画像のそれぞれの画像の周辺部に対して平均化処理を行う画像フィルタ部を備え、前記画像エンコード部は、前記画像リサイズ部で画素数の変換した後、前記画像フィルタ部により平均化処理を行った前記第1の撮像画像と、前記画像リサイズ部で画素数の変換した後、前記画像フィルタ部により平均化処理を行った前記第2の撮像画像と、をエンコードする。 In the above configuration, an image filter unit that performs averaging processing on peripheral portions of respective images of the first captured image and the second captured image is provided, and the image encoding unit includes pixels in the image resizing unit. The first captured image subjected to averaging processing by the image filter unit after conversion of the number, and the number of pixels converted by the image resizing unit, and the averaging processing performed by the image filter unit 2 and the captured image are encoded.
 上記構成によれば、画像フィルタ部を備えたことで、第1の撮像画像および第2の撮像画像のそれぞれの画像の周辺部をぼかすことができ、第1,第2の撮像部間のレンズ歪の差によるステレオ画像の画質の劣化を少なくすることができる。 According to the above configuration, by providing the image filter unit, the peripheral portion of each of the first captured image and the second captured image can be blurred, and a lens between the first and second imaging units It is possible to reduce the deterioration of the image quality of the stereo image due to the difference in distortion.
 本発明のステレオ画像生成方法は、光学ズーム機能と電子ズーム機能を備えた第1の撮像部において第1の画素数で、第1の撮像画像を撮像する第1撮像ステップと、
 電子ズーム機能を備えた第2の撮像部において前記第1の画素数よりも小さい第2の画素数で、第2の撮像画像を撮像する第2撮像ステップと、指定されるズーム倍率が、光学ズーム機能の上限倍率より小さい所定の倍率以下の時には、前記第1の撮像部は光学ズーム動作を行い、前記第2の撮像部は電子ズーム動作を行い、前記所定の倍率を超えた場合は、それ以降のズーム動作は、前記第1の撮像部、前記第2の撮像部ともに電子ズーム動作を行うように制御するズーム制御ステップと、前記第1の撮像画像、および前記第2の撮像画像を所定の画素数に変換する画像リサイズステップと、前記画像リサイズステップで変換された前記第1の撮像画像および前記第2の撮像画像をエンコードする画像エンコードステップと、前記画像エンコードステップでエンコードされた前記第1の撮像画像および前記第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成するステレオ画像フォーマット変換ステップと、を備えた。
A stereo image generating method according to the present invention comprises: a first imaging step of imaging a first captured image with a first number of pixels in a first imaging unit having an optical zoom function and an electronic zoom function;
A second imaging step for imaging a second captured image with a second number of pixels smaller than the first number of pixels in a second imaging unit having an electronic zoom function; When the magnification is smaller than the upper limit magnification of the zoom function, the first imaging unit performs the optical zoom operation, and the second imaging unit performs the electronic zoom operation. When the magnification exceeds the predetermined magnification, In the subsequent zoom operation, the first image pickup unit and the second image pickup unit perform a zoom control step to perform electronic zoom operation, the first image pickup image, and the second image pickup image. An image resizing step of converting into a predetermined number of pixels; an image encoding step of encoding the first captured image and the second captured image converted in the image resizing step; And stereo image format conversion step of generating a stereo image by converting the encoded first captured image and the second captured image to the stereo image format in Dosuteppu, with a.
 上記方法によれば、高画素の第1の撮像部と、この第1の撮像部よりも低画素の第2の撮像部を使用し、第1の撮像部で撮像された第1の撮像画像を所定の画素数にするとともに、第2の撮像部で撮像された第2の撮像画像を所定の画素数にし、このようにしてリサイズした第1の撮像画像および第2の撮像画像をエンコードし、エンコードした第1の撮像画像および第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成するので、高画素の撮像手段を2つ使用することなく、高画素のステレオ画像を撮像することが可能となる。 According to the above method, using the first imaging unit with high pixels and the second imaging unit with pixels lower than the first imaging unit, the first imaged image imaged by the first imaging unit To a predetermined number of pixels, and the second captured image captured by the second imaging unit to a predetermined number of pixels, and thus the resized first captured image and the second captured image are encoded. Since the encoded first captured image and the second captured image are converted to a stereo image format to generate a stereo image, a high pixel stereo image is captured without using two high pixel imaging means. It becomes possible.
 また、ズーム倍率が所定の倍率を超えた場合においても、第1の撮像画像と、第2の撮像画像の解像度をある比率以下に抑えることで、立体視しやすい高画素のステレオ画像を撮像することが可能となり、かつズーム動作も可能となる。 In addition, even when the zoom magnification exceeds a predetermined magnification, by suppressing the resolution of the first captured image and the second captured image to a certain ratio or less, a high-pixel stereo image that is easy to view stereoscopically is captured. And zoom operation is also possible.
 本発明によれば、解像度の異なる2つの撮像手段で2つの画像を撮像し、指定されるズーム倍率に基づき、左右の解像度差を調整するので、高画素の撮像手段を2つ使用することがなく、コストを低く抑えることができるとともに、実装面積も小さく抑えることができる。 According to the present invention, since two images are captured by two imaging means having different resolutions and the left-right resolution difference is adjusted based on the designated zoom magnification, two high-pixel imaging means are used. Therefore, the cost can be reduced and the mounting area can be reduced.
本発明の実施の形態1に係るステレオ画像生成装置の概略構成を示すブロック図Block diagram showing a schematic configuration of a stereo image generating apparatus according to Embodiment 1 of the present invention 図1のステレオ画像生成装置の撮影処理全体を示すフローチャートA flowchart showing the entire photographing process of the stereo image generating apparatus of FIG. 1 図1のステレオ画像生成装置の、光学ズーム倍率が所定の倍率以下の撮影処理を示すフローチャートThe flowchart which shows the photographing processing of optical zoom magnification below predetermined magnification of the stereo image generation device of Drawing 1 図3の撮影処理のステップS30~ステップS32およびステップS34の各ステップにおける処理結果を示す図The figure which shows the process result in each step of step S30-step S32 of imaging processing of FIG. 3, and step S34. 図1のステレオ画像生成装置の、光学ズーム倍率が所定の倍率を超えた場合の撮影処理を示すフローチャートA flowchart showing photographing processing when the optical zoom magnification exceeds a predetermined magnification in the stereo image generation device of FIG. 1 図5の撮影処理のステップS30~ステップS32およびステップS40の各ステップにおける処理結果を示す図The figure which shows the processing result in each step of step S30-step S32 of imaging processing of FIG. 5, and step S40. (a)~(g)図1のステレオ画像生成装置に2つの撮像部を配置したときの光軸ずれを示す図(A)-(g) The figure which shows an optical axis shift when two imaging parts are arrange | positioned to the stereo image production | generation apparatus of FIG. 本発明の実施の形態2に係るステレオ画像生成装置の概略構成を示すブロック図Block diagram showing a schematic configuration of a stereo image generating apparatus according to Embodiment 2 of the present invention 図8のステレオ画像生成装置の撮影処理全体を示すフローチャートA flowchart showing the entire photographing process of the stereo image generating apparatus of FIG. 8 図8のステレオ画像生成装置の撮影処理全体を示すフローチャートA flowchart showing the entire photographing process of the stereo image generating apparatus of FIG. 8 図8のステレオ画像生成装置の撮影処理を示すフローチャートA flowchart showing photographing processing of the stereo image generating apparatus of FIG. 8 図11の撮影処理のステップS80~ステップS82およびステップS84の各ステップにおける処理結果を示す図The figure which shows the process result in each step of step S80-step S82 of the imaging | photography process of FIG. 11, and step S84. 図11の撮影処理のステップS80~ステップS82およびステップS84の各ステップにおける処理結果を示す図The figure which shows the process result in each step of step S80-step S82 of the imaging | photography process of FIG. 11, and step S84.
 以下、本発明を実施するための好適な実施の形態について、図面を参照して詳細に説明する。 Hereinafter, preferred embodiments for carrying out the present invention will be described in detail with reference to the drawings.
 (実施の形態1)
 図1は、本発明の実施の形態1に係るステレオ画像生成装置の概略構成を示すブロック図である。図1において、実施の形態1のステレオ画像生成装置1は、光学ズーム機能を備えた高画素の撮像部10-1と、電子ズーム機能を備えた低画素の撮像部10-2と、ズーム制御部11と、オートフォーカス制御部12と、シャッター制御部13と、露出制御部14と、ホワイトバランス制御部15と、カメラ操作部16と、制御部17と、2つのカメラ信号処理部18-1,18-2と、画角補正部19と、画角情報保持部20と、位置補正部21と、位置補正情報保持部22と、色補正部23と、画像リサイズ部24と、超解像処理部25と、画像フィルタ部26と、画像エンコード部27と、ステレオ画像フォーマット変換部28と、画像保存部29と、フォーマット変換部30と、表示制御部31と、表示部32と、撮像制御部40と、ズーム倍率閾値保存部41とを備える。
Embodiment 1
FIG. 1 is a block diagram showing a schematic configuration of a stereo image generating apparatus according to Embodiment 1 of the present invention. In FIG. 1, the stereo image generating device 1 according to the first embodiment includes a high pixel imaging unit 10-1 having an optical zoom function, a low pixel imaging unit 10-2 having an electronic zoom function, and zoom control. The unit 11, the autofocus control unit 12, the shutter control unit 13, the exposure control unit 14, the white balance control unit 15, the camera operation unit 16, the control unit 17, and two camera signal processing units 18-1 18-2, the angle of view correction unit 19, the angle of view information holding unit 20, the position correction unit 21, the position correction information holding unit 22, the color correction unit 23, the image resizing unit 24, and super resolution Processing unit 25, image filter unit 26, image encoding unit 27, stereo image format conversion unit 28, image storage unit 29, format conversion unit 30, display control unit 31, display unit 32, imaging control Part 40 , And a zoom magnification threshold storage unit 41.
 撮像部10-1,10-2は、CCD(Charge Coupled Device)やCMOS(Complementary Metal Oxide Semiconductor)等の撮像素子を備え、撮像信号を出力する。実施の形態1では、撮像部10-1で撮像して得られた画像を第1の撮像画像とし、撮像部10-2で撮像して得られた画像を第2の撮像画像とする。また、実施の形態1では、撮像部10-1は第1の画角を有しており、撮像部10-2は、撮像部10-1の第1の画角よりも狭い第2の画角を有している。また、撮像部10-1は、光学ズーム機能を備えている。なお、撮像部10-1は、さらに電子ズーム機能を備えていてもよい。一方、撮像部10-2は、光学ズーム機能を備えておらず、電子ズーム機能のみを備えている。 The imaging units 10-1 and 10-2 each include an imaging element such as a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS), and output an imaging signal. In the first embodiment, an image obtained by imaging by the imaging unit 10-1 is taken as a first captured image, and an image obtained by imaging by the imaging unit 10-2 is taken as a second captured image. In the first embodiment, the imaging unit 10-1 has a first angle of view, and the imaging unit 10-2 has a second image narrower than the first angle of view of the imaging unit 10-1. It has a horn. The imaging unit 10-1 also has an optical zoom function. The imaging unit 10-1 may further include an electronic zoom function. On the other hand, the imaging unit 10-2 does not have an optical zoom function, but only an electronic zoom function.
 ズーム制御部11は、撮像部10-1,10-2のズーム制御を行う。オートフォーカス制御部12は、撮像部10-1,10-2のオートフォーカス制御を行う。シャッター制御部13は、撮像部10-1,10-2のシャッター制御を行う。露出制御部14は、撮像部10-1,10-2の露出制御を行う。ホワイトバランス制御部15は、撮像部10-1,10-2のホワイトバランス制御を行う。 The zoom control unit 11 performs zoom control of the imaging units 10-1 and 10-2. The autofocus control unit 12 performs autofocus control of the imaging units 10-1 and 10-2. The shutter control unit 13 performs shutter control of the imaging units 10-1 and 10-2. The exposure control unit 14 performs exposure control of the imaging units 10-1 and 10-2. The white balance control unit 15 performs white balance control of the imaging units 10-1 and 10-2.
 カメラ操作部16は、ステレオ画像生成装置1の操作を行うものであり、操作者が指定するズーム倍率等の操作時の信号が制御部17に入力される。制御部17は、カメラ操作部16での操作に応じた操作信号を撮像部10-1,10-2へ出力する。カメラ信号処理部18-1は、プレビュー処理において、撮像部10-1で撮像された第1の撮像画像を表示部32のサイズに合わせてリサイズする。カメラ信号処理部18-2は、プレビュー処理において、撮像部10-2で撮像された第2の撮像画像を表示部32のサイズに合わせてリサイズする。実施の形態1では、撮影処理時は、カメラ信号処理部18-1からは9.7メガピクセルの第1の撮像画像(L:左画像)を出力し、カメラ信号処理部18-2からは2メガピクセルの第2の撮像画像(R:右画像)を出力するものとする。 The camera operation unit 16 is for operating the stereo image generating device 1, and a signal at the time of operation such as a zoom magnification designated by the operator is input to the control unit 17. The control unit 17 outputs an operation signal corresponding to the operation in the camera operation unit 16 to the imaging units 10-1 and 10-2. The camera signal processing unit 18-1 resizes the first captured image captured by the imaging unit 10-1 to the size of the display unit 32 in the preview processing. The camera signal processing unit 18-2 resizes the second captured image captured by the imaging unit 10-2 to the size of the display unit 32 in the preview processing. In the first embodiment, at the time of shooting processing, the camera signal processing unit 18-1 outputs a first captured image (L: left image) of 9.7 megapixels, and the camera signal processing unit 18-2 outputs It is assumed that a second captured image (R: right image) of 2 megapixels is output.
 画角補正部19は、画角情報保持部20に保持されている画角補正情報に基づき撮像部10-1で撮像された第1の撮像画像の画角を小さくする。例えば、5.7メガピクセルの画角にする。なお、撮像部10-2で撮像された第2の撮像画像について画角補正するようにしてもよい。位置補正部21は、位置補正情報保持部22に保持されている位置補正情報に基づき、撮像部10-1で撮像された第1の撮像画像に対して位置補正する。この場合、位置補正として、“上下ずれ”、“水平ずれ”、“回転ずれ”、または“大きさずれ”の中で少なくとも1つを行う。なお、位置補正は、撮像部10-2で撮像された第2の撮像画像に対して行ってもよい。即ち、位置補正部21は、撮像部10-1で撮像された第1の撮像画像、もしくは撮像部10-2で撮像された第2の撮像画像のいずれかに対して位置補正を行ってもよい。 The view angle correction unit 19 reduces the view angle of the first captured image captured by the imaging unit 10-1 based on the view angle correction information stored in the view angle information storage unit 20. For example, the field angle is 5.7 megapixels. The angle of view of the second captured image captured by the imaging unit 10-2 may be corrected. The position correction unit 21 corrects the position of the first captured image captured by the imaging unit 10-1 based on the position correction information stored in the position correction information storage unit 22. In this case, at least one of “vertical shift”, “horizontal shift”, “rotational shift”, or “size shift” is performed as the position correction. The position correction may be performed on the second captured image captured by the imaging unit 10-2. That is, even if the position correction unit 21 performs position correction on either the first captured image captured by the imaging unit 10-1 or the second captured image captured by the imaging unit 10-2. Good.
 色補正部23は、撮像部10-2で撮像された第2の撮像画像と位置補正後の撮像部10-1で撮像された第1の撮像画像との間の色の違いについて、第1の撮像画像および第2の撮像画像(第1の撮像画像または第2の撮像画像)に対して色の補正を行う。画像リサイズ部24は、撮像部10-1で撮像された第1の撮像画像を変換し、所定の画素数にするとともに、撮像部10-2で撮像された第2の撮像画像を変換し、第1の撮像画像と同様の画素数にする。 The color correction unit 23 performs the first color difference between the second captured image captured by the imaging unit 10-2 and the first captured image captured by the imaging unit 10-1 after position correction. Color correction is performed on the captured image and the second captured image (the first captured image or the second captured image). The image resizing unit 24 converts the first captured image captured by the imaging unit 10-1 into a predetermined number of pixels, and converts the second captured image captured by the imaging unit 10-2. The number of pixels is the same as that of the first captured image.
 また、画像リサイズ部24は、ズーム倍率閾値保存部41に保存されているズーム倍率閾値に基づき、撮像部10-1で撮像された第1の撮像画像を所定の画素数に変換するとともに、撮像部10-2で撮像された第2の撮像画像も所定の画素数に変換する。具体的には、ズーム倍率が、所定の倍率以下の時には、前記第1の撮像画像、および前記第2の撮像画像を第3の画素数に変換し、所定の倍率を超えた場合は、前記第1の撮像画像、および前記第2の撮像画像を第4の画素数に変換する。なお、画像リサイズ部24が行う第1の撮像画像の変換および第2の撮像画像の変換は、“拡大”や“縮小”の他に“等倍”も含まれる。 In addition, the image resizing unit 24 converts the first captured image captured by the imaging unit 10-1 into a predetermined number of pixels based on the zoom magnification threshold stored in the zoom magnification threshold storage unit 41, and captures an image. The second captured image captured by the unit 10-2 is also converted into a predetermined number of pixels. Specifically, when the zoom magnification is equal to or less than a predetermined magnification, the first captured image and the second captured image are converted into a third number of pixels, and the predetermined magnification is exceeded. The first captured image and the second captured image are converted into a fourth pixel number. Note that the conversion of the first captured image and the conversion of the second captured image performed by the image resizing unit 24 include “equal magnification” in addition to “enlargement” and “reduction”.
 超解像処理部25は、第2の撮像画像の変換が拡大の変換である場合に、画像リサイズ部24において拡大処理を行わずに、超解像処理により拡大処理を行うものであり、画像リサイズ部24により拡大処理するか、超解像処理により拡大するかを選択可能である。超解像処理とは、画像を拡大することによってぼけた部分についてくっきり感を上げるような処理である(つまり、高画質化を図る処理である)。 When the conversion of the second captured image is enlargement conversion, the super-resolution processing unit 25 performs enlargement processing by super-resolution processing without performing enlargement processing in the image resizing unit 24. It is possible to select whether to perform enlargement processing by the resize unit 24 or enlargement by super resolution processing. The super-resolution processing is processing for enhancing the sharpness of the blurred portion by enlarging the image (that is, processing for achieving high image quality).
 実施の形態1では、超解像処理部25ではなく、画像リサイズ部24により拡大処理する場合を説明する。画像フィルタ部26は、2つの撮像部10-1,10-2のレンズ歪の差による左右画像の画素ずれを目立たなくするため、第1の撮像画像および第2の撮像画像のそれぞれの画像の周辺部をぼかすための平均化処理を行う。この画像フィルタ部26を設けることで、2つの撮像部10-1,10-2間のレンズ歪の差によるステレオ画像の画質の劣化を少なくすることができる。 In the first embodiment, the case where enlargement processing is performed by the image resizing unit 24 instead of the super-resolution processing unit 25 will be described. The image filter unit 26 reduces the pixel shift of the left and right images due to the difference in lens distortion of the two imaging units 10-1 and 10-2 so that the images of the first and second captured images are not displayed. Perform averaging processing to blur the periphery. By providing the image filter unit 26, it is possible to reduce the deterioration of the image quality of the stereo image due to the difference in lens distortion between the two imaging units 10-1 and 10-2.
 画像エンコード部27は、画像リサイズ部24で画素数の変換が行われ、さらに画像フィルタ部26により平均化処理が行われた第1の撮像画像と、画像リサイズ部24で画素数の変換が行われ、さらに画像フィルタ部26で平均化処理が行われた第2の撮像画像とをエンコード(圧縮)する。この場合、例えばJPEG(Joint Photographic Experts Group)形式で圧縮する。ステレオ画像フォーマット変換部28は、画像エンコード部27でエンコードされた第1の撮像画像および第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成する。この場合、例えばJPEG形式からMPO(Multi-Picture Format)形式に変換する。画像保存部29は、フラッシュメモリ(SDメモリなど)を有し、ステレオ画像フォーマット変換部28で生成されたステレオ画像を保存する。フォーマット変換部30は、画像リサイズ部24で表示部32に合う画素数に変換された第1の撮像画像および第2の撮像画像を表示部32に表示するための形式に変換する。表示制御部31は、フォーマット変換部30で表示部32に表示するための形式(例えば、ピクセルバイピクセル)に変換された第1の撮像画像および第2の撮像画像を表示部32に表示する制御を行う。表示部32は、例えば液晶表示器である。 In the image encoding unit 27, conversion of the number of pixels is performed by the image resizing unit 24, and the first captured image subjected to averaging processing by the image filter unit 26 and conversion of the number of pixels by the image resizing unit 24 are performed. Furthermore, the second captured image subjected to the averaging process in the image filter unit 26 is encoded (compressed). In this case, for example, compression is performed in JPEG (Joint Photographic Experts Group) format. The stereo image format conversion unit 28 converts the first captured image and the second captured image encoded by the image encoding unit 27 into a stereo image format to generate a stereo image. In this case, for example, the JPEG format is converted to an MPO (Multi-Picture Format) format. The image storage unit 29 has a flash memory (SD memory or the like), and stores the stereo image generated by the stereo image format conversion unit 28. The format conversion unit 30 converts the first captured image and the second captured image converted into the number of pixels matching the display unit 32 by the image resizing unit 24 into a format for displaying on the display unit 32. The display control unit 31 controls the display unit 32 to display the first captured image and the second captured image converted to a format (for example, pixel by pixel) to be displayed on the display unit 32 by the format conversion unit 30. I do. The display unit 32 is, for example, a liquid crystal display.
 次に、実施の形態1のステレオ画像生成装置1の動作を説明する。
 図2において、ユーザがカメラ操作部16により撮像部10-1、10-2の起動を指示する(ステップS10)。このユーザ指示により、制御部17が、撮像制御部40に対して、撮像部10-1、10-2を起動する指示を出力する(ステップS11)。制御部17が撮像制御部40に対して、撮像部10-1の光学ズーム倍率を1倍に設定する(ステップS12)。
Next, the operation of the stereo image generating device 1 of the first embodiment will be described.
In FIG. 2, the user instructs activation of the imaging units 10-1 and 10-2 from the camera operation unit 16 (step S10). Based on this user instruction, the control unit 17 outputs an instruction to activate the imaging units 10-1 and 10-2 to the imaging control unit 40 (step S11). The control unit 17 sets the optical zoom magnification of the imaging unit 10-1 to 1 × for the imaging control unit 40 (step S12).
 起動指示を出力した後、ユーザがカメラ操作部16により撮影終了を指示するまでの間、ステップS14~ステップS21を繰り返す。ステップS14~ステップS21の処理を繰り返すための判定はステップS13とステップS22で行われる。 After the start instruction is output, steps S14 to S21 are repeated until the user instructs the camera operation unit 16 to end shooting. The determination for repeating the process of step S14 to step S21 is performed in step S13 and step S22.
 制御部17は、ユーザがカメラ操作部16により、カメラに対する制御を行ったかを検出する(ステップS14)。検出されなかった場合は、ステップS13、S14、S22の処理を繰り返す。これに対し、検出された場合は、制御部17が、撮影指示かを判定する(ステップS15)。撮影指示である場合は、制御部17が、現在の光学ズーム倍率がズーム倍率閾値保存部41から読み出したズーム倍率閾値以下であるかを判定する(ステップS16)。ステップS16の判定が「Yes」の場合は、撮影処理その1の処理を行う(ステップS18)。この撮影処理その1の詳細については後述する。これに対し、ステップS16の判定が「No」の場合は、撮影処理その2の処理を行う(ステップS19)。この撮影処理その2の詳細については後述する。 The control unit 17 detects whether the user has performed control of the camera by the camera operation unit 16 (step S14). If not detected, the processes of steps S13, S14 and S22 are repeated. On the other hand, when it is detected, the control unit 17 determines whether it is a photographing instruction (step S15). If it is the shooting instruction, the control unit 17 determines whether the current optical zoom magnification is equal to or less than the zoom magnification threshold read from the zoom magnification threshold storage unit 41 (step S16). If the determination in step S16 is "Yes", the first photographing process is performed (step S18). The details of the shooting process No. 1 will be described later. On the other hand, if the determination in step S16 is "No", the second photographing process is performed (step S19). The details of the shooting process 2 will be described later.
 ステップS15の判定が「No」の場合は、制御部17がズーム倍率変更指示かを判定する(ステップS17)。ズーム倍率変更指示である場合(即ち、ステップS17の判定が「Yes」の場合)、制御部17が撮像制御部40に対して、ズーム倍率の変更指示を行い、撮像制御部40が撮像部10-1に対して、光学ズーム倍率の変更指示を行う(ステップS20)。一方、撮像制御部40が、カメラ信号処理部18-2に対して、ズーム倍率に応じて画像のトリミング位置を指定する。ここでのトリミングは電子ズーム機能のことである。ズーム倍率変更以外の指示である場合(即ち、ステップS17の判定が「No」の場合)、それに応じた制御を行う(ステップS21)。例えば、撮影画像サイズの変更処理などである。 If the determination in step S15 is "No", the control unit 17 determines whether a zoom magnification change instruction has been issued (step S17). If it is the zoom magnification change instruction (that is, if the determination in step S17 is "Yes"), the control unit 17 instructs the imaging control unit 40 to change the zoom magnification, and the imaging control unit 40 receives the imaging unit 10 An instruction to change the optical zoom magnification is issued to -1 (step S20). On the other hand, the imaging control unit 40 designates the trimming position of the image according to the zoom magnification to the camera signal processing unit 18-2. The trimming here is the electronic zoom function. If it is an instruction other than the zoom magnification change (that is, if the determination in step S17 is "No"), control according to that is performed (step S21). For example, the process of changing the size of a captured image is performed.
 以上の処理を、ユーザがカメラ操作部16により、撮影終了を指示するまで繰り返し行う(ステップS22)。そして、ユーザが撮影終了を指示すると、制御部17が、撮像部10-1、10-2のそれぞれの動作を停止させ(ステップS23)、その後、本処理を終了する。 The above process is repeated until the user instructs the end of shooting by the camera operation unit 16 (step S22). Then, when the user instructs the end of imaging, the control unit 17 stops the operation of each of the imaging units 10-1 and 10-2 (step S23), and then the present process ends.
 (撮影処理その1)
 次に、ズーム倍率がズーム倍率閾値以下の場合の、上記ステップS18の撮影処理その1について説明する。これ以降の説明では、ズーム倍率閾値を1.8倍として説明する。ここでは、撮像部10-1の撮影時における光学ズーム倍率が1.5倍の場合を例にとって、説明する。
(Shooting process 1)
Next, the first photographing processing of step S18 when the zoom magnification is equal to or less than the zoom magnification threshold will be described. In the following description, it is assumed that the zoom magnification threshold is 1.8. Here, the case where the optical zoom magnification at the time of shooting of the imaging unit 10-1 is 1.5 will be described as an example.
 図3は、図2における撮影処理その1を説明するためのフローチャートである。図3において、カメラ信号処理部18-1が、撮像部10-1が撮像した第1の撮像画像をユーザ設定の画像サイズに合わせてリサイズする一方、カメラ信号処理部18-2が、撮像部10-2が撮像した第2の撮像画像をユーザ設定の電子ズーム倍率に合わせてトリミング処理を行い、ユーザ設定の画像サイズにあわせてリサイズする(ステップS30)。 FIG. 3 is a flowchart for explaining the photographing process 1 in FIG. In FIG. 3, the camera signal processing unit 18-1 resizes the first captured image captured by the imaging unit 10-1 to the image size set by the user, while the camera signal processing unit 18-2 resizes the imaging unit. The second captured image captured by 10-2 is trimmed in accordance with the user-set electronic zoom magnification, and resized in accordance with the user-set image size (step S30).
 次いで、画角補正部19が、画角情報保持部20より画角補正情報を読み出し、撮像部10-1が撮像した第1の撮像画像をトリミングする(ステップS31)。次いで、位置補正部21が、位置補正情報保持部22より位置補正情報を読み出し、撮像部10-1が撮像した第1の撮像画像に対して、“上下ずれ”、“水平ずれ”、“回転ずれ”、または“大きさずれ”の中で少なくとも1つを補正する(ステップS32)。 Next, the field angle correction unit 19 reads out the field angle correction information from the field angle information holding unit 20, and trims the first captured image captured by the imaging unit 10-1 (step S31). Next, the position correction unit 21 reads out the position correction information from the position correction information holding unit 22, and the “vertical shift”, “horizontal shift”, “rotation” with respect to the first captured image captured by the imaging unit 10-1 At least one of the deviations "or the size deviation" is corrected (step S32).
 次いで、色補正部23が、左右画像の色の違いを補正する(ステップS33)。即ち、撮像部10-2で撮像された第2の撮像画像と位置補正後の撮像部10-1で撮像された第1の撮像画像との間の色の違いを補正する。次いで、制御部17が、現在の光学ズーム倍率とズーム倍率閾値保存部41に保存されているズーム倍率閾値を比較し、現在のズーム倍率がズーム倍率閾値以下のため、画像リサイズ部24に対して、リサイズ後の画素数である第3の画素数として、画角補正後の第1の撮像画像のサイズを指示し、画像リサイズ部24が画角補正後の第1の撮像画像のサイズに合わせて、撮像部10-2で撮像された第2の撮像画像を拡大する(ステップS34)。次いで、画像エンコード部27が、左右の画像をエンコードする(例えば、JPEG形式に圧縮する)。即ち、撮像部10-2で撮像された第2の撮像画像と位置補正後の撮像部10-1で撮像された第1の撮像画像をエンコードする(ステップS35)。次いで、ステレオ画像フォーマット変換部28において、画像エンコード部27でエンコードされた左右の画像即ち第1の撮像画像と第2の撮像画像をステレオ画像フォーマットに変換する(ステップS36)。左右の画像をステレオ画像フォーマットに変換すると本処理を終える。 Next, the color correction unit 23 corrects the difference in color of the left and right images (step S33). That is, the difference in color between the second captured image captured by the imaging unit 10-2 and the first captured image captured by the imaging unit 10-1 after position correction is corrected. Next, the control unit 17 compares the current optical zoom magnification with the zoom magnification threshold stored in the zoom magnification threshold storage unit 41, and the current zoom magnification is equal to or less than the zoom magnification threshold. The size of the first captured image after the angle of view correction is indicated as the third number of pixels, which is the number of pixels after resizing, and the image resizing unit 24 is adjusted to the size of the first captured image after the angle of view correction. The second captured image captured by the imaging unit 10-2 is enlarged (step S34). Next, the image encoding unit 27 encodes the left and right images (for example, compresses them into the JPEG format). That is, the second captured image captured by the imaging unit 10-2 and the first captured image captured by the imaging unit 10-1 after position correction are encoded (step S35). Next, the stereo image format conversion unit 28 converts the left and right images encoded by the image encoding unit 27, that is, the first captured image and the second captured image into a stereo image format (step S36). This process ends when the left and right images are converted to the stereo image format.
 図4は、撮像部10-1,10-2の仕様を以下のように決定したときのステップS30~ステップS32およびステップS34の各ステップにおける処理結果を示す図である。
 撮像部10-1:13メガピクセルカメラ、焦点距離 27mm相当(35mmフィルム換算)、3倍光学ズーム機能、撮影画像サイズは9.7メガピクセル(アスペクト比16:9)
 撮像部10-2:3メガピクセルカメラ、焦点距離 35mm相当(35mmフィルム換算)、電子ズーム機能、撮影画像サイズは2メガピクセル(アスペクト比16:9)
 ここでは、撮影時における撮像部10-1の光学ズーム倍率が1.5倍の場合を例にとって、説明する。
FIG. 4 is a diagram showing the processing result in each of steps S30 to S32 and step S34 when the specifications of the imaging units 10-1 and 10-2 are determined as follows.
Imaging unit 10-1: 13 megapixel camera, focal length 27 mm equivalent (35 mm film equivalent), 3 × optical zoom function, captured image size 9.7 megapixel (aspect ratio 16: 9)
Imaging unit 10-2: 3 megapixel camera, 35 mm focal length equivalent (35 mm film equivalent), electronic zoom function, 2 megapixel captured image size (aspect ratio 16: 9)
Here, the case where the optical zoom magnification of the imaging unit 10-1 at the time of shooting is 1.5 times will be described as an example.
 ステップS30では、第1の撮像画像は、H2336ピクセル、W4160ピクセルとなる。第2の撮像画像は、H1080ピクセル、W1920ピクセルとなる。ステップS31では、第1の撮像画像は、約H1796ピクセル、約W3200ピクセルとなる。ここで、焦点距離35mm、27mmの画角の差により、27mmのカメラで撮影したほうが、縦横それぞれ約1.3倍広角に撮影できる。そのため、27mmのカメラ画像を画角補正部19によりトリミングすると、1/1.3倍程度の画素数になる。但し、同じ画素数のカメラでも、画角のばらつきがあるため、トリミング後の画像サイズはばらつく。
 実施の形態1では、第1の撮像画像をトリミングして、第2の撮像画像の画角とあわせているが、第2の撮像画像のズーム倍率に応じたトリミングサイズに対して、より高い画素数でトリミングすることによって、第1の撮像画像の画角にあわせる方法でもよい。具体的には、ズーム倍率1.5の場合、第2の撮像画像であるH1080ピクセル、W1920ピクセルの画像に対して、次のようになる。
  1080/1.5 * 1.3=936
  1920/1.5 * 1.3=1664
 つまり、第2の撮像画像に対して、H936ピクセル、W1664ピクセルの画像をトリミングすることで、第1の撮像画像と画角を合わせることが可能である。その場合は、ステップS31において、第1の撮像画像をトリミングする必要はなく、第1の撮像画像はH2336ピクセル、W4160ピクセルのままである。以降の説明では、第1の撮像画像をトリミングした場合の処理を説明する。
In step S30, the first captured image is H2336 pixels and W4160 pixels. The second captured image is H1080 pixels and W1920 pixels. In step S31, the first captured image is approximately H1796 pixels and approximately W3200 pixels. Here, due to the difference in the angle of view of the focal lengths of 35 mm and 27 mm, it is possible to shoot at a wide angle of approximately 1.3 times in both the vertical and horizontal directions when shooting with a camera of 27 mm. Therefore, when the camera image of 27 mm is trimmed by the angle of view correction unit 19, the number of pixels becomes about 1 / 1.3. However, even with a camera with the same number of pixels, the image size after trimming varies because of variations in the angle of view.
In the first embodiment, the first captured image is trimmed to match the angle of view of the second captured image, but the pixel is higher than the trimming size according to the zoom magnification of the second captured image. A method of adjusting to the angle of view of the first captured image may be used by trimming with numbers. Specifically, in the case of the zoom magnification of 1.5, the following is obtained with respect to the image of H1080 pixel and W1920 pixel which is the second captured image.
1080 / 1.5 * 1.3 = 936
1920 / 1.5 * 1.3 = 1664
That is, it is possible to match the angle of view with the first captured image by trimming the image of H936 pixels and W1664 pixels for the second captured image. In that case, it is not necessary to trim the first captured image in step S31, and the first captured image remains H2336 pixels and W4160 pixels. In the following description, processing in the case of trimming the first captured image will be described.
 ステップS31では、第2の撮像画像は、H1080ピクセル、W1920ピクセルのままである。ステップS32では、第1の撮像画像は、H(1796-β)ピクセル、W(3200-α)ピクセルとなる。第2の撮像画像は、H1080ピクセル、W1920ピクセルのままである。ステップS34では、第1の撮像画像は、H(1796-β)ピクセル、W(3200-α)ピクセルとなる。第2の撮像画像は、H(1796-β)ピクセル、W(3200-α)ピクセルとなり、第1の撮像画像と同じ画素数になる。ここでα、βの意味は、2つのカメラをステレオ画像生成装置に配置した時の光軸のずれ、およびそれぞれのカメラ自体の画角のずれ、光軸のずれを補正することにより、減少する画素数を示している。 In step S31, the second captured image remains H1080 pixels and W1920 pixels. In step S32, the first captured image is H (1796-β) pixels and W (3200-α) pixels. The second captured image remains H1080 pixels and W1920 pixels. In step S34, the first captured image is H (1796-β) pixels and W (3200-α) pixels. The second captured image is H (1796-β) pixels and W (3200-α) pixels, and has the same number of pixels as the first captured image. Here, the meanings of α and β are reduced by correcting the shift of the optical axis when the two cameras are arranged in the stereo image generating device, the shift of the angle of view of each camera itself, and the shift of the optical axis. It shows the number of pixels.
 ここで、参考として、図7(a)~(g)に、2つのカメラをステレオ画像生成装置1に配置した時に発生する光軸ずれを示す。 Here, for reference, FIGS. 7A to 7G show the optical axis deviation that occurs when two cameras are arranged in the stereo image generating device 1. FIG.
 (撮影処理その2)
 次に、ズーム倍率がズーム倍率閾値より大きい場合の、上記ステップS19の撮影処理その2について説明する。ここでは、撮影時における撮像部10-1の光学ズーム倍率が2倍の場合を例にとって、説明する。
(Shooting process 2)
Next, the second photographing process of step S19 when the zoom magnification is larger than the zoom magnification threshold will be described. Here, the case where the optical zoom magnification of the imaging unit 10-1 at the time of shooting is doubled will be described as an example.
 図5は、図2における撮影処理その2を説明するためのフローチャートである。図5において、ステップS30からステップS33は、先ほど説明した撮影処理その1と同じ処理である。次いで、制御部17が、現在の光学ズーム倍率とズーム倍率閾値を比較し、現在の光学ズーム倍率が2倍で、ズーム倍率閾値1.8倍より大きいため、画像リサイズ部24に対して、リサイズ後の画素数である第3の画素数を指示し、画像リサイズ部24が第1の撮像画像を第3の画素数にリサイズし、第2の撮像画像を第3の画素数にリサイズする(ステップS40)。ここで、第3の画素数の求め方として、ステップS30の電子ズームによるトリミング時の画素数とステップS40におけるリサイズ後の画素数の比率を、ある比率以下にするように第3の画素数を決定する。この実施例では、式1、式2に示すように、前記画素数の比率を6.25倍(画像の水平、垂直の長さ比でそれぞれ2.5倍)以下になるように、第3の画素数を決定した。
  水平方向の画素数比 2400/960=2.5 … 式1
  垂直方向の画素数比 1350/540=2.5 … 式2
   ただし、
    2400 : ステップS40での、第2の撮影画像の水平方向の画素数
    1350 : ステップS40での、第2の撮影画像の垂直方向の画素数
     960 : ステップS30での、第2の撮像画像に対して電子ズームによりトリミングする画像の水平方向の画素数
     540 : ステップS30での、第2の撮像画像に対して電子ズームによりトリミングする画像の垂直方向の画素数
FIG. 5 is a flowchart for explaining the photographing process 2 in FIG. In FIG. 5, steps S30 to S33 are the same processes as the photographing process 1 described above. Next, the control unit 17 compares the current optical zoom magnification with the zoom magnification threshold, and the current optical zoom magnification is twice and larger than the zoom magnification threshold 1.8 times, so resizing with respect to the image resizing unit 24 The image resizing unit 24 resizes the first captured image to the third number of pixels and resizes the second captured image to the third number of pixels by indicating the third number of pixels, which is the number of subsequent pixels (see FIG. Step S40). Here, as a method of determining the third number of pixels, the third number of pixels is set so that the ratio of the number of pixels during trimming by the electronic zoom in step S30 and the number of pixels after resizing in step S40 is equal to or less than a certain ratio. decide. In this embodiment, as shown in Equation 1 and Equation 2, the ratio of the number of pixels is set to 6.25 times (2.5 times each in the horizontal and vertical length ratios of the image) or less. The number of pixels of was determined.
Horizontal pixel count ratio 2400/960 = 2.5 ... Formula 1
Vertical pixel count ratio 1350/540 = 2.5 ... Formula 2
However,
2400: The number of pixels in the horizontal direction 1350 of the second captured image in step S40: The number of pixels in the vertical direction of the second captured image in step S40 960: With respect to the second captured image in step S30 Pixels in the horizontal direction of the image to be trimmed by the electronic zoom 540: the number of pixels in the vertical direction of the image to be trimmed by the electronic zoom with respect to the second captured image in step S30
 ここで、前記画素数の比率をある比率以下になるように、ステップS40でリサイズする理由は、第1の撮像画像の画素数と、第2の撮像画像に対して電子ズームによるトリミングを行う時の画素数との比率が大きくなると、生成されるステレオ画像の左右の画像の解像度の差が大きくなり、立体視し難いステレオ画像になってしまうためである。なお、解像度とは画像のきめ細かさのことである。ステップS35、S36は、先ほど説明した撮影処理その1と同じ処理を行い、ステレオ画像を生成して、本処理を終える。 Here, the reason for resizing in step S40 so that the ratio of the number of pixels is equal to or less than a certain ratio is that when the number of pixels of the first captured image and the second captured image are trimmed by electronic zoom When the ratio to the number of pixels of the image is increased, the difference in resolution between the left and right images of the generated stereo image is increased, resulting in a stereo image which is difficult to view stereoscopically. The resolution is the fineness of the image. In steps S35 and S36, the same processing as the photographing processing 1 described above is performed, a stereo image is generated, and the present processing ends.
 図6は、撮像部10-1,10-2の仕様を以下のように決定したときのステップS30~ステップS32およびステップS40の各ステップにおける処理結果を示す図である。
 撮像部10-1:13メガピクセルカメラ、焦点距離 27mm相当(35mmフィルム換算)、3倍光学ズーム機能、撮影画像サイズは9.7メガピクセル(アスペクト比16:9)
 撮像部10-2:3メガピクセルカメラ、焦点距離 35mm相当(35mmフィルム換算)、電子ズーム機能、撮影画像サイズは2メガピクセル(アスペクト比16:9)
FIG. 6 is a diagram showing the processing result in each of steps S30 to S32 and step S40 when the specifications of the imaging units 10-1 and 10-2 are determined as follows.
Imaging unit 10-1: 13 megapixel camera, focal length 27 mm equivalent (35 mm film equivalent), 3 × optical zoom function, captured image size 9.7 megapixel (aspect ratio 16: 9)
Imaging unit 10-2: 3 megapixel camera, 35 mm focal length equivalent (35 mm film equivalent), electronic zoom function, 2 megapixel captured image size (aspect ratio 16: 9)
 ステップS30では、第1の撮像画像は、H2336ピクセル、W4160ピクセルとなる。第2の撮像画像は、H1080ピクセル、W1920ピクセルとなる。ステップS31では、第1の撮像画像は、約H1796ピクセル、約W3200ピクセルとなる。ここで、焦点距離35mm、27mmの画角の差により、27mmのカメラで撮影したほうが、縦横それぞれ約1.3倍広角に撮影できる。そのため、27mmのカメラ画像を画角補正部19によりトリミングすると、1/1.3倍程度の画素数になる。但し、同じ画素数のカメラでも、画角のばらつきがあるため、トリミング後の画像サイズはばらつく。実施の形態1では、第1の撮像画像をトリミングして、第2の撮像画像の画角とあわせているが、第2の撮像画像のズーム倍率に応じたトリミングサイズに対して、より広い領域をトリミングすることによって、第1の撮像画像の画角にあわせる方法でもよい。具体的には、光学ズーム倍率2倍の場合、第2の撮像画像であるH1080ピクセル、W1920ピクセルの画像に対して、次ののようになる。
  1080/2 * 1.3=702
  1920/2 * 1.3=1248
In step S30, the first captured image is H2336 pixels and W4160 pixels. The second captured image is H1080 pixels and W1920 pixels. In step S31, the first captured image is approximately H1796 pixels and approximately W3200 pixels. Here, due to the difference in the angle of view of the focal lengths of 35 mm and 27 mm, it is possible to shoot at a wide angle of approximately 1.3 times in both the vertical and horizontal directions when shooting with a camera of 27 mm. Therefore, when the camera image of 27 mm is trimmed by the angle of view correction unit 19, the number of pixels becomes about 1 / 1.3. However, even with a camera with the same number of pixels, the image size after trimming varies because of variations in the angle of view. In the first embodiment, the first captured image is trimmed to match the angle of view of the second captured image, but the area is wider than the trimming size according to the zoom magnification of the second captured image. A method may be made to match the angle of view of the first captured image by trimming the image. Specifically, when the optical zoom magnification is doubled, the image of the second captured image of H1080 pixels and W1920 pixels is as follows.
1080/2 * 1.3 = 702
1920/2 * 1.3 = 1248
 つまり、H702ピクセル、W1248ピクセルの画像をトリミングすることで、第1の撮像画像と画角を合わせることが可能である。その場合は、ステップS31において、第1の撮像画像をトリミングする必要はなく、H2336ピクセル、W4160ピクセルのままである。以降の説明では、第1の撮像画像をトリミングした場合の処理を説明する。
 ステップS31では、第2の撮像画像は、H1080ピクセル、W1920ピクセルのままである。ステップS32では、第1の撮像画像は、H(1796-β)ピクセル、W(3200-α)ピクセルとなる。第2の撮像画像は、H1080ピクセル、W1920ピクセルのままである。ステップS40では、第1の撮像画像は、H1530ピクセル、W2400ピクセルとなる。第2の撮像画像は、H1530ピクセル、W2400ピクセルとなり、第1の撮像画像と同じ画素数になる。
That is, by trimming an image of H702 pixels and W1248 pixels, it is possible to match the angle of view with the first captured image. In that case, there is no need to trim the first captured image in step S31, and the pixels remain H2336 pixels and W4160 pixels. In the following description, processing in the case of trimming the first captured image will be described.
In step S31, the second captured image remains H1080 pixels and W1920 pixels. In step S32, the first captured image is H (1796-β) pixels and W (3200-α) pixels. The second captured image remains H1080 pixels and W1920 pixels. In step S40, the first captured image is H1530 pixels and W2400 pixels. The second captured image has H1530 pixels and W2400 pixels, and has the same number of pixels as the first captured image.
 ここでα、βの意味は、2つのカメラをステレオ画像生成装置に配置した時の光軸のずれ、およびそれぞれのカメラ自体の画角のずれ、光軸のずれを補正することにより、減少する画素数を示している。 Here, the meanings of α and β are reduced by correcting the shift of the optical axis when the two cameras are arranged in the stereo image generating device, the shift of the angle of view of each camera itself, and the shift of the optical axis. It shows the number of pixels.
 このように実施の形態1に係るステレオ画像生成装置1によれば、光学ズーム機能を備えた高画素の第1の撮像部10-1と、この第1の撮像部10-1よりも低画素で、電子ズーム機能を備えた第2の撮像部10-2と、ズーム倍率閾値を保存するズーム倍率閾値保存部41と、ズーム倍率閾値と撮影時の光学ズーム倍率を比較し、光学ズーム倍率が、所定の倍率以下の時には、第1の撮像画像、および第2の撮像画像を第3の画素数に変換し、所定の倍率を超えた場合は、第1の撮像画像、および第2の撮像画像を第4の画素数に変換する画像リサイズ部24と、画像リサイズ部24で変換された第1の撮像画像および第2の撮像画像をエンコードする画像エンコード部27と、画像エンコード部27でエンコードされた第1の撮像画像および第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成するステレオ画像フォーマット変換部28と、を備えたので、高画素の撮像手段を2つ使用することなく、高画素のステレオ画像を撮像することができ、かつズーム動作時にも、第1の撮像画像と、第2の撮像画像の解像度の比をある一定以内に抑えることで、立体視しやすい高画素のステレオ画像を生成することができる。また、高画素の撮像手段を2つ使用しないことから、コストを安くでき、また実装面積も小さくできる。 As described above, according to the stereo image generating device 1 according to the first embodiment, the first imaging unit 10-1 having high optical zoom function and pixels lower than the first imaging unit 10-1 are provided. Then, the second imaging unit 10-2 having the electronic zoom function, the zoom magnification threshold storage unit 41 for storing the zoom magnification threshold, the zoom magnification threshold and the optical zoom magnification at the time of shooting are compared, and the optical zoom magnification is The first captured image and the second captured image are converted to the third pixel number when the magnification is smaller than a predetermined magnification, and the first captured image and the second imaging are extracted when the predetermined magnification is exceeded. An image resizing unit 24 for converting an image into a fourth number of pixels, an image encoding unit 27 for encoding the first captured image and the second captured image converted by the image resizing unit 24, and an image encoding unit 27 First captured image And a stereo image format conversion unit 28 for converting the second captured image into a stereo image format to generate a stereo image, a stereo image of high pixels without using two high pixel imaging means Can be taken, and a high-pixel stereo image that is easy to view stereoscopically is generated by suppressing the ratio of the resolution of the first captured image and the resolution of the second captured image within a certain constant even during zoom operation. be able to. In addition, since two high pixel imaging means are not used, the cost can be reduced and the mounting area can be reduced.
 (実施の形態2)
 図8は、本発明の実施の形態2に係るステレオ画像生成装置の概略構成を示すブロック図である。図8において、実施の形態2のステレオ画像生成装置1Bは、光学ズーム機能、および電子ズーム機能を備えた高画素の撮像部10-1Bと、電子ズーム機能を備えた低画素の撮像部10-2Bと、ズーム制御部11と、オートフォーカス制御部12と、シャッター制御部13と、露出制御部14と、ホワイトバランス制御部15と、カメラ操作部16と、制御部17と、2つのカメラ信号処理部18-1,18-2と、画角補正部19と、画角情報保持部20と、位置補正部21と、位置補正情報保持部22と、色補正部23と、画像リサイズ部24と、超解像処理部25と、画像フィルタ部26と、画像エンコード部27と、ステレオ画像フォーマット変換部28と、画像保存部29と、フォーマット変換部30と、表示制御部31と、表示部32と、撮像制御部40と、ズーム倍率閾値保存部41とを備える。
Second Embodiment
FIG. 8 is a block diagram showing a schematic configuration of a stereo image generating apparatus according to Embodiment 2 of the present invention. In FIG. 8, a stereo image generating apparatus 1B according to the second embodiment includes an imaging unit 10-1B of high pixel having an optical zoom function and an electronic zoom function, and an imaging unit 10 of low pixel having an electronic zoom function. 2B, zoom control unit 11, autofocus control unit 12, shutter control unit 13, exposure control unit 14, white balance control unit 15, camera operation unit 16, control unit 17, and two camera signals Processing units 18-1 and 18-2, an angle of view correction unit 19, an angle of view information holding unit 20, a position correction unit 21, a position correction information holding unit 22, a color correction unit 23, and an image resizing unit 24 , Super resolution processing unit 25, image filter unit 26, image encoding unit 27, stereo image format conversion unit 28, image storage unit 29, format conversion unit 30, display control unit 31, It includes a radical 113 32, an imaging control unit 40, and a zoom magnification threshold storage unit 41.
 撮像部10-1B,10-2Bは、CCD(Charge Coupled Device)やCMOS(Complementary Metal Oxide Semiconductor)等の撮像素子を備え、撮像信号を出力する。実施の形態2では、撮像部10-1Bで撮像して得られた画像を第1の撮像画像とし、撮像部10-2Bで撮像して得られた画像を第2の撮像画像とする。また、実施の形態2では、撮像部10-1Bは第1の画角を有しており、撮像部10-2Bは、撮像部10-1Bの第1の画角よりも狭い第2の画角を有している。また、撮像部10-1Bは、光学ズーム機能、および電子ズーム機能を備えている。一方、撮像部10-2Bは、光学ズーム機能を備えておらず、電子ズーム機能のみを備えている。 The imaging units 10-1B and 10-2B each include an imaging element such as a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS), and output an imaging signal. In the second embodiment, an image obtained by imaging by the imaging unit 10-1B is taken as a first captured image, and an image obtained by imaging by the imaging unit 10-2B is taken as a second captured image. In the second embodiment, the imaging unit 10-1B has a first angle of view, and the imaging unit 10-2B has a second image narrower than the first angle of view of the imaging unit 10-1B. It has a horn. The imaging unit 10-1B also has an optical zoom function and an electronic zoom function. On the other hand, the imaging unit 10-2B does not have an optical zoom function, but only an electronic zoom function.
 ズーム制御部11は、撮像部10-1B,10-2Bのズーム制御を行う。オートフォーカス制御部12は、撮像部10-1B,10-2Bのオートフォーカス制御を行う。シャッター制御部13は、撮像部10-1B,10-2Bのシャッター制御を行う。露出制御部14は、撮像部10-1B,10-2Bの露出制御を行う。ホワイトバランス制御部15は、撮像部10-1B,10-2Bのホワイトバランス制御を行う。 The zoom control unit 11 performs zoom control of the imaging units 10-1B and 10-2B. The autofocus control unit 12 performs autofocus control of the imaging units 10-1B and 10-2B. The shutter control unit 13 performs shutter control of the imaging units 10-1B and 10-2B. The exposure control unit 14 performs exposure control of the imaging units 10-1B and 10-2B. The white balance control unit 15 performs white balance control of the imaging units 10-1B and 10-2B.
 カメラ操作部16は、ステレオ画像生成装置1の操作を行うものであり、操作者が指定するズーム倍率等の操作時の信号が制御部17に入力される。制御部17は、カメラ操作部16での操作に応じた操作信号を撮像部10-1B,10-2Bへ出力する。カメラ信号処理部18-1は、プレビュー処理において、撮像部10-1Bで撮像された第1の撮像画像を表示部32のサイズに合わせてリサイズする。カメラ信号処理部18-2は、プレビュー処理において、撮像部10-2Bで撮像された第2の撮像画像を表示部32のサイズに合わせてリサイズする。実施の形態2では、撮影処理時は、カメラ信号処理部18-1からは9.7メガピクセルの第1の撮像画像(L:左画像)を出力し、カメラ信号処理部18-2からは2メガピクセルの第2の撮像画像(R:右画像)を出力するものとする。 The camera operation unit 16 is for operating the stereo image generating device 1, and a signal at the time of operation such as a zoom magnification designated by the operator is input to the control unit 17. The control unit 17 outputs an operation signal corresponding to the operation in the camera operation unit 16 to the imaging units 10-1B and 10-2B. The camera signal processing unit 18-1 resizes the first captured image captured by the imaging unit 10-1B to the size of the display unit 32 in the preview processing. The camera signal processing unit 18-2 resizes the second captured image captured by the imaging unit 10-2B to the size of the display unit 32 in the preview processing. In the second embodiment, at the time of shooting processing, the camera signal processing unit 18-1 outputs a first captured image (L: left image) of 9.7 megapixels, and the camera signal processing unit 18-2 outputs It is assumed that a second captured image (R: right image) of 2 megapixels is output.
 画角補正部19は、画角情報保持部20に保持されている画角補正情報に基づき撮像部10-1Bで撮像された第1の撮像画像の画角を小さくする。例えば、5.7メガピクセルの画角にする。なお、撮像部10-2Bで撮像された第2の撮像画像について画角補正するようにしてもよい。位置補正部21は、位置補正情報保持部22に保持されている位置補正情報に基づき、撮像部10-1Bで撮像された第1の撮像画像に対して位置補正を行う。この場合、位置補正として、“上下ずれ”、“水平ずれ”、“回転ずれ”、または“大きさずれ”の中で少なくとも1つを行う。なお、位置補正は、撮像部10-2Bで撮像された第2の撮像画像に対して行ってもよい。即ち、位置補正部21は、撮像部10-1Bで撮像された第1の撮像画像、もしくは撮像部10-2Bで撮像された第2の撮像画像のいずれかに対して位置補正を行ってもよい。 The view angle correction unit 19 reduces the view angle of the first captured image captured by the imaging unit 10-1B based on the view angle correction information stored in the view angle information storage unit 20. For example, the field angle is 5.7 megapixels. The angle of view of the second captured image captured by the imaging unit 10-2B may be corrected. The position correction unit 21 performs position correction on the first captured image captured by the imaging unit 10-1B based on the position correction information stored in the position correction information storage unit 22. In this case, at least one of “vertical shift”, “horizontal shift”, “rotational shift”, or “size shift” is performed as the position correction. The position correction may be performed on the second captured image captured by the imaging unit 10-2B. That is, even if the position correction unit 21 performs position correction on either the first captured image captured by the imaging unit 10-1B or the second captured image captured by the imaging unit 10-2B. Good.
 色補正部23は、撮像部10-2Bで撮像された第2の撮像画像と位置補正後の撮像部10-1Bで撮像された第1の撮像画像との間の色の違いについて、第1の撮像画像および第2の撮像画像(第1の撮像画像または第2の撮像画像)に対して色の補正を行う。画像リサイズ部24は、撮像部10-1Bで撮像された第1の撮像画像を変換し、所定の画素数にするとともに、撮像部10-2Bで撮像された第2の撮像画像を変換し、第1の撮像画像と同様の画素数にする。 The color correction unit 23 performs the first color difference between the second captured image captured by the imaging unit 10-2B and the first captured image captured by the imaging unit 10-1B after position correction. Color correction is performed on the captured image and the second captured image (the first captured image or the second captured image). The image resizing unit 24 converts the first captured image captured by the imaging unit 10-1B into a predetermined number of pixels, and converts the second captured image captured by the imaging unit 10-2B, The number of pixels is the same as that of the first captured image.
 また、画像リサイズ部24は、撮像部10-1Bで撮像された第1の撮像画像を所定の画素数に変換するとともに、撮像部10-2Bで撮像された第2の撮像画像も所定の画素数に変換する。具体的には、第1の撮像画像の画素数にあわせて、第2の撮像画像の画素数をリサイズする。なお、画像リサイズ部24が行う第1の撮像画像の変換および第2の撮像画像の変換は、“拡大”や“縮小”の他に“等倍”も含まれる。 Further, the image resizing unit 24 converts the first captured image captured by the imaging unit 10-1B into a predetermined number of pixels, and the second captured image captured by the imaging unit 10-2B is also a predetermined pixel. Convert to a number. Specifically, the number of pixels of the second captured image is resized in accordance with the number of pixels of the first captured image. Note that the conversion of the first captured image and the conversion of the second captured image performed by the image resizing unit 24 include “equal magnification” in addition to “enlargement” and “reduction”.
 超解像処理部25は、第2の撮像画像の変換が拡大の変換である場合に、画像リサイズ部24において拡大処理を行わずに、超解像処理により拡大処理を行うものであり、画像リサイズ部24により拡大処理するか、超解像処理により拡大するかを選択可能である。超解像処理とは、画像を拡大することによってぼけた部分についてくっきり感を上げるような処理である(つまり、高画質化を図る処理である)。 When the conversion of the second captured image is enlargement conversion, the super-resolution processing unit 25 performs enlargement processing by super-resolution processing without performing enlargement processing in the image resizing unit 24. It is possible to select whether to perform enlargement processing by the resize unit 24 or enlargement by super resolution processing. The super-resolution processing is processing for enhancing the sharpness of the blurred portion by enlarging the image (that is, processing for achieving high image quality).
 実施の形態2では、超解像処理部25ではなく、画像リサイズ部24により拡大処理する場合を説明する。画像フィルタ部26は、2つの撮像部10-1B,10-2Bのレンズ歪の差による左右画像の画素ずれを目立たなくするため、第1の撮像画像および第2の撮像画像のそれぞれの画像の周辺部をぼかすための平均化処理を行う。この画像フィルタ部26を設けることで、2つの撮像部10-1B,10-2B間のレンズ歪の差によるステレオ画像の画質の劣化を少なくすることができる。 In the second embodiment, the case where enlargement processing is performed by the image resizing unit 24 instead of the super-resolution processing unit 25 will be described. In order to make the pixel shift of the left and right images less noticeable due to the difference in lens distortion of the two imaging units 10-1B and 10-2B, the image filter unit 26 makes each image of the first captured image and the second captured image Perform averaging processing to blur the periphery. By providing this image filter unit 26, it is possible to reduce the deterioration of the image quality of the stereo image due to the difference in lens distortion between the two imaging units 10-1B and 10-2B.
 画像エンコード部27は、画像リサイズ部24で画素数の変換が行われ、さらに画像フィルタ部26により平均化処理が行われた第1の撮像画像と、画像リサイズ部24で画素数の変換が行われ、さらに画像フィルタ部26で平均化処理が行われた第2の撮像画像とをエンコード(圧縮)する。この場合、例えばJPEG(Joint Photographic Experts Group)形式で圧縮する。ステレオ画像フォーマット変換部28は、画像エンコード部27でエンコードされた第1の撮像画像および第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成する。この場合、例えばJPEG形式からMPO(Multi-Picture Format)形式に変換する。画像保存部29は、フラッシュメモリ(SDメモリなど)を有し、ステレオ画像フォーマット変換部28で生成されたステレオ画像を保存する。フォーマット変換部30は、画像リサイズ部24で表示部32に合う画素数に変換された第1の撮像画像および第2の撮像画像を表示部32に表示するための形式に変換する。表示制御部31は、フォーマット変換部30で表示部32に表示するための形式(例えば、ピクセルバイピクセル)に変換された第1の撮像画像および第2の撮像画像を表示部32に表示する制御を行う。表示部32は、例えば液晶表示器である。 In the image encoding unit 27, conversion of the number of pixels is performed by the image resizing unit 24, and the first captured image subjected to averaging processing by the image filter unit 26 and conversion of the number of pixels by the image resizing unit 24 are performed. Furthermore, the second captured image subjected to the averaging process in the image filter unit 26 is encoded (compressed). In this case, for example, compression is performed in JPEG (Joint Photographic Experts Group) format. The stereo image format conversion unit 28 converts the first captured image and the second captured image encoded by the image encoding unit 27 into a stereo image format to generate a stereo image. In this case, for example, the JPEG format is converted to an MPO (Multi-Picture Format) format. The image storage unit 29 has a flash memory (SD memory or the like), and stores the stereo image generated by the stereo image format conversion unit 28. The format conversion unit 30 converts the first captured image and the second captured image converted into the number of pixels matching the display unit 32 by the image resizing unit 24 into a format for displaying on the display unit 32. The display control unit 31 controls the display unit 32 to display the first captured image and the second captured image converted to a format (for example, pixel by pixel) to be displayed on the display unit 32 by the format conversion unit 30. I do. The display unit 32 is, for example, a liquid crystal display.
 次に、図9および図10を用いて、実施の形態2のステレオ画像生成装置1Bの動作を説明する。図9および図10で使用する変数を以下に説明する。
 現在のズーム倍率 : Z_now
 ユーザ設定ズーム倍率 : Z_next
 ズーム切り替え閾値 : Z_th
 撮像部10-1Bの撮像した画像に対する電子ズーム倍率設定 : Z_e1
 撮像部10-2Bの撮像した画像に対する電子ズーム倍率設定 : Z_e2
Next, the operation of the stereo image generating device 1B according to the second embodiment will be described using FIGS. 9 and 10. The variables used in FIGS. 9 and 10 are described below.
Current zoom factor: Z_now
User-set zoom factor: Z_next
Zoom switching threshold: Z_th
Digital zoom ratio setting for the image captured by the imaging unit 10-1B: Z_e1
Digital zoom ratio setting for the image captured by the imaging unit 10-2B: Z_e2
 図9および図10において、ユーザがカメラ操作部16により撮像部10-1B、10-2Bの起動を指示する(ステップS50)。このユーザ指示により、制御部17が、撮像制御部40に対して、撮像部10-1B、10-2Bを起動する指示を出力する(ステップS51)。制御部17が撮像制御部40に対して、撮像部10-1Bの光学ズーム倍率を1倍に設定し、ズーム倍率閾値保存部41から読み出したズーム切り替え閾値Z_thを撮像制御部40に設定する(ステップS52)。 In FIGS. 9 and 10, the user instructs activation of the imaging units 10-1B and 10-2B through the camera operation unit 16 (step S50). Based on this user instruction, the control unit 17 outputs an instruction to activate the imaging units 10-1B and 10-2B to the imaging control unit 40 (step S51). The control unit 17 sets the optical zoom magnification of the imaging unit 10-1B to 1 × for the imaging control unit 40, and sets the zoom switching threshold Z_th read from the zoom magnification threshold storage unit 41 in the imaging control unit 40 (see Step S52).
 起動指示を出力した後、ユーザがカメラ操作部16により撮影終了を指示するまでの間、ステップS54~ステップS69を繰り返す。ステップS54~ステップS69の処理を繰り返すための判定はステップS53とステップS70で行われる。制御部17は、ユーザがカメラ操作部16により、カメラに対する制御を行ったかを検出する(ステップS54)。検出されなかった場合は、ステップS53、S54、S70の処理を繰り返す。検出された場合は、制御部17が、撮影指示かを判定する(ステップS55)。 After the start instruction is output, steps S 54 to S 69 are repeated until the user instructs the end of shooting using the camera operation unit 16. The determination for repeating the process of steps S54 to S69 is performed in steps S53 and S70. The control unit 17 detects whether the user has performed control of the camera by the camera operation unit 16 (step S54). If not detected, the processes of steps S53, S54 and S70 are repeated. If it is detected, the control unit 17 determines whether it is a photographing instruction (step S55).
 撮影指示である場合は、撮影処理を行う(ステップS56)。撮影処理の詳細については後述する。ステップS55の判定が「No」の場合は、制御部17がズーム倍率変更指示かを判定する(ステップS57)。ズーム倍率変更指示である場合(即ち、ステップS57の判定が「Yes」の場合)、制御部17が撮像制御部40に対して、ユーザが設定したズーム倍率の情報Z_nextを渡し、撮像制御部40は、現在のズーム倍率Z_nowとズーム切り替え閾値Z_thを比較する(ステップS58)。 If it is a photographing instruction, the photographing process is performed (step S56). Details of the imaging process will be described later. If the determination in step S55 is "No", the control unit 17 determines whether a zoom magnification change instruction has been issued (step S57). When it is the zoom magnification change instruction (that is, when the determination in step S57 is "Yes"), the control unit 17 passes the information Z_next of the zoom magnification set by the user to the imaging control unit 40, and the imaging control unit 40 The current zoom magnification Z_now is compared with the zoom switching threshold Z_th (step S58).
 現在のズーム倍率Z_nowがズーム切り替え閾値Z_th以下である場合(即ち、ステップS58の判定が「Yes」の場合)、撮像制御部40は制御部17から指示されたユーザ設定ズーム倍率Z_nextがズーム切り替え閾値Z_th以下であるかを判定する(ステップS59)。ステップS59の判定が「Yes」の場合は、撮像制御部40が撮像部10-1Bに対して、光学ズーム倍率としてZ_nextを指定する(ステップS61)。次いで、撮像制御部40がカメラ信号処理部18-1に電子ズーム倍率Z_e1=1を設定し、カメラ信号処理部18-2に電子ズーム倍率Z_e2=Z_nextを設定する(ステップS62)。ステップS59の判定が「No」の場合は、撮像制御部40が撮像部10-1Bに対して、光学ズーム倍率として、Z_thを設定する(ステップS63)。 When the current zoom magnification Z_now is equal to or less than the zoom switching threshold Z_th (that is, when the determination in step S58 is “Yes”), the imaging control unit 40 instructs the user-set zoom magnification Z_next instructed from the control unit 17 to be the zoom switching threshold It is determined whether it is Z_th or less (step S59). If the determination in step S59 is "Yes", the imaging control unit 40 specifies Z_next as the optical zoom magnification to the imaging unit 10-1B (step S61). Next, the imaging control unit 40 sets the electronic zoom magnification Z_e1 = 1 in the camera signal processing unit 18-1, and sets the electronic zoom magnification Z_e2 = Z_next in the camera signal processing unit 18-2 (step S62). If the determination in step S59 is "No", the imaging control unit 40 sets Z_th as an optical zoom magnification to the imaging unit 10-1B (step S63).
 次いで、撮像制御部40がカメラ信号処理部18-1に電子ズーム倍率Z_e1=Z_next-Z_thを設定し、カメラ信号処理部18-2に電子ズーム倍率Z_e2=Z_nextを設定する(ステップS64)。ステップS58の判定が「No」の場合は、撮像制御部40が、ユーザ設定ズーム倍率Z_nextとズーム切り替え閾値Z_thを比較する(ステップS60)。ステップS60の判定が「Yes」の場合は、撮像制御部40が撮像部10-1Bに対して、光学ズーム倍率としてZ_nextを指定する(ステップS65)。 Next, the imaging control unit 40 sets the electronic zoom magnification Z_e1 = Z_next-Z_th in the camera signal processing unit 18-1, and sets the electronic zoom magnification Z_e2 = Z_next in the camera signal processing unit 18-2 (step S64). If the determination in step S58 is "No", the imaging control unit 40 compares the user-set zoom magnification Z_next with the zoom switching threshold Z_th (step S60). If the determination in step S60 is "Yes", the imaging control unit 40 specifies Z_next as the optical zoom magnification to the imaging unit 10-1B (step S65).
 次いで、撮像制御部40がカメラ信号処理部18-1に電子ズーム倍率Z_e1=1を設定し、カメラ信号処理部18-2に電子ズーム倍率Z_e2=Z_nextを設定する(ステップS66)。ステップS60の判定が「No」の場合は、撮像制御部40が撮像部10-1Bに対して、光学ズーム倍率としてZ_thを指定する(ステップS67)。次いで、撮像制御部40がカメラ信号処理部18-1に電子ズーム倍率Z_e1=Z_next-Zthを設定し、カメラ信号処理部18-2に電子ズーム倍率Z_e2=Z_nextを設定する(ステップS68)。ステップS57の判定が「No」の場合、それに応じた制御を行う(ステップS69)。例えば、撮影画像サイズの変更処理などである。 Next, the imaging control unit 40 sets the electronic zoom magnification Z_e1 = 1 in the camera signal processing unit 18-1, and sets the electronic zoom magnification Z_e2 = Z_next in the camera signal processing unit 18-2 (step S66). If the determination in step S60 is "No", the imaging control unit 40 specifies Z_th as the optical zoom magnification to the imaging unit 10-1B (step S67). Next, the imaging control unit 40 sets the electronic zoom magnification Z_e1 = Z_next-Zth in the camera signal processing unit 18-1, and sets the electronic zoom magnification Z_e2 = Z_next in the camera signal processing unit 18-2 (step S68). If the determination in step S57 is "No", control according to it is performed (step S69). For example, the process of changing the size of a captured image is performed.
 以上の処理を、ユーザがカメラ操作部16により、撮影終了を指示するまで繰り返し行う。そして、ユーザが撮影終了を指示すると、制御部17が、撮像部10-1B、10-2Bのそれぞれの動作を停止させ(ステップS71)、その後、本処理を終了する。 The above process is repeated until the user instructs the camera operation unit 16 to end shooting. Then, when the user instructs the end of the imaging, the control unit 17 stops the operation of each of the imaging units 10-1B and 10-2B (step S71), and then the present process ends.
 次に、上記ステップS56の撮影処理について説明する。
 図11は、図9および図10における撮影処理を説明するためのフローチャートである。図11において、カメラ信号処理部18-1が、撮像部10-1Bが撮像した第1の撮像画像をユーザ設定の画像サイズに合わせてリサイズし、電子ズーム倍率Z_e1にあわせてトリミングする。一方、カメラ信号処理部18-2が、撮像部10-2Bが撮像した第2の撮像画像をユーザ設定の画像サイズにあわせてリサイズし、電子ズーム倍率Z_e2にあわせてトリミング処理を行う(ステップS80)。
Next, the photographing process of step S56 will be described.
FIG. 11 is a flow chart for explaining the photographing process in FIG. 9 and FIG. In FIG. 11, the camera signal processing unit 18-1 resizes the first captured image captured by the imaging unit 10-1B to the image size set by the user, and trims it to the electronic zoom magnification Z_e1. On the other hand, the camera signal processing unit 18-2 resizes the second captured image captured by the imaging unit 10-2B according to the image size set by the user, and performs trimming processing according to the electronic zoom magnification Z_e2 (step S80). ).
 次いで、画角補正部19が、画角情報保持部20より画角補正情報を読み出し、撮像部10-1Bが撮像した第1の撮像画像をトリミングする(ステップS81)。次いで、位置補正部21が、位置補正情報保持部22より位置補正情報を読み出し、撮像部10-1Bが撮像した第1の撮像画像に対して、“上下ずれ”、“水平ずれ”、“回転ずれ”、または“大きさずれ”の中で少なくとも1つを補正する(ステップS82)。 Next, the field angle correction unit 19 reads out the field angle correction information from the field angle information holding unit 20, and trims the first captured image captured by the imaging unit 10-1B (step S81). Next, the position correction unit 21 reads the position correction information from the position correction information holding unit 22, and the “vertical shift”, “horizontal shift”, “rotation” with respect to the first captured image captured by the imaging unit 10-1B. At least one of the "deviation" or "magnitude deviation" is corrected (step S82).
 次いで、色補正部23が、左右画像の色の違いを補正する(ステップS83)。即ち、撮像部10-2Bで撮像された第2の撮像画像と位置補正後の撮像部10-1Bで撮像された第1の撮像画像との間の色の違いを補正する。次いで、画像リサイズ部24が、画角補正後の第1の撮像画像のサイズに合わせて、撮像部10-2Bで撮像された第2の撮像画像を拡大する(ステップS84)。次いで、画像エンコード部27が、左右の画像をエンコードする(例えば、JPEG形式に圧縮する)。即ち、撮像部10-2Bで撮像された第2の撮像画像と位置補正後の撮像部10-1Bで撮像された第1の撮像画像をエンコードする(ステップS85)。次いで、ステレオ画像フォーマット変換部28において、画像エンコード部27でエンコードされた左右の画像即ち第1の撮像画像と第2の撮像画像をステレオ画像フォーマットに変換する(ステップS86)。左右の画像をステレオ画像フォーマットに変換すると本処理を終える。 Next, the color correction unit 23 corrects the difference in color of the left and right images (step S83). That is, the color difference between the second captured image captured by the imaging unit 10-2B and the first captured image captured by the imaging unit 10-1B after position correction is corrected. Next, the image resizing unit 24 enlarges the second captured image captured by the imaging unit 10-2B according to the size of the first captured image after the angle of view correction (step S84). Next, the image encoding unit 27 encodes the left and right images (for example, compresses them into the JPEG format). That is, the second captured image captured by the imaging unit 10-2B and the first captured image captured by the imaging unit 10-1B after position correction are encoded (step S85). Next, the stereo image format conversion unit 28 converts the left and right images encoded by the image encoding unit 27, that is, the first captured image and the second captured image into a stereo image format (step S86). This process ends when the left and right images are converted to the stereo image format.
 次に、ズーム倍率閾値を1.5倍とし、ユーザが設定したズーム倍率が1.5倍、2倍の時の、上記ステップS56のそれぞれの処理結果を示す。図12は、撮像部10-1B,10-2Bの仕様を以下のように決定したときのステップS80~ステップS82およびステップS84の各ステップにおける処理結果を示す図である。
 撮像部10-1B:13メガピクセルカメラ、焦点距離 27mm相当(35mmフィルム換算)、3倍光学ズーム機能、撮影画像サイズは9.7メガピクセル(アスペクト比16:9)
 撮像部10-2B:3メガピクセルカメラ、焦点距離 35mm相当(35mmフィルム換算)、電子ズーム機能、撮影画像サイズは2メガピクセル(アスペクト比16:9)
Next, the zoom magnification threshold is set to 1.5 times, and each processing result of the above-mentioned step S56 when the zoom magnification set by the user is 1.5 times and 2 times is shown. FIG. 12 is a diagram showing processing results in each step of steps S80 to S82 and step S84 when the specifications of the imaging units 10-1B and 10-2B are determined as follows.
Imaging unit 10-1B: 13 mega pixel camera, focal length 27 mm equivalent (35 mm film equivalent), 3 × optical zoom function, captured image size 9.7 mega pixel (aspect ratio 16: 9)
Imaging unit 10-2B: 3 megapixel camera, 35 mm focal length equivalent (35 mm film equivalent), electronic zoom function, 2 megapixel captured image size (aspect ratio 16: 9)
 図12では、撮影時におけるユーザが設定したズーム倍率が1.5倍の場合を説明する。
 ステップS80では、第1の撮像画像は、H2336ピクセル、W4160ピクセルとなる。第2の撮像画像は、H1080ピクセル、W1920ピクセルとなる。ズーム倍率1.5倍のため、撮像部10-2B側では電子ズームを行う必要がある。撮像部10-2B側の撮像画像のうち、画像中央部のH720ピクセル、W1280ピクセルをトリミングし、それをH1080ピクセル、W1920ピクセルにリサイズする。
FIG. 12 illustrates the case where the zoom magnification set by the user at the time of shooting is 1.5.
In step S80, the first captured image is H2336 pixels and W4160 pixels. The second captured image is H1080 pixels and W1920 pixels. Since the zoom magnification is 1.5 times, it is necessary to perform electronic zoom on the imaging unit 10-2B side. Of the captured image on the imaging unit 10-2B side, H 720 pixels and W 1280 pixels in the central part of the image are trimmed and resized to H 1080 pixels and W 1920 pixels.
 ステップS81では、第1の撮像画像は、約H1796ピクセル、約W3200ピクセルとなる。ここで、焦点距離35mm、27mmの画角の差により、27mmのカメラで撮影したほうが、縦横それぞれ約1.3倍広角に撮影できる。そのため、27mmのカメラ画像を画角補正部19によりトリミングすると、1/1.3倍程度の画素数になる。但し、同じ画素数のカメラでも、画角のばらつきがあるため、トリミング後の画像サイズはばらつく。 In step S81, the first captured image is approximately H1796 pixels and approximately W3200 pixels. Here, due to the difference in the angle of view of the focal lengths of 35 mm and 27 mm, it is possible to shoot at a wide angle of about 1.3 times in both the vertical and horizontal directions when shooting with a 27 mm camera. Therefore, when the camera image of 27 mm is trimmed by the angle of view correction unit 19, the number of pixels becomes about 1 / 1.3. However, even with a camera with the same number of pixels, the image size after trimming varies because of variations in the angle of view.
 実施の形態2では、第1の撮像画像をトリミングして、第2の撮像画像の画角とあわせているが、第2の撮像画像のズーム倍率に応じたトリミングサイズに対して、より高い画素数でトリミングすることによって、第1の撮像画像の画角にあわせる方法でもよい。具体的には、ズーム倍率1.5の場合、第2の撮像画像であるH1080ピクセル、W1920ピクセルの画像に対して、次のようになる。
  1080/1.5 * 1.3=936
  1920/1.5 * 1.3=1664
In the second embodiment, the first captured image is trimmed to match the angle of view of the second captured image, but the pixel is higher than the trimming size according to the zoom magnification of the second captured image. A method of adjusting to the angle of view of the first captured image may be used by trimming with numbers. Specifically, in the case of the zoom magnification of 1.5, the following is obtained with respect to the image of H1080 pixel and W1920 pixel which is the second captured image.
1080 / 1.5 * 1.3 = 936
1920 / 1.5 * 1.3 = 1664
 つまり、第2の撮像画像の画像中心部に対して、H936ピクセル、W1664ピクセルの画像をトリミングすることで、第1の撮像画像と画角を合わせることが可能である。その場合は、ステップS81において、第1の撮像画像をトリミングする必要はなく、第1の撮像画像はH2336ピクセル、W4160ピクセルのままである。以降の説明では、第1の撮像画像をトリミングした場合の処理を説明する。 That is, it is possible to match the angle of view with the first captured image by trimming the image of H936 pixels and W1664 pixels with respect to the image center of the second captured image. In that case, it is not necessary to trim the first captured image in step S81, and the first captured image remains H2336 pixels and W4160 pixels. In the following description, processing in the case of trimming the first captured image will be described.
 ステップS81では、第2の撮像画像は、H1080ピクセル、W1920ピクセルのままである。ステップS82では、第1の撮像画像は、H(1796-β)ピクセル、W(3200-α)ピクセルとなる。第2の撮像画像は、H1080ピクセル、W1920ピクセルのままである。ステップS84では、第1の撮像画像は、H(1796-β)ピクセル、W(3200-α)ピクセルとなる。第2の撮像画像は、H(1796-β)ピクセル、W(3200-α)ピクセルとなり、第1の撮像画像と同じ画素数になる。ここでα、βの意味は、2つのカメラをステレオ画像生成装置に配置した時の光軸のずれ、およびそれぞれのカメラ自体の画角のずれ、光軸のずれを補正することにより、減少する画素数を示している。 In step S81, the second captured image remains at H1080 pixels and W1920 pixels. In step S82, the first captured image is H (1796-β) pixels and W (3200-α) pixels. The second captured image remains H1080 pixels and W1920 pixels. In step S84, the first captured image is H (1796-β) pixels and W (3200-α) pixels. The second captured image is H (1796-β) pixels and W (3200-α) pixels, and has the same number of pixels as the first captured image. Here, the meanings of α and β are reduced by correcting the shift of the optical axis when the two cameras are arranged in the stereo image generating device, the shift of the angle of view of each camera itself, and the shift of the optical axis. It shows the number of pixels.
 ここで、参考として、前述した図7(a)~(g)に、2つのカメラをステレオ画像生成装置1Bに配置した時に発生する光軸ずれを示す。 Here, for reference, FIGS. 7A to 7G described above show the optical axis deviation that occurs when two cameras are arranged in the stereo image generating device 1B.
 次に、撮影時におけるユーザが設定したズーム倍率が2倍の場合の上記ステップS56の処理結果を示す。図13は、撮像部10-1B,10-2Bの仕様を以下のように決定したときのステップS80~ステップS82およびステップS84の各ステップにおける処理結果を示す図である。
 撮像部10-1B:13メガピクセルカメラ、焦点距離 27mm相当(35mmフィルム換算)、3倍光学ズーム機能、撮影画像サイズは9.7メガピクセル(アスペクト比16:9)
 撮像部10-2B:3メガピクセルカメラ、焦点距離 35mm相当(35mmフィルム換算)、電子ズーム機能、撮影画像サイズは2メガピクセル(アスペクト比16:9)
Next, the processing result of the above-mentioned step S56 in the case where the zoom magnification set by the user at the time of photographing is 2 is shown. FIG. 13 is a diagram showing processing results in each step of steps S80 to S82 and step S84 when the specifications of the imaging units 10-1B and 10-2B are determined as follows.
Imaging unit 10-1B: 13 mega pixel camera, focal length 27 mm equivalent (35 mm film equivalent), 3 × optical zoom function, captured image size 9.7 mega pixel (aspect ratio 16: 9)
Imaging unit 10-2B: 3 megapixel camera, 35 mm focal length equivalent (35 mm film equivalent), electronic zoom function, 2 megapixel captured image size (aspect ratio 16: 9)
 ステップS80では、第1の撮像画像は、H2336ピクセル、W4160ピクセルとなる。第2の撮像画像は、H1080ピクセル、W1920ピクセルとなる。ここで、ズーム倍率閾値は1.5倍であり、ユーザが指定したズーム倍率は2倍のため、光学ズームによるズーム動作を1.5倍まで行い、そこから2倍までのズーム動作は電子ズームで行うため、第1の撮像画像であるH2336ピクセル、W4160ピクセルの画像に対して、次のようになる。
  2336/1.5=約1557ピクセル
  4160/1.5=約2773ピクセル
In step S80, the first captured image is H2336 pixels and W4160 pixels. The second captured image is H1080 pixels and W1920 pixels. Here, since the zoom magnification threshold is 1.5 times and the zoom magnification specified by the user is 2 times, the zoom operation by the optical zoom is performed up to 1.5 times, and the zoom operation from there is the electronic zoom For the first captured image of H2336 pixel and W4160 pixel image, the following is performed.
2336 / 1.5 = about 1557 pixels 4160 / 1.5 = about 2773 pixels
 つまり、第1の撮像画像の画像中心部に対して、H1557ピクセル、W2773ピクセルの画像をトリミングすることで、電子ズーム動作を行う。ここで、トリミングしたH1557ピクセル、W2773ピクセルの画像をH2336ピクセル、W4160ピクセルまで拡大してもよい。ここでは、拡大しない場合で説明する。 That is, the electronic zoom operation is performed by trimming an image of H1557 pixels and W2773 pixels with respect to the image center of the first captured image. Here, the trimmed image of H1557 pixels and W2773 pixels may be enlarged to H2336 pixels and W4160 pixels. Here, the case of not enlarging will be described.
 一方、第2の撮像画像に対して、2倍の電子ズーム動作を行うため、第2の撮像画像の画像中心部に対して、H540ピクセル、W960ピクセルの画像をトリミングし、それをH1080ピクセル、W1920ピクセルにリサイズする。ステップS81では、第1の撮像画像は、約H1196ピクセル、約W2130ピクセルとなる。ここで、焦点距離35mm、27mmの画角の差により、27mmのカメラで撮影したほうが、縦横それぞれ約1.3倍広角に撮影できる。そのため、27mmのカメラ画像を画角補正部19によりトリミングすると、1/1.3倍程度の画素数になる。但し、同じ画素数のカメラでも、画角のばらつきがあるため、トリミング後の画像サイズはばらつく。 On the other hand, in order to perform the electronic zoom operation twice as large as the second captured image, an image of H540 pixels and W960 pixels is trimmed with respect to the image center of the second captured image, and this is H1080 pixels, Resize to W 1920 pixels. In step S81, the first captured image is approximately H1196 pixels and approximately W2130 pixels. Here, due to the difference in the angle of view of the focal lengths of 35 mm and 27 mm, it is possible to shoot at a wide angle of about 1.3 times in both the vertical and horizontal directions when shooting with a 27 mm camera. Therefore, when the camera image of 27 mm is trimmed by the angle of view correction unit 19, the number of pixels becomes about 1 / 1.3. However, even with a camera with the same number of pixels, the image size after trimming varies because of variations in the angle of view.
 実施の形態2では、第1の撮像画像をトリミングして、第2の撮像画像の画角とあわせているが、第2の撮像画像のズーム倍率に応じたトリミングサイズに対して、より広い領域をトリミングすることによって、第1の撮像画像の画角にあわせる方法でもよい。具体的には、光学ズーム倍率2倍の場合、第2の撮像画像であるH1080ピクセル、W1920ピクセルの画像に対して、次のようになる。
  1080/2 * 1.3=702
  1920/2 * 1.3=1248
In the second embodiment, the first captured image is trimmed to match the angle of view of the second captured image, but the area is wider than the trimming size according to the zoom magnification of the second captured image. A method may be made to match the angle of view of the first captured image by trimming the image. Specifically, when the optical zoom magnification is doubled, the image of the second captured image of H1080 pixels and W1920 pixels is as follows.
1080/2 * 1.3 = 702
1920/2 * 1.3 = 1248
 つまり、H702ピクセル、W1248ピクセルの画像をトリミングすることで、第1の撮像画像と画角を合わせることが可能である。その場合は、ステップS81において、第1の撮像画像をトリミングする必要はなく、H2336ピクセル、W4160ピクセルのままである。以降の説明では、第1の撮像画像をトリミングした場合の処理を説明する。 That is, by trimming an image of H702 pixels and W1248 pixels, it is possible to match the angle of view with the first captured image. In that case, there is no need to trim the first captured image in step S81, and the pixels remain H2336 pixels and W4160 pixels. In the following description, processing in the case of trimming the first captured image will be described.
 ステップS81では、第2の撮像画像は、H1080ピクセル、W1920ピクセルのままである。ステップS82では、第1の撮像画像は、H(1196-β)ピクセル、W(2130-α)ピクセルとなる。第2の撮像画像は、H1080ピクセル、W1920ピクセルのままである。ステップS84では、第1の撮像画像は、H(1196-β)ピクセル、W(2130-α)ピクセルとなる。第2の撮像画像は、H(1196-β)ピクセル、W(2130-α)ピクセルとなり、第1の撮像画像と同じ画素数になる。ここでα、βの意味は、2つのカメラをステレオ画像生成装置に配置した時の光軸のずれ、およびそれぞれのカメラ自体の画角のずれ、光軸のずれを補正することにより、減少する画素数を示している。 In step S81, the second captured image remains at H1080 pixels and W1920 pixels. In step S82, the first captured image is H (1196-β) pixels and W (2130-α) pixels. The second captured image remains H1080 pixels and W1920 pixels. In step S84, the first captured image is H (1196-β) pixels and W (2130-α) pixels. The second captured image is H (1196-β) pixels and W (2130-α) pixels, and has the same number of pixels as the first captured image. Here, the meanings of α and β are reduced by correcting the shift of the optical axis when the two cameras are arranged in the stereo image generating device, the shift of the angle of view of each camera itself, and the shift of the optical axis. It shows the number of pixels.
 このように実施の形態2に係るステレオ画像生成装置1Bによれば、光学ズーム機能および電子ズーム機能を備えた高画素の第1の撮像部10-1Bと、この第1の撮像部10-1Bよりも低画素で、電子ズーム機能を備えた第2の撮像部10-2Bと、ズーム倍率閾値を保存するズーム倍率閾値保存部41と、ズーム倍率が、光学ズーム機能の上限倍率より小さい所定の倍率以下の時には、第1の撮像部10-1Bが光学ズーム動作を行い、第2の撮像部10-2Bが電子ズーム動作を行い、所定の倍率を超えた場合は、それ以降のズーム動作は、第1の撮像部10-1B、第2の撮像部10-2Bともに電子ズーム動作を行うように制御する撮像制御部40と、第1の撮像画像と第2の撮像画像を所定の画素数に変換する画像リサイズ部24と、画像リサイズ部24で変換された第1の撮像画像および第2の撮像画像をエンコードする画像エンコード部27と、画像エンコード部27でエンコードされた第1の撮像画像および第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成するステレオ画像フォーマット変換部28と、を備えたので、高画素の撮像手段を2つ使用することなく、高画素のステレオ画像を撮像することができ、かつズーム動作時にも、第1の撮像画像と第2の撮像画像の解像度の比をある一定以内に抑えるように、ズーム倍率を大きくした時は撮像部10-1Bを光学ズームから電子ズームに切り替えることで、立体視しやすい高画素のステレオ画像を生成することができる。なお、解像度とは画像のきめ細かさのことである。また、高画素の撮像手段を2つ使用しないことから、コストを安くでき、また実装面積も小さくできる。加えて、ここでの光学ズーム機能の上限倍率とは、利用する光学モジュールの仕様上としての最大の倍率である。または、光学モジュールの可動部分において、ズーム倍率が大きくなる方向に限界まで移動させた状態での倍率である。 As described above, according to the stereo image generating device 1B according to the second embodiment, the first imaging unit 10-1B of high pixel having the optical zoom function and the electronic zoom function, and the first imaging unit 10-1B. A second imaging unit 10-2B having an electronic zoom function, a zoom magnification threshold storage unit 41 that stores a zoom magnification threshold, and a predetermined magnification smaller than the upper limit magnification of the optical zoom function. When the magnification is smaller than the first imaging unit 10-1B performs the optical zoom operation, and when the second imaging unit 10-2B performs the electronic zoom operation and exceeds the predetermined magnification, the zoom operation after that is , An imaging control unit 40 that controls the first imaging unit 10-1B and the second imaging unit 10-2B to perform electronic zoom operations, a first captured image and a second captured image with a predetermined number of pixels Image resize to convert to 24, an image encoding unit 27 encoding the first captured image and the second captured image converted by the image resizing unit 24, and a first captured image and a second captured image encoded by the image encoding unit 27 And the stereo image format conversion unit 28 that generates a stereo image by converting the image data into the stereo image format, so that high-pixel stereo images can be captured without using two high-pixel imaging means. When the zoom magnification is increased so that the ratio of the resolution of the first captured image and the resolution of the second captured image is kept within a certain range even during zoom operation, the imaging unit 10-1B changes from optical zoom to electronic zoom By switching, it is possible to generate a high-pixel stereo image that is easy to view stereoscopically. The resolution is the fineness of the image. In addition, since two high pixel imaging means are not used, the cost can be reduced and the mounting area can be reduced. In addition, the upper limit magnification of the optical zoom function here is the maximum magnification on the specifications of the optical module to be used. Alternatively, in the movable portion of the optical module, the magnification is in a state where the zoom magnification is moved to the limit in the direction in which the zoom magnification is increased.
 本発明を詳細にまた特定の実施態様を参照して説明したが、本発明の精神と範囲を逸脱することなく様々な変更や修正を加えることができることは当業者にとって明らかである。 Although the invention has been described in detail and with reference to specific embodiments, it will be apparent to those skilled in the art that various changes and modifications can be made without departing from the spirit and scope of the invention.
 本出願は、2011年4月14日出願の日本特許出願(特願2011-090395)および2011年4月14日出願の日本特許出願(特願2011-090396)に基づくものであり、その内容はここに参照として取り込まれる。 This application is based on the Japanese patent application filed on April 14, 2011 (Japanese Patent Application No. 2011-090395) and the Japanese patent application filed on April 14, 2011 (Japanese Patent Application No. 2011-090396), the contents of which are It is incorporated here as a reference.
 本発明は、高画素の撮像手段を2つ使用することなく、高画素のステレオ画像を撮像することができ、かつズーム時にも第1の撮像画像と第2の撮像画像の解像度の差をある一定値以内に抑え、立体視しやすいステレオ画像を生成することができるといった効果を有し、ステレオ画像を撮像するステレオ画像撮像用の複眼カメラなどへの適用が可能である。 The present invention can capture a high-pixel stereo image without using two high-pixel imaging means, and also has a difference in resolution between the first and second captured images when zooming. It has an effect that it is possible to generate a stereo image easy to view stereoscopically, within a fixed value, and it is possible to apply to a compound eye camera or the like for capturing a stereo image that captures a stereo image.
 1,1B ステレオ画像生成装置
 10-1,10-2,10-1B,10-2B 撮像部
 11 ズーム制御部
 12 オートフォーカス制御部
 13 シャッター制御部
 14 露出制御部
 15 ホワイトバランス制御部
 16 カメラ操作部
 17 制御部
 18-1,18-2 カメラ信号処理部
 19 画角補正部
 20 画角情報保持部
 21 位置補正部
 22 位置補正情報保持部
 23 色補正部
 24 画像リサイズ部
 25 超解像処理部
 26 画像フィルタ部
 27 画像エンコード部
 28 ステレオ画像フォーマット変換部
 29 画像保存部
 30 フォーマット変換部
 31 表示制御部
 32 表示部
 40 撮像制御部
 41 ズーム倍率閾値保存部
1, 1 B Stereo image generator 10-1, 10-2, 10-1B, 10-2B Imaging unit 11 Zoom control unit 12 Autofocus control unit 13 Shutter control unit 14 Exposure control unit 15 White balance control unit 16 Camera operation unit 17 control unit 18-1 and 18-2 camera signal processing unit 19 angle of view correction unit 20 angle of view information holding unit 21 position correction unit 22 position correction information holding unit 23 color correction unit 24 image resizing unit 25 super resolution processing unit 26 Image filter unit 27 image encoding unit 28 stereo image format conversion unit 29 image storage unit 30 format conversion unit 31 display control unit 32 display unit 40 imaging control unit 41 zoom magnification threshold storage unit

Claims (26)

  1.  第1の画素数を備え、光学ズーム機能を有する、第1の撮像画像を撮像する第1の撮像部と、
     前記第1の画素数よりも小さい第2の画素数を備え、電子ズーム機能を有する、第2の撮像画像を撮像する第2の撮像部と、
     ステレオ画像撮影において指定されるズーム倍率に基づき、左右の解像度差を調整する解像度調整部と、を備えるステレオ画像生成装置。
    A first imaging unit configured to capture a first captured image, having a first number of pixels and having an optical zoom function;
    A second imaging unit configured to capture a second captured image, having a second number of pixels smaller than the first number of pixels and having an electronic zoom function;
    And a resolution adjustment unit configured to adjust a difference in resolution between right and left based on a zoom magnification specified in stereo image shooting.
  2.  請求項1に記載のステレオ画像生成装置であって、
     ステレオ画像撮影において指定されるズーム倍率に基づき、前記第1の撮像部は光学ズーム動作を行い、前記第2の撮像部は電子ズーム動作を行い、
     前記ズーム倍率が、所定の倍率以下の時には、前記第1の撮像画像および前記第2の撮像画像を第3の画素数に変換し、前記所定の倍率を超えた場合は、前記第1の撮像画像および前記第2の撮像画像を前記第3の画素数より小さい第4の画素数に変換する画像リサイズ部と、
     前記画像リサイズ部で変換された前記第1の撮像画像および前記第2の撮像画像をエンコードする画像エンコード部と、
     前記画像エンコード部でエンコードされた前記第1の撮像画像および前記第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成するステレオ画像フォーマット変換部と、
     を備えたステレオ画像生成装置。
    The stereo image generating apparatus according to claim 1, wherein
    The first imaging unit performs an optical zoom operation, and the second imaging unit performs an electronic zoom operation based on a zoom magnification specified in stereo image shooting.
    The first captured image and the second captured image are converted into a third number of pixels when the zoom magnification is less than or equal to a predetermined magnification, and the first imaging is performed when the predetermined magnification is exceeded. An image resizing unit configured to convert an image and the second captured image into a fourth number of pixels smaller than the third number of pixels;
    An image encoding unit that encodes the first captured image and the second captured image converted by the image resizing unit;
    A stereo image format conversion unit that converts the first captured image and the second captured image encoded by the image encoding unit into a stereo image format to generate a stereo image;
    Stereo image generator equipped with
  3.  請求項2に記載のステレオ画像生成装置であって、
     前記画像リサイズ部が行う、前記第1の撮像画像の変換、および前記第2の撮像画像の変換は、拡大、縮小、または等倍の変換であるステレオ画像生成装置。
    The stereo image generating apparatus according to claim 2,
    A stereo image generating device, wherein conversion of the first captured image and conversion of the second captured image, which are performed by the image resizing unit, are enlargement, reduction, or equal-scale conversion.
  4.  請求項2または請求項3に記載のステレオ画像生成装置であって、
     前記光学ズーム倍率の前記所定の倍率をズーム倍率閾値として保持するズーム倍率閾値保存部を備え、
     前記画像リサイズ部は、前記ズーム倍率閾値に基づき、前記第1の撮像画像と、前記第2の撮像画像のリサイズを行うステレオ画像生成装置。
    The stereo image generating apparatus according to claim 2 or 3, wherein
    A zoom magnification threshold storage unit that holds the predetermined magnification of the optical zoom magnification as a zoom magnification threshold;
    The image resizing unit performs resizing of the first captured image and the second captured image based on the zoom magnification threshold.
  5.  請求項2乃至請求項4のいずれか一項に記載のステレオ画像生成装置であって、
     前記第3の画素数は、前記第1の画素数であるステレオ画像生成装置。
    The stereo image generating apparatus according to any one of claims 2 to 4, wherein
    The stereo image generation device whose said 3rd number of pixels is said 1st number of pixels.
  6.  請求項2に記載のステレオ画像生成装置であって、
     前記第1の撮像部は、第1の画角を備え、
     前記第2の撮像部は、前記第1の画角よりも狭い第2の画角を備え、
     前記第1の撮像部の光学ズーム倍率に応じて、前記第1、もしくは前記第2の撮像画像をトリミングする画角補正部を備え、
     前記画像エンコード部は、前記画角補正部でトリミングされ、前記画像リサイズ部で画素数が変換された前記第1の撮像画像と前記画像リサイズ部で画素数が変換された前記第2の撮像画像と、をエンコードするステレオ画像生成装置。
    The stereo image generating apparatus according to claim 2,
    The first imaging unit has a first angle of view,
    The second imaging unit includes a second angle of view narrower than the first angle of view.
    And an angle-of-view correction unit configured to trim the first or second captured image in accordance with the optical zoom magnification of the first imaging unit.
    The image encoding unit is trimmed by the angle of view correction unit, and the first captured image in which the number of pixels is converted in the image resizing unit and the second captured image in which the number of pixels is converted in the image resizing unit And stereo image generator to encode.
  7.  請求項6に記載のステレオ画像生成装置であって、
     前記第1の撮像部の光学ズーム倍率毎の画角補正情報を保持する画角情報保持部を備え、
     前記画角補正部は、前記画角補正情報に基づきトリミングするステレオ画像生成装置。
    The stereo image generating apparatus according to claim 6, wherein
    An angle-of-view information holding unit that holds angle-of-view correction information for each optical zoom magnification of the first imaging unit;
    The stereo image generating device, wherein the angle of view correction unit performs trimming based on the angle of view correction information.
  8.  請求項2に記載のステレオ画像生成装置であって、
     前記第1の撮像画像、もしくは前記第2の撮像画像のいずれかに対して、上下ずれ、水平ずれ、回転ずれ、または大きさずれの中で少なくとも1つを補正する位置補正部を備え、
     前記画像エンコード部は、前記位置補正部で補正され、前記画像リサイズ部で所定の画素数に変換された前記第1の撮像画像と、前記位置補正部で補正され、前記画像リサイズ部で前記所定の画素数に変換された前記第2の撮像画像と、をエンコードするステレオ画像生成装置。
    The stereo image generating apparatus according to claim 2,
    A position correction unit configured to correct at least one of vertical deviation, horizontal deviation, rotational deviation, or size deviation with respect to any of the first captured image or the second captured image;
    The image encoding unit is corrected by the position correction unit, and the first captured image converted into a predetermined number of pixels by the image resizing unit is corrected by the position correction unit, and the image resizing unit corrects the predetermined image. A stereo image generation device that encodes the second captured image converted into the number of pixels of
  9.  請求項8に記載のステレオ画像生成装置であって、
     前記第1の撮像部の光学ズーム倍率毎の位置補正情報を保持する位置補正情報保持部を備え、
     前記位置補正部は、前記位置補正情報に基づき上下ずれ、水平ずれ、回転ずれ、または大きさずれの中で少なくとも1つを補正するステレオ画像生成装置。
    A stereo image generating apparatus according to claim 8, wherein
    A position correction information holding unit that holds position correction information for each optical zoom magnification of the first imaging unit;
    The position correction unit corrects at least one of vertical deviation, horizontal deviation, rotational deviation, or size deviation based on the position correction information.
  10.  請求項2に記載のステレオ画像生成装置であって、
     前記第1の撮像画像と前記第2の撮像画像との間の色の違いについて、前記第1の撮像画像および/または前記第2の撮像画像に対して色の補正を行う色補正部を備え、
     前記画像エンコード部は、前記色補正部で色の補正が行われた前記第1の撮像画像と、前記第2の撮像画像と、をエンコードするステレオ画像生成装置。
    The stereo image generating apparatus according to claim 2,
    A color correction unit that performs color correction on the first captured image and / or the second captured image is provided for a difference in color between the first captured image and the second captured image. ,
    The image encoding unit is a stereo image generating device that encodes the first captured image whose color is corrected by the color correction unit and the second captured image.
  11.  請求項3に記載のステレオ画像生成装置であって、
     前記画像リサイズ部が行う、前記第1の撮像画像の変換、および前記第2の撮像画像の変換が拡大の変換である場合、超解像処理を用いるステレオ画像生成装置。
    The stereo image generating apparatus according to claim 3,
    A stereo image generation device using super-resolution processing when the conversion of the first captured image and the conversion of the second captured image performed by the image resizing unit are enlargement conversions.
  12.  請求項2に記載のステレオ画像生成装置であって、
     前記第1の撮像画像および前記第2の撮像画像のそれぞれの画像の周辺部に対して平均化処理を行う画像フィルタ部を備え、
     前記画像エンコード部は、前記画像リサイズ部で画素数の変換が行われた後、前記画像フィルタ部により平均化処理を行った前記第1の撮像画像と、前記画像リサイズ部で画素数の変換が行われた後、前記画像フィルタ部により平均化処理を行った前記第2の撮像画像と、をエンコードするステレオ画像生成装置。
    The stereo image generating apparatus according to claim 2,
    And an image filter unit that performs averaging processing on peripheral portions of the first captured image and the second captured image.
    The image encoding unit performs conversion of the number of pixels in the image resizing unit, and then performs conversion of the number of pixels in the image capturing unit and the first captured image subjected to averaging processing by the image filter unit. A stereo image generating device that encodes the second captured image that has been subjected to averaging processing by the image filter unit after being performed;
  13.  請求項2乃至請求項12のいずれか一項に記載のステレオ画像生成装置であって、
     前記第1の画素数と前記第3の画素数と前記第4の画素数の大小関係は、第1の画素数≧第3の画素数>第4の画素数であるステレオ画像生成装置。
    A stereo image generating apparatus according to any one of claims 2 to 12, wherein
    The stereo image generating device according to the first aspect of the present invention, wherein the first pixel count, the third pixel count, and the fourth pixel count are in the following relationship: first pixel count ≧ third pixel count> fourth pixel count.
  14.  光学ズーム機能を備えた第1の撮像部において第1の画素数で、第1の撮像画像を撮像する第1撮像ステップと、
     電子ズーム機能を備えた第2の撮像部において前記第1の画素数よりも小さい第2の画素数で、第2の撮像画像を撮像する第2撮像ステップと、
     指定されるズーム倍率が、所定の倍率以下の時には、前記第1の撮像画像、および前記第2の撮像画像を第3の画素数に変換し、前記所定の倍率を超えた場合は、前記第1の撮像画像、および前記第2の撮像画像を前記第3の画素数よりも小さい第4の画素数に変換する画像リサイズステップと、
     前記画像リサイズステップで変換された前記第1の撮像画像および前記第2の撮像画像をエンコードする画像エンコードステップと、
     前記画像エンコードステップでエンコードされた前記第1の撮像画像および前記第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成するステレオ画像フォーマット変換ステップと、
     を備えたステレオ画像生成方法。
    A first imaging step of imaging a first captured image with a first number of pixels in a first imaging unit having an optical zoom function;
    A second imaging step of imaging a second captured image with a second number of pixels smaller than the first number of pixels in a second imaging unit having an electronic zoom function;
    When the specified zoom magnification is equal to or less than a predetermined magnification, the first captured image and the second captured image are converted into a third number of pixels, and when the predetermined magnification is exceeded, An image resizing step of converting the first captured image and the second captured image into a fourth pixel number smaller than the third pixel number;
    An image encoding step of encoding the first captured image and the second captured image converted in the image resizing step;
    A stereo image format conversion step of converting the first captured image and the second captured image encoded in the image encoding step into a stereo image format to generate a stereo image;
    A stereo image generating method comprising:
  15.  請求項1に記載のステレオ画像生成装置であって、
     前記第1の撮像部は、光学ズーム機能と電子ズーム機能の双方を有し、
     ステレオ画像撮影において、指定されるズーム倍率に基づき、前記第1の撮像部は光学ズーム動作および電子ズーム動作を行い、前記第2の撮像部は電子ズーム動作を行い、
     前記ズーム倍率が、光学ズーム機能の上限倍率より小さい所定の倍率以下の時には、前記第1の撮像部は光学ズーム動作を行い、前記第2の撮像部は電子ズーム動作を行い、前記所定の倍率を超えた場合は、それ以降のズーム動作は、前記第1の撮像部、前記第2の撮像部ともに電子ズーム動作を行うように制御する撮像制御部と、
     前記第1の撮像画像、および前記第2の撮像画像を所定の画素数に変換する画像リサイズ部と、
     前記画像リサイズ部で変換された前記第1の撮像画像および前記第2の撮像画像をエンコードする画像エンコード部と、
     前記画像エンコード部でエンコードされた前記第1の撮像画像および前記第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成するステレオ画像フォーマット変換部と、
     を備えたステレオ画像生成装置。
    The stereo image generating apparatus according to claim 1, wherein
    The first imaging unit has both an optical zoom function and an electronic zoom function.
    In taking a stereo image, the first imaging unit performs an optical zoom operation and an electronic zoom operation based on a designated zoom magnification, and the second imaging unit performs an electronic zoom operation.
    When the zoom magnification is equal to or less than a predetermined magnification smaller than the upper limit magnification of the optical zoom function, the first imaging unit performs an optical zoom operation, and the second imaging unit performs an electronic zoom operation, and the predetermined magnification And an imaging control unit that controls so that the first imaging unit and the second imaging unit perform electronic zoom operations in the subsequent zoom operations.
    An image resizing unit configured to convert the first captured image and the second captured image into a predetermined number of pixels;
    An image encoding unit that encodes the first captured image and the second captured image converted by the image resizing unit;
    A stereo image format conversion unit that converts the first captured image and the second captured image encoded by the image encoding unit into a stereo image format to generate a stereo image;
    Stereo image generator equipped with
  16.  請求項15に記載のステレオ画像生成装置であって、
     前記画像リサイズ部が行う、前記第1の撮像画像の変換、および前記第2の撮像画像の変換は、拡大、縮小、または等倍の変換であるステレオ画像生成装置。
    The stereo image generating apparatus according to claim 15.
    A stereo image generating device, wherein conversion of the first captured image and conversion of the second captured image, which are performed by the image resizing unit, are enlargement, reduction, or equal-scale conversion.
  17.  請求項15または請求項16に記載のステレオ画像生成装置であって、
     前記ズーム倍率の切り替え倍率をズーム倍率閾値として保存するズーム倍率閾値保存部を備え、
     前記撮像制御部は、前記ズーム倍率閾値に基づき、前記第1の撮像部と前記第2の撮像部のズーム動作の切り替え制御を行うステレオ画像生成装置。
    The stereo image generating apparatus according to claim 15 or 16,
    A zoom magnification threshold storage unit configured to store the switching magnification of the zoom magnification as a zoom magnification threshold;
    The imaging control unit performs switching control of the zoom operation of the first imaging unit and the second imaging unit based on the zoom magnification threshold.
  18.  請求項15乃至請求項17のいずれか一項に記載のステレオ画像生成装置であって、
     前記所定の画素数は、前記第1の画素数であるステレオ画像生成装置。
    A stereo image generating apparatus according to any one of claims 15 to 17, wherein
    The stereo image generating device, wherein the predetermined number of pixels is the first number of pixels.
  19.  請求項15に記載のステレオ画像生成装置であって、
     前記第1の撮像部は、第1の画角を備え、
     前記第2の撮像部は、前記第1の画角よりも狭い第2の画角を備え、
     前記第1の撮像画像をトリミングする画角補正部を備え、
     前記画像エンコード部は、前記画角補正部でトリミングされ、前記画像リサイズ部で画素数が変換された前記第1の撮像画像と、前記画像リサイズ部で画素数が変換された前記第2の撮像画像と、をエンコードするステレオ画像生成装置。
    The stereo image generating apparatus according to claim 15.
    The first imaging unit has a first angle of view,
    The second imaging unit includes a second angle of view narrower than the first angle of view.
    An angle of view correction unit that trims the first captured image;
    The image encoding unit is trimmed by the angle of view correction unit, and the first captured image of which the number of pixels is converted by the image resizing unit, and the second imaging whose number of pixels is converted by the image resizing unit Stereo image generator that encodes images.
  20.  請求項19に記載のステレオ画像生成装置であって、
     前記第1の撮像部の光学ズーム倍率毎の画角補正情報を保持する画角情報保持部を備え、前記画角補正部は、前記画角補正情報に基づきトリミングするステレオ画像生成装置。
    20. The stereo image generating device according to claim 19, wherein
    A stereo image generating apparatus, comprising: an angle-of-view information holding unit that holds angle-of-view correction information for each optical zoom magnification of the first imaging unit, wherein the angle-of-view correction unit trims based on the angle-of-view correction information.
  21.  請求項15に記載のステレオ画像生成装置であって、
     前記第1の撮像画像、もしくは前記第2の撮像画像のいずれかに対して、上下ずれ、水平ずれ、回転ずれ、または大きさずれの中で少なくとも1つを補正する位置補正部を備え、
     前記画像エンコード部は、前記位置補正部で補正され、前記画像リサイズ部で所定の画素数に変換された前記第1の撮像画像と、前記位置補正部で補正され、前記画像リサイズ部で所定の画素数に変換された前記第2の撮像画像と、をエンコードするステレオ画像生成装置。
    The stereo image generating apparatus according to claim 15.
    A position correction unit configured to correct at least one of vertical deviation, horizontal deviation, rotational deviation, or size deviation with respect to any of the first captured image or the second captured image;
    The image encoding unit is corrected by the position correction unit, and the first captured image converted into a predetermined number of pixels by the image resizing unit is corrected by the position correction unit, and the image resizing unit is corrected by the image resizing unit. A stereo image generating device that encodes the second captured image converted into the number of pixels.
  22.  請求項21に記載のステレオ画像生成装置であって、
     前記第1の撮像部の光学ズーム倍率毎の位置補正情報を保持する位置補正情報保持部を備え、
     前記位置補正部は、前記位置補正情報に基づき上下ずれ、水平ずれ、回転ずれ、または大きさずれの中で少なくとも1つを補正するステレオ画像生成装置。
    22. The stereo image generating device according to claim 21, wherein
    A position correction information holding unit that holds position correction information for each optical zoom magnification of the first imaging unit;
    The position correction unit corrects at least one of vertical deviation, horizontal deviation, rotational deviation, or size deviation based on the position correction information.
  23.  請求項15に記載のステレオ画像生成装置であって、
     前記第1の撮像画像と前記第2の撮像画像との間の色の違いについて、前記第1の撮像画像および/または前記第2の撮像画像に対して色の補正する色補正部を備え、
     前記画像エンコード部は、前記色補正部で色の補正がなされた前記第1の撮像画像と、前記第2の撮像画像と、をエンコードするステレオ画像生成装置。
    The stereo image generating apparatus according to claim 15.
    A color correction unit that corrects the color of the first captured image and / or the second captured image with respect to a difference in color between the first captured image and the second captured image;
    The image encoding unit is a stereo image generating device that encodes the first captured image whose color is corrected by the color correction unit and the second captured image.
  24.  請求項16に記載のステレオ画像生成装置であって、
     前記画像リサイズ部が行う、前記第1の撮像画像の変換、および前記第2の撮像画像の変換が拡大の変換である場合、超解像処理を用いるステレオ画像生成装置。
    The stereo image generating apparatus according to claim 16, wherein
    A stereo image generation device using super-resolution processing when the conversion of the first captured image and the conversion of the second captured image performed by the image resizing unit are enlargement conversions.
  25.  請求項15に記載のステレオ画像生成装置であって、
     前記第1の撮像画像および前記第2の撮像画像のそれぞれの画像の周辺部に対して平均化処理を行う画像フィルタ部を備え、
     前記画像エンコード部は、前記画像リサイズ部で画素数の変換した後、前記画像フィルタ部により平均化処理を行った前記第1の撮像画像と、前記画像リサイズ部で画素数の変換した後、前記画像フィルタ部により平均化処理を行った前記第2の撮像画像と、をエンコードするステレオ画像生成装置。
    The stereo image generating apparatus according to claim 15.
    And an image filter unit that performs averaging processing on peripheral portions of the first captured image and the second captured image.
    The image encoding unit converts the number of pixels in the image resizing unit, and then converts the number of pixels in the first resized image subjected to averaging processing by the image filter unit and the image resizing unit, and A stereo image generating device that encodes the second captured image that has been subjected to averaging processing by an image filter unit.
  26.  光学ズーム機能と電子ズーム機能を備えた第1の撮像部において第1の画素数で、第1の撮像画像を撮像する第1撮像ステップと、
     電子ズーム機能を備えた第2の撮像部において前記第1の画素数よりも小さい第2の画素数で、第2の撮像画像を撮像する第2撮像ステップと、
     指定されるズーム倍率が、光学ズーム機能の上限倍率より小さい所定の倍率以下の時には、前記第1の撮像部は光学ズーム動作を行い、前記第2の撮像部は電子ズーム動作を行い、前記所定の倍率を超えた場合は、それ以降のズーム動作は、前記第1の撮像部、前記第2の撮像部ともに電子ズーム動作を行うように制御するズーム制御ステップと、
     前記第1の撮像画像、および前記第2の撮像画像を所定の画素数に変換する画像リサイズステップと、
     前記画像リサイズステップで変換された前記第1の撮像画像および前記第2の撮像画像をエンコードする画像エンコードステップと、
     前記画像エンコードステップでエンコードされた前記第1の撮像画像および前記第2の撮像画像をステレオ画像フォーマットに変換してステレオ画像を生成するステレオ画像フォーマット変換ステップと、
     を備えたステレオ画像生成方法。
    A first imaging step of imaging a first captured image with a first number of pixels in a first imaging unit having an optical zoom function and an electronic zoom function;
    A second imaging step of imaging a second captured image with a second number of pixels smaller than the first number of pixels in a second imaging unit having an electronic zoom function;
    When the specified zoom magnification is equal to or less than a predetermined magnification smaller than the upper limit magnification of the optical zoom function, the first imaging unit performs an optical zoom operation, and the second imaging unit performs an electronic zoom operation. And a zoom control step of performing control so that the first imaging unit and the second imaging unit perform electronic zoom operations in the subsequent zoom operation,
    An image resizing step of converting the first captured image and the second captured image into a predetermined number of pixels;
    An image encoding step of encoding the first captured image and the second captured image converted in the image resizing step;
    A stereo image format conversion step of converting the first captured image and the second captured image encoded in the image encoding step into a stereo image format to generate a stereo image;
    A stereo image generating method comprising:
PCT/JP2012/002602 2011-04-14 2012-04-13 Stereo image generation device and stereo image generation method WO2012140919A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2011-090396 2011-04-14
JP2011090395A JP2014132700A (en) 2011-04-14 2011-04-14 Stereo image generation device and stereo image generation method
JP2011090396A JP2014132701A (en) 2011-04-14 2011-04-14 Stereo image generation device and stereo image generation method
JP2011-090395 2011-04-14

Publications (1)

Publication Number Publication Date
WO2012140919A1 true WO2012140919A1 (en) 2012-10-18

Family

ID=47009108

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/002602 WO2012140919A1 (en) 2011-04-14 2012-04-13 Stereo image generation device and stereo image generation method

Country Status (1)

Country Link
WO (1) WO2012140919A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107636692A (en) * 2015-07-07 2018-01-26 三星电子株式会社 Image capture device and the method for operating it

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0937302A (en) * 1995-07-18 1997-02-07 Olympus Optical Co Ltd Stereoscopic image pickup device
JP2000102040A (en) * 1998-09-28 2000-04-07 Olympus Optical Co Ltd Electronic stereo camera
JP2005020606A (en) * 2003-06-27 2005-01-20 Sharp Corp Digital camera
JP2005045328A (en) * 2003-07-22 2005-02-17 Sharp Corp Three-dimensional imaging apparatus
JP2005210217A (en) * 2004-01-20 2005-08-04 Olympus Corp Stereoscopic camera
JP2006251683A (en) * 2005-03-14 2006-09-21 Fujinon Corp Stereoscopic image photographing system
JP2010154310A (en) * 2008-12-25 2010-07-08 Fujifilm Corp Compound-eye camera, and photographing method
JP2010252186A (en) * 2009-04-17 2010-11-04 Nec Casio Mobile Communications Ltd Terminal and program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0937302A (en) * 1995-07-18 1997-02-07 Olympus Optical Co Ltd Stereoscopic image pickup device
JP2000102040A (en) * 1998-09-28 2000-04-07 Olympus Optical Co Ltd Electronic stereo camera
JP2005020606A (en) * 2003-06-27 2005-01-20 Sharp Corp Digital camera
JP2005045328A (en) * 2003-07-22 2005-02-17 Sharp Corp Three-dimensional imaging apparatus
JP2005210217A (en) * 2004-01-20 2005-08-04 Olympus Corp Stereoscopic camera
JP2006251683A (en) * 2005-03-14 2006-09-21 Fujinon Corp Stereoscopic image photographing system
JP2010154310A (en) * 2008-12-25 2010-07-08 Fujifilm Corp Compound-eye camera, and photographing method
JP2010252186A (en) * 2009-04-17 2010-11-04 Nec Casio Mobile Communications Ltd Terminal and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107636692A (en) * 2015-07-07 2018-01-26 三星电子株式会社 Image capture device and the method for operating it
EP3320676A4 (en) * 2015-07-07 2018-05-16 Samsung Electronics Co., Ltd. Image capturing apparatus and method of operating the same
US10410061B2 (en) 2015-07-07 2019-09-10 Samsung Electronics Co., Ltd. Image capturing apparatus and method of operating the same
CN107636692B (en) * 2015-07-07 2021-12-28 三星电子株式会社 Image capturing apparatus and method of operating the same

Similar Documents

Publication Publication Date Title
JP4528235B2 (en) Digital camera
JP5192096B2 (en) Stereo imaging device
KR101391042B1 (en) Image processing device capable of generating wide-range image
JP5722975B2 (en) Imaging device, shading correction method for imaging device, and program for imaging device
US20090167928A1 (en) Image processing apparatus and photographing apparatus
JP5243666B2 (en) Imaging apparatus, imaging apparatus main body, and shading correction method
JP5216640B2 (en) Imaging apparatus and method
US9241109B2 (en) Image capturing apparatus, control method, and recording medium for moving image generation
JP5665013B2 (en) Image processing apparatus, image processing method, and program
JP2004354581A (en) Imaging apparatus
JP6539075B2 (en) Imaging device, control method therefor, program, storage medium
JP5378283B2 (en) Imaging apparatus and control method thereof
JP6706167B2 (en) Imaging device, image synthesizing method, and program
JP2004297332A (en) Imaging apparatus
WO2012140919A1 (en) Stereo image generation device and stereo image generation method
JP5510105B2 (en) Digital camera
JP2011197278A (en) Stereoscopic imaging apparatus
JP2010135904A (en) Imaging apparatus
JP2007116305A (en) Imaging apparatus and zoom magnification control method
WO2014136703A1 (en) Image-capturing device and image display method
JP5641352B2 (en) Image processing apparatus, image processing method, and program
JP5664440B2 (en) Imaging device
JP2014132701A (en) Stereo image generation device and stereo image generation method
JP2014132700A (en) Stereo image generation device and stereo image generation method
WO2012066768A1 (en) Stereo image generation device and stereo image generation method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12771421

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12771421

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP