Electronic device for performing image correction and operation method therefor
The electronic device addresses image quality issues through a processor-connected camera module with motion sensors, using LSC tables to correct lens shading and VDIS for effective image stabilization, resulting in improved brightness and reduced shaking.
Patent Information
- Application Number
- PCT/KR2024/011318
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-19
- Filing Date
- 2024-08-01
- Publication Date
- 2025-02-06
AI Technical Summary
Existing electronic devices with cameras face challenges in producing high-quality images due to lens shading and image stabilization issues, such as darkening at the periphery and distortion from shaking, which current processing techniques struggle to fully address.
The electronic device employs a processor-connected camera module with motion sensors, applying gain values from LSC tables to correct lens shading and VDIS to stabilize images, with a two-step correction process involving initial and secondary LSC to balance brightness and remove shaking effects.
This approach significantly improves image quality by balancing brightness and reducing shaking, resulting in clearer and more stable images by compensating for lens shading and stabilization issues effectively.
Smart Images

Figure KR2024011318_06022025_PF_FP_ABST
Abstract
Description
Electronic device for performing image correction and method of operation thereof
[0001] Various embodiments of the present disclosure relate to an electronic device for performing image correction and a method of operating the same.
[0002] Electronic devices, including cameras, can process digital data acquired through an image sensor to produce enhanced images. Examples of various processing techniques used to enhance images include lens shading correction (LSC) and video digital image stabilization (VDIS).
[0003] Lens shading compensation compensates for the optical characteristics of lenses, which cause the edges of an image or video to darken. Specifically, lens shading compensation applies different gain values between the center and periphery of the image frame, thereby achieving overall balance within the image frame.
[0004] Video digital image stabilization (DIS) is designed to reduce distortion caused by shaking of an electronic device (e.g., a camera). Specifically, DIS determines a crop area within an image based on the electronic device's shake information and removes the periphery of the image frame to eliminate the area containing the shake.
[0005] An electronic device according to one embodiment may include a camera module including a lens assembly, a motion sensor for detecting movement of the electronic device, and at least one processor electrically connected to the camera module and the motion sensor. The at least one processor according to one embodiment may obtain a raw image including a plurality of pixels from the camera module, perform a first lens shading correction by applying a first LSC table to which first gain values corresponding to each of the plurality of pixels are assigned to the raw image, and generate a first corrected image in which video digital image stabilization (VDIS) correction is processed based on the movement of the electronic device. The at least one processor according to one embodiment may apply a second LSC table to which second gain values corresponding to at least some of the plurality of pixels are assigned to the first corrected image, and perform a second lens shading correction, and generate a second corrected image in which the second lens shading correction is processed.
[0006] An operating method of an electronic device according to one embodiment may include an operation of acquiring a raw image including a plurality of pixels from a camera module, an operation of performing a first lens shading correction by applying a first LSC table to which first gain values corresponding to each of the plurality of pixels are assigned to the raw image, and an operation of generating a first corrected image in which video digital image stabilization (VDIS) correction is processed based on a movement of the electronic device. An operating method of an electronic device according to one embodiment may include an operation of performing a second lens shading correction by applying a second LSC table to which second gain values corresponding to at least some of the plurality of pixels are assigned to the first corrected image, and an operation of generating a second corrected image in which the second lens shading correction is processed.
[0007] FIG. 1 is a block diagram of an electronic device within a network environment according to various embodiments.
[0008] FIG. 2 is a block diagram of a camera module according to various embodiments.
[0009] FIG. 3 is a drawing for explaining lens shading correction according to one embodiment.
[0010] FIG. 4 is a diagram for explaining video digital image stabilization correction according to one embodiment.
[0011] Figure 5 is a flowchart of a method of operating an electronic device according to one embodiment.
[0012] Figure 6 is a flowchart of a preprocessing process in a second lens shading correction according to one embodiment.
[0013] Figure 7 is a flowchart of a method of operating an electronic device according to one embodiment.
[0014] Figure 8 is a detailed flowchart of a second lens shading correction according to one embodiment.
[0015] FIG. 9 is a diagram for explaining the process of generating a second LSC table according to one embodiment.
[0016] FIG. 10 illustrates an example in which first lens shading correction, VDIS correction, and second lens shading correction are sequentially processed in an electronic device according to one embodiment.
[0017] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the attached drawings. The advantages and features of the present invention, and methods for achieving them, will become clear with reference to the embodiments described in detail below together with the attached drawings. However, the present invention is not limited to the embodiments disclosed below, but can be implemented in various different forms. These embodiments are provided only to ensure that the disclosure of the present invention is complete and to fully inform those skilled in the art of the scope of the invention, and the present invention is defined only by the scope of the claims. Like reference numerals refer to like elements throughout the specification.
[0018] Unless otherwise defined, all terms (including technical and scientific terms) used herein may be used in their common sense to those of ordinary skill in the art to which the present invention pertains. Furthermore, terms defined in commonly used dictionaries are not to be interpreted ideally or excessively unless explicitly and specifically defined otherwise. The terminology used herein is for the purpose of describing embodiments and is not intended to limit the present invention. In this specification, singular forms also include plural forms, unless specifically stated otherwise.
[0019] The terms "comprises" and / or "comprising" as used in the specification do not exclude the presence or addition of one or more other components, operations, operations and / or elements.
[0020] FIG. 1 is a block diagram of an electronic device (101) within a network environment (100) according to various embodiments. Referring to FIG. 1, in the network environment (100), the electronic device (101) may communicate with the electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with at least one of the electronic device (104) or the server (108) via a second network (199) (e.g., a long-range wireless communication network). In one embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to one embodiment, the electronic device (101) may include a processor (120), a memory (130), an input module (150), an audio output module (155), a display module (160), an audio module (170), a sensor module (176), an interface (177), a connection terminal (178), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197). In some embodiments, the electronic device (101) may omit at least one of these components (e.g., the connection terminal (178)), or may have one or more other components added. In some embodiments, some of these components (e.g., the sensor module (176), the camera module (180), or the antenna module (197)) may be integrated into one component (e.g., the display module (160)).
[0021] The processor (120) may, for example, execute 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) connected to the processor (120) and perform various data processing or operations. According to one embodiment, as at least a part of the data processing or operations, the processor (120) may store commands or data received from other components (e.g., a sensor module (176) or a communication module (190)) in a volatile memory (132), process the commands or data stored in the volatile memory (132), and store result data in a non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or an auxiliary processor (123) (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that can operate independently or together with the main processor (121). For example, when the electronic device (101) includes the main processor (121) and the auxiliary processor (123), the auxiliary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a given function. The auxiliary processor (123) may be implemented separately from the main processor (121) or as a part thereof.
[0022] The auxiliary processor (123) may control at least a portion of functions or states associated with at least one component (e.g., a display module (160), a sensor module (176), or a communication module (190)) of the electronic device (101), for example, on behalf 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 (e.g., application execution) state. In one embodiment, the auxiliary processor (123) (e.g., an image signal processor or a communication processor) may be implemented as a part of another functionally related component (e.g., a camera module (180) or a communication module (190)). In one embodiment, the auxiliary processor (123) (e.g., a neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. The artificial intelligence models may be generated through machine learning. This learning can be performed, for example, on the electronic device (101) itself where the artificial intelligence model is executed, or can be performed through a separate server (e.g., server (108)). The learning algorithm can include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model can include multiple artificial neural network layers.The artificial neural network may be one of a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to, or alternatively to, a hardware structure, an artificial intelligence model may include a software structure.
[0023] The memory (130) can store various data used by at least one component (e.g., processor (120) or sensor module (176)) of the electronic device (101). The data can include, for example, software (e.g., program (140)) and input data or output data for commands related thereto. The memory (130) can include volatile memory (132) or non-volatile memory (134).
[0024] The program (140) may be stored as software in the memory (130) and may include, for example, an operating system (142), middleware (144), or an application (146).
[0025] The input module (150) can receive commands or data to be used in a component of the electronic device (101) (e.g., a processor (120)) from an external source (e.g., a user) of the electronic device (101). The input module (150) can include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).
[0026] The audio output module (155) can output audio signals to the outside of the electronic device (101). The audio output module (155) can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. In one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.
[0027] The display module (160) can visually provide information to an external party (e.g., a user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling the device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of a force generated by the touch.
[0028] The audio module (170) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150), output sound through the sound output module (155), or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphone) directly or wirelessly connected to the electronic device (101).
[0029] The sensor module (176) can detect the operating status (e.g., power or temperature) of the electronic device (101) or the external environmental status (e.g., user status) and generate an electrical signal or data value corresponding to the detected status. According to one embodiment, the sensor module (176) can include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.
[0030] The interface (177) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (101) with an external electronic device (e.g., the electronic device (102)). In one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
[0031] The connection terminal (178) may include a connector through which the electronic device (101) may be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0032] The haptic module (179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. According to one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
[0033] The camera module (180) can capture still images and videos. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.
[0034] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
[0035] A battery (189) may power at least one component of the electronic device (101). In one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0036] The communication module (190) may support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may operate independently from the processor (120) (e.g., application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one 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 module). Among these communication modules, the corresponding communication module can communicate with an external electronic device (104) via a first network (198) (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network (199) (e.g., a long-range communication network such as a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules can be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can verify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) by using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (196).
[0037] The wireless communication module (192) can support 5G networks and next-generation communication technologies following the 4G network, such as NR access technology (new radio access technology). The NR access technology can support high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and connection of multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency communications)). The wireless communication module (192) can support, for example, a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate. The wireless communication module (192) can support various technologies for securing performance in a high-frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), an external electronic device (e.g., the electronic device (104)), or a network system (e.g., the second network (199)). According to one embodiment, the wireless communication module (192) can support a peak data rate (e.g., 20 Gbps or more) for eMBB realization, a loss coverage (e.g., 164 dB or less) for mMTC realization, or a U-plane latency (e.g., 0.5 ms or less for downlink (DL) and uplink (UL), or 1 ms or less for round trip) for URLLC realization.
[0038] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). In one embodiment, the antenna module (197) may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). In one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as the first network (198) or the second network (199), may be selected from the plurality of antennas, for example, by the communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device via the at least one selected antenna. In some embodiments, in addition to the radiator, another component (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module (197).
[0039] According to various embodiments, the antenna module (197) may form a mmWave antenna module. In one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent a first side (e.g., a bottom side) of the printed circuit board and capable of supporting a designated high-frequency band (e.g., a mmWave band), and a plurality of antennas (e.g., an array antenna) disposed on or adjacent a second side (e.g., a top side or a side side) of the printed circuit board and capable of transmitting or receiving signals in the designated high-frequency band.
[0040] At least some of the above components can be interconnected and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)).
[0041] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) via a server (108) connected to a second network (199). Each of the external electronic devices (102 or 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations executed in the electronic device (101) may be executed in one or more of the external electronic devices (102, 104, or 108). For example, when the electronic device (101) is to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device (101) may, instead of or in addition to executing the function or service itself, request one or more external electronic devices to perform the function or at least a part of the service. One or more external electronic devices that receive the request may execute at least a portion of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may process the result as is or additionally and provide it as at least a portion of a response to the request. For this purpose, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device (101) may provide an ultra-low latency service by using distributed computing or mobile edge computing, for example. In another embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server utilizing machine learning and / or a neural network. According to one embodiment, the external electronic device (104) or the server (108) may be included in the second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.
[0042] Electronic devices according to the various embodiments disclosed in this document may take various forms. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to the embodiments of this document are not limited to the aforementioned devices.
[0043] The various embodiments of this document and the terminology used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the context clearly indicates otherwise. In this document, each of the phrases "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" can include any one of the items listed together in the corresponding phrase among those phrases, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used merely to distinguish one component from another, and do not limit the components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as "coupled" or "connected" to another (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.
[0044] The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integral component, or a minimum unit or part of such a component that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).
[0045] Various embodiments of the present document may be implemented as software (e.g., a program (140)) including one or more instructions stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) readable by a machine (e.g., an electronic device (101)). For example, a processor (e.g., a processor (120)) of the machine (e.g., an electronic device (101)) may call at least one instruction among the one or more instructions stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.
[0046] According to one embodiment, the method according to various embodiments disclosed in this document may be provided as a computer program product. The computer program product may be traded between sellers and buyers as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or may be provided through an application store (e.g., Play Store). TM ) or directly between two user devices (e.g., smart phones), online distribution (e.g., downloading or uploading). In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.
[0047] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include one or more entities, and some of the entities may be separated and placed in other components. According to various embodiments, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to various embodiments, the operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.
[0048] FIG. 2 is a block diagram (200) illustrating a camera module (180) according to various embodiments. Referring to FIG. 2, the camera module (180) may include a lens assembly (210), a flash (220), an image sensor (230), an image stabilizer (240), a memory (250) (e.g., a buffer memory), or an image signal processor (260). The lens assembly (210) may collect light emitted from a subject that is a target of image capturing. The lens assembly (210) may include one or more lenses. According to one embodiment, the camera module (180) may include a plurality of lens assemblies (210). In this case, the camera module (180) may form, for example, a dual camera, a 360-degree camera, or a spherical camera. Some of the plurality of lens assemblies (210) may have the same lens properties (e.g., angle of view, focal length, autofocus, f-number, or optical zoom), or at least one lens assembly may have one or more lens properties that are different from the lens properties of the other lens assemblies. A lens assembly (210) may include, for example, a wide-angle lens or a telephoto lens.
[0049] The flash (220) can emit light used to enhance light emitted or reflected from a subject. According to one embodiment, the flash (220) can include one or more light-emitting diodes (e.g., red-green-blue (RGB) LED, white LED, infrared LED, or ultraviolet LED), or a xenon lamp. The image sensor (230) can acquire an image corresponding to the subject by converting light emitted or reflected from the subject and transmitted through the lens assembly (210) into an electrical signal. According to one embodiment, the image sensor (230) can include one image sensor selected from among image sensors having different properties, such as an RGB sensor, a black and white (BW) sensor, an IR sensor, or a UV sensor, a plurality of image sensors having the same property, or a plurality of image sensors having different properties. Each image sensor included in the image sensor (230) can be implemented using, for example, a CCD (charged coupled device) sensor or a CMOS (complementary metal oxide semiconductor) sensor.
[0050] The image stabilizer (240) can move at least one lens or image sensor (230) included in the lens assembly (210) in a specific direction or control the operating characteristics of the image sensor (230) (e.g., adjusting the read-out timing, etc.) in response to the movement of the camera module (180) or the electronic device (101) including the same. This allows compensating for at least some of the negative effects of the movement on the captured image. In one embodiment, the image stabilizer (240) can detect such movement of 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). In one embodiment, the image stabilizer (240) can be implemented as, for example, an optical image stabilizer. The memory (250) can temporarily store at least a portion of the image acquired through the image sensor (230) for the next image processing task. For example, when image acquisition is delayed due to the shutter, or when multiple images are acquired at high speed, the acquired original image (e.g., a Bayer-patterned image or a high-resolution image) is stored in the memory (250), and a corresponding copy image (e.g., a low-resolution image) can be previewed through the display module (160). Thereafter, when a specified condition is satisfied (e.g., a user input or a system command), at least a portion of the original image stored in the memory (250) can be acquired and processed, for example, by the image signal processor (260). According to one embodiment, the memory (250) can be configured as at least a portion of the memory (130) or as a separate memory that operates independently therefrom.
[0051] The image signal processor (260) can perform one or more image processing operations on an image acquired through an image sensor (230) or an image stored in a memory (250). The one or more image processing operations may include, for example, depth map generation, 3D modeling, panorama generation, feature point extraction, image synthesis, 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, read-out timing control, etc.) for at least one of the components included in the camera module (180) (e.g., image sensor (230)). The image processed by the image signal processor (260) may be stored back in the memory (250) for further processing or provided to an external component of the camera module (180) (e.g., memory (130), display module (160), electronic device (102), electronic device (104), or server (108)). According to one embodiment, the image signal processor (260) may be a processor (120). It may be configured as a separate processor that is at least partially composed of, or operates independently of, 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 through the display module (160) by the processor (120) as is or after undergoing additional image processing.
[0052] According to one embodiment, the electronic device (101) may include a plurality of camera modules (180), each having different properties or functions. In this case, for example, at least one of the plurality of camera modules (180) may be a wide-angle camera, and at least another may be a telephoto camera. Similarly, at least one of the plurality of camera modules (180) may be a front camera, and at least another may be a rear camera.
[0053] Meanwhile, according to one embodiment, the electronic device (101) can generate raw data for generating a raw image through the camera module (180). The camera module (180) according to one embodiment can include an image signal processor (260). The image signal processor (260) according to one embodiment can perform at least one image processing process on the raw image, which is raw data acquired through the image sensor (230). For example, the image signal processor (260) can perform lens shading correction (LSC) and video digital image stabilization (VDIS) correction. The electronic device (101) can provide an image with balanced brightness by compensating for insufficient light in the periphery of the captured raw image through lens shading correction. In addition, the electronic device (101) can extract a specific area from input frames with shaking among raw images as output frames by considering the movement of the electronic device (101) through VDIS correction, thereby providing an image with less shaking. Hereinafter, lens shading correction and VDIS correction will be described in detail with reference to FIGS. 3 and 4, respectively.
[0054] FIG. 3 is a drawing for explaining lens shading correction according to one embodiment.
[0055] Lens shading is a phenomenon in which the periphery of an image / video becomes darker as it approaches the periphery due to the optical characteristics of the lens. Referring to FIG. 3, the periphery of the first image (301) is darker than the center due to a relatively small amount of light. This may occur due to a decrease in the amount of light in the periphery because the diameter of the image circle of the lens is shorter than the diagonal length of the shooting screen. LSC can alleviate the brightness imbalance between the center and the periphery by dividing the image into blocks (pixels) and applying predetermined gain values to compensate for the phenomenon of darkening as it approaches the periphery. LSC can be performed by the image signal processor (260), and can balance the brightness within the image by applying a higher gain value as the area gets farther from the center of the image (or the center of the lens). Referring to FIG. 3, the periphery of the second image (302) processed by LSC is confirmed to be brighter than the periphery of the first image (301).
[0056] An image signal processor (260) according to one embodiment divides a raw image into a plurality of blocks (pixels) and stores gain values for each block in a memory (250) so that the stored gain values can be used when processing LSC. The gain values generally become larger as they move from the center of the lens to the periphery.
[0057] An image signal processor (260) according to one embodiment can perform LSC after converting a raw image into a format having a raw Bayer pattern. The raw Bayer pattern corresponds to a format of image data provided in a form in which G is cross-placed at 50% and R and B are each 25% according to human visual characteristics. An image signal processor (260) according to one embodiment can compensate for the brightness of a raw image by directly multiplying pre-stored gain values by R, G, and B channels.
[0058] An image signal processor (260) according to one embodiment may perform demosaic after performing LSC. Demosaic is a process of inferring monochrome pixels into a three-color image again using information from surrounding pixels.
[0059] Meanwhile, the image signal processor (260) according to one embodiment can adjust a gain value that compensates for the brightness of the periphery. The gain value can be determined based on a predetermined ratio. For example, when the predetermined ratio is 100%, the gain value can be at its maximum, thereby maximizing the degree of brightness compensation. The image signal processor (260) according to one embodiment can modify the degree of brightness compensation in the LSC process by adjusting the ratio applied to the gain value.
[0060] Meanwhile, if all brightness is compensated before demosaic (at a predetermined ratio of 100%), the information difference between monochrome pixels will increase, and noise for the image will be significantly generated after demosaic. In other words, when LSC is applied to the maximum, noise will increase in the periphery of the image, and the overall image quality may deteriorate. Therefore, in the embodiment according to the disclosure, LSC performed before VDIS may be applied separately rather than to the maximum. Specific embodiments will be described later.
[0061] FIG. 4 is a diagram for explaining video digital image stabilization correction according to one embodiment.
[0062] Video Digital Image Stabilization (VDIS) correction extracts a specific area from shaky input frames (401-1 to 401-3) into output frames (402-1 to 402-3) to produce output with less shaking.
[0063] The camera module (180) according to one embodiment may utilize video digital image stabilization (VDIS or DIS). In one embodiment, the camera module (180) may include a method of compensating for image shake by performing software processing on data output values of the image sensor (230). For example, the camera module (180) may extract a motion vector based on the difference (different image) between frames of an image through VDIS (or DIS), which is a digital shake correction, and increase the clarity through image processing. In addition, the camera module (180) may extract a motion vector based on an image through VDIS, and recognize the movement of the subject itself as shake in addition to the shake of the electronic device (100).
[0064] According to one embodiment, the processor (120) may perform VIDS on image frames based on motion information or image information of the electronic device (101). The motion information of the electronic device (101) may be obtained from a motion sensor (not shown), such as a gyro sensor (not shown) or an optical image stabilization (OIS) sensor (not shown).
[0065] According to one embodiment, the processor (120) may crop at least a portion of an image frame using motion information or image information. According to one embodiment, the processor (120) may obtain motion information of the electronic device (101) for each image frame, and perform cropping on a portion of an area that changes according to the motion for each image frame. For example, the processor (120) may perform VDIS using a margin area excluding at least a portion of an image frame obtained through the camera module (180). Image frames on which VDIS is performed may be understood as image frames from which the margin area is excluded. The second lens shading correction described below may be performed on image frames from which the margin area is excluded.
[0066] According to one embodiment, the processor (120) may generate a video file containing image frames on which VDIS has been performed. The processor (120) may store the video file in the memory (130, 250).
[0067] In one embodiment, the processor (120) may obtain the degree of motion (or amount of motion) of the electronic device (101) or the camera module (180). For example, the processor (120) may calculate / estimate the degree of motion of the electronic device (101) and / or the camera (310) based on image frames obtained by the camera module (180) and motion information of the electronic device (101), the camera module (180), or the lens assembly (e.g., the lens assembly (210)) according to OIS operation detected by the motion sensor.
[0068] In one embodiment, the processor (120) may perform cumulative calculations on movement information (e.g., degree of movement) of the electronic device (101) and / or the camera module (180).
[0069] In one embodiment, the processor (120) may calculate / estimate a movement path (or movement trajectory) of the electronic device (101) and / or the camera module (180) using accumulated movement information (e.g., degree of movement) of the electronic device (101) and / or the camera module (180).
[0070] In one embodiment, the processor (120) may generate a stabilizing path (or stabilizing trajectory) based on the calculated / estimated motion path (or motion trajectory) so that the motion path (or motion trajectory) becomes a smooth path (or trajectory). For example, the processor (120) may estimate a motion path (or motion trajectory) corresponding to an average value of the degree of motion of the electronic device (101) and / or the camera module (180), and may generate a motion path corresponding to the average value of the degree of motion as a stabilizing path. The average value is an example and may not be limited thereto.
[0071] In one embodiment, the processor (120) can predict the degree of blur that may occur for each image frame based on information about the image frames that the electronic device (101) can acquire and movement information. For example, the processor (120) can calculate / acquire the degree of blur (e.g., amount of blur, size of blur, probability of occurrence of blur) that may occur for each image frame by using acquired illumination conditions (e.g., exposure value), movement information of the electronic device (101), the camera module (180), or the lens assembly (e.g., lens assembly (210)) according to OIS operation. Blur may occur due to factors such as shake of the electronic device (101) / camera module (180), focal length, shutter speed, whether AF is performed, and whether OIS is performed.
[0072] In one embodiment, the processor (120) may set the image stabilization strength based on the predicted blur degree. For example, the image stabilization strength may refer to the strength of performing image stabilization (or shake correction) on image frames in which movement / shake has occurred due to movement of the electronic device (101), the camera module (180), or the lens assembly (e.g., the lens assembly (210)) according to the OIS operation. In addition, the processor (120) may set the image stabilization strength to decrease as the predicted blur degree increases, and may set the image stabilization strength to increase as the predicted blur degree decreases.
[0073] In one embodiment, the processor (120) may generate image frames on which image stabilization / VDIS is performed based on a preset image stabilization strength and a pre-calculated / generated stabilization path (or stabilization trajectory). For example, the processor (120) may perform shake correction / image stabilization on an actual motion path according to the image stabilization strength based on the generated stabilization path.
[0074] In the above, lens shading compensation and video digital image stabilization compensation have been described with reference to FIGS. 3 and 4, respectively. According to one embodiment, lens shading compensation is applied only once by applying a gain value according to a certain ratio before video digital image stabilization compensation is performed. Lens shading compensation according to the disclosure may be applied separately before and after video digital image stabilization compensation is performed.
[0075] Figure 5 is a flowchart of a method of operating an electronic device according to one embodiment.
[0076] An electronic device (101) according to one embodiment can perform video digital image stabilization correction (501-2) after performing first lens shading correction (501-1) (501).
[0077] A first lens shading correction (501-1) according to one embodiment can compensate for a difference in brightness between the center and the periphery of a raw image by applying a first LSC table to which first gain values are assigned to a raw image acquired by a camera module (180).
[0078] The first LSC table may be data that assigns first gain values to each position of an image frame based on shading profile data. In addition, the first LSC table may be data that assigns first gain values based on shading profile data and a first ratio. The first LSC table may have a plurality of blocks arranged in rows and columns, and the position of each block may correspond to a position in the image frame. The first gain values may be assigned to each of the plurality of blocks. The shading profile data may include a brightness distribution by region of the image frame and a brightness value according to the position of a captured image pixel. Depending on the lens characteristics, the first gain value may have a relatively larger value from the center to the periphery.
[0079] The first ratio applied to the first gain value may correspond to a compensation value less than 1. If the first ratio is 1, it means that LSC is applied at its maximum value. In one embodiment of the present disclosure, the first ratio corresponds to a compensation value less than 1 in order to perform lens shading compensation separately before and after video digital image stabilization compensation.
[0080] An electronic device (101) according to one embodiment can perform a second lens shading correction (503) after performing a video digital image stabilization correction (501-2).
[0081] A second lens shading correction (503) according to one embodiment may compensate for a difference in brightness between the center and the periphery of the first corrected image by applying a second LSC table to which second gain values are assigned to a first corrected image obtained by applying operation 501 to a raw image obtained by the camera module (180).
[0082] The second LSC table may be data that assigns second gain values to each position of the image frame based on shading profile data. Unlike the first LSC table, the second LSC table may consider the FOV (Field Of View) information and sensor position information of the image frame acquired during the VDIS process. This is because the image frame after the 501 process takes into account that some areas are excluded from the image frame for the raw image.
[0083] The second LSC table may be data that assigns second gain values based on shading profile data and a second ratio. The second LSC table may have a plurality of blocks arranged in rows and columns, and the position of each block may correspond to a position in an image frame. Second gain values may be assigned to each of the plurality of blocks.
[0084] The second ratio applied to the second gain value may correspond to a compensation value less than 1, like the first ratio. The second ratio may be determined by considering the first ratio, which is the degree to which brightness is compensated in the first lens shading correction. For example, if the first ratio is 0.6, the second ratio may be 0.4. However, the sum of the first ratio and the second ratio does not necessarily have to be 1.
[0085] Shading profile data represents the ratio of the brightness of the center of each image frame to the brightness of a corresponding point outside the center. For example, it represents an area where the brightness of the corresponding point is between 95% and 100% of the brightness of the center, an area where the brightness of the corresponding point is between 90% and 95% of the brightness of the center, an area where the brightness of the corresponding point is between 85% and 90% of the brightness of the center, and an area where the brightness of the corresponding point is less than 85% of the brightness of the center. The brightness of the corresponding point has a lower ratio as it moves away from the center.
[0086] The image frame acquired by the camera module (180) may have a shading profile in which brightness decreases as it moves away from the center point. For example, an area near the center of the image frame may have brightness of 95% to 100% compared to the center point, but the brightness may decrease to less than 85% compared to the center point as it moves away from the center point. In one embodiment, at least one lens included in the lens assembly (210) has a curvature, so that the amount of light reaching the image sensor (230) increases as it moves closer to the center, and the amount of light reaching the image sensor (230) may decrease as it moves away from the center depending on the curvature. According to one embodiment, the shading profile may appear differently depending on the position of the field of view of the image frame. Additionally, according to one embodiment, the shading profile may appear differently depending on the wavelength of light reaching the image sensor (230).
[0087] According to one embodiment, the shading profile data may be obtained based on the ratio of brightnesses of the divided regions by dividing the image frame into a plurality of regions. According to one embodiment, the shading value of each region included in the shading profile data may be obtained based on the ratio of brightnesses of the corresponding region and the brightness of the central region.
[0088] According to one embodiment, the shading profile data may be obtained by capturing a light source image during the manufacturing process of the electronic device (101). The light source image may be an image of a light source. Since at least one lens included in the lens assembly (210) is curved, shading may occur due to the lens assembly (210), and since the shading profile data may vary depending on the curvature of the at least one lens, a process of calculating a first gain value for each electronic device (101) may be included during the manufacturing process of the electronic device (101). For example, the first gain value for each electronic device (101) may have a slight difference.
[0089] According to one embodiment, the first gain value (or second gain value) calculated based on the shading profile data may be stored in the memory (130, 250). Since the first gain value is data that is not large in size and is acquired during the production process of the camera module (180), it may be stored in the memory (250) rather than the main memory of the electronic device (101).
[0090] According to one embodiment, the processor (120) may obtain a first gain value (710) from a memory included in the camera module (180) to perform lens shading correction on an image frame. For example, the processor (120) may multiply the image frame by the first gain value. When the processor (120) performs lens shading correction on the image frame through the first gain value, shading by the lens assembly (210) included in the image frame may be corrected.
[0091] Figure 6 is a flowchart of a preprocessing process in a second lens shading correction according to one embodiment.
[0092] As described above, the electronic device (101) according to one embodiment can perform a series of preprocessing steps before the second lens shading correction to which the second LSC table is applied is performed.
[0093] An electronic device (101) according to one embodiment can perform video digital image stabilization correction after performing first lens shading correction (601). For this operation, refer to operation 501 described with reference to FIG. 5.
[0094] An electronic device (101) according to one embodiment generates a first corrected image (603). The first corrected image corresponds to an image in which the brightness of a peripheral portion of a raw image is partially compensated for by a first lens shading correction, and a portion of an image frame of the raw image is removed by VDIS correction.
[0095] An electronic device (101) according to one embodiment can perform at least one of noise reduction or sharpening on a first corrected image (605).
[0096] The noise reduction process that can be performed by the image signal processor (260) can reduce noise in an image or video. According to one embodiment, the image signal processor (260) can find the average value of pixels around noise and replace the data of the corresponding noise pixel with that average value, or find the median value of pixels distributed around noise and replace the data of the corresponding noise pixel with that median value. This is called 2D-NR or SPATIAL-NR.
[0097] Another noise reduction process, 3D-NR (or Time-Domain-NR), can be used. 3D-NR uses multiple frames to more clearly distinguish between noise and signal, allowing noise reduction to be applied only to noisy pixels.
[0098] Meanwhile, noise reduction for the first corrected image may damage the sharpness and detail of the image. In other words, there is a trade-off between the intensity of noise reduction and sharpness. For noise reduction to be effective, noise must be reduced while maintaining the characteristics of each pixel information acquired from the image sensor (230). Embodiments of the present disclosure perform secondary lens shading correction after the noise reduction process to maximize the pixel information of the final acquired image.
[0099] The sharpening process, which can be performed by the image signal processor (260), can compensate for loss of detail caused by the noise reduction process or loss of clarity due to hardware performance limitations such as the sensor (or lens). The sharpening process can be performed by increasing the difference in signal intensity between adjacent pixels or reducing the width of the slope of the signal intensity.
[0100] An electronic device (101) according to one embodiment can convert a format for a first corrected image (607). The electronic device (101) according to one embodiment can convert a first corrected image having a first format into data having a second format. The electronic device (101) according to one embodiment can convert a first corrected image processed with noise reduction or sharpening from an RGB format to a YUV format. For example, the first format may be, but is not limited to, a Bayer pattern, and the second format may be, but is not limited to, YUV, Y'UV, YCbCr, YPbPr, or RGB.
[0101] Here, Y represents the luma component or brightness, and UV represents the chrominance components or color information. Luminance can be represented as Y or Y', and the prime symbol (') can represent gamma compression. Luminance represents perceptual (color science) brightness, and luma represents electronic (e.g., display voltage) brightness.
[0102] An image signal processor (260) according to one embodiment may perform a method of adjusting (e.g., maintaining or reducing) at least one of the color or chrominance components of each pixel by considering the brightness of each pixel included in the input image to be processed or lens shading correction to be applied to the input image to be processed (or the first corrected image).
[0103] An electronic device (101) according to one embodiment can generate a YUV domain for a first corrected image (609). An image signal processor (260) according to one embodiment can convert the first corrected image expressed in an RGB domain into a YUV domain. The YUV domain is one of the methods for configuring colors, and in the second lens shading correction, only the Y value in the YUV domain can be adjusted to minimize noise and compensate for brightness.
[0104] FIG. 7 is a flowchart of an operating method of an electronic device according to one embodiment, and FIG. 8 is a detailed flowchart of a second lens shading correction according to one embodiment.
[0105] According to one embodiment, the second lens shading correction is applied to the first corrected image on which noise reduction and sharpening have been completed, and the second lens shading correction is applied to the first corrected image in a state in which it has been converted to the YUV domain. YUV is one of the methods for composing color, and the color is composed of luminance (Y), blue chrominance (U), and red chrominance (V) information. Since the second lens shading correction compensates for brightness by applying only luminance (Y), the brightness can be compensated with less noise than when only the first lens shading correction is performed.
[0106] An electronic device (101) according to one embodiment can perform video digital image stabilization correction after performing first lens shading correction (701). For this operation, refer to operation 501 described with reference to FIG. 5.
[0107] An electronic device (101) according to one embodiment uses the YUV domain for a first corrected image obtained through operations (600) according to FIG. 6 to perform a second lens shading correction (703, see 503 of FIG. 5).
[0108] An electronic device (101) according to an embodiment obtains a first LSC table for a first corrected image for second lens shading correction (801). The first LSC table may be data that assigns first gain values based on shading profile data and a first ratio. Since the first LSC table includes information about the first ratio, the electronic device (101) according to an embodiment may determine a second ratio required for second lens shading correction by taking the first ratio into consideration.
[0109] An electronic device (101) according to one embodiment can convert a first LSC table into a second LSC table (803). Second gain values of the second LSC table are determined based on a second ratio associated with the first ratio. In addition, the number of second gain values (the number of blocks) of the second LSC table is inevitably less than the number of first gain values of the first LSC table. This is because some areas within the image frame have been removed through VDIS correction. That is, second gain values corresponding to the crop area can be assigned to the second LSC table. In addition, tone mapping can be processed in the second LSC table.
[0110] An electronic device (101) according to one embodiment can obtain a second corrected image based on applying a second LSC table to a first corrected image (805). The electronic device (101) according to one embodiment can apply the second LSC table, to which second gain values corresponding to a crop area are assigned, to each frame of the first corrected image.
[0111] An electronic device (101) according to one embodiment can adjust the Y value of a first corrected image converted into a YUV domain based on a second gain value. The electronic device (101) according to one embodiment can generate a second corrected image with an adjusted Y value. At this time, the electronic device (101) according to one embodiment can store the first corrected image together with the second corrected image in a memory (130, 250).
[0112] FIG. 9 is a diagram for explaining the process of generating a second LSC table according to one embodiment.
[0113] A first LSC table (901) according to one embodiment may include color-specific parameters for calculating gain values for each color. At this time, the color-specific parameters may be expressed as a three-dimensional gain surface as illustrated in FIG. 9, and the geometric shape of the gain surface may be determined by a parametric method, a non-parametric method, or a mixed method thereof. The non-parametric method is a method of expressing a curve using a function value for the domain (of definition) of the curve or a portion thereof to define the shape of the curve. If the value of the curve represents only a portion of the domain, the value of the remaining curve may be calculated by interpolating the value(s) defined around it in various ways.
[0114] For example, the first gain value may include a red gain value for red color correction, a green gain value for green color correction, and a blue gain value for blue color correction. For example, the first gain value may include, but is not limited to, a cyan gain value for cyan color correction, a yellow gain value for yellow color correction, and a magenta gain value for magenta color correction.
[0115] A second LSC table (903) according to one embodiment may include a Y parameter for adjusting the brightness of the first corrected image. The Y parameter corresponds to a value determined by a second ratio. The first ratio of the first lens shading correction and the second ratio of the second lens shading correction may correspond to a compensating relationship with each other. For example, if the first ratio is 0.4, the second ratio may be 0.6. The second LSC table (903) may set an area (ZX plane) of a valid Y parameter for each frame based on a crop area determined by the VDIS.
[0116] FIG. 10 illustrates an example in which first lens shading correction, VDIS correction, and second lens shading correction are sequentially processed in an electronic device according to one embodiment.
[0117] Referring to FIG. 10, a raw image (1001) according to one embodiment is acquired through an image sensor (230). As illustrated, the raw image (1001) has a characteristic in which the periphery of each frame is darker than the center due to lens shading.
[0118] According to one embodiment, the first lens shading correction can convert the raw image (1001) into a first-first correction image (1003) in which the brightness of the peripheral portion is compensated. In addition, the VDIS correction according to one embodiment can convert the first-first correction image (1003) into a first-second correction image (1005) in which a portion of the frame is cropped. The first-second correction image (1005) referenced in FIG. 10 is identical to the first correction image in which image processing is completed by operation 501 of FIG. 5.
[0119] A second lens shading correction according to one embodiment can convert a first-second correction image (1005) into a second correction image (1007) in which the brightness of the peripheral portion is compensated. In the second lens shading correction, noise can be minimized by adjusting only the Y value in the YUV domain of the first correction image based on a second gain value based on a second ratio within an area cropped by VDIS correction.
[0120] An electronic device according to one embodiment may include a camera module including a lens assembly, a motion sensor for detecting movement of the electronic device, and at least one processor electrically connected to the camera module and the motion sensor. The at least one processor according to one embodiment may obtain a raw image including a plurality of pixels from the camera module, perform a first lens shading correction by applying a first LSC table to which first gain values corresponding to each of the plurality of pixels are assigned to the raw image, and generate a first corrected image in which video digital image stabilization (VDIS) correction is processed based on the movement of the electronic device. The at least one processor according to one embodiment may apply a second LSC table to which second gain values corresponding to at least some of the plurality of pixels are assigned to the first corrected image, and perform a second lens shading correction, and generate a second corrected image in which the second lens shading correction is processed.
[0121] According to one embodiment, the camera module may further include a memory that stores shading profile data for first lens shading correction and second lens shading correction. According to one embodiment, at least one processor may determine first gain values based on shading profile data corresponding to a brightness distribution in a raw image and a first ratio, and determine second gain values based on a second ratio associated with the first ratio.
[0122] At least one processor according to one embodiment can obtain a crop region for VDIS correction from within a raw image for each frame, and apply a second LSC table to which second gain values corresponding to the crop region are assigned, to each frame of the first corrected image.
[0123] A camera module according to one embodiment may further include an image signal processor that performs image processing on an image stored in a memory. At least one processor according to one embodiment may control the image signal processor to perform at least one of noise reduction and sharpening on the first corrected image.
[0124] At least one processor according to one embodiment may convert a first corrected image, on which noise reduction or sharpening has been processed, from an RGB format to a YUV format.
[0125] At least one processor according to one embodiment is capable of adjusting a Y value of a first corrected image that is transformed based on a second gain value.
[0126] At least one processor according to one embodiment may store the second correction image in memory together with the first correction image.
[0127] An operating method of an electronic device according to one embodiment may include an operation of acquiring a raw image including a plurality of pixels from a camera module, an operation of performing a first lens shading correction by applying a first LSC table to which first gain values corresponding to each of the plurality of pixels are assigned to the raw image, and an operation of generating a first corrected image in which video digital image stabilization (VDIS) correction is processed based on a movement of the electronic device. An operating method of an electronic device according to one embodiment may include an operation of performing a second lens shading correction by applying a second LSC table to which second gain values corresponding to at least some of the plurality of pixels are assigned to the first corrected image, and an operation of generating a second corrected image in which the second lens shading correction is processed.
[0128] A method of operating an electronic device according to one embodiment may further include determining first gain values based on shading profile data corresponding to a brightness distribution in a raw image and a first ratio, and determining second gain values based on a second ratio associated with the first ratio.
[0129] An operating method of an electronic device according to one embodiment may further include an operation of obtaining a crop area for VDIS correction from a raw image for each frame and an operation of applying a second LSC table to which second gain values corresponding to the crop area are assigned for each frame of a first corrected image.
[0130] A method of operating an electronic device according to one embodiment may further include performing at least one of noise reduction and sharpening on a first corrected image.
[0131] A method of operating an electronic device according to one embodiment may further include converting a first corrected image subjected to noise reduction or sharpening from an RGB format to a YUV format.
[0132] The operating method of the electronic device according to one embodiment may further include an operation of adjusting a Y value of a first corrected image converted based on a second gain value.
[0133] A method of operating an electronic device according to one embodiment may further include storing a second correction image in a memory together with the first correction image.
Claims
1. In electronic devices, camera module; a motion sensor for detecting movement of the electronic device; and At least one processor electrically connected to the camera module and the motion sensor, At least one processor of the above, Obtaining a raw image containing a plurality of pixels from the above camera module, Applying a first LSC table to the above raw image, in which first gain values corresponding to each of the plurality of pixels are assigned, to perform a first lens shading correction, Generating a first corrected image processed with Video Digital Image Stabilization (VDIS) correction based on the movement of the electronic device, An electronic device that applies a second LSC table to the first corrected image, in which second gain values corresponding to at least some of the plurality of pixels are assigned, to perform a second lens shading correction, and generates a second corrected image on which the second lens shading correction has been processed.
2. In paragraph 1, The above camera module, Further comprising a memory storing shading profile data for the first lens shading correction and the second lens shading correction; At least one processor of the above, Determine the first gain values based on the shading profile data corresponding to the brightness distribution of the raw image and the first ratio, An electronic device that determines the second gain values based on the second ratio associated with the first ratio.
3. In paragraph 2, At least one processor of the above, Acquire the crop area for the VDIS correction frame by frame within the above raw image, An electronic device that applies the second LSC table, to which second gain values corresponding to the crop area are assigned, to each frame of the first corrected image.
4. In paragraph 2, The above camera module, Further comprising an image signal processor for performing image processing on an image stored in the above memory; At least one processor of the above, An electronic device controlling the image signal processor to perform at least one of noise reduction and sharpening on the first corrected image.
5. In paragraph 4, At least one processor of the above, An electronic device for converting the first corrected image, on which the noise reduction or sharpening has been processed, from RGB format to YUV format.
6. In paragraph 5, At least one processor of the above, An electronic device for adjusting the Y value of the converted first corrected image based on the second gain value.
7. In paragraph 2, At least one processor of the above, An electronic device storing the second correction image together with the first correction image in the memory.
8. A method of operating an electronic device including a camera module, An operation of obtaining a raw image comprising a plurality of pixels from the camera module; An operation of performing a first lens shading correction by applying a first LSC table in which first gain values corresponding to each of the plurality of pixels are assigned to the raw image; An operation of generating a first corrected image processed with Video Digital Image Stabilization (VDIS) correction based on the movement of the electronic device; An operation of performing a second lens shading correction by applying a second LSC table to which second gain values corresponding to at least some of the plurality of pixels are assigned to the first corrected image; and An operating method of an electronic device, comprising: an operation of generating a second corrected image in which the second lens shading correction is processed; 9. In paragraph 8, An operation of determining the first gain values based on shading profile data corresponding to the brightness distribution of the raw image and the first ratio; and A method of operating an electronic device, further comprising: determining the second gain values based on the second ratio associated with the first ratio.
10. In paragraph 9, An operation of obtaining a crop area for the VDIS correction frame by frame within the above raw image; and An operating method of an electronic device further comprising: applying the second LSC table, to which second gain values corresponding to the crop area are assigned, to each frame of the first corrected image; 11. In paragraph 9, An operating method of an electronic device further comprising: performing at least one of noise reduction and sharpening on the first corrected image.
12. In paragraph 11, An operating method of an electronic device further comprising: an operation of converting the first corrected image, on which the noise reduction or sharpening has been processed, from an RGB format to a YUV format.
13. In paragraph 12, An operating method of an electronic device further comprising: an operation of adjusting a Y value of the converted first correction image based on the second gain value.
14. In paragraph 8, An operating method of an electronic device further comprising: an operation of storing the second correction image together with the first correction image in a memory.
Citation Information
Patent Citations
Shading correction device
JP2000069371A
Camera module and image processor
JP2013026825A
Shading correction method
KR1020000000673A
Method and camera for producing an image stabilized video
KR1020160135662A
Lens shading correction circuit and apparatus having the same
KR102401582B1