Method for generating an image and electronic device therefor

By generating color filters through color comparison between the first and second images using an electronic device processor, the problems of long processing time and large storage space in existing technologies are solved, enabling the rapid generation of filter effects desired by users and improving user convenience.

CN115516494BActive Publication Date: 2026-06-05SAMSUNG ELECTRONICS CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SAMSUNG ELECTRONICS CO LTD
Filing Date
2021-01-19
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Existing technologies require compression and decoding of style images when applying filters, resulting in long processing times and large storage spaces. It is difficult to separate and extract the filter effect desired by the user from the style input image, and it is also difficult to generate the desired image.

Method used

The processor of the electronic device obtains a color comparison between the first and second images, generates a color filter, and applies it to the third image to generate the fourth image, thus avoiding the compression and decoding process of style images.

Benefits of technology

It improves processing speed, reduces storage space requirements, enhances user convenience, and can generate filter effects that meet user expectations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115516494B_ABST
    Figure CN115516494B_ABST
Patent Text Reader

Abstract

According to an embodiment of the disclosure, an electronic device includes a camera, a display, a memory, and at least one processor electrically connected to the display and the memory. The processor obtains an input selecting a first image, generates a color filter by comparing the first image with a second image having a different color pattern from the first image, obtains a third image, and generates a fourth image by applying the generated color filter to the third image. The processor derives a function and a coefficient of the function by comparing color values of pixels of the first image and the second image. The color filter can include the derived function, the coefficient of the function, and a color lookup table generated based on the derived function by comparing the first image and the second image. The processor stores the generated color filter in the memory and generates the fourth image by applying the stored color filter to the third image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to an electronic device for generating images and a method for generating images using the electronic device. Background Technology

[0002] Among the various photo editing functions, filters are used to apply different effects to photos to create a special atmosphere. When a filter is selected for a photo, the same effect corresponding to the selected filter will be applied to all photos. Users can select filter effects stored in their electronic devices to apply the stored filter effects to the desired images. Summary of the Invention

[0003] Technical issues

[0004] When applying filters to an image, filter effects already stored in the electronic device are applied, or filters created are selectively downloaded and used, and therefore the filter the user expects may not exist. Style transfer schemes, as one of the traditional methods for generating the desired filter, require a predetermined amount of time and large storage space to process the encoding and decoding of the style image.

[0005] Furthermore, it is difficult to isolate and extract filter effects solely from the style input image, and therefore impossible to apply only the filter effects the user expects, such as color, brightness, or contrast. Because textures corresponding to unnecessary elements are also applied, it is difficult to generate the desired image.

[0006] The technical topics pursued in this disclosure may not be limited to those described above, and other technical topics not mentioned will be clearly understood by those skilled in the art through the following description.

[0007] Problem Solution

[0008] According to embodiments of this disclosure, an electronic device includes a camera, a display, a memory, and at least one processor electrically connected to the display and the memory, wherein the at least one processor is configured to acquire input selecting a first image, generate a color filter by comparing the first image with a second image having a color pattern different from the first image, acquire a third image, and apply the generated color filter to the third image to generate a fourth image. According to embodiments of this disclosure, a method of controlling an electronic device includes: acquiring input selecting a first image via at least one processor electrically connected to a camera, a display, and a memory; generating a color filter by comparing the first image with a second image having a color pattern different from the first image; acquiring a third image; and applying the generated color filter to the third image.

[0009] Beneficial effects of the invention

[0010] According to various embodiments, since there is no need for the process of compressing and decoding style images, the processing speed is high and the storage space required to generate filters is small, thereby reducing power consumption.

[0011] According to various embodiments, user convenience can be improved by generating filters from images with colors desired by the user and storing the generated filters for continuous application. Attached Figure Description

[0012] Figure 1 This is a block diagram illustrating an electronic device in a network environment according to various embodiments.

[0013] Figure 2 This is a block diagram illustrating a camera module according to various embodiments.

[0014] Figure 3 The process of generating and applying a color filter by comparing a first image with a second image, according to an embodiment of the electronic device, is illustrated.

[0015] Figure 4 A processor is shown according to an embodiment for generating a color filter by estimating a second image from a first image.

[0016] Figure 5 A processor is shown according to an embodiment for generating a color filter by acquiring input of a selected second image.

[0017] Figure 6 It is a color lookup table generated by comparing a first image with a second image according to an embodiment.

[0018] Figure 7 A first image and a second image displayed on an electronic device according to an embodiment are shown.

[0019] Figure 8 A third and a fourth image, displayed on an electronic device according to an embodiment, are shown.

[0020] Figure 9 This is a flowchart illustrating the process of a user-generated filter and the application of the filter by an electronic device according to an embodiment.

[0021] Figure 10 A screen is shown illustrating the generation of a filter in an electronic device according to an embodiment.

[0022] Figure 11 A screen is shown illustrating the addition or removal of filters in an electronic device according to an embodiment.

[0023] Figure 12 A screen is shown illustrating how to change the name of a color filter in an electronic device according to an embodiment.

[0024] Figure 13 A screen is shown illustrating the re-cropping of a first image in an electronic device according to an embodiment. Detailed Implementation

[0025] Various embodiments of the present disclosure are described below with reference to the accompanying drawings. For ease of description, the size of the components shown in the drawings may be enlarged or reduced, and the present disclosure is not necessarily limited to the illustrations.

[0026] Figure 1 This is a block diagram illustrating an electronic device 101 in a network environment 100 according to various embodiments.

[0027] Reference Figure 1 In network environment 100, electronic device 101 can communicate with electronic device 102 via a first network 198 (e.g., a short-range wireless communication network), or with electronic device 104 or server 108 via a second network 199 (e.g., a long-range wireless communication network). According to an embodiment, electronic device 101 can communicate with electronic device 104 via server 108. According to an embodiment, electronic device 101 may include a processor 120, memory 130, input device 150, sound output device 155, display device 160, audio module 170, sensor module 176, interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, user identification module (SIM) 196, or antenna module 197. In some embodiments, at least one of these components (e.g., display device 160 or camera module 180) may be omitted from electronic device 101, or one or more other components may be added to electronic device 101. In some embodiments, some of the components may be implemented as a single integrated circuit. For example, the sensor module 176 (e.g., a fingerprint sensor, an iris sensor, or an illuminance sensor) may be implemented as embedded in the display device 160 (e.g., a display).

[0028] Processor 120 may run software (e.g., program 140) to control at least one other component (e.g., hardware or software component) of electronic device 101 connected to processor 120, and may perform various data processing or calculations. According to one embodiment, as at least part of the data processing or calculation, processor 120 may load commands or data received from another component (e.g., sensor module 176 or communication module 190) into volatile memory 132, process the commands or data stored in volatile memory 132, and store the resulting data in non-volatile memory 134. According to an embodiment, processor 120 may include a main processor 121 (e.g., central processing unit (CPU) or application processor (AP)) and an auxiliary processor 123 (e.g., graphics processing unit (GPU), image signal processor (ISP), sensor hub processor, or communication processor (CP)) that is operationally independent of or combined with the main processor 121. Additionally or alternatively, auxiliary processor 123 may be adapted to consume less power than main processor 121, or adapted for a specific function. The auxiliary processor 123 can be implemented separately from the main processor 121, or it can be implemented as part of the main processor 121.

[0029] When the main processor 121 is inactive (e.g., in sleep mode), the auxiliary processor 123 (rather than the main processor 121) can control at least some of the functions or states associated with at least one component of the electronic device 101 (e.g., display device 160, sensor module 176, or communication module 190), or when the main processor 121 is active (e.g., running an application), the auxiliary processor 123 can work with the main processor 121 to control at least some of the functions or states associated with at least one component of the electronic device 101 (e.g., display device 160, sensor module 176, or communication module 190). According to embodiments, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) can be implemented as part of another component (e.g., camera module 180 or communication module 190) functionally associated with the auxiliary processor 123.

[0030] Memory 130 may store various data used by at least one component of electronic device 101 (e.g., processor 120 or sensor module 176). The various data may include, for example, software (e.g., program 140) and input or output data for commands associated with it. Memory 130 may include volatile memory 132 or non-volatile memory 134.

[0031] The program 140 may be stored as software in the memory 130, and the program 140 may include, for example, an operating system (OS) 142, middleware 144, or application 146.

[0032] Input device 150 can receive commands or data from outside electronic device 101 (e.g., a user) that will be used by other components of electronic device 101 (e.g., processor 120). Input device 150 may include, for example, a microphone, mouse, keyboard, or digital pen (e.g., stylus).

[0033] The sound output device 155 can 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 can be used for general purposes such as playing multimedia or playing records, and the receiver can be used for incoming calls. According to an embodiment, the receiver may be implemented separately from the speaker or as part of the speaker.

[0034] Display device 160 can visually provide information to the outside of electronic device 101 (e.g., to a user). Display device 160 may include, for example, a display, a holographic device, or a projector, and control circuitry for controlling a respective one of the display, holographic device, and projector. According to an embodiment, display device 160 may include touch circuitry adapted to detect touch or sensor circuitry (e.g., a pressure sensor) adapted to measure the intensity of the force caused by touch.

[0035] The audio module 170 can convert sound into electrical signals and vice versa. According to an embodiment, the audio module 170 can obtain sound via the input device 150, or output sound via the sound output device 155 or headphones of an external electronic device (e.g., electronic device 102) that is directly (e.g., wired) or wirelessly connected to the electronic device 101.

[0036] Sensor module 176 can detect the operating state of electronic device 101 (e.g., power or temperature) or the environmental state outside electronic device 101 (e.g., user state), and then generate an electrical signal or data value corresponding to the detected state. According to embodiments, sensor module 176 may include, for example, a gesture sensor, gyroscope sensor, atmospheric pressure sensor, magnetic sensor, accelerometer, grip sensor, proximity sensor, color sensor, infrared (IR) sensor, biometric sensor, temperature sensor, humidity sensor, or illuminance sensor.

[0037] Interface 177 may support one or more specific protocols used to enable electronic device 101 to connect directly (e.g., wired) or wirelessly to external electronic devices (e.g., electronic device 102). According to embodiments, interface 177 may include, for example, a High Definition Multimedia Interface (HDMI), a Universal Serial Bus (USB) interface, a Secure Digital Card (SD) interface, or an audio interface.

[0038] Connection end 178 may include a connector, through which electronic device 101 can be physically connected to an external electronic device (e.g., electronic device 102). According to embodiments, connection end 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0039] The tactile module 179 can convert electrical signals into mechanical stimuli (e.g., vibration or motion) or electrical stimuli that can be recognized by a user through his touch or kinesthesia. According to embodiments, the tactile module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulator.

[0040] Camera module 180 can capture still or moving images. According to an embodiment, camera module 180 may include one or more lenses, an image sensor, an image signal processor, or a flash.

[0041] The power management module 188 manages the power supply to the electronic device 101. According to an embodiment, the power management module 188 may be implemented as at least part of, for example, a power management integrated circuit (PMIC).

[0042] Battery 189 can power at least one component of electronic device 101. According to an embodiment, battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable rechargeable battery, or a fuel cell.

[0043] Communication module 190 can support the establishment of a direct (e.g., wired) or wireless communication channel between electronic device 101 and external electronic devices (e.g., electronic device 102, electronic device 104, or server 108), and perform communication via the established communication channel. Communication module 190 may include one or more communication processors capable of operating independently of processor 120 (e.g., application processor (AP)) and support direct (e.g., wired) or wireless communication. According to embodiments, communication module 190 may include wireless communication module 192 (e.g., cellular communication module, short-range wireless communication module, or Global Navigation Satellite System (GNSS) communication module) or wired communication module 194 (e.g., local area network (LAN) communication module or power line communication (PLC) module). One of these communication modules can communicate with an external electronic device via a first network 198 (e.g., a short-range communication network such as Bluetooth, Wi-Fi Direct, or Infrared Data Association (IrDA)) or a second network 199 (e.g., a long-range communication network such as a cellular network, the Internet, or a computer network (e.g., a LAN or a wide area network (WAN))). These various types of communication modules can be implemented as a single component (e.g., a single chip) or as multiple components (e.g., multiple chips) that are separate from each other. The wireless communication module 192 can identify and verify the electronic device 101 in the communication network (such as the first network 198 or the second network 199) using user information (e.g., the International Mobile Subscriber Identity (IMSI)) stored in the user identification module 196.

[0044] Antenna module 197 can transmit or receive signals or power to or from the exterior of electronic device 101 (e.g., external electronic device). According to an embodiment, antenna module 197 may include an antenna comprising a radiating element formed of a conductive material or conductive pattern formed in or on a substrate (e.g., a PCB). According to an embodiment, antenna module 197 may include multiple antennas. In this case, at least one antenna suitable for a communication scheme used in a communication network (such as a first network 198 or a second network 199) can be selected from the multiple antennas by, for example, communication module 190 (e.g., wireless communication module 192). Signals or power can then be transmitted or received between communication module 190 and the external electronic device via the selected at least one antenna. According to an embodiment, additional components besides the radiating element (e.g., a radio frequency integrated circuit (RFIC)) may be additionally incorporated into antenna module 197.

[0045] At least some of the aforementioned components can be interconnected and communicate signals (e.g., commands or data) between them via an inter-peripheral communication scheme (e.g., bus, general purpose input / output (GPIO), serial peripheral interface (SPI), or mobile industrial processor interface (MIPI)).

[0046] According to an embodiment, commands or data can be sent or received between electronic device 101 and external electronic device 104 via server 108 connected to a second network 199. Each of electronic device 102 and electronic device 104 can be a device of the same type as electronic device 101, or a device of a different type. According to an embodiment, all or some operations that would be performed on electronic device 101 can be performed on one or more of external electronic devices 102, external electronic devices 104, or server 108. For example, if electronic device 101 is required to automatically perform a function or service, or is required to perform a function or service in response to a request from a user or another device, electronic device 101 may request the one or more external electronic devices to perform at least a portion of the function or service, instead of running the function or service, or electronic device 101 may request the one or more external electronic devices to perform at least a portion of the function or service in addition to running the function or service. Upon receiving the request, the one or more external electronic devices may perform at least a portion of the requested function or service, or perform additional functions or services related to the request, and transmit the result of the execution to electronic device 101. Electronic device 101 may provide the result as at least a partial response to the request, either with further processing or without further processing. For this purpose, technologies such as cloud computing, distributed computing, or client-server computing may be used.

[0047] The electronic device according to various embodiments can be one of a variety of types of electronic devices. 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. According to embodiments of this disclosure, the electronic device is not limited to those described above.

[0048] It should be understood that the various embodiments of this disclosure and the terminology used therein are not intended to limit the technical features set forth herein to the specific embodiments, but rather to include various changes, equivalents, or substitutions to the respective embodiments. In the description of the drawings, similar reference numerals may be used to refer to similar or related elements. It will be understood that nouns in the singular form corresponding to terms may include one or more things unless the relevant context clearly indicates otherwise. As used herein, each of the phrases such 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 any one or all possible combinations of the items enumerated together with the corresponding phrase among the plurality of phrases. As used herein, terms such as “first” and “second” or “first” and “second” may be used to simply distinguish the respective component from another component and do not limit the component in other respects (e.g., importance or order). It will be understood that, whether the terms “operably” or “communically” are used or not, if an element (e.g., a first element) is referred to as “combined with another element (e.g., a second element),” “combined to another element (e.g., a second element),” “connected to another element (e.g., a second element),” or “attached to another element (e.g., a second element)”, it means that the first element can be directly (e.g., wiredly) connected to the second element, wirelessly connected to the second element, or connected to the second element via a third element.

[0049] As used herein, the term "module" can include a unit implemented in hardware, software, or firmware, and is used interchangeably with other terms (e.g., "logic," "logic block," "part," or "circuit"). A module can be a single integrated component adapted to perform one or more functions, or the smallest unit or part of such a single integrated component. For example, according to an embodiment, a module can be implemented in the form of an application-specific integrated circuit (ASIC).

[0050] The various embodiments set forth herein can be implemented as software (e.g., program 140) containing one or more instructions readable by a machine (e.g., electronic device 101) stored in a storage medium (e.g., internal memory 136 or external memory 138). For example, under the control of a processor, the processor (e.g., processor 120) of the machine (e.g., electronic device 101) can invoke and execute at least one of the one or more instructions stored in the storage medium, with or without the use of one or more other components. This enables the machine to operate to perform at least one function according to the invoked at least one instruction. The one or more instructions may include code generated by a compiler or code executable by an interpreter. Machine-readable storage media may be provided in the form of non-transitory storage media. The term "non-transitory" means only that the storage medium is a tangible device and does not include signals (e.g., electromagnetic waves), but this term does not distinguish between data being stored semi-permanently in the storage medium and data being temporarily stored in the storage medium.

[0051] According to embodiments, methods according to various embodiments of this disclosure may be included and provided in a computer program product. The computer program product can 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., a compact disk read-only memory (CD-ROM)) or via an app store (e.g., the Play Store). TM The computer program product may be published online (e.g., downloaded or uploaded), or may be distributed directly between two user devices (e.g., smartphones) (e.g., downloaded or uploaded). If published online, at least a portion of the computer program product may be temporarily generated, or at least a portion of the computer program product may be temporarily stored in a machine-readable storage medium (such as the memory of a manufacturer's server, an app store's server, or a forwarding server).

[0052] According to various embodiments, each of the above-described components (e.g., a module or program) 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. Optionally or additionally, multiple components (e.g., modules or programs) may be integrated into a single component. In this case, according to various embodiments, the integrated component may still perform the one or more functions of each of the multiple components in the same or similar manner as the corresponding component of the multiple components performed one or more functions prior to integration. According to various embodiments, the operations performed by a module, program, or other component may be performed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations may be run in a different order or omitted, or one or more other operations may be added.

[0053] Figure 2 This is a block diagram 200 illustrating a camera module 180 according to various embodiments. (Refer to...) Figure 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 capture light emitted or reflected from an object whose image is to be captured. The lens assembly 210 may include one or more lenses. According to embodiments, the camera module 180 may include multiple lens assemblies 210. In this case, the camera module 180 may form, for example, a dual-camera system, a 360-degree camera, or a spherical camera. Some of the multiple 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 differ from the lens properties of the other lens assemblies. The lens assembly 210 may include, for example, a wide-angle lens or a telephoto lens.

[0054] Flash 220 is capable of emitting light, wherein the emitted light is used to enhance light reflected from an object. According to embodiments, flash 220 may include one or more light-emitting diodes (LEDs) (e.g., red-green-blue (RGB) LEDs, white LEDs, infrared (IR) LEDs, or ultraviolet (UV) LEDs) or xenon lamps. Image sensor 230 acquires an image corresponding to an object by converting light emitted or reflected from the object and transmitted through lens assembly 210 into an electrical signal. According to embodiments, image sensor 230 may include one image sensor selected from a plurality of image sensors with different properties (e.g., an RGB sensor, a black-and-white (BW) sensor, an IR sensor, or a UV sensor), a plurality of image sensors having the same properties, or a plurality of image sensors with different properties. Each image sensor included in image sensor 230 may be implemented using, for example, a charge-coupled device (CCD) sensor or a complementary metal-oxide-semiconductor (CMOS) sensor.

[0055] Image stabilizer 240 may move image sensor 230 or at least one lens included in lens assembly 210 in a specific direction, or control the operability properties of image sensor 230 (e.g., adjust readout timing) in response to movement of camera module 180 or electronics 101 including camera module 180. This allows compensation for at least a portion of the negative effects (e.g., image blur) caused by movement of the image being captured. According to embodiments, image stabilizer 240 may use a gyroscope sensor (not shown) or an accelerometer sensor (not shown) disposed within or outside camera module 180 to sense such movement of camera module 180 or electronics 101. According to embodiments, image stabilizer 240 may be implemented as, for example, an optical image stabilizer. Memory 250 may at least temporarily store at least a portion of the image acquired via image sensor 230 for subsequent image processing tasks. For example, if multiple images are captured rapidly or if image capture is delayed due to shutter lag, the acquired original images (e.g., Bayer pattern images, high-resolution images) can be stored in memory 250, and their corresponding copy images (e.g., low-resolution images) can be previewed via display device 160. Then, if specified conditions are met (e.g., by user input or system commands), at least a portion of the original images stored in memory 250 can be acquired and processed by, for example, image signal processor 260. According to embodiments, memory 250 can be configured as at least a portion of memory 130, or memory 250 can be configured as a separate memory operating independently of memory 130.

[0056] Image signal processor 260 can perform one or more image processing operations on images acquired via image sensor 230 or stored in memory 250. The one or more image processing operations may include, for example, depth map generation, 3D modeling, panorama generation, feature point extraction, image compositing, or image compensation (e.g., noise reduction, resolution adjustment, brightness adjustment, blurring, sharpening, or softening). Alternatively or additionally, image signal processor 260 can perform control (e.g., exposure time control or readout timing control) on at least one component included in camera module 180 (e.g., image sensor 230). Images processed by image signal processor 260 can be stored back in memory 250 for further processing, or the image can be provided to external components outside camera module 180 (e.g., memory 130, display device 160, electronic device 102, electronic device 104, or server 108). According to embodiments, image signal processor 260 can be configured as at least a part of processor 120, or image signal processor 260 can be configured as a separate processor operating independently of processor 120. If the image signal processor 260 is configured as a processor separate from the processor 120, the processor 120 can display at least one image processed by the image signal processor 260 as is via the display device 160, or the at least one image can be displayed after further processing.

[0057] According to an embodiment, the electronic device 101 may include a plurality of camera modules 180 with different attributes or functions. In this 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-facing camera, and at least another of the plurality of camera modules 180 may form a rear-facing camera.

[0058] Figure 3 This is a flowchart 300 illustrating a method for generating a new image from an electronic device according to an embodiment.

[0059] According to an embodiment, in operation 310, processor 120 may receive input of selecting a first image. The first image may include an image stored in a photo album application of the electronic device. The first image may include an image captured by the user using the camera of the electronic device and an image generated based on information acquired through an image sensor. The first image may include an image transmitted and acquired from another electronic device. The first image may include an image downloaded from a specific server on the Internet. According to an embodiment, the first image may include a captured image generated using the screen capture function of the electronic device. The captured image may include at least one captured image from the background screen, application execution screen, and call screen of the electronic device. The capture function may be performed in such a way that the user presses a specific button on the display or makes a specific action with his / her hand. Processor 120 may configure the first image as a target image for extracting color data in response to the user's selection of a stored first image through a photo album application.

[0060] According to an embodiment, in operation 320, processor 120 can generate a color filter by comparing a first image with a second image. For example, processor 120 can generate a color filter by comparing the color values ​​of corresponding pixels in the first and second images. Processor 120 can match the first and second images and compare the color values ​​of overlapping pixels. For example, the first and second images can include color elements of red (R), green (G), and blue (B), and processor 120 can determine the R, G, and B values ​​in the second image that change from the R, G, and B values ​​of the first image. For example, R, G, and B can have values ​​between 0 and 255, and the R value corresponds to 120 in the first image and 135 in the second image. The processor can acquire data indicating the R, G, and B values ​​in the second image that change from all the R, G, and B values ​​included in the first image.

[0061] According to an embodiment, the processor 120 can generate two or more color filters in response to user input to add a color filter. For example, in the presence of one color filter, the number of color filters can become two in response to user input to add a color filter.

[0062] According to an embodiment, the substrate filter can be implemented as a function derived by comparing color values, the coefficients of the function, or a color lookup table generated based on the derived function and its coefficients. See below for reference. Figure 6 Provide a detailed description of the function, its coefficients, and the color lookup table.

[0063] According to an embodiment, in operation 330, the processor 120 may acquire a third image. The third image may include images captured by a camera module (e.g., Figure 1 The first preview image obtained by (180) or stored in memory (e.g., Figure 1 At least one of the images in the memory 130). The third image may include images based on those transmitted via an image sensor (e.g., Figure 2 The image is generated from information acquired by the image sensor 230. The third image may include an image obtained by storing the generated image in the memory 130. The processor 120 may configure the third image as a target image with applied color data in response to a user's selection of the stored third image via a photo album application.

[0064] According to an embodiment, in operation 340, processor 120 may apply a color filter generated by comparing a first image with a second image to a third image. Processor 120 may generate a fourth image by applying the color filter to the third image. For example, R having a value of 135 in the third image may be converted to R having a value of 120 in the fourth image. Processor 120 may apply the derived function to the third image. Processor 120 may generate the fourth image by receiving the color value of one of R, G, and B in each pixel of the third image corresponding to the new image and performing calculations.

[0065] Figure 4 This is a flowchart 400 illustrating the process of generating a color filter by an electronic device according to an embodiment.

[0066] According to an embodiment, in operation 410, the processor 120 can acquire input indicating that a first image has been selected. When user input indicating that a first image has been selected is acquired, the processor 120 can display the first image on a display.

[0067] The first image can be an image with a filter effect applied. For example, the first image can be an image with at least one of the following applied: a filter that gives a black and white effect, a filter that gives a faded look, or a filter that gives a soft tone. Various color filters and the listed filters can exist as color filters.

[0068] According to an embodiment, in operation 420, processor 120 can estimate a second image from a first image. Processor 120 can estimate a second image from an image with a color filter applied, which is essentially an unfiltered original image. Processor 120 can estimate the second image based on the average characteristics of objects within the first image. Processor 120 can identify objects included in the first image and estimate the original image by estimating the average color of the objects. For example, processor 120 can identify objects included in the first image (e.g., grass or sea), and because a black-and-white filter is applied to the first image, the grass or sea is identified as having gray. When a black-and-white filter is applied to the first image and therefore the grass or sea has gray, in the second image corresponding to the original image, the grass may average green and the sea may average blue, and therefore the grass may have green and the sea may have blue. That is, processor 120 can estimate the second image corresponding to the original image by estimating the average color (e.g., blue) of the objects (e.g., sea) in the gray of the objects (e.g., sea) included in the first image.

[0069] The estimation scheme can be performed by applying machine learning, big data technology or artificial intelligence (AI), and the data learned by estimation can be stored in memory 130 by at least one of machine learning, big data technology or artificial intelligence (AI).

[0070] According to an embodiment, in operation 430, processor 120 can generate a color filter by comparing a first image with an estimated second image. Processor 120 can generate the color filter by comparing the color values ​​of the first image and the estimated second image. Each of the first and second images can include red (R), green (G), and blue (B) color elements, and processor 120 can determine the R, G, and B values ​​in the second image that change from the R, G, and B values ​​of the first image. For example, each of R, G, and B can have a value between 0 and 255, and an R value corresponding to 120 in the first image can have an R value of 135 in the second image. The processor can acquire data indicating the R, G, and B values ​​in the second image that change from all the R, G, and B values ​​included in the first image.

[0071] Figure 5 The figure 500 illustrates the process of generating a color filter by obtaining input of a selected second image according to an embodiment.

[0072] According to an embodiment, in operation 510, the processor 120 can acquire input indicating that a first image has been selected. When user input indicating that a first image has been selected is acquired, the processor 120 can display the first image on a display.

[0073] According to an embodiment, in operation 520, the processor 120 may acquire input indicating that a second image has been selected. The processor 120 may acquire user input indicating that a second image has been selected. According to an embodiment, the first image may be an image captured at the same location as the second image. The second image may be an image captured at a different time than the first image. For example, the first image may be an image captured at dusk, and the second image may be an image obtained by capturing the same objects included in the first image at noon.

[0074] According to an embodiment, in operation 530, processor 120 can control the composition of the first image and the second image. Processor 120 can control the composition to compare the first image and the second image. Processor 120 can identify objects present in the first image and objects present in the second image. Objects present in the first image may be the same as objects present in the second image. The second image may include a second object that is the same as the first object included in the first image. At least one processor can control the composition of the second image such that the first object overlaps with the second object. When the compositions of the first image and the second image are the same, similar to the case of an image captured by a fixed camera, the operation of controlling the composition can be omitted.

[0075] According to an embodiment, the processor 120 can control the composition by determining whether the first image and the second image match each other. The processor 120 can search for feature points in the first image and the second image, and extract feature descriptors for the feature points. Feature points can be predetermined portions used to define corresponding images, and feature descriptors can represent corresponding feature regions through vector values. For example, feature points can be contours or center points included in the image, and feature descriptors can be values ​​representing the displacement of each point included in the contour or center point.

[0076] According to an embodiment, processor 120 can perform control to detect objects in an input image (e.g., a first image), identify the detected objects to select objects to track, configure a configuration component for the object region of the tracked object in the input image, track the tracked object in a newly input image (e.g., a second image), and adjust the composition to arrange the object region of the tracked object in the image through the configured composition. Processor 120 can store information about at least one object in memory 130.

[0077] The scheme for controlling the composition of the first and second images is for illustrative purposes only, and the scheme for controlling the composition according to this disclosure is not limited to this description.

[0078] According to an embodiment, in operation 540, processor 120 can generate a color filter by comparing a first image with a second image. Processor 120 can also generate a color filter by comparing a controlled second image with a first image. Furthermore, processor 120 can plot a function and its coefficients by comparing the color values ​​of the controlled second image with those of the first image, and generate a color lookup table based on the plotted function and its coefficients.

[0079] Figure 6 It is a color lookup table 600 generated according to an embodiment by comparing a first image with a second image.

[0080] Color lookup table 600 may include a function 610 drawn by matching the color values ​​of a first image and a second image, as well as information about the coefficients of the function. Function 610 may be a third-order or higher nonlinear polynomial or a trigonometric function. Trigonometric function 610 may be, for example, y = -51.22x^6 + 93.254x^5 - 41.99x^4 - 2.6722x^3 + 2.5786x^2 + 0.9984x + 0.05. Processor 120 may store the function in memory 130, or store the coefficients corresponding to the function (-51.22, 93.254, -41.99, -2.6722, 2.5786, 0.9984, 0.05) in memory 130. Processor 120 may store information indicating a hexadecimal function in electronic device 101 and the function's coefficients. The memory 130 can store at least one filter data including at least one piece of object information or capture information.

[0081] Processor 120 can generate a color lookup table for each of red (R), green (G), and blue (B). Processor 120 can calculate the result of the function to generate a color lookup table for each of R, G, and B, and store the color lookup table in memory 130.

[0082] According to an embodiment, x-axis 620 can be the color values ​​of pixels in the second image, and y-axis 630 can be the color values ​​of pixels in the first image. The x-axis 620 of the color lookup table 600 indicates that color values ​​0 to 255 are normalized to values ​​0 to 1, where the number 660 showing 0 in x-axis 620 can represent a color value of 0, and the number 670 showing 1 in x-axis 620 can represent a color value of 255. This can also be applied to y-axis 630.

[0083] According to an embodiment, pixel color values ​​for either the first or second image may not be present in the color lookup table 600. The processor can correct the color lookup table by mapping pixel color values ​​not present in the second image to predetermined pixel color values. When there is no maximum or minimum value for one of R, G, and B that is not present in the second image (e.g., ...), Figure 6 The processor 120 can map the maximum value of one of the functions (Figure 640) to 255, and map the minimum value of one of the functions precisely or approximately to 0, such as... Figure 6 The function graph 650 is shown. For example, when there is no R value corresponding to 230 in the second image, the processor 120 can match the R value corresponding to 230 in the second image with the R value corresponding to 220 in the first image to correct the color lookup table. Further, the color lookup table can be corrected by matching the R value corresponding to the maximum value (e.g., 255) in the second image with the R value corresponding to the maximum value (e.g., 255) in the first image. When a color filter is applied to a new image, the processor 120 can prevent cropping of colors that are not present in the second image through correction.

[0084] According to an embodiment, processor 120 can correct function 610 and color lookup table 600 to prevent rapid changes in the function. For example, when calculating the coefficients of a function by matching pixel color values, the function may change unintentionally if there are portions that differ from conventional patterns and have large variations in several pixel color values. Cases of large variations differing from conventional patterns can include situations where, even if the color value of R in the first image is 40 and the normal color value of R in the second image matching color value 40 is 60, the color value of R in the second image matching color value 40 is 150. Processor 120 can correct function 610 and color lookup table 600 by changing the coefficients of the function so that the changes in the function are small. Processor 120 can generate a naturally applied composite image (e.g., a fourth image) by correcting the shape of the function in the form of an excessively sharply curved curve and applying the corrected function to a third image.

[0085] According to an embodiment, the correction function, the coefficients of the function, or the color lookup table can be stored in memory 130 and continuously applied to new images.

[0086] Figure 7 It is a graphic 700 showing a first image and a second image displayed on an electronic device according to an embodiment.

[0087] According to an embodiment, the first image 710 may be an image with a filter effect applied as desired by the user. The first image 710 may be referred to as a styled image or a filter image. The first image 710 may include at least one of red (R), green (G), or blue (B) color values ​​in each pixel. The second image 720 may include at least one of red (R), green (G), or blue (B) color values ​​in each pixel. The second image 720 may be an image estimated from the first image 710. The second image 720 may be an image estimated based on the average characteristics of objects within the first image 710. The second image 720 may include the same objects (e.g., a cow) included in the first image 710. The second image 720 may be an image with color values ​​different from those of the first image 710. The R, G, and B values ​​740 of the second image 720 may be distinct from the R, G, and B values ​​730 of the first image 710. For example, the R, G, and B values ​​may have values ​​between 0 and 255, and an R value corresponding to 120 in the first image 710 may match an R value corresponding to 135 in the second image 720. The processor 120 can generate a color filter by comparing the color values ​​of corresponding pixels in the first image 710 and the second image 720.

[0088] Figure 8 This is a graphic 800 showing the third and fourth images displayed on an electronic device according to an embodiment.

[0089] According to an embodiment, the third image 810 may be a target image on which the user wishes to apply a filter. The third image 810 may include an image stored in the memory 130 of the electronic device 101 or an image acquired by the camera module 180 and displayed as a preview. The third image 810 may include an image displayed on a monitor during a video call.

[0090] According to an embodiment, processor 120 can generate a fourth image 820 by applying a color filter to a third image 810. Processor 120 can generate a fourth image 820 with a different color pattern by applying the generated color filter to the third image 810. The third image 810 and the fourth image 820 can include at least one of red (R), green (G), and blue (B) in each pixel, and the R, G, and B values ​​840 of the fourth image 820 can be distinguished from the R, G, and B values ​​830 of the third image 810. For example, the R value in the third image 810 can be 135, and the R value in the fourth image 820 can be 120.

[0091] According to an embodiment, processor 120 can generate a fourth image 820 with a black and white filter applied by comparing a first image 710 with which a black and white filter has been applied with a second image 720 initially estimated from the first image, and applying a black and white filter to a third image 810. The fourth image 820 may include the same object (e.g., a taxi) included in the third image 810. The third image 810 may include an object with a yellow tint (e.g., a taxi). The fourth image 820 may include an object (e.g., a taxi) that has been grayed out by applying a black and white filter.

[0092] According to an embodiment, processor 120 can perform control to obtain input of a stored color filter and store the generated color filter in memory. Processor 120 can generate a fourth image 820 by applying the stored color filter. When the third image 810 is a preview acquired by camera module 180, processor 120 can control camera module 180 to output the fourth image 820 as a preview acquired by camera module 180.

[0093] Figure 9 This is a flowchart table 900 illustrating the process of a user generating a filter and applying the filter using an electronic device according to an embodiment.

[0094] According to an embodiment, in operation 910, processor 120 can obtain input from a photo album or filter application. Processor 120 can execute the application in response to the user's application input.

[0095] According to an embodiment, in operation 920, processor 120 may obtain input indicating that a first image has been selected. Processor 120 may also obtain input indicating that the first image has been re-cropped.

[0096] According to an embodiment, in operation 930, processor 120 may generate a filter after receiving input indicating selection of a first image. Processor 120 may store the generated filter in memory 130 in response to user input indicating storage of the generated filter.

[0097] According to an embodiment, in operation 940, processor 120 can obtain input from a photo album or filter application. Processor 120 can execute the application in response to the user's application input.

[0098] According to an embodiment, in operation 950, processor 120 may acquire a third image. Processor 120 may acquire a third image corresponding to an image to which the user wishes to apply a filter. The third image may include at least one of an image stored in memory 130 of electronic device 101 or an image acquired by camera module 180 and displayed as a preview.

[0099] According to an embodiment, in operation 960, processor 120 may apply a selected filter to a third image in response to user input that selects and applies a filter.

[0100] Figure 10 This is a graphic 1000 showing a screen that generates a filter in an electronic device according to an embodiment.

[0101] According to an embodiment, electronic device 101 may display screen 1050 on display device 160. Screen 1050 may include indications of information such as time and temperature, and also include application icons such as camera and photo album. Screen 1010 may include filter application icons. Applications may include at least one of camera application, photo album application, or filter application. Processor 120 may display screen 1020 on the display in response to user input 1012 pressing an application.

[0102] According to an embodiment, electronic device 101 can display screen 1020 on display device 160. Processor 120 can display filter, my filter, or beauty function on the upper part 1022 of screen 1020. Processor 120 can display screen 1030 on display device 160 in response to user input 1024 pressing the filter creation button.

[0103] According to an embodiment, electronic device 101 can display screen 1030 on display device 160. Processor 120 can display a list of images to select an image on which the user applies a filter on screen 1030. Processor 120 can display screen 1040 on display device 160 in response to user input 1032 pressing an image.

[0104] According to an embodiment, the electronic device 101 can display the screen 1040 on the display device 160.

[0105] According to an embodiment, processor 120 can display a preview image 1043 acquired from a camera on screen 1040. Processor 120 can also display an unfiltered image on display 160 in response to user input 1044 performing a long tap on a portion of the preview image 1043 included in screen 1040. For example, when a user presses on a portion of the preview image displayed on the display for one second, processor 120 can stop displaying the filtered preview image and display the unfiltered image.

[0106] According to an embodiment, processor 120 can stop displaying screen 1040 and display screen 1030 in response to user input 1046 pressing the cancel button. Processor 120 can stop displaying screen 1040 and display screen 1030 in response to user input 1042 pressing the filter create button. Processor 120 can store the generated color filter in response to user input 1048 pressing the save button and proceed to screen 1050 displaying the generated color filter.

[0107] According to an embodiment, electronic device 101 can display screen 1050 on display device 160. Processor 120 can display a list of generated color filters on display device 160 in a horizontal arrangement. Processor 120 can generate additional filters in response to user input 1056 pressing the filter add icon located on the far left of the color filter list. The user can control the intensity of the filter effect displayed on screen 1050. For example, the intensity of the filter effect can include levels one through ten. Electronic device 101 can acquire an image with the filter applied in response to user input pressing button 1054.

[0108] The method of outputting the filter generation process of the processor to the display device 160 is not limited to... Figure 10 The embodiments shown are illustrated, and can be displayed in various ways.

[0109] Figure 11 This is a graphic 1100 showing a screen in which an electronic device adds or removes a filter according to an embodiment.

[0110] According to an embodiment, the processor 120 may display screen 1110 on the display device 160 after the color filter has been generated. Screen 1110 may include a filter creation icon, an icon of an image without the filter applied, and an icon of the generated filter.

[0111] According to an embodiment, when all generated color filters are removed, the processor 120 may display a filter creation icon and an icon of an image without applied filters at the lower part of the screen 1120. According to an embodiment, the screen 1130 displayed on the electronic device 101 may include a screen displaying various generated color filters. Icons of various generated color filters may be arranged at the lower end of the screen 1130. The processor 120 may limit the maximum number of filters that can be generated (e.g., 99). When filter creation input is received while the maximum number of filters that can be generated has been reached, the processor 120 may display a warning message on a portion of the screen. For example, the warning message may include at least one of "Cannot generate more filters" or "Cannot generate a first number or more filters".

[0112] Figure 12This is a graphic 1200 showing a screen displaying an electronic device according to an embodiment changing the name of a color filter.

[0113] According to an embodiment, processor 120 can display screen 1220 on display device 160 to reconfigure the filter name in response to user input 1215 pressing a filter name displayed on the upper part of the display. Processor 120 can display screen 1220 on display device 160 and display an overlay keyboard on a portion of the screen in response to user input 1215. Processor 120 can display separate indicators and an overlay keyboard showing the current filter name to allow the user to correct the filter name on a portion of the screen. When the user inputs letters, processor 120 can acquire the letter input and display letters on display device 160 in response to the user's letter input. After the user generates a filter name via keyboard input, processor 120 can reconfigure the filter name in response to user input pressing an icon for reconfiguring the filter name.

[0114] According to an embodiment, the processor 120 can deactivate the rename button when the user does not input a filter name, and can activate the rename button when the user changes at least one letter. When the rename button is deactivated, the user cannot press the rename button via the display device.

[0115] According to an embodiment, processor 120 can limit the number of letters in the filter name to a first number of letters. Processor 120 can display a warning message on display device 160 in response to user input of writing one letter while the first number of letters have already been entered. The warning message may include at least one of "Cannot enter more letters" or "Cannot enter the first number or more numbers of letters."

[0116] Figure 13 The graphic 1300 shows a screen re-cropping a first image in an electronic device according to an embodiment.

[0117] According to an embodiment, the processor 120 can respond to a press on a portion of the screen (e.g., Figure 10The electronic device 101 can display a re-cropping screen 1310 on the display device 160, allowing the user to re-crop the first image. The user can change the cropping area by moving the corner processing tool 1315 of the cropping area, and the processor 120 can display the changed cropping area on the display device 160 in response to the user's changed input. For example, methods for changing the cropping area may include obtaining input 1325 to expand the cropping area on a fixed image on screen 1320 and obtaining input to move the cropping area 1335 on a fixed image on screen 1330. The processor 120 can limit the size of the cropping area to a first size.

[0118] According to an embodiment, processor 120 can generate a cropped image in response to user input by pressing the complete button 1340. The cropped image may be a first image in memory 130 corresponding to the target image from which the filter is extracted. Processor 120 can stop displaying screen 1310 and display a screen (e.g., ...) in response to user input by pressing the cancel button 1350. Figure 10 (Screen 1040).

[0119] In various embodiments, electronic device 101 may include a camera, a display, a memory 130, and at least one processor 120 electrically connected to the display and the memory. The at least one processor may receive input selecting a first image, generate a color filter by comparing the first image with a second image having a different color pattern than the first image, acquire a third image, and apply the generated color filter to the third image.

[0120] In one embodiment, at least one processor can estimate a second image from a first image.

[0121] In one embodiment, at least one processor may estimate a second image based on the average characteristics of objects within the first image.

[0122] In one embodiment, at least one processor may acquire input for selecting a second image.

[0123] In an embodiment, the second image may include a second object that is the same object as the first object included in the first image, and at least one processor may control the composition of the second image to overlap the first object with the second image, and generate a color filter by comparing the second image with the first image having a controlled composition.

[0124] In one embodiment, the processor 120 may store the generated color filter in the memory 130.

[0125] In one embodiment, at least one processor 120 can generate a fourth image by applying a generated or stored color filter to a third image.

[0126] In an embodiment, the color filter may include at least one of a function plotted by comparing the color values ​​of pixels in the first image and the second image, the coefficients of the function, or a color lookup table of the function plotted by the function.

[0127] In an embodiment, at least one processor 120 can correct a color lookup table by mapping the color values ​​of pixels that are not present in the second image to the color values ​​of predetermined pixels.

[0128] In an embodiment, when there is no maximum or minimum value of one of R, G, and B that is not present in the second image, at least one processor 120 may map the maximum value of one of them to 255, or map the minimum value of one of them to 0.

[0129] In an embodiment, the third image may include at least one of a first preview image acquired by a camera or an image stored in memory.

[0130] In various embodiments, a method of controlling an electronic device may include: an operation of acquiring input for selecting a first image via at least one processor electrically connected to a camera, a display, and a memory; an operation of generating a color filter by comparing the first image with a second image having a color pattern different from the first image; an operation of acquiring a third image; and an operation of applying the generated color filter to the third image.

[0131] In an embodiment, the method of controlling the electronic device may include the operation of estimating a second image from a first image.

[0132] In one embodiment, the method of controlling the electronic device may include estimating the operation of a second image based on the average characteristics of objects within a first image.

[0133] In one embodiment, the method of controlling the electronic device may include obtaining input for selecting a second image.

[0134] According to the method of controlling the electronic device according to an embodiment, the second image may include a second object, which is the same object as the first object included in the first image. In the method of controlling the electronic device, at least one processor may include operations such as controlling the composition of the second image to overlap the first object and the second object, and operations such as generating a color filter by comparing the second image having the controlled composition with the first image.

[0135] In one embodiment, the method of controlling the electronic device may include storing the generated color filter in a memory.

[0136] In the method of controlling the electronic device according to the embodiment, at least one processor can generate a fourth image by applying a generated or stored color filter to a third image.

[0137] In the method of the control electronic device according to the embodiment, the color filter may include at least one of a function plotted by comparing the color values ​​of pixels in a first image and a second image, the coefficients of the function, and a color lookup table of the plotted function. The method of the control electronic device according to the embodiment may include an operation of mapping the color values ​​of pixels not present in the second image to the color values ​​of predetermined pixels, and an operation of correcting the color lookup table by the mapping operation.

[0138] The method for controlling the electronic device according to the embodiment may include the following operation: when there is no maximum or minimum value of one of R, G and B that is not present in the second image, mapping the maximum value of one of them to 255, or mapping the minimum value of one of them to 0.

[0139] In the detailed embodiments described above, elements included in this disclosure are expressed in a singular or plural form according to the presented embodiments. However, for ease of description, the singular or plural form is suitably chosen for the presented situation, and this disclosure is not limited to elements expressed in a singular or plural form. Thus, an element expressed in a plural form may also include a single element, or an element expressed in a singular form may include multiple elements.

[0140] Although specific embodiments have been described in the detailed description of this disclosure, various modifications and changes can be made thereto without departing from the scope of this disclosure. Therefore, the scope of this disclosure should not be defined as limited to the embodiments, but should be defined by the appended claims and their equivalents.

Claims

1. An electronic device comprising: camera; monitor; Memory; as well as At least one processor electrically connected to the display and the memory, Wherein, the at least one processor is configured to: The display is controlled to show a first icon and a target image for adding color filters to the filter list of the electronic device; Get the first user input for the first icon; In response to receiving the first user input, the display is controlled to show a list of images representing multiple images stored in the memory, wherein the multiple images included in the image list are used to generate color filters to be added to the filter list; Obtain second user input for selecting a first image from multiple images; In response to receiving second user input, a color filter is generated based on the first image; and The display is controlled to show a second icon representing the generated color filter and the desired image in which the generated color filter is applied to the target image.

2. The electronic device according to claim 1, wherein the target image comprises at least one image acquired by a camera or an image stored in a memory.

3. The electronic device of claim 1, wherein the at least one processor is configured to store the generated color filter in the memory of the electronic device.

4. The electronic device of claim 1, wherein the plurality of images includes at least one image acquired by a camera of the electronic device and at least one image acquired from a server.

5. The electronic device according to claim 1, wherein the at least one processor is configured to: The display is controlled to show a third icon for changing the name of the generated color filter; Get third user input for the third icon; In response to receiving the third user input, the display is controlled to show a visual object for obtaining the name of the generated color filter; The name of the color filter is obtained based on a fourth user input of the visual object; as well as The display is controlled to show the name of the obtained color filter associated with the second icon.

6. The electronic device of claim 1, wherein the at least one processor is configured to: Generate a second image with a color pattern different from the first image; and A color filter is generated using a first image and a second image.

7. The electronic device of claim 6, wherein the at least one processor is configured to generate the second image based on features of an object in the first image.

8. The electronic device of claim 6, wherein the color filter comprises at least one of a function derived by comparing the color values ​​of pixels in the first image and the second image, the coefficients of the function, or a color lookup table.

9. The electronic device of claim 6, wherein the at least one processor is configured to: Match the first image with the second image; Based on matching and comparing the color values ​​of overlapping pixels; and The color filter is generated based on the comparison.

10. The electronic device of claim 6, wherein the second image is an original image of the first image, and in, The at least one processor is configured to generate a second image, which is the original image of the first image, by using at least one of machine learning, big data technology, or artificial intelligence.

11. An electronic device comprising: camera; monitor; Memory; as well as At least one processor electrically connected to the display and the memory, Wherein, the at least one processor is configured to: The display is controlled to show an image list including multiple images stored in a memory, wherein the multiple images included in the image list are used to generate a color filter to be applied to a target image; Obtain first user input for selecting the first image from a list of multiple images; Obtain second user input for selecting a second image different from the first image from a list of images; Based on the first user input and the second user input, a color filter is generated using the first image and the second image; and The display is controlled to show icons representing color filters and the desired image in which the generated color filters are applied to the target image.

12. The electronic device of claim 11, wherein the target image comprises at least one image acquired by a camera or an image stored in a memory.

13. The electronic device of claim 11, wherein the at least one processor is configured to store the generated color filter in the memory of the electronic device.

14. The electronic device of claim 11, wherein the plurality of images includes at least one image acquired by a camera of the electronic device and at least one image acquired from a server.

15. The electronic device of claim 11, wherein the at least one processor is configured to: The display is controlled to show a third icon for changing the name of the generated color filter; Get third user input for the third icon; In response to receiving the third user input, the display is controlled to show a visual object for obtaining the name of the generated color filter; The name of the color filter is obtained based on a fourth user input of the visual object; as well as The display is controlled to show the name of the obtained color filter associated with the second icon.

16. The electronic device of claim 11, wherein the second image includes a second object identical to the first object included in the first image, and The at least one processor is configured to: Adjust the composition of the second image so that the first and second objects overlap; and A color filter is generated by comparing the adjusted second image with the first image.

17. The electronic device of claim 16, wherein the color filter comprises at least one of a function derived by comparing the color values ​​of pixels in the first image and the second image, the coefficients of the function, or a color lookup table.