Reference is made to commonly assigned, co-pending U.S. patent application Ser. No. ______ (docket 96113), filed ______, entitled: “Digital camera with underwater capture mode”, by Madden et al., which is incorporated herein by reference.
This invention pertains to the field of capturing digital images with an underwater camera, and more particularly to using a pressure sensor to automatically select an underwater photography mode.
Underwater photography is useful for many applications. For example, scuba divers may desire to take photographs as they are exploring coral reefs or shipwrecks, and children may enjoy taking underwater photographs of their friends while they are playing in a swimming pool. To capture underwater photographs, a camera must be enclosed in a watertight housing to prevent water from damaging internal components of the camera.
A characteristic of photographs captured underwater is that the water can affect various image attributes such as color reproduction, flare, image sharpness and spatial noise (i.e., granularity). The degree to which these image attributes are affected will be a function of many factors including the subject distance, the water depth, the water clarity and whether an electronic flash was used to illuminate the scene. This can cause the image quality of underwater photographs to vary significantly from image-to-image.
When underwater photographs captured with conventional film cameras are printed, they are typically analyzed using a so-called scene balance algorithm to estimate the amount of color balance correction appropriate to correct for any color casts introduced in the captured image during the image capture process. Such scene balance algorithms are generally optimized to correct for the color casts introduced when photographing images in air under various illuminants such as daylight, tungsten or fluorescent. When such algorithms are applied to underwater photographs, they will typically remove some of the color cast induced by the underwater conditions, but typically they will not produce optimal results. Often it is necessary to resort to “hand-balancing” the images to produce the best reproduced images. With conventional optical printing of film, it is not possible to compensate for other artifacts associated with underwater photography such as flare, sharpness loss and higher levels of image noise.
U.S. Pat. No. 6,263,792 to Fredlund, entitled “Method and apparatus for printing digital images,” discloses a method for printing a roll of film, where at least one image was captured underwater. The photographs captured underwater are identified, either by analyzing the images or by reading information received from the customer. The underwater photographs are then modified in a predetermined manner. Disclosed modifications include color balance adjustments, contrast enhancement and image noise suppression. A disadvantage of this approach is that identifying the underwater photographs using customer supplied information can be cumbersome, and the process used to automatically identify underwater images by analyzing the images is prone to misidentification errors.
U.S. Pat. No. 5,382,499 to Keelan et al., entitled “Color reversal photographic elements adapted for underwater photography” discloses a photographic film designed for underwater photography. The patent discloses that the color balance problem in underwater photography arises from the marked attenuation of longer visible wavelength red light transmitted through water. Within each 3 meters of light transmission distance in water approximately half of the red light is absorbed. This results in underwater scenes having a marked cyan color cast, indicative of red light deficiency. The color reversal photographic films of the invention are provided with an improved underwater imaging capability by increasing the speed of the red recording layer unit in relation to the speed of the green recording layer unit. This film can properly correct for the color cast induced by underwater picture-taking conditions only for one particular scene object distance.
U.S. Pat. No. 5,710,947 to Teremy et al., entitled “Pressure sensor control for electrically responsive camera feature,” discloses a photographic film camera which includes a pressure sensor. A number of different applications are described for the pressure sensor including a camera wake-up switch, an orientation switch, a film transport counter, a water depth sensor and a camera leakage detector. When the pressure sensor is used as a water depth sensor, a graphical display is provided to indicate the depth.
Digital cameras have become very common and have largely replaced traditional film cameras in almost all areas of photography, including underwater photography. Underwater photography with a digital camera suffers from most of the same problems that are encountered with traditional film cameras such as variations in color reproduction. Some digital cameras, such as the Canon PowerShot SD500 Digital ELPH Camera, include a user-selectable underwater mode which can be used to manually indicate that the camera is being used underwater. The digital camera can then adjust the color reproduction characteristics to account for a typical underwater photography environment. However, remembering to manually select the underwater mode can be cumbersome, and additionally no provision is made for the fact that underwater photography conditions can vary widely from image-to-image.
The present invention represents a digital image capture device for use in capturing underwater digital images, comprising:
a watertight housing;
an image sensor for capturing a digital image;
an optical system for imaging a scene onto the image sensor;
a means for sensing a pressure outside the watertight housing; and
a processor for performing the steps of:
The present invention has the advantage that an underwater photography mode can be automatically selected responsive to the sensed pressure without any user intervention.
It has the additional advantage that when the digital camera is operating in the underwater photography mode, the performance of various image processing operations including color correction, sharpening and noise reduction can be automatically adjusted relative to a normal photography mode to account for the characteristics of the underwater photography environment.
It has the further advantage that the color reproduction of the digital image can be automatically adjusted in an underwater photography mode to account for variations in photography conditions as a function of depth and object distance.
It is to be understood that the attached drawings are for purposes of illustrating the concepts of the invention and may not be to scale.
In the following description, a preferred embodiment of the present invention will be described in terms that would ordinarily be implemented as a software program. Those skilled in the art will readily recognize that the equivalent of such software can also be constructed in hardware. Because image manipulation algorithms and systems are well known, the present description will be directed in particular to algorithms and systems forming part of, or cooperating more directly with, the system and method in accordance with the present invention. Other aspects of such algorithms and systems, and hardware or software for producing and otherwise processing the image signals involved therewith, not specifically shown or described herein, can be selected from such systems, algorithms, components and elements known in the art. Given the system as described according to the invention in the following materials, software not specifically shown, suggested or described herein that is useful for implementation of the invention is conventional and within the ordinary skill in such arts.
Still further, as used herein, a computer program for performing the method of the present invention can be stored in a computer readable storage medium, which can include, for example; magnetic storage media such as a magnetic disk (such as a hard drive or a floppy disk) or magnetic tape; optical storage media such as an optical disc, optical tape, or machine readable bar code; solid state electronic storage devices such as random access memory (RAM), or read only memory (ROM); or any other physical device or medium employed to store a computer program having instructions for controlling one or more computers to practice the method according to the present invention.
Because digital cameras employing imaging devices and related circuitry for signal capture and processing, and display are well known, the present description will be directed in particular to elements forming part of, or cooperating more directly with, the method and apparatus in accordance with the present invention. Elements not specifically shown or described herein are selected from those known in the art. Certain aspects of the embodiments to be described are provided in software. Given the system as shown and described according to the invention in the following materials, software not specifically shown, described or suggested herein that is useful for implementation of the invention is conventional and within the ordinary skill in such arts.
The invention is inclusive of combinations of the embodiments described herein. References to “a particular embodiment” and the like refer to features that are present in at least one embodiment of the invention. Separate references to “an embodiment” or “particular embodiments” or the like do not necessarily refer to the same embodiment or embodiments; however, such embodiments are not mutually exclusive, unless so indicated or as are readily apparent to one of skill in the art. The use of singular or plural in referring to the “method” or “methods” and the like is not limiting. It should be noted that, unless otherwise explicitly noted or required by context, the word “or” is used in this disclosure in a non-exclusive sense.
The following description of a digital camera will be familiar to one skilled in the art. It will be obvious that there are many variations of this embodiment that are possible and are selected to reduce the cost, add features or improve the performance of the camera.
In some embodiments, the digital camera 10 captures both motion video images and still images. The digital camera 10 can also include other functions, including, but not limited to, the functions of a digital music player (e.g. an MP3 player), a mobile telephone, a GPS receiver, or a programmable digital assistant (PDA).
The digital camera 10 includes a lens 4 having an adjustable aperture and adjustable shutter 6. In a preferred embodiment, the lens 4 is a zoom lens and is controlled by zoom and focus motor drives 8. The lens 4 focuses light from a scene (not shown) onto an image sensor 14, for example, a single-chip color CCD or CMOS image sensor. The lens 4 is one type optical system for forming an image of the scene on the image sensor 14. In other embodiments, the optical system may use a fixed focal length lens with either variable or fixed focus.
The output of the image sensor 14 is converted to digital form by Analog Signal Processor (ASP) and Analog-to-Digital (A/D) converter 16, and temporarily stored in buffer memory 18. The image data stored in buffer memory 18 is subsequently manipulated by a processor 20, using embedded software programs (e.g. firmware) stored in firmware memory 28. In some embodiments, the software program is permanently stored in firmware memory 28 using a read only memory (ROM). In other embodiments, the firmware memory 28 can be modified by using, for example, Flash EPROM memory. In such embodiments, an external device can update the software programs stored in firmware memory 28 using the wired interface 38 or the wireless modem 50. In such embodiments, the firmware memory 28 can also be used to store image sensor calibration data, user setting selections and other data which must be preserved when the camera is turned off. In some embodiments, the processor 20 includes a program memory (not shown), and the software programs stored in the firmware memory 28 are copied into the program memory before being executed by the processor 20.
It will be understood that the functions of processor 20 can be provided using a single programmable processor or by using multiple programmable processors, including one or more digital signal processor (DSP) devices. Alternatively, the processor 20 can be provided by custom circuitry (e.g., by one or more custom integrated circuits (ICs) designed specifically for use in digital cameras), or by a combination of programmable processor(s) and custom circuits. It will be understood that connectors between the processor 20 from some or all of the various components shown in
The processed images are then stored using the image memory 30. It is understood that the image memory 30 can be any form of memory known to those skilled in the art including, but not limited to, a removable Flash memory card, internal Flash memory chips, magnetic memory, or optical memory. In some embodiments, the image memory 30 can include both internal Flash memory chips and a standard interface to a removable Flash memory card, such as a Secure Digital (SD) card. Alternatively, a different memory card format can be used, such as a micro SD card, Compact Flash (CF) card, MultiMedia Card (MMC), xD card or Memory Stick.
The image sensor 14 is controlled by a timing generator 12, which produces various clocking signals to select rows and pixels and synchronizes the operation of the ASP and A/D converter 16. The image sensor 14 can have, for example, 12.4 megapixels (4088×3040 pixels) in order to provide a still image file of approximately 4000×3000 pixels. To provide a color image, the image sensor is generally overlaid with a color filter array, which provides an image sensor having an array of pixels that include different colored pixels. The different color pixels can be arranged in many different patterns. As one example, the different color pixels can be arranged using the well-known Bayer color filter array, as described in commonly assigned U.S. Pat. No. 3,971,065, “Color imaging array” to Bayer, the disclosure of which is incorporated herein by reference. As a second example, the different color pixels can be arranged as described in commonly assigned U.S. Patent Application Publication 2005/191729, filed on Jul. 28, 2007 and titled “Image sensor with improved light sensitivity” to Compton and Hamilton, the disclosure of which is incorporated herein by reference. These examples are not limiting, and many other color patterns may be used.
It will be understood that the image sensor 14, timing generator 12, and ASP and A/D converter 16 can be separately fabricated integrated circuits, or they can be fabricated as a single integrated circuit as is commonly done with CMOS image sensors. In some embodiments, this single integrated circuit can perform some of the other functions shown in
The image sensor 14 is effective when actuated in a first mode by timing generator 12 for providing a motion sequence of lower resolution sensor image data, which is used when capturing video images and also when previewing a still image to be captured, in order to compose the image. This preview mode sensor image data can be provided as HD resolution image data, for example, with 1280×720 pixels, or as VGA resolution image data, for example, with 640×480 pixels, or using other resolutions which have significantly columns and rows of data, compared to the resolution of the image sensor.
The preview mode sensor image data can be provided by combining values of adjacent pixels having the same color, or by eliminating some of the pixels values, or by combining some color pixels values while eliminating other color pixel values. The preview mode image data can be processed as described in commonly assigned U.S. Pat. No. 6,292,218 to Parulski, et al., entitled “Electronic camera for initiating capture of still images while previewing motion images,” which is incorporated herein by reference.
The image sensor 14 is also effective when actuated in a second mode by timing generator 12 for providing high resolution still image data. This final mode sensor image data is provided as high resolution output image data, which for scenes having a high illumination level includes all of the pixels of the image sensor, and can be, for example, a 12 megapixel final image data having 4000×3000 pixels. At lower illumination levels, the final sensor image data can be provided by “binning” some number of like-colored pixels on the image sensor, in order to increase the signal level and thus the “ISO speed” of the sensor.
The zoom and focus motor drivers 8 are controlled by control signals supplied by the processor 20, to provide the appropriate focal length setting and to focus the scene onto the image sensor 14. The exposure level of the image sensor 14 is controlled by controlling the f/number and exposure time of the adjustable aperture and adjustable shutter 6, the exposure period of the image sensor 14 via the timing generator 12, and the gain (i.e., ISO speed) setting of the ASP and A/D converter 16. The processor 20 also controls a flash 2 which can illuminate the scene. In some embodiments of the present invention, the flash 2 has an adjustable correlated color temperature. For example, the flash disclosed in U.S. Patent Application Publication 2008/0297027 to Miller et al., entitled “Lamp with adjustable color,” can be used to produce illumination having a higher proportion of red light when the digital camera 10 is operated underwater as will be described later.
The lens 4 of the digital camera 10 can be focused in the first mode by using “through-the-lens” autofocus, as described in commonly-assigned U.S. Pat. No. 5,668,597, entitled “Electronic Camera with Rapid Automatic Focus of an Image upon a Progressive Scan Image Sensor” to Parulski et al., which is incorporated herein by reference. This is accomplished by using the zoom and focus motor drivers 8 to adjust the focus position of the lens 4 to a number of positions ranging between a near focus position to an infinity focus position, while the processor 20 determines the closest focus position which provides a peak sharpness value for a central portion of the image captured by the image sensor 14. The focus distance which corresponds to the closest focus position can then be utilized for several purposes, such as automatically setting an appropriate scene mode, and can be stored as metadata in the image file, along with other lens and camera settings.
An optional tilt sensor 42 can be included for sensing an orientation of the digital camera 10. Tilt sensors are well-known in the art and have been incorporated into many common products such as electronic game systems and cell-phones. Commonly, tilt sensors use an accelerometer to sense changes in the orientation of the device. In one embodiment of the present invention, the tilt sensor 42 provides a signal indicating a tilt angle relative to a horizontal direction. A positive tilt angle can be used to indicate that the camera is tilted upward relative to a horizontal orientation, and a negative tilt angle can be used to indicate that the camera is tilted downward relative to a horizontal orientation.
The processor 20 produces menus and low resolution color images that are temporarily stored in display memory 36 and are displayed on the image display 32. The image display 32 is typically an active matrix color liquid crystal display (LCD), although other types of displays, such as organic light emitting diode (OLED) displays, can be used. A video interface 44 provides a video output signal from the digital camera 10 to a video display 46, such as a flat panel HDTV display. In preview mode, or video mode, the digital image data from buffer memory 18 is manipulated by processor 20 to form a series of motion preview images that are displayed, typically as color images, on the image display 32. In review mode, the images displayed on the image display 32 are produced using the image data from the digital image files stored in image memory 30.
The graphical user interface displayed on the image display 32 is controlled in response to user input provided by user controls 34. The user controls 34 are used to select various camera modes, such as video capture mode, still capture mode, and review mode, and to initiate capture of still images and recording of motion images. In some embodiments, the first mode described above (i.e. still preview mode) is initiated when the user partially depresses a shutter button (e.g., image capture button 290 shown in
The camera modes that can be selected using the user controls 34 include an “underwater photography” mode, which will be described later with respect to
A pressure sensor 25 on the digital camera 10 can be used to provide depth information which is useful for implementing the present invention, as will be described later with respect to
An audio codec 22 connected to the processor 20 receives an audio signal from a microphone 24 and provides an audio signal to a speaker 26. These components can be to record and playback an audio track, along with a video sequence or still image. If the digital camera 10 is a multi-function device such as a combination camera and mobile phone, the microphone 24 and the speaker 26 can be used for telephone conversation. In some embodiments, microphone 24 is capable of recording sounds in air and also in an underwater environment when the digital camera 10 is used to record underwater images according to the method of the present invention. In other embodiments, the digital camera 10 includes both a conventional air microphone as well as an underwater microphone (hydrophone) capable of recording underwater sounds.
In some embodiments, the speaker 26 can be used as part of the user interface, for example to provide various audible signals which indicate that a user control has been depressed, or that a particular mode has been selected. In some embodiments, the microphone 24, the audio codec 22, and the processor 20 can be used to provide voice recognition, so that the user can provide a user input to the processor 20 by using voice commands, rather than user controls 34. The speaker 26 can also be used to inform the user of an incoming phone call. This can be done using a standard ring tone stored in firmware memory 28, or by using a custom ring-tone downloaded from a wireless network 58 and stored in the image memory 30. In addition, a vibration device (not shown) can be used to provide a silent (e.g., non audible) notification of an incoming phone call.
The processor 20 also provides additional processing of the image data from the image sensor 14, in order to produce rendered sRGB image data which is compressed and stored within a “finished” image file, such as a well-known Exif-JPEG image file, in the image memory 30.
The digital camera 10 can be connected via the wired interface 38 to an interface/recharger 48, which is connected to a computer 40, which can be a desktop computer or portable computer located in a home or office. The wired interface 38 can conform to, for example, the well-known USB 2.0 interface specification. The interface/recharger 48 can provide power via the wired interface 38 to a set of rechargeable batteries (not shown) in the digital camera 10.
The digital camera 10 can include a wireless modem 50, which interfaces over a radio frequency band 52 with the wireless network 58. The wireless modem 50 can use various wireless interface protocols, such as the well-known Bluetooth wireless interface or the well-known 802.11 wireless interface. The computer 40 can upload images via the Internet 70 to a photo service provider 72, such as the Kodak EasyShare Gallery. Other devices (not shown) can access the images stored by the photo service provider 72.
In alternative embodiments, the wireless modem 50 communicates over a radio frequency (e.g. wireless) link with a mobile phone network (not shown), such as a 3GSM network, which connects with the Internet 70 in order to upload digital image files from the digital camera 10. These digital image files can be provided to the computer 40 or the photo service provider 72.
According to the present invention, the digital camera 10 is an underwater digital camera capable of being used to capture underwater digital images. For example, the digital camera 10 can be used by scuba divers exploring a coral reef or by children playing in a swimming pool. To prevent damage to the various camera components, the digital camera 10 includes a watertight housing 280 (
The color sensor data 100 which has been digitally converted by the ASP and A/D converter 16 is manipulated by a white balance step 95. In some embodiments, this processing can be performed using the methods described in commonly-assigned U.S. Pat. No. 7,542,077 to Mild, entitled “White balance adjustment device and color identification device”, the disclosure of which is herein incorporated by reference. The white balance can be adjusted in response to a white balance setting 90, which can be manually set by a user, or which can be automatically set when the camera is in the underwater mode, as will be described later in reference to
The color image data is then manipulated by a noise reduction step 105 in order to reduce noise from the image sensor 14. In some embodiments, this processing can be performed using the methods described in commonly-assigned U.S. Pat. No. 6,934,056 to Gindele et al., entitled “Noise cleaning and interpolating sparsely populated color digital image using a variable noise cleaning kernel,” the disclosure of which is herein incorporated by reference. The level of noise reduction can be adjusted in response to an ISO setting 110, so that more filtering is performed at higher ISO exposure index setting. The level of noise reduction can also be adjusted when the camera is in the underwater mode, as will be described later in reference to
The color image data is then manipulated by a demosaicing step 115, in order to provide red, green and blue (RGB) image data values at each pixel location. Algorithms for performing the demosaicing step 115 are commonly known as color filter array (CFA) interpolation algorithms or “deBayering” algorithms. In one embodiment of the present invention, the demosaicing step 115 can use the luminance CFA interpolation method described in commonly-assigned U.S. Pat. No. 5,652,621, entitled “Adaptive color plane interpolation in single sensor color electronic camera,” to Adams et al., the disclosure of which is incorporated herein by reference. The demosaicing step 115 can also use the chrominance CFA interpolation method described in commonly-assigned U.S. Pat. No. 4,642,678, entitled “Signal processing method and apparatus for producing interpolated chrominance values in a sampled color image signal”, to Cok, the disclosure of which is herein incorporated by reference.
In some embodiments, the user can select between different pixel resolution modes, so that the digital camera can produce a smaller size image file. Multiple pixel resolutions can be provided as described in commonly-assigned U.S. Pat. No. 5,493,335, entitled “Single sensor color camera with user selectable image record size,” to Parulski et al., the disclosure of which is herein incorporated by reference. In some embodiments, a resolution mode setting 120 can be selected by the user to be full size (e.g. 3,000×2,000 pixels), medium size (e.g. 1,500×1000 pixels) or small size (750×500 pixels).
The color image data is color corrected in color correction step 125. In some embodiments, the color correction is provided using a 3×3 linear space color correction matrix, as described in commonly-assigned U.S. Pat. No. 5,189,511, entitled “Method and apparatus for improving the color rendition of hardcopy images from electronic cameras” to Parulski, et al., the disclosure of which is incorporated herein by reference. In some embodiments, different user-selectable color modes can be provided by storing different color matrix coefficients in firmware memory 28 of the digital camera 10. For example, four different color modes can be provided, so that the color mode setting 130 is used to select one of the following color correction matrices:
Setting 1 (normal color reproduction)
Setting 2 (saturated color reproduction)
Setting 3 (de-saturated color reproduction)
Setting 4 (monochrome)
Setting 5 (nominal underwater color reproduction)
As will be discussed in more detail later with reference to
In other embodiments, a three-dimensional lookup table can be used to perform the color correction step 125. In some embodiments, different 3×3 matrix coefficients, or a different three-dimensional lookup table, are used to provide color correction when the camera is in the underwater mode, as will be described later in reference to
The color image data is also manipulated by a tone scale correction step 135. In some embodiments, the tone scale correction step 135 can be performed using a one-dimensional look-up table as described in U.S. Pat. No. 5,189,511, cited earlier. In some embodiments, a plurality of tone scale correction look-up tables is stored in the firmware memory 28 in the digital camera 10. These can include look-up tables which provide a “normal” tone scale correction curve, a “high contrast” tone scale correction curve, and a “low contrast” tone scale correction curve. A user selected contrast setting 140 is used by the processor 20 to determine which of the tone scale correction look-up tables to use when performing the tone scale correction step 135. In some embodiments, a high contrast tone scale correction curve is used when the camera is in the underwater mode, as will be described later.
The color image data is also manipulated by an image sharpening step 145. In some embodiments, this can be provided using the methods described in commonly-assigned U.S. Pat. No. 6,192,162 entitled “Edge enhancing colored digital images” to Hamilton, et al., the disclosure of which is incorporated herein by reference. In some embodiments, the user can select between various sharpening settings, including a “normal sharpness” setting, a “high sharpness” setting, and a “low sharpness” setting. In this example, the processor 20 uses one of three different edge boost multiplier values, for example 2.0 for “high sharpness”, 1.0 for “normal sharpness”, and 0.5 for “low sharpness” levels, responsive to a sharpening setting 150 selected by the user of the digital camera 10. In some embodiments, a special image sharpening algorithm is used when the camera is in the underwater mode, as will be described later.
The color image data is also manipulated by an image compression step 155. In some embodiments, the image compression step 155 can be provided using the methods described in commonly-assigned U.S. Pat. No. 4,774,574, entitled “Adaptive block transform image coding method and apparatus” to Daly et al., the disclosure of which is incorporated herein by reference. In some embodiments, the user can select between various compression settings. This can be implemented by storing a plurality of quantization tables, for example, three different tables, in the firmware memory 28 of the digital camera 10. These tables provide different quality levels and average file sizes for the compressed digital image file 180 to be stored in the image memory 30 of the digital camera 10. A user selected compression mode setting 160 is used by the processor 20 to select the particular quantization table to be used for the image compression step 155 for a particular image.
The compressed color image data is stored in a digital image file 180 using a file formatting step 165. The image file can include various metadata 170. Metadata 170 is any type of information that relates to the digital image, such as the model of the camera that captured the image, the size of the image, the date and time the image was captured, and various camera settings, such as the lens focal length, the exposure time and f-number of the lens, and whether or not the camera flash fired. In a preferred embodiment, all of this metadata 170 is stored using standardized tags within the well-known Exif-JPEG still image file format. In a preferred embodiment of the present invention, the metadata 170 includes information about camera settings 185, including information about whether the digital image was captured using an underwater photography mode.
The present invention will now be described with reference to
The digital camera 10 includes a pressure sensor 25. The pressure sensor 25 returns a signal indicating the pressure outside the watertight housing 280. The pressure P as a function of depth in a fluid is given by:
P=P
0
+ρgd
C (6)
where P0 is the air pressure at the upper surface of the fluid, ρ is the fluid density (˜1000 kg/m3), g is the acceleration due to gravity (˜9.8 m/s2) and dC is the camera depth 260.
Preferably, the pressure sensor 25 is calibrated to return the “gauge pressure” PG, which is the pressure difference relative to the air pressure:
P
G
=P−P
0 (7)
When the digital camera 10 is operated in air 235, the gauge pressure PG will be approximately equal to zero. When the digital camera 10 is operated in the water 230, the gauge pressure PG will be greater than zero. Therefore, the detected pressure provided by the pressure sensor 25 can be used to determine whether the digital camera 10 is being operated in the water 230 or the air 235 by performing the test:
if PG<ε then
Camera in Air
else
Camera Underwater (8)
where ε is a small constant which is selected to account for the normal variations in atmospheric pressure.
The detected pressure can also be used to determine the camera depth 260 using the relationship:
d
C
=P
G
/ρg (9)
which can be derived using Eqs. (5) and (6).
In some embodiments, the digital camera 10 includes a tilt sensor 42 (not shown in
As will be described later with reference to
A method for controlling the operation of a digital image capture device having an underwater image capture capability according to a preferred embodiment of the present invention will now be described with reference to
If the underwater test 310 determines that the digital camera 10 is being operated underwater, a set underwater mode step 315 is used to set the digital camera 10 to operate in an underwater mode 320. When the digital camera 10 is operating in the underwater mode 320, the operation of various components of the digital camera 10 can be adjusted accordingly. For example, the behavior of various user controls 34 (e.g., buttons and menus) can be set to behave differently for the underwater mode 320. Additionally, when operating in the underwater mode 320, the digital camera 10 can be configured to use an underwater microphone to record underwater sounds rather than a conventional microphone 24. In some embodiments, the frequency response of the audio codec 22 can also be adjusted according to whether the digital camera 10 is being operated in an underwater mode 320. Also, components, such as the wireless modem 50, which would not be useful when the digital camera 10 is operating underwater can be turned off to save power in the underwater mode 320.
When the digital camera 10 is operating in the underwater mode 320, a select underwater color transform step 345 is used to select a color transform 340. The color transform 340 selected when the digital camera 10 is being operated in the underwater mode 320 is used to adjust the color reproduction of captured digital images to account for the characteristics of the underwater photography environment. For example, digital images captured underwater tend to be reproduced with a cyan color cast if a normal color transform is applied. Underwater color transforms that are selected when the digital camera 10 is operating in the underwater mode 320 can be designed to remove the cyan color cast.
The selected color transform 340 can include the transforms used in both the color correction step 125 (
In one embodiment of the present invention the select underwater color transform step 345 selects an underwater color transform to use in place of a normal color transform. There are many different forms of color transforms 340 known in the art that can be used to adjust the color reproduction characteristics of a digital image. Typically, the selected color transform 340 is comprised of a sequence of one or more color transformation elements such as color correction matrices, one-dimensional look-up tables and three-dimensional look-up tables, as described earlier in reference to
In an alternate embodiment, rather than replacing the normal color transform, an additional color transformation element can be combined with the normal color transform, being applied either before or after the normal color transform. For example, a set of one-dimensional look-up tables can be used to adjust the color balance in order to remove the cyan cast associated with an underwater scene providing balanced digital image data. Then the normal color transform can be applied to process the balanced digital image data.
In another embodiment, the color reproduction is controlled by adjusting one or more color controls associated with the image sensor. For example, the integration times provided by timing generator 12 (see
In some embodiments, the underwater color transform selected for the underwater mode 320 may be designed to only partially correct for the red-light attenuation induced by the underwater conditions. This can impart a nominal, but aesthetically pleasing, cyan color cast to the recorded images that many photographers find preferable to evoke a visual impression of underwater conditions. This is analogous to the fact that many photographers prefer to retain a slight red-yellow color cast for images captured under tungsten illumination. In some embodiments, a user control 34 can be provided to allow the user to select between a full-correction underwater mode and a partial correction underwater mode according to personal preference.
As will be discussed later, in a preferred embodiment of the present invention, the select underwater color transform step 345 selects the color transform 340 responsive to the sensed pressure 305. Optionally, the select underwater color transform step 345 may also determine the color transform 340 responsive to an object distance 250 to an object being photographed and a tilt angle 350 determined using the tilt sensor 42. An underwater mode setting 352 can also be used to control the select underwater color transform step 345. For example, the digital camera 10 may be provided with user controls 34 (
In an alternate embodiment of the present invention, a single underwater color transform is provided for use with the underwater mode 320 independent of the pressure 305, object distance 250, tilt angle 350 and underwater mode setting 352. The single underwater color transform provided in this embodiment can be optimized to compensate for a typical depth (e.g., 1 meter) and a typical distance (e.g., 2 meters).
If the underwater test 310 determines that the digital camera 10 is not being operated underwater, a set normal mode step 325 is used to set the camera to operate in a normal mode 330. In this case, a select normal color transform step 335 is used to select the color transform 340. In some embodiments a single normal color transform is provided for use whenever the digital camera 10 is not being operated underwater. In alternate embodiments, a variety of color transforms can be provided that are automatically selected according to detected photography conditions or user controls 34. For example, different normal color transforms can be selected responsive to a detected illumination color temperature, or according to a selected photography mode (e.g., landscape mode, portrait mode or sunset mode).
The digital camera 10 has an image capture button 290 (
A store digital image step 385 stores the corrected digital image 370 in a digital image file, producing a digital image file 180 described earlier in reference to
Standard digital image filed formats and digital video file formats generally support storing various pieces of metadata 170 (
In one embodiment, the underwater metadata 380 is a simple Boolean value indicating whether the digital image was captured using in an underwater mode 320 or a normal mode 330. In other embodiments, the underwater metadata 380 can include additional information such as the pressure 305, or the camera depth 260 (
The underwater metadata 380 can be used for a variety of purposes. For example, a collection of digital image files 180 can contain some digital images captured underwater, and others captured in air. A user may desire to search the collection of digital image files 180 to quickly find the digital images captured underwater. The underwater metadata 380 provides a convenient means for identifying the digital images captured underwater. Another example of how the underwater metadata 380 can be used would be to control the behavior of image processing algorithms applied at a later time on a host computer system. Those skilled in the art will recognize that the underwater metadata 380 can be used for a variety of other purposes.
In a preferred embodiment of the present invention the apply color transform step 365 is applied using the processor 20 (
The watertight housing 280 (
The underwater test 310 determines whether the digital camera 10 is being operated underwater responsive to the pressure 305 as has been discussed above with respect to
If the warning pressure test 405 determines that the pressure 305 is greater than or equal to the warning pressure PW, then a critical pressure test 415 is used to compare the determined pressure 305 to a predetermined critical pressure PC. If the pressure 305 is less than the critical pressure PC, a provide user warning step 425 is used to provide a warning to the photographer 210 that he is approaching a dangerous depth. The warning can be provided using any means known in the art. In one embodiment, the warning is provided to the photographer 210 by displaying a message or icon on a display screen such as the image display 32 (
If the critical pressure test 415 determines that the pressure 305 is greater than or equal to the critical pressure PC, then a power down camera step 420 is used to power down the camera to reduce the chances that the electronic camera components are damaged if water leaks into the watertight housing 280 (
In an alternate embodiment, the warning pressure test 405 and the critical pressure test 415 can be used to evaluate the camera depth 260 (
The amount of underwater color correction appropriate to produce a pleasing image will generally be a function of the total path length that the light must travel through the water before reaching the digital camera 10. For an overhead light source, the total water path length is given by:
D
T
=D
O
+d
O (9)
where DT is the total water path length, DO is the object distance 250 and dO is the object depth 255.
In a preferred embodiment of the present invention, the digital camera 10 includes an autofocus system which automatically estimates the object distance 250 and sets the focus of the lens 4 accordingly, as described earlier in reference to
D
O
=D
A
·n
w (10)
where DA is the apparent object distance determined assuming an air environment and nw is the index of refraction of the water (typically nw≈1.33).
In an alternate embodiment, a means for manually determining the object distance 250 can be provided. For example, a manual focus system can be provided to enable the photographer 210 to select a focus position. The object distance 250 can then be determined from the selected focus position. In another embodiment, a rough estimate of the object distance 250 can be determined by whether or not the photographer has selected a macro photography mode. In yet another embodiment, the user can be provided with a user interface that allows the user to preview the color reproduction characteristics that would result from using different object distances and to select the object distance 250 that produces the most pleasing color reproduction characteristics.
Generally, the object depth 255 will not be directly known. However, a reasonable approximation in many cases is to assume that the object depth 255 is equivalent to the camera depth 260, which can be determined using the pressure sensor 25. This assumption is valid when the digital camera 10 is oriented horizontally. In this case, the total water path length DT can be approximated as:
DT≈DO+dC (11)
where dC is the camera depth 260. An even better estimate of the total water path length DT can be determined if the digital camera 10 includes a tilt sensor 42 (
D
T
=D
O(1−sin θT)+dC (12)
The above calculations for the total water path length DT make the assumption that the light source is directly overhead so that the distance that the light travels through the water before it strikes the object is given by the object depth 255. For cases where the illumination is provided by direct sunlight, a more accurate estimate can be obtained by accounting for the solar angle θS (
D
T
=D
O(1−sin θT/cos θS)+dC/cos θS (13)
Note that for cases where the sky is covered with clouds, the illumination will be diffuse and will not be incident on the subject at a particular solar angle θS. For this reason, it may not always be desirable to include the solar angle factor even if the means is available to determine its value. In some embodiments, a user control 34 can be provided to indicate whether the illumination is direct sunlight or diffuse illumination.
In some embodiments, the digital camera 10 includes a flash 2 that can be used to illuminate the scene during image capture. In cases where the flash 2 is used to illuminate an underwater scene, and where the flash 2 is the dominant light source, the total water path length DT can be determined by doubling the object distance 250 since the light will travel from the digital camera 10 to the object and back again:
DT=2DO (14)
In some embodiment of the present invention, the underwater color transform selected when the digital camera 10 is operating in the underwater mode 320 is a function of the total water path length DT. The principal effect that the water has on the captured digital image is to attenuate light at longer visible wavelengths (e.g., red light) more strongly than light at shorter visible wavelengths (e.g., green and blue light). One way to compensate for the effect of this attenuation is to apply different gain factors to the each of the color channels of the digital image data 360.
There are several different places in the imaging chain of the digital camera 10 where an underwater color transform incorporating such gain factors can be applied to provide the desired underwater color reproduction. For example, color controls associated with the image sensor 14, such as integration times associated with each color channel of the image sensor 14 can be controlled to apply the appropriate gain factors. Alternatively, analog or digital gain factors, can be applied directly to linear signals obtained from the image sensor 14. In other embodiments, the gain factors can be incorporated into the white balance step 95 or the color correction step 125 in the image processing path of
G
R
=G
R3
(D
/3.0)=2.0(D
G
G
=G
G3
(D
/3.0)=1.2(D
G
B
=G
B3
(D
/3.0)=1.0(D
where DT is the total water path length in meters, GR, GG and GB are the gain factors for the red, green and blue color channels, respectively, and GR3=2.0, GG3=1.2 and GB3=1.0 are the gain factors for the red, green and blue color channels appropriate a total water path length of 3 meters, respectively.
The gain factor curves shown in
In some embodiments, user controls 34 can be used to select between different underwater modes corresponding to different water types (e.g., fresh water mode, salt water mode or swimming pool mode). In this case, different gain factor curves could be associated with each of the different underwater modes. Alternatively, a single underwater mode can be provided which uses gain factor curves associated with nominal underwater photography conditions. In this case, the differences in the water characteristics would show up as differences in the resulting color reproduction.
For the case where the digital camera 10 includes a geographic location sensing means such as a GPS sensor, a sensed geographic location can be determined when the camera is being operated in the underwater mode and the sensed geographic location can be compared to a geographic database to determine a body of water where the digital camera 10 is being operated. A particular underwater mode can then be selected accordingly. For example, if the sensed geographic location corresponds to a location in the Atlantic Ocean off the coast of Florida, the salt water mode can be selected, or if the sensed geographic location corresponds to a location in Lake Ontario then a fresh water mode can be selected. If the sensed geographic location does not correspond to a known body of water in the geographic database, it can be generally be assumed that the camera is being used in a swimming pool and the swimming pool mode can be selected.
In other embodiments, more complex color transform modifications can be associated with the underwater mode 320. For example, custom color correction matrices can be determined for different water conditions to optimize the color reproduction accordingly. The custom color correction matrices can be determined by photographing test targets having a series of different color patches and using a mathematical regression method to determine the matrix coefficients for the custom color correction matrix that will provide color reproduction matching a specified aim. In other embodiments, the underwater color transforms can be implemented using three-dimensional look-up tables which provide additional degrees of freedom for customizing the color reproduction. Methods for forming color transforms using three-dimensional look-up tables are well-known to those of ordinary skill in the art.
In some embodiments, the tone scale correction step 135 can also be adjusted for images capture in the underwater mode 320. Underwater photographs tend to suffer from higher flare levels associated with scattering of light by the water, or by particulate matter suspended in the water. This can result in visibly lightened shadow areas in underwater images. To compensate for this, a flare correction can be built into the tone scale function applied in the tone scale correction step 135. In some embodiments, the flare correction can be implemented by subtracting a constant flare value representative of the flare level from linear signal values for each of the color channels. In general, it will be appropriate to use different flare values for each of the color channels due to the fact that the scattering characteristics of the water may vary as a function of wavelength. Other types of tone scale adjustments can also be provided for use with the underwater mode 320. For example, a higher contrast tone scale correction curve can be used to provide images with higher visual impact.
In some embodiments other aspects of the color reproduction can be adjusted for images captured in the underwater mode 320. For example, a saturation adjustment can also be provided in the underwater mode. One way to implement such a saturation adjustment is to modify the coefficients of the color correction matrix as was shown in Eq. (2). Using a color correction matrix that incorporates a saturation boost may be desirable to enhance the colorfulness of objects such as tropical fish typically encountered in underwater images.
In some embodiments, the digital camera 10 has a flash 2 having an adjustable correlated color temperature as mentioned earlier with respect to
In addition to adjusting the color reproduction characteristics of the digital image data 360 (
For example, underwater photographs tend to be a little less sharp than photographs captured in air due to the light scattering properties of the water. Therefore, it can be advantageous to adjust a degree of sharpening applied during the image sharpening step 145 (
Typically, adjusting the underwater color transforms selected for the underwater mode 320 will involve amplifying a red color channel of the captured digital image to account for the fact that the water tends to filter out the red light as has been discussed with reference to
The amount of spatial noise in an underwater photograph is often larger than for a photograph captured in a normal mode due to the presence of particles in the water, as well as the increased amplification of the red color channel. It can therefore be beneficial to adjust a degree of noise reduction applied in the noise reduction step 105 responsive to whether the digital camera is being operated in an underwater mode 320 (
In an alternate embodiment of the present invention, the digital camera 10 does not include a pressure sensor 25 (
In some embodiments, the photographer 210 uses the digital camera 10 of the present invention to capture digital still images. In other embodiments, the digital camera 10 of the present invention is a digital video camera, or is a digital still camera that also incorporates a video capture mode (i.e. “movie mode”). When the present invention is used in the process of capturing digital video images, it may be desirable to modify the photography mode during the capture of a video clip. For example, the photographer may start filming while he is above water, but may continue filming while he dives into the water. In this case, the digital camera 10 can automatically change to an underwater photography mode when it senses that it is underwater. Similarly, if the photographer pans the camera to capture images of objects at different object distances, or moves to a different depth, the underwater color transform can be adjusted accordingly as was described above with reference to
The invention has been described in detail with particular reference to certain preferred embodiments thereof, but it will be understood that variations and modifications can be effected within the spirit and scope of the invention.