This application is based on and claims priority under 35 U.S.C. 119 to Korean Patent Application No. 10-2018-0092478 filed on Aug. 8, 2018, the disclosure of which is herein incorporated by reference in its entireties.
Various embodiments of the disclosure relate to a method and apparatus capable of improving a noise difference between a foreground region on which correction has been processed and a background region to which a bokeh effect has been applied within an image.
With the development of the digital technology, a variety of types of electronic devices, such as a mobile communication terminal, a personal digital assistant (PDA), an electronic organizer, a smartphone, a table personal computer (PC), and a wearable device, are widely used. A hardware part and/or software part of such an electronic device continues to be improved in order to support and enhance its function.
For example, in the electronic device, camera performance (e.g., a picture element, a wide angle, telephoto, and an optical zoom) in terms of hardware is improved based on user needs, and a technology for correcting (or improving) an image in terms of software is improved. That is, the electronic device adopts an image correction technology as an element to supplement hardware camera performance. Furthermore, a user enjoys culture for communicating with other people through online communities, and thus uploads an image (e.g., a photo or a moving image), including his or her figure, on an online community. In this case, the user corrects the image using various image correction technologies in order to express his or her figure in the image more sharply and beautifully or to express his or her unique figure different from other people.
A bokeh effect, that is, one of image correction technologies, is to divide one image into a foreground region (e.g., the subject for photography (or user)) and a background region (e.g., regions except the subject for photography) and to blur only the background region. In this case, an electronic device may perform image correction processing on the foreground region while applying a bokeh effect to the background region. The electronic device may have a noise difference between the corrected foreground region and the background region to which the bokeh effect has been applied because noise is removed upon performing the image correction. When a great noise difference occurs, there is a problem in that image quality is degraded.
Various embodiments may disclose a method and apparatus capable of improving a noise difference between a foreground region on which correction has been processed and a background region to which a bokeh effect has been applied within an image.
Various embodiments may disclose a method and apparatus capable of reducing a noise difference between a first region and second region having different depth levels in an image by applying a noise pattern, corresponding to the first region within the image, to the second region to which a bokeh effect has been applied.
According to an embodiment of the disclosure, an electronic device includes at least one camera, a memory, and a processor. The processor may be configured to obtain at least one image corresponding to one or more external objects using the at least one camera, identify depth information on the one or more external objects using the at least one image, identify a first region, corresponding to a first external object having a first depth level related to the depth information, and a second region, corresponding to a second external object having a second depth level different from the first depth level, in the at least one image at least based on the depth information, generate a first noise pattern by detecting noise included in the first region, perform bokeh processing on at least part of the second region, and generate a corrected image in which the first noise pattern has been at least incorporated into at least part of the bokeh-processed second region.
According to an embodiment of the disclosure, an operating method of an electronic device may include obtaining at least one image corresponding to one or more external objects using at least one camera of the electronic device, identifying depth information on the one or more external objects using the at least one image, identifying a first region, corresponding to a first external object having a first depth level related to the depth information, and a second region, corresponding to a second external object having a second depth level different from the first depth level, in the at least one image at least based on the depth information, generating a first noise pattern by detecting noise included in the first region, performing bokeh processing on at least part of the second region, and generating a corrected image in which the first noise pattern has been at least incorporated into at least part of the bokeh-processed second region.
According to an embodiment of the disclosure, an electronic device includes at least one camera, a memory, and a processor. The processor may be configured to split an image into a first region corresponding to a first object having a first depth level and a second region corresponding to a second object having a second depth level different from the first depth level, generate a first noise pattern by detecting noise distributed in the first region, generate a second noise pattern by detecting noise distributed in the second region, perform bokeh processing on at least part of the second region, and generate a corrected image by incorporating the first noise pattern or the second noise pattern into the bokeh-processed second region.
According to various embodiments, a noise difference between a foreground region on which correction processing has been performed and a background region to which a bokeh effect has been applied within an image can be improved.
According to various embodiments, a noise difference between a first region and second region having different depth levels within an image can be reduced by applying a noise pattern, corresponding to the first region within the image, to the second region to which a bokeh effect has been applied, thereby being capable of improving the image.
According to various embodiments, a sense of difference attributable to noise within an image can be reduced by applying a first noise pattern, corresponding to a first region within the image, to a first region and applying a second noise pattern, corresponding to a second region, to the second region, after a bokeh effect is applied to the second region within the image.
According to various embodiments, a sense of difference between a first region and a second region can be reduced by applying a bokeh effect to the second region within the image and then applying a third noise pattern to the first region and the second region within the image.
According to various embodiments, an image can be improved by applying a first split noise pattern to a first region and a second split noise pattern to a second region within the image, after a bokeh effect is applied to the second region within the image.
Before undertaking the DETAILED DESCRIPTION below, it may be advantageous to set forth definitions of certain words and phrases used throughout this patent document: the terms “include” and “comprise,” as well as derivatives thereof, mean inclusion without limitation; the term “or,” is inclusive, meaning and/or; the phrases “associated with” and “associated therewith,” as well as derivatives thereof, may mean to include, be included within, interconnect with, contain, be contained within, connect to or with, couple to or with, be communicable with, cooperate with, interleave, juxtapose, be proximate to, be bound to or with, have, have a property of, or the like; and the term “controller” means any device, system or part thereof that controls at least one operation, such a device may be implemented in hardware, firmware or software, or some combination of at least two of the same. It should be noted that the functionality associated with any particular controller may be centralized or distributed, whether locally or remotely.
Moreover, various functions described below can be implemented or supported by one or more computer programs, each of which is formed from computer readable program code and embodied in a computer readable medium. The terms “application” and “program” refer to one or more computer programs, software components, sets of instructions, procedures, functions, objects, classes, instances, related data, or a portion thereof adapted for implementation in a suitable computer readable program code. The phrase “computer readable program code” includes any type of computer code, including source code, object code, and executable code. The phrase “computer readable medium” includes any type of medium capable of being accessed by a computer, such as read only memory (ROM), random access memory (RAM), a hard disk drive, a compact disc (CD), a digital video disc (DVD), or any other type of memory. A “non-transitory” computer readable medium excludes wired, wireless, optical, or other communication links that transport transitory electrical or other signals. A non-transitory computer readable medium includes media where data can be permanently stored and media where data can be stored and later overwritten, such as a rewritable optical disc or an erasable memory device.
Definitions for certain words and phrases are provided throughout this patent document, those of ordinary skill in the art should understand that in many, if not most instances, such definitions apply to prior, as well as future uses of such defined words and phrases.
For a more complete understanding of the present disclosure and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, in which like reference numerals represent like parts:
The electronic device according to various embodiments may be one of various types of electronic devices. The electronic devices may include, for example, a portable communication device (e.g., a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. According to an embodiment of the disclosure, the electronic devices are not limited to those described above.
It should be appreciated that various embodiments of the present disclosure and the terms used therein are not intended to limit the technological features set forth herein to particular embodiments and include various changes, equivalents, or replacements for a corresponding embodiment. With regard to the description of the drawings, similar reference numerals may be used to refer to similar or related elements. It is to be understood that a singular form of a noun corresponding to an item may include one or more of the things, unless the relevant context clearly indicates otherwise. As used herein, each of such phrases as “A or B,” “at least one of A and B,” “at least one of A or B,” “A, B, or C,” “at least one of A, B, and C,” and “at least one of A, B, or C,” may include all possible combinations of the items enumerated together in a corresponding one of the phrases. As used herein, such terms as “1st” and “2nd,” or “first” and “second” may be used to simply distinguish a corresponding component from another, and does not limit the components in other aspect (e.g., importance or order). It is to be understood that if an element (e.g., a first element) is referred to, with or without the term “operatively” or “communicatively”, as “coupled with,” “coupled to,” “connected with,” or “connected to” another element (e.g., a second element), it means that the element may be coupled with the other element directly (e.g., wiredly), wirelessly, or via a third element.
As used herein, the term “module” may include a unit implemented in hardware, software, or firmware, and may interchangeably be used with other terms, for example, “logic,” “logic block,” “part,” or “circuitry”. A module may be a single integral component, or a minimum unit or part thereof, adapted to perform one or more functions. For example, according to an embodiment, the module may be implemented in a form of an application-specific integrated circuit (ASIC).
Various embodiments as set forth herein may be implemented as software (e.g., the program 140) including one or more instructions that are stored in a storage medium (e.g., internal memory 136 or external memory 138) that is readable by a machine (e.g., the electronic device 101). For example, a processor (e.g., the processor 120) of the machine (e.g., the electronic device 101) may invoke at least one of the one or more instructions stored in the storage medium, and execute it, with or without using one or more other components under the control of the processor. This allows the machine to be operated to perform at least one function according to the at least one instruction invoked. The one or more instructions may include a code generated by a complier or a code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Wherein, the term “non-transitory” simply means that the storage medium is a tangible device, and does not include a signal (e.g., an electromagnetic wave), but this term does not differentiate between where data is semi-permanently stored in the storage medium and where the data is temporarily stored in the storage medium.
According to an embodiment, a method according to various embodiments of the disclosure may be included and provided in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., compact disc read only memory (CD-ROM)), or be distributed (e.g., downloaded or uploaded) online via an application store (e.g., Play Store™), or between two user devices (e.g., smart phones) directly. If distributed online, at least part of the computer program product may be temporarily generated or at least temporarily stored in the machine-readable storage medium, such as memory of the manufacturer's server, a server of the application store, or a relay server.
According to various embodiments, each component (e.g., a module or a program) of the above-described components may include a single entity or multiple entities. According to various embodiments, one or more of the above-described components may be omitted, or one or more other components may be added. Alternatively or additionally, a plurality of components (e.g., modules or programs) may be integrated into a single component. In such a case, according to various embodiments, the integrated component may still perform one or more functions of each of the plurality of components in the same or similar manner as they are performed by a corresponding one of the plurality of components before the integration. According to various embodiments, operations performed by the module, the program, or another component may be carried out sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations may be executed in a different order or omitted, or one or more other operations may be added.
Referring to
The processor 120 may execute, for example, software (e.g., a program 140) to control at least one other component (e.g., a hardware or software component) of the electronic device 101 coupled with the processor 120, and may perform various data processing or computation. According to one embodiment, as at least part of the data processing or computation, the processor 120 may load a command or data received from another component (e.g., the sensor module 176 or the communication module 190) in volatile memory 132, process the command or the data stored in the volatile memory 132, and store resulting data in non-volatile memory 134. According to an embodiment, the processor 120 may include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)), and an auxiliary processor 123 (e.g., a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is operable independently from, or in conjunction with, the main processor 121. Additionally or alternatively, the auxiliary processor 123 may be adapted to consume less power than the main processor 121, or to be specific to a specified function. The auxiliary processor 123 may be implemented as separate from, or as part of the main processor 121.
The auxiliary processor 123 may control at least some of functions or states related to at least one component (e.g., the display device 160, the sensor module 176, or the communication module 190) among the components of the electronic device 101, instead of the main processor 121 while the main processor 121 is in an inactive (e.g., sleep) state, or together with the main processor 121 while the main processor 121 is in an active state (e.g., executing an application). According to an embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., the camera module 180 or the communication module 190) functionally related to the auxiliary processor 123.
The memory 130 may store various data used by at least one component (e.g., the processor 120 or the sensor module 176) of the electronic device 101. The various data may include, for example, software (e.g., the program 140) and input data or output data for a command related thereto. The memory 130 may include the volatile memory 132 or the non-volatile memory 134.
The program 140 may be stored in the memory 130 as software, and may include, for example, an operating system (OS) 142, middleware 144, or an application 146.
The input device 150 may receive a command or data to be used by other component (e.g., the processor 120) of the electronic device 101, from the outside (e.g., a user) of the electronic device 101. The input device 150 may include, for example, a microphone, a mouse, or a keyboard.
The sound output device 155 may output sound signals to the outside of the electronic device 101. The sound output device 155 may include, for example, a speaker or a receiver. The speaker may be used for general purposes, such as playing multimedia or playing record, and the receiver may be used for an incoming calls. According to an embodiment, the receiver may be implemented as separate from, or as part of the speaker.
The display device 160 may visually provide information to the outside (e.g., a user) of the electronic device 101. The display device 160 may include, for example, a display, a hologram device, or a projector and control circuitry to control a corresponding one of the display, hologram device, and projector. According to an embodiment, the display device 160 may include touch circuitry adapted to detect a touch, or sensor circuitry (e.g., a pressure sensor) adapted to measure the intensity of force incurred by the touch.
The audio module 170 may convert a sound into an electrical signal and vice versa. According to an embodiment, the audio module 170 may obtain the sound via the input device 150, or output the sound via the sound output device 155 or a headphone of an external electronic device (e.g., an electronic device 102) directly (e.g., wiredly) or wirelessly coupled with the electronic device 101.
The sensor module 176 may detect an operational state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a state of a user) external to the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.
The interface 177 may support one or more specified protocols to be used for the electronic device 101 to be coupled with the external electronic device (e.g., the electronic device 102) directly (e.g., wiredly) or wirelessly. According to an embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.
A connecting terminal 178 may include a connector via which the electronic device 101 may be physically connected with the external electronic device (e.g., the electronic device 102). According to an embodiment, the connecting terminal 178 may include, for example, a HDMI connector, a USB connector, a SD card connector, or an audio connector (e.g., a headphone connector),
The haptic module 179 may convert an electrical signal into a mechanical stimulus (e.g., a vibration or a movement) or electrical stimulus which may be recognized by a user via his tactile sensation or kinesthetic sensation. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electric stimulator.
The camera module 180 may capture a still image or moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
The power management module 188 may manage power supplied to the electronic device 101. According to one embodiment, the power management module 188 may be implemented as at least part of, for example, a power management integrated circuit (PMIC).
The battery 189 may supply power to at least one component of the electronic device 101. According to an embodiment, the battery 189 may include, for example, a primary cell which is not rechargeable, a secondary cell which is rechargeable, or a fuel cell.
The communication module 190 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and the external electronic device (e.g., the electronic device 102, the electronic device 104, or the server 108) and performing communication via the established communication channel. The communication module 190 may include one or more communication processors that are operable independently from the processor 120 (e.g., the application processor (AP)) and supports a direct (e.g., wired) communication or a wireless communication. According to an embodiment, the communication module 190 may include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules may communicate with the external electronic device via the first network 198 (e.g., a short-range communication network, such as Bluetooth™, wireless-fidelity (Wi-Fi) direct, or infrared data association (IrDA)) or the second network 199 (e.g., a long-range communication network, such as a cellular network, the Internet, or a computer network (e.g., LAN or wide area network (WAN)). These various types of communication modules may be implemented as a single component (e.g., a single chip), or may be implemented as multi components (e.g., multi chips) separate from each other. The wireless communication module 192 may identify and authenticate the electronic device 101 in a communication network, such as the first network 198 or the second network 199, using subscriber information (e.g., international mobile subscriber identity (IMSI)) stored in the subscriber identification module 196.
The antenna module 197 may transmit or receive a signal or power to or from the outside (e.g., the external electronic device) of the electronic device 101. According to an embodiment, the antenna module 197 may include one or more antennas, and, therefrom, at least one antenna appropriate for a communication scheme used in the communication network, such as the first network 198 or the second network 199, may be selected, for example, by the communication module 190 (e.g., the wireless communication module 192). The signal or the power may then be transmitted or received between the communication module 190 and the external electronic device via the selected at least one antenna.
At least some of the above-described components may be coupled mutually and communicate signals (e.g., commands or data) therebetween via an inter-peripheral communication scheme (e.g., a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)).
According to an embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 via the server 108 coupled with the second network 199. Each of the electronic devices 102 and 104 may be a device of a same type as, or a different type, from the electronic device 101. According to an embodiment, all or some of operations to be executed at the electronic device 101 may be executed at one or more of the external electronic devices 102, 104, or 108. For example, if the electronic device 101 should perform a function or a service automatically, or in response to a request from a user or another device, the electronic device 101, instead of, or in addition to, executing the function or the service, may request the one or more external electronic devices to perform at least part of the function or the service. The one or more external electronic devices receiving the request may perform the at least part of the function or the service requested, or an additional function or an additional service related to the request, and transfer an outcome of the performing to the electronic device 101. The electronic device 101 may provide the outcome, with or without further processing of the outcome, as at least part of a reply to the request. To that end, a cloud computing, distributed computing, or client-server computing technology may be used, for example.
Referring to
The flash 220 may emit light that is used to reinforce light reflected from an object. According to an embodiment, the flash 220 may include one or more light emitting diodes (LEDs) (e.g., a red-green-blue (RGB) LED, a white LED, an infrared (IR) LED, or an ultraviolet (UV) LED) or a xenon lamp. The image sensor 230 may obtain an image corresponding to an object by converting light emitted or reflected from the object and transmitted via the lens assembly 210 into an electrical signal. According to an embodiment, the image sensor 230 may include one selected from image sensors having different attributes, such as a RGB sensor, a black-and-white (BW) sensor, an IR sensor, or a UV sensor, a plurality of image sensors having the same attribute, or a plurality of image sensors having different attributes. Each image sensor included in the image sensor 230 may be implemented using, for example, a charged coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.
The image stabilizer 240 may move the image sensor 230 or at least one lens included in the lens assembly 210 in a particular direction, or control an operational attribute (e.g., adjust the read-out timing) of the image sensor 230 in response to the movement of the camera module 180 or the electronic device 101 including the camera module 180. This allows compensating for at least part of a negative effect (e.g., image blurring) by the movement on an image being captured. According to an embodiment, the image stabilizer 240 may sense such a movement by the camera module 180 or the electronic device 101 using a gyro sensor (not shown) or an acceleration sensor (not shown) disposed inside or outside the camera module 180. According to an embodiment, the image stabilizer 240 may be implemented, for example, as an optical image stabilizer.
The memory 250 may store, at least temporarily, at least part of an image obtained via the image sensor 230 for a subsequent image processing task. For example, if image capturing is delayed due to shutter lag or multiple images are quickly captured, a raw image obtained (e.g., a Bayer-patterned image, a high-resolution image) may be stored in the memory 250, and its corresponding copy image (e.g., a low-resolution image) may be previewed via the display device 160. Thereafter, if a specified condition is met (e.g., by a user's input or system command), at least part of the raw image stored in the memory 250 may be obtained and processed, for example, by the image signal processor 260. According to an embodiment, the memory 250 may be configured as at least part of the memory 130 or as a separate memory that is operated independently from the memory 130.
The image signal processor 260 may perform one or more image processing with respect to an image obtained via the image sensor 230 or an image stored in the memory 250. The one or more image processing may include, for example, depth map generation, three-dimensional (3D) modeling, panorama generation, feature point extraction, image synthesizing, or image compensation (e.g., noise reduction, resolution adjustment, brightness adjustment, blurring, sharpening, or softening). Additionally or alternatively, the image signal processor 260 may perform control (e.g., exposure time control or read-out timing control) with respect to at least one (e.g., the image sensor 230) of the components included in the camera module 180. An image processed by the image signal processor 260 may be stored back in the memory 250 for further processing, or may be provided to an external component (e.g., the memory 130, the display device 160, the electronic device 102, the electronic device 104, or the server 108) outside the camera module 180. According to an embodiment, the image signal processor 260 may be configured as at least part of the processor 120, or as a separate processor that is operated independently from the processor 120. If the image signal processor 260 is configured as a separate processor from the processor 120, at least one image processed by the image signal processor 260 may be displayed, by the processor 120, via the display device 160 as it is or after being further processed.
According to an embodiment, the electronic device 101 may include a plurality of camera modules 180 having different attributes or functions. In such a case, at least one of the plurality of camera modules 180 may form, for example, a wide-angle camera and at least another of the plurality of camera modules 180 may form a telephoto camera. Similarly, at least one of the plurality of camera modules 180 may form, for example, a front camera and at least another of the plurality of camera modules 180 may form a rear camera.
Referring to
The image acquisition module 310 may obtain an image captured by the camera (e.g., the camera module 180 of
The depth information acquisition module 320 may obtain (or identify) depth information one or more external objects from the obtained image. The depth information (or depth map) is information indicative of the distance in the space, and may indicate perspective information of another point from one point of an image. For example, the depth information acquisition module 320 may obtain one or more images using a dual camera (e.g., the camera module 180 of
The region split module 330 may split the obtained image into at least two regions. The region split module 330 may detect an object (or external object) having different depth levels (or depth values) at least based on the depth information, and may split a region corresponding to the detected object. For example, the region split module 330 may split the region into a first region (e.g., foreground region), corresponding to a first external object having a first depth level, and a second region (e.g., background region), corresponding to a second external object having a second depth level different from the first depth level, using the depth information. The first external object may be an object (e.g., the subject for photography) located in a first parallax (or the first depth level) within the image. Furthermore, the second external object may be an object (e.g., an object other than the subject for photography) located in a second parallax (or the second depth level). That is, the first depth level may mean that an object is located in the space ahead of the second depth level within an image. For example, a user may be a first external object within an image including the user, and an object other than the user may be a second external object. A method of splitting an image into two region (or two depth levels) and improving the image is described below, but an image may be split into three or more regions and improved.
The noise control module 340 may detect first noise (or first noise pattern) included in the first region. The first noise pattern may mean information on noise distributed in the first region. The noise control module 340 may estimate (or detect) noise included in an image using a parameter estimation method or a non-parametric estimation method. For example, the parameter estimation method is a method of estimating noise using at least one of Gaussian noise, Rayleigh noise, Laplacian noise, gamma noise, exponential noise, uniform noise, or impulse (or salt-and-pepper) noise. For example, the noise control module 340 may estimate noise included in an image by detecting the mean and variation of the noise within the image using Gaussian noise. The non-parametric estimation method is a method of estimating noise by searching for or analyzing similar patches included in an image. The noise control module 340 according to various embodiments may estimate noise using the same method for the entire image (e.g., global noise estimation method) or may estimate noise for each region of an image (e.g., local noise estimation method). The noise control module 340 according to various embodiments may detect noise using a deep learning technology.
The noise control module 340 according to various embodiments may generate the first noise pattern using noise detected in the first region. The noise control module 340 according to various embodiments may split the first region, may detect noise for each split region (e.g., first partial region), and may generate a first split noise pattern using noise detected in each region. The noise control module 340 may detect second noise (or second noise pattern) included in the second region. The noise control module 340 may generate the second noise pattern using noise detected in the second region. The noise control module 340 according to various embodiments may split the second region, may detect noise for each split region (e.g., second partial region), and may generate a second split noise pattern using noise for each region.
The noise control module 340 may generate a corrected image by incorporating the first noise pattern into at least part of a bokeh-processed second region. In the corrected image, the first region may be a region on which image correction processing has been performed, and the second region may be a region into which a bokeh effect and a noise pattern have been incorporated. The noise control module 340 may improve an image by incorporating the first noise pattern into a bokeh-processed image. For example, the noise control module 340 may apply the first noise pattern to the entire bokeh-processed second region. The noise control module 340 may add noise, removed due to bokeh processing, to the second region by incorporating the first noise pattern into the bokeh-processed second region. In this case, the noise control module 340 may make identical the noise levels of the correction-processed first region and the bokeh-processed second region.
The noise control module 340 according to various embodiments may incorporate the first noise pattern into the correction-processed first region, and may incorporate the second noise pattern into the bokeh-processed second region. Alternatively, the noise control module 340 may incorporate the first split noise pattern into the correction-processed first region, and may incorporate the second split noise pattern into the bokeh-processed second region. The noise control module 340 according to various embodiments may determine whether to apply a noise pattern based on a configured condition (e.g., a degree of brightness of an image, a degree of correction of the image, a degree of bokeh processing). For example, the noise control module 340 may not apply a noise pattern to a bokeh-processed image, may apply a noise pattern to only part (e.g., second region) of an image, or may apply a noise pattern to the entire image, based on a configured condition.
The bokeh effect application module 350 may apply (or incorporate) a bokeh effect to the second region. The bokeh effect is also called out of focus, and may mean that a target (e.g., second external object) other than the subject for photography (e.g., first external object) seems to be blurred because the depth is shallow. That is, the bokeh effect application module 350 may perform bokeh processing or light drop bokeh on the second region (e.g., background). If a bokeh effect is applied to the second region, noise (or noise pattern) included (or distributed) the second region may also be removed. The bokeh effect application module 350 according to various embodiments may adjust a degree of bokeh processing, applied to the second region, based on a user input.
An electronic device (e.g., the electronic device 101 of
The processor may be configured to generate a second noise pattern by detecting noise included in the second region prior to the bokeh processing and to generate the corrected image by incorporating the first noise pattern into at least part of the first region and incorporating the second noise pattern into at least part of the bokeh-processed second region.
The processor may be configured to generate a third noise pattern using noise detected in the first region and noise detected in the second region before the bokeh processing is performed and to generate the corrected image by incorporating the third noise pattern into at least part of the first region or at least part of the bokeh-processed second region.
The processor may be configured to split the first region into a plurality of first partial regions, generate a first split noise pattern by detecting noise included in at least some of the first partial regions, split the second region prior to the bokeh processing into second partial regions, generate a second split noise pattern by detecting noise included in at least some of the second partial regions, and generate the corrected image by incorporating the first split noise pattern into at least part of the first region and incorporating the second split noise pattern into at least part of the bokeh-processed second region.
The processor may be configured to generate a third split noise pattern using noise detected in at least some of a plurality of first partial regions after the first region is split into the first partial regions and noise detected in at least some of second partial regions after the second region prior to the bokeh processing is split into the second partial regions, and to generate the corrected image by incorporating the third split noise pattern into at least part of the first region or at least part of the bokeh-processed second region.
In the corrected image, the first region may be configured as a region on which image correction processing has been performed. The second region may be configured as a region into which a bokeh effect and a noise pattern have been incorporated.
The processor may be configured to generate the corrected image by making different the degree that a noise pattern is incorporated based on a pre-configured (or pre-determined) condition.
The pre-configured condition may include at least one of a degree of brightness of the obtained image, a degree of correction of the obtained image, or a degree of bokeh processing. The processor may be configured to determine the degree that a noise pattern is incorporated based on at least one of the degree of brightness, the degree of correction, or the degree of bokeh processing.
An electronic device (e.g., the electronic device 101 of
The processor may be configured to determine whether the first noise pattern or the second noise pattern will be incorporated into the bokeh-processed second region based on brightness information included in the image.
The processor may be configured to generate a third noise pattern using noise detected in the first region and noise detected in the second region prior to the bokeh processing and to generate the corrected image by incorporating the third noise pattern into at least part of the first region or at least part of the bokeh-processed second region.
The processor may be configured to generate the corrected image by incorporating the first noise pattern into the first region and incorporating the second noise pattern into the bokeh-processed second region.
The processor may be configured to generate the corrected image by incorporating a first split noise pattern, generated by segmenting the first region, into the first region and incorporating a second split noise pattern, generated by segmenting the second region, into the second region.
The processor may be configured to adjust the degree that a noise pattern is incorporated based on a degree of brightness of the obtained image, a degree of correction of the obtained image, or the degree of bokeh processing.
Referring to
At operation 403, the processor 120 (e.g., the depth information acquisition module 320 of
At operation 405, the processor 120 (e.g., the region split module 330 of
At operation 407, the processor 120 (e.g., the noise control module 340 of
At operation 409, the processor 120 (e.g., the bokeh effect application module 350 of
At operation 411, the processor 120 (e.g., the noise control module 340 of
Referring to
Referring to
Referring to
At operation 703, the processor 120 (e.g., the bokeh effect application module 350 of
At operation 705, the processor 120 (e.g., the noise control module 340 of
Referring to
At operation 713, the processor 120 (e.g., the bokeh effect application module 350 of
At operation 715, the processor 120 (e.g., the noise control module 340 of
The processor 120 according to various embodiments may determine whether to apply different noise patterns (e.g., the first noise pattern and the second noise pattern) to the first region and the second region or whether to apply the same noise pattern (e.g., the third noise pattern) to the first region and the second region, based on based on at least one of a degree of brightness of the obtained image, a degree of correction of the obtained image, or a degree of the bokeh processing.
Referring to
For example, when the second region 815 has a larger size than the first region 813, image quality may seem to be degraded if the same noise pattern is applied to the entire second region 815. In this case, the processor 120 may split the second region 815 and generate a second split noise pattern using noise differently detected for each split region. After the processor 120 performs image correction processing on the first region 813 and applies a bokeh effect to the second region 815, it may incorporate the first noise pattern 817 into the first region 813 and incorporate the second noise pattern 820 into the second region 815.
Alternatively, the processor 120 may generate a third noise pattern using noise included in the first region 813 and noise included in the second region 815, may perform image correction processing on the first region 813, and may apply a bokeh effect to the second region 815. Next, the processor may apply the third noise pattern to the first region 813 and the second region 815. If the third noise pattern is applied to the first region 813 and the second region 815, a sense of difference at the boundary part of the first region 813 and the second region 815 can be reduced, compared to the case where different noise patterns are applied to the first region 813 and the second region 815.
Referring to
At operation 903, the processor 120 (e.g., the bokeh effect application module 350 of
At operation 905, the processor 120 (e.g., the noise control module 340 of
Some of the noise of the first region can be removed due to the image correction processing. As in the first region, some of the noise of the second region can be removed due to the bokeh effect. In order to apply natural image correction and a bokeh effect, the processor 120 may apply further segmented noise patterns to the first region and the second region, respectively. The processor 120 can reduce a noise difference between the first region and the second region by applying the first split noise pattern, removed due to the correction processing, to the first region and applying the second split noise pattern, removed due to the bokeh processing, to the second region.
The processor 120 according to various embodiments may generate a third split noise pattern using noise, detected in at least some of a plurality of first partial regions obtained by segmenting the first region into the first partial regions, and noise, detected in at least some of second partial regions obtained by segmenting the second region prior to the bokeh processing into the second partial regions. The processor 120 may generate the corrected image by incorporating the third split noise pattern into at least part of the first region or at least part of the bokeh-processed second region.
Referring to
The first split noise pattern 1017 may be generated in a form in which the first region 1013 is split into four first partial regions and a window in which different noise is distributed for each split first partial region is configured. The second split noise pattern 1020 may be generated in a form in which the second region 1015 is split into 12 second partial regions and a window in which different noise is distributed for each split second partial region is configured. The processor 120 can improve performance for image correction processing by incorporating noise differently detected for each region. After the processor 120 performs image correction processing on the first region 1013 and applies a bokeh effect to the second region 1015, the processor may incorporate the first split noise pattern 1017 into the first region 1013 and incorporate the second split noise pattern 1020 into the second region 1015.
Referring to
Referring to
At operation 1203, the processor 120 (e.g., the region split module 330 of
At operation 1205, the processor 120 may perform image correction processing on the first region. The image correction processing may mean processing for making vivid the subject for photography included in the first region or to brightly adjust brightness generally or locally. The processor 120 may perform image correction processing on only the first region of the image. Alternatively, in an embodiment, operation 1205 may be omitted.
At operation 1207, the processor 120 may determine whether to apply a noise effect. The processor 120 may determine whether to apply a noise effect based on a configured condition. The configured condition may include at least one of a degree of brightness of an image, a degree of correction of an image, or a degree of bokeh processing. For example, if brightness of an image is a reference value or more, noise is rarely present in the image. Alternatively, if image correction processing is largely performed on the first region, noise can be removed from the first region. Alternatively, if a bokeh effect has been too much applied to the second region, image quality may seem to be degraded if noise is applied to the second region. The processor 120 may perform operation 1209 if the noise effect is applied, and may perform operation 1217 if the noise effect is not applied.
If the noise effect is applied, at operation 1209, the processor 120 may determine a noise application method. For example, the processor 120 may determine the noise application method based on a degree of brightness of the image or a degree of correction of the image. For example, the processor 120 may determine a first noise application method when brightness of the image is a first reference value or more, may determine a second noise application method when brightness of the image is a second reference value or more, and may determine a third noise application method when brightness of the image is less than the second reference value. The first reference value (e.g., first brightness) may be higher than the second reference value (e.g., second brightness). For example, the processor 120 may determine a first noise application method when a degree of correction of the image is a first correction ratio or more, and may determine a second noise application method or a third noise application method when a degree of correction of the image is less than the first correction ratio.
At operation 1211, the processor 120 may generate a noise pattern according to the determined noise application method. For example, the processor 120 may generate a first noise pattern in accordance with the first region according to a first noise application method. The processor 120 may generate a first noise pattern in accordance with the first region and generate a second noise pattern in accordance with the second region, according to a second noise application method. Alternatively, the processor 120 may generate a third noise pattern in accordance with the first region and the second region according to a second noise application method. The processor 120 may generate a first split noise pattern in accordance with a first partial region, included in the first region, and generate a second split noise pattern in accordance with a second partial region, included in the second region, according to a third noise application method. Alternatively, the processor 120 may generate a third split noise pattern in accordance with the first region and the second region according to a third noise application method.
At operation 1213, the processor 120 (e.g., the bokeh effect application module 350 of
At operation 1215, the processor 120 (e.g., the noise control module 340 of
The processor 120 according to various embodiments may incorporate a noise pattern into at least part of the first region or the second region based on a degree of correction of an image performed on the first region or a degree of bokeh processing incorporated into the second region. For example, the processor 120 may incorporate a noise pattern into both the first region and the second region when a degree of correction of an image of the first region is great, and may incorporate a noise pattern into only the second region when a degree of correction of an image of the first region is small, and vice versa. Alternatively, the processor 120 may incorporate a noise pattern into both the first region and the second region when a degree of bokeh processing incorporated into the second region is great, and may incorporate a noise pattern into only the second region when a degree of bokeh processing incorporated into the second region is small, and vice versa.
The processor 120 according to various embodiments may control the degree that a noise pattern is incorporated based on a configured condition (e.g., a degree of brightness of the obtained image, a degree of correction of the obtained image, or a degree of bokeh processing). In general, if the noise pattern has been incorporated 100%, the processor may incorporate the noise pattern in less than 100% (e.g., 70%, 50%, 30%) based on the configured condition. For example, when brightness of an image is a first reference value or more, the processor may incorporate the degree that a noise pattern is incorporated, which is incorporated into the first region or the second region, small (e.g., less than 30%). When a degree of correction of an image of the first region is large (e.g., a first correction ratio or more), the processor may incorporate the degree that a noise pattern is incorporated, which is incorporated into the first region or the second region, small (e.g., less than 30%). Alternatively, when a degree of bokeh processing incorporated into the second region is large (e.g., a first bokeh processing ratio or more), the processor may incorporate the degree that a noise pattern is incorporated, which is incorporated into the first region or the second region, small (e.g., less than 50%).
If a noise effect is not applied, at operation 1217, the processor 120 (e.g., the bokeh effect application module 350 of
Referring to
If the configured condition corresponds to a first condition, at operation 1303, the processor 120 (e.g., the noise control module 340 of
At operation 1305, the processor 120 (e.g., the bokeh effect application module 350 of
At operation 1307, the processor 120 (e.g., the noise control module 340 of
If the configured condition corresponds to a second condition, at operation 1309, the processor 120 (e.g., the noise control module 340 of
At operation 1311, the processor 120 (e.g., the bokeh effect application module 350 of
At operation 1313, the processor 120 (e.g., the noise control module 340 of
If the configured condition corresponds to a third condition, at operation 1315, the processor 120 (e.g., the noise control module 340 of
For example, the processor 120 may perform operation 1303 when a degree of brightness of the image is less than a second reference value or a degree of correction of the image is less than a first correction ratio.
At operation 1317, the processor 120 (e.g., the bokeh effect application module 350 of
At operation 1319, the processor 120 (e.g., the noise control module 340 of
An operating method of an electronic device according to various embodiments of the disclosure may include an operation of obtaining at least one image corresponding to one or more external objects using at least one camera of the electronic device, an operation of identifying depth information on the one or more external objects using the at least one image, an operation of identifying a first region, corresponding to a first external object having a first depth level related to the depth information, and a second region, corresponding to a second external object having a second depth level different from the first depth level, in the at least one image at least based on the depth information, an operation of generating a first noise pattern by detecting noise included in the first region, an operation of performing bokeh processing on at least part of the second region, and an operation of generating a corrected image in which the first noise pattern has been at least incorporated into at least part of the bokeh-processed second region.
The method further includes an operation of generating a second noise pattern by detecting noise included in the second region prior to the bokeh processing. The operation of generating the corrected image may include an operation of generating the corrected image by incorporating the first noise pattern into at least part of the first region and incorporating the second noise pattern into at least part of the bokeh-processed second region.
The method further includes an operation of generating a third noise pattern using noise detected in the first region and noise detected in the second region prior to the bokeh processing. The operation of generating the corrected image may include an operation of generating the corrected image by incorporating the third noise pattern into at least part of the first region or at least part of the bokeh-processed second region.
The method further includes an operating of splitting the first region into a plurality of first partial regions and generating a first split noise pattern by detecting noise included in at least some of the first partial regions and an operating of splitting the second region prior to the bokeh processing into second partial regions and generating a second split noise pattern by detecting noise included in at least some of the second partial regions. The operation of generating the corrected image may include an operation of generating the corrected image by incorporating the first split noise pattern into at least part of the first region and incorporating the second split noise pattern into at least part of the bokeh-processed second region.
The operation of generating the corrected image may include an operation of generating the corrected image by making different a degree that a noise pattern is incorporated based on a pre-configured (or pre-determined) condition.
The pre-configured condition includes at least one of a degree of brightness of the obtained image, a degree of correction of the obtained image, or a degree of bokeh processing. The method may further include an operation of determining the degree that the noise pattern is incorporated based on at least one of the degree of brightness, the degree of correction, or the degree of bokeh processing.
Although the present disclosure has been described with various embodiments, various changes and modifications may be suggested to one skilled in the art. It is intended that the present disclosure encompass such changes and modifications as fall within the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2018-0092478 | Aug 2018 | KR | national |
Number | Name | Date | Kind |
---|---|---|---|
8290264 | Kim et al. | Oct 2012 | B2 |
20120007942 | Michrowski | Jan 2012 | A1 |
20140204111 | Vaidyanathan et al. | Jul 2014 | A1 |
20140211034 | Tanaka | Jul 2014 | A1 |
20150002545 | Webster | Jan 2015 | A1 |
20150356713 | Tanaka | Dec 2015 | A1 |
Number | Date | Country |
---|---|---|
2007-241424 | Sep 2007 | JP |
2007241424 | Sep 2007 | JP |
10-0829581 | May 2008 | KR |
10-2015-0086333 | Jul 2015 | KR |
20150086333 | Jul 2015 | KR |
Entry |
---|
ISA/KR, International Search Report and Written Opinion of the International Searching Authority, International Application No. PCT/KR2019/009690, dated Oct. 29, 2019, 8 pages. |
Number | Date | Country | |
---|---|---|---|
20200051218 A1 | Feb 2020 | US |