KR20210081091A - Electronic device for applying distortion effect to image and operating method thereof - Google Patents
Electronic device for applying distortion effect to image and operating method thereof Download PDFInfo
- Publication number
- KR20210081091A KR20210081091A KR1020190173300A KR20190173300A KR20210081091A KR 20210081091 A KR20210081091 A KR 20210081091A KR 1020190173300 A KR1020190173300 A KR 1020190173300A KR 20190173300 A KR20190173300 A KR 20190173300A KR 20210081091 A KR20210081091 A KR 20210081091A
- Authority
- KR
- South Korea
- Prior art keywords
- distortion
- color
- image
- images
- processor
- Prior art date
Links
- 230000000694 effects Effects 0.000 title claims abstract description 84
- 238000011017 operating method Methods 0.000 title abstract description 7
- 238000000034 method Methods 0.000 claims description 36
- 239000003086 colorant Substances 0.000 claims description 22
- 230000004044 response Effects 0.000 claims description 17
- 230000002194 synthesizing effect Effects 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 5
- 230000008859 change Effects 0.000 claims description 4
- 230000008569 process Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 6
- 230000014509 gene expression Effects 0.000 description 4
- 230000015556 catabolic process Effects 0.000 description 3
- 238000006731 degradation reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G06T5/77—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/001—Image restoration
- G06T5/005—Retouching; Inpainting; Scratch removal
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/60—Rotation of a whole image or part thereof
- G06T3/608—Skewing or deskewing, e.g. by two-pass or three-pass rotation
Abstract
Description
다양한 실시예들은 이미지에 왜곡 효과를 적용하기 위한 전자 장치 및 그의 동작 방법에 관한 것이다. Various embodiments relate to an electronic device for applying a distortion effect to an image and a method of operating the same.
일반적으로 영상 왜곡은 모바일 영상 편집 어플리케이션부터 광고, 영화 제작에 이르기까지 많은 산업에서 사용되고 있는 편집 기법이다. 이러한 영상 왜곡은 복잡도가 높으며, 수학적으로 구현되기 때문에, 높은 리소스(resource)가 요구된다. 아울러, 개발자가 원하는 영상 왜곡을 구현하기 위해, 왜곡 함수들을 도출해 내는 데 어려움이 있으며, 이로 인해 화질 저하 등의 문제가 초래되기도 한다. 즉 개발자로 하여금, 원하는 영상 왜곡을 완벽히 구현하는 것은 어렵다. 나아가, 이미 구현된 영상 왜곡을 유지 보수하는 데에도 어려움이 있다. 따라서, 비개발자가 영상 왜곡을 구현하는 것은 불가능하다. In general, image distortion is an editing technique used in many industries from mobile video editing applications to advertisements and film production. Such image distortion has high complexity, and since it is mathematically implemented, a high resource is required. In addition, in order to implement the image distortion desired by the developer, it is difficult to derive distortion functions, which may cause problems such as image quality degradation. That is, it is difficult for a developer to perfectly implement the desired image distortion. Furthermore, there is a difficulty in maintaining the already implemented image distortion. Therefore, it is impossible for non-developers to implement image distortion.
다양한 실시예들은, 원하는 영상 왜곡을 용이하게 구현할 수 있는 전자 장치 및 그의 동작 방법을 제공한다. Various embodiments provide an electronic device capable of easily realizing a desired image distortion and an operating method thereof.
다양한 실시예들은, 적은 리소스로도 원하는 영상 왜곡을 구현할 수 있는 전자 장치 및 그의 동작 방법을 제공한다. Various embodiments provide an electronic device capable of implementing desired image distortion even with a small amount of resources, and an operating method thereof.
다양한 실시예들은, 비개발자라 하더라도, 원하는 영상 왜곡을 구현할 수 있는 전자 장치 및 그의 동작 방법을 제공한다. Various embodiments provide an electronic device capable of implementing desired image distortion even for a non-developer and an operating method thereof.
다양한 실시예들에 따른 전자 장치의 동작 방법은, 왜곡 효과와 관련된 적어도 하나의 파라미터가 적어도 하나의 컬러로 표현되는 적어도 하나의 설정 이미지를 생성하는 동작, 및 상기 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용하는 동작을 포함할 수 있다. A method of operating an electronic device according to various embodiments includes generating at least one setting image in which at least one parameter related to a distortion effect is expressed in at least one color, and based on the setting image, It may include an operation of applying a distortion effect.
다양한 실시예들에 따른 전자 장치는, 사용자 입력을 수신하기 위한 입력 모듈, 및 상기 입력 모듈과 연결되며, 이미지를 처리하도록 구성되는 프로세서를 포함하고, 상기 프로세서는, 사용자 입력을 기반으로, 왜곡 효과와 관련된 적어도 하나의 파라미터가 적어도 하나의 컬러로 표현되는 적어도 하나의 설정 이미지를 생성하고, 상기 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용하도록 구성될 수 있다. An electronic device according to various embodiments includes an input module for receiving a user input, and a processor connected to the input module and configured to process an image, wherein the processor is configured to perform a distortion effect based on the user input It may be configured to generate at least one setting image in which at least one parameter related to at least one color is expressed, and to apply a distortion effect to the target image based on the setting image.
다양한 실시예들에 따른 컴퓨터 프로그램은, 컴퓨터 장치와 결합되어 왜곡 효과 적용 방법을 상기 컴퓨터 장치에 실행시키기 위해 컴퓨터 판독 가능한 기록 매체에 저장되며, 상기 왜곡 효과 적용 방법은, 왜곡 효과와 관련된 적어도 하나의 파라미터가 적어도 하나의 컬러로 표현되는 적어도 하나의 설정 이미지를 생성하는 동작, 및 상기 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용하는 동작을 포함할 수 있다. A computer program according to various embodiments is stored in a computer-readable recording medium in combination with a computer device to execute a method for applying a distortion effect to the computer device, wherein the method for applying a distortion effect includes at least one distortion effect related method. It may include an operation of generating at least one setting image in which a parameter is expressed in at least one color, and an operation of applying a distortion effect to the target image based on the setting image.
다양한 실시예들에 따르면, 상기 파라미터는, 상기 설정 이미지 내에서의 적어도 하나의 좌표로 식별되는 왜곡 위치, 상기 컬러의 색상에 따라 식별되는 왜곡 방향, 또는 상기 컬러의 색상값에 따라 식별되는 왜곡 세기 중 적어도 어느 하나를 포함할 수 있다. According to various embodiments, the parameter may include a distortion position identified by at least one coordinate in the set image, a distortion direction identified according to the color of the color, or a distortion intensity identified according to a color value of the color. may include at least one of
다양한 실시예들에 따르면, 전자 장치는 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용할 수 있다. 이 때 전자 장치가 사용자 인터페이스를 제공함으로써, 사용자 입력을 기반으로 설정 이미지를 생성할 수 있다. 이를 통해, 전자 장치의 사용자는 왜곡 함수를 도출하지 않고도, 전자 장치를 통해 원하는 영상 왜곡을 구현할 수 있다. 즉 전자 장치가 사용자로 하여금, 원하는 영상 왜곡을 용이하게 구현하게 할 수 있다. 이로 인해, 전자 장치를 통해 영상 왜곡을 구현하는 데 있어서, 화질 저하와 같은 문제가 발생되지 않을 수 있다. 아울러, 전자 장치는 적은 리소스로도 영상 왜곡을 구현하게 할 수 있다. 따라서, 전자 장치는 비개발자라 하더라도, 원하는 영상 왜곡을 구현하게 할 수 있다. According to various embodiments, the electronic device may apply a distortion effect to the target image based on the set image. In this case, the electronic device may generate a setting image based on a user input by providing a user interface. Through this, the user of the electronic device may implement desired image distortion through the electronic device without deriving a distortion function. That is, the electronic device may allow the user to easily realize desired image distortion. For this reason, in implementing image distortion through the electronic device, a problem such as image quality degradation may not occur. In addition, the electronic device may implement image distortion with a small amount of resources. Accordingly, even a non-developer can implement the desired image distortion in the electronic device.
도 1은 다양한 실시예들에 따른 전자 장치를 도시하는 도면이다.
도 2는 다양한 실시예들에 따른 전자 장치의 동작 방법을 도시하는 도면이다.
도 3은 도 2의 설정 이미지 생성 동작을 도시하는 도면이다.
도 4 및 도 5는 도 2의 설정 이미지 생성 동작을 설명하기 위한 도면들이다.
도 6은 도 2의 대상 이미지에 왜곡 효과 적용 동작을 도시하는 도면이다.
도 7, 도 8, 도 9 및 도 10은 도 2의 대상 이미지에 왜곡 효과 적용 동작을 설명하기 위한 도면들이다. 1 is a diagram illustrating an electronic device according to various embodiments of the present disclosure;
2 is a diagram illustrating a method of operating an electronic device according to various embodiments of the present disclosure;
FIG. 3 is a diagram illustrating an operation of generating a setting image of FIG. 2 .
4 and 5 are diagrams for explaining an operation of generating a setting image of FIG. 2 .
FIG. 6 is a diagram illustrating an operation of applying a distortion effect to the target image of FIG. 2 .
7, 8, 9 and 10 are diagrams for explaining an operation of applying a distortion effect to the target image of FIG. 2 .
이하, 본 문서의 다양한 실시예들이 첨부된 도면을 참조하여 설명된다. Hereinafter, various embodiments of the present document will be described with reference to the accompanying drawings.
하기 설명에서, "색상"이라는 용어는, 컬러들이 고유의 특질에 따라 분류된 컬러들의 계열 또는 유형을 의미할 수 있다. 각 색상은, 유사한 특질의 복수의 컬러들을 포함할 수 있다. 일반적으로, 각 색상은, 해당 속성에 속하는 컬러들 중 지배적인 어느 하나의 색이름으로 지칭될 수 있다. 예를 들면, 컬러들은, 빨강, 초록, 파랑, 노랑 등의 색상들로 분류될 수 있다. "색상값"이라는 용어는, 각 컬러에 대한 실제 값을 의미할 수 있다. 즉 색상값은, 각 컬러가 속하는 속성 내에서, 해당 컬러의 강도를 나타낼 수 있다. 예를 들면, 컬러가 밝을수록, 컬러의 색상값이 높을 수 있다. 일 예로, 색상값은 0 내지 255 사이에서 지정될 수 있다. In the following description, the term "color" may mean a series or type of colors in which colors are classified according to their inherent characteristics. Each color may include a plurality of colors of similar characteristics. In general, each color may be referred to as one dominant color name among colors belonging to a corresponding attribute. For example, colors may be classified into colors such as red, green, blue, yellow, and the like. The term "color value" may mean an actual value for each color. That is, the color value may indicate the intensity of the color within the attribute to which each color belongs. For example, the brighter the color, the higher the color value of the color. As an example, the color value may be designated between 0 and 255.
도 1은 다양한 실시예들에 따른 전자 장치(100)를 도시하는 도면이다. 1 is a diagram illustrating an electronic device 100 according to various embodiments.
도 1을 참조하면, 다양한 실시예들에 따른 전자 장치(100)는 입력 모듈(110), 통신 모듈(120), 카메라 모듈(130), 표시 모듈(140), 메모리(150) 또는 프로세서(160) 중 적어도 어느 하나를 포함할 수 있다. 어떤 실시예에서는, 전자 장치(100)의 구성 요소들 중 적어도 어느 하나가 생략되거나, 전자 장치(100)에 하나 이상의 다른 구성 요소가 추가될 수 있다. Referring to FIG. 1 , an electronic device 100 according to various embodiments includes an
입력 모듈(110)은 전자 장치(100)의 적어도 하나의 구성 요소에 사용될 명령을 입력할 수 있다. 입력 모듈(110)은, 사용자가 전자 장치(100)에 직접적으로 명령 또는 데이터를 입력하도록 구성되는 입력 장치, 주변 환경을 감지하여 데이터를 발생하도록 구성되는 센서 장치 중 적어도 어느 하나를 포함할 수 있다. 예를 들면, 입력 장치는 마이크로폰(microphone), 마우스(mouse) 또는 키보드(keyboard) 중 적어도 어느 하나를 포함할 수 있다. 어떤 실시예에서, 센서 장치는 터치를 감지하도록 설정된 터치 회로(touch circuitry) 또는 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로 중 적어도 어느 하나를 포함할 수 있다. The
통신 모듈(120)은 전자 장치(100)에서 외부 장치(미도시)와 통신을 수행할 수 있다. 통신 모듈(120)은 전자 장치(100)와 외부 장치 간 통신 채널을 수립하고, 통신 채널을 통하여, 외부 장치와 통신을 수행할 수 있다. 통신 모듈(120)은 유선 통신 모듈 또는 무선 통신 모듈 중 적어도 어느 하나를 포함할 수 있다. 예를 들면, 무선 통신 모듈은 원거리 통신망 또는 근거리 통신망 중 적어도 어느 하나를 통하여 외부 장치와 통신을 수행할 수 있다. The communication module 120 may communicate with an external device (not shown) in the electronic device 100 . The communication module 120 may establish a communication channel between the electronic device 100 and an external device, and communicate with the external device through the communication channel. The communication module 120 may include at least one of a wired communication module and a wireless communication module. For example, the wireless communication module may communicate with an external device through at least one of a wide area network and a local area network.
카메라 모듈(130)은 영상을 촬영할 수 있다. 예를 들면, 카메라 모듈(130)은 렌즈, 이미지 센서, 이미지 시그널 프로세서 또는 플래시 중 적어도 어느 하나를 포함할 수 있다. The
출력 모듈(140)은 전자 장치(100)의 외부로 정보를 시각적으로 제공할 수 있다. 출력 모듈(140)은 정보를 시각적으로 제공하는 표시 모듈 또는 정보를 청각적으로 제공하는 오디오 모듈 중 적어도 어느 하나를 포함할 수 있다. 예를 들면, 표시 모듈은 디스플레이, 홀로그램 장치 또는 프로젝터 중 적어도 어느 하나를 포함할 수 있다. 어떤 실시예에서, 표시 모듈은 입력 모듈의 터치 회로 또는 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로 중 적어도 어느 하나와 조립되어, 터치 스크린으로 구현될 수 있다. The output module 140 may visually provide information to the outside of the electronic device 100 . The output module 140 may include at least one of a display module that visually provides information and an audio module that provides information audibly. For example, the display module may include at least one of a display, a hologram device, and a projector. In some embodiments, the display module may be implemented as a touch screen by being assembled with at least one of a touch circuit of an input module or a sensor circuit configured to measure the intensity of a force generated by a touch.
메모리(150)는 전자 장치(100)의 적어도 하나의 구성 요소에 의해 사용되는 다양한 데이터를 저장할 수 있다. 예를 들면, 메모리(150)는 휘발성 메모리 또는 비휘발성 메모리 중 적어도 어느 하나를 포함할 수 있다. 데이터는 프로그램 또는 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 프로그램은 메모리(150)에 소프트웨어로서 저장될 수 있으며, 운영 체제, 미들 웨어 또는 어플리케이션 중 적어도 어느 하나를 포함할 수 있다. 어플리케이션은 영상을 처리 또는 편집하기 위한 어플리케이션을 포함할 수 있다. The
프로세서(160)는 메모리(150)의 프로그램을 실행하여, 전자 장치(100)의 적어도 하나의 구성 요소를 제어할 수 있고, 데이터 처리 또는 연산을 수행할 수 있다. 프로세서(160)는 어플리케이션을 실행할 수 있다. 어플리케이션은 영상을 처리 또는 편집하기 위한 어플리케이션을 포함할 수 있다. 이 때 프로세서(160)는 어플리케이션을 통해, 영상에 왜곡 효과를 적용할 수 있다. The processor 160 may execute a program in the
프로세서(160)는 적어도 하나의 설정 이미지를 생성할 수 있다. 설정 이미지에는, 왜곡 효과와 관련된 적어도 하나의 파라미터가 적어도 하나의 컬러로 표현될 수 있다. 여기서, 파라미터는, 설정 이미지 내에서의 적어도 하나의 좌표로 식별되는 왜곡 위치, 컬러의 색상에 따라 식별되는 왜곡 방향, 또는 컬러의 색상값에 따라 식별되는 왜곡 세기 중 적어도 어느 하나를 포함할 수 있다. 일 예로, 제 1 색상은 우측 방향을 나타내고, 제 2 색상은 좌측 방향을 나타낼 수 있다. 다른 예로, 제 1 색상은 상측 방향을 나타내고, 제 2 색상은 하측 방향을 나타낼 수 있다. 여기서, 제 1 색상은 파랑이고, 제 2 색상은 빨강일 수 있으나, 이에 한정되는 것은 아니다. 예를 들면, 색상값이 높을수록, 강한 왜곡 세기를 나타낼 수 있다. 이 때 설정 이미지는 적어도 하나의 컬러 엘리먼트를 포함할 수 있다. 설정 이미지 내에서, 각 컬러 엘리먼트가 왜곡 위치, 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나를 표현할 수 있다. 예를 들면, 컬러 엘리먼트는 왜곡 방향의 역 방향에 있는 설정 이미지의 에지(edge)로부터 왜곡 방향을 따라 왜곡 위치로 연장되고, 그의 색상 또는 색상값 중 적어도 어느 하나로 표현될 수 있다. 여기서, 컬러 엘리먼트는 에지와 왜곡 위치 사이에서, 균일한 색상값으로 표현될 수 있고, 왜곡 위치로부터의 거리에 따라 색상값이 변경되는 그라데이션(gradation) 형태로 표현될 수도 있다. The processor 160 may generate at least one setting image. In the setting image, at least one parameter related to the distortion effect may be expressed in at least one color. Here, the parameter may include at least one of a distortion position identified by at least one coordinate in the setting image, a distortion direction identified according to the color of the color, or a distortion intensity identified according to the color value of the color. . For example, the first color may indicate a right direction, and the second color may indicate a left direction. As another example, the first color may indicate an upward direction, and the second color may indicate a downward direction. Here, the first color may be blue and the second color may be red, but is not limited thereto. For example, the higher the color value, the stronger the distortion intensity may be. In this case, the setting image may include at least one color element. In the setting image, each color element may represent at least one of a distortion position, a distortion direction, and a distortion intensity. For example, the color element may extend from an edge of the setting image in a direction opposite to the distortion direction to a distortion position along the distortion direction, and may be expressed by at least one of its color or color value. Here, the color element may be expressed as a uniform color value between the edge and the distortion position, or may be expressed in the form of a gradation in which the color value is changed according to a distance from the distortion position.
예를 들면, 프로세서(160)는 사용자 인터페이스(user interface)를 통해, 사용자 입력을 기반으로 설정 이미지를 생성할 수 있다. 이를 위해, 프로세서(160)는 표시 모듈(140)을 통해, 사용자 인터페이스를 제공하고, 입력 모듈(110)을 통해, 사용자 입력을 검출할 수 있다. 프로세서(160)는 사용자 입력을 기반으로, 좌표를 선택하고, 좌표에 대응하여 색상 또는 색상값 중 적어도 어느 하나를 선택할 수 있다. 일 예로, 사용자 입력을 기반으로 색상만이 선택되는 경우, 프로세서(160)는 선택된 색상에 대응하여 디폴트로 설정된 색상값을 추가로 선택할 수 있다. 다른 예로, 사용자 입력을 기반으로 색상값만이 선택되는 경우, 프로세서(160)는 선택된 색상값이 속하는 색상을 추가로 선택할 수 있다. 그리고 프로세서(160)는 선택된 좌표에 대응하여, 선택된 색상 또는 선택된 색상값 중 적어도 어느 하나를 컬러 엘리먼트로 표현할 수 있다. For example, the processor 160 may generate a setting image based on a user input through a user interface. To this end, the processor 160 may provide a user interface through the display module 140 and detect a user input through the
프로세서(160)는 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용할 수 있다. 이를 위해, 프로세서(160)는 통신 모듈(120)을 통해 대상 이미지를 수신하거나, 카메라 모듈(130)을 통해 대상 이미지를 촬영하거나, 메모리(150)로부터 미리 저장된 대상 이미지를 선택할 수 있다. 이 때 프로세서(160)는 설정 이미지로부터 왜곡 효과를 결정할 수 있다. 프로세서(160)는 설정 이미지로부터 적어도 하나의 왜곡 위치를 검출하고, 각 왜곡 위치에 대응하여, 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나를 검출할 수 있다. 이 때 프로세서(160)는 각 컬러 엘리먼트에 대해, 좌표 및 색상 또는 색상값 중 적어도 어느 하나를 검출함으로써, 왜곡 위치 및 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나를 검출할 수 있다. 그리고 프로세서(160)는 대상 이미지에서 각 왜곡 위치에 대응하여, 대응하는 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나에 따라 왜곡 효과를 적용할 수 있다. The processor 160 may apply a distortion effect to the target image based on the set image. To this end, the processor 160 may receive a target image through the communication module 120 , photograph the target image through the
제 1 실시예에 따르면, 프로세서(160)는 하나의 설정 이미지(710, 810)를 기반으로, 대상 이미지에 왜곡 효과를 적용하고, 이를 통해 단일 결과 이미지를 획득할 수 있다. 프로세서(160)는 설정 이미지로부터 왜곡 효과를 결정할 수 있다. 그리고 프로세서(160)는 대상 이미지에 왜곡 효과를 적용할 수 있다. 이를 통해, 단일 결과 이미지가 획득될 수 있다.According to the first embodiment, the processor 160 may apply a distortion effect to the target image based on one
제 2 실시예에 따르면, 프로세서(160)는 복수 개의 설정 이미지들을 기반으로, 대상 이미지에 왜곡 효과를 적용하고, 이를 통해 단일 결과 이미지를 획득할 수 있다. 이를 위해, 프로세서(160)는 복수 개의 미리 정해진 색상들에 각각 대응하는 설정 이미지들을 생성할 수 있다. 일 예로, 미리 정해진 색상들은, 빨강, 초록 및 파랑을 포함할 수 있다. 프로세서(160)는 대상 이미지를 미리 정해진 색상들에 각각 대응하는 복수 개의 색상 이미지들로 분리할 수 있다. 이 때 프로세서(160)는 미리 정해진 색상들에 따라 설정 이미지들과 색상 이미지들을 대응시킬 수 있다. 그리고 프로세서(160)는 설정 이미지들을 기반으로, 색상 이미지들 각각에 왜곡 효과를 적용할 수 있다. 이를 통해, 복수 개의 왜곡 이미지들이 획득될 수 있다. 일 예로, 왜곡 이미지들은, 빨강 이미지, 초록 이미지 및 파랑 이미지를 포함할 수 있다. 이에 따라, 프로세서(160)는 왜곡 이미지들을 합성하여, 결과 이미지를 획득할 수 있다. According to the second embodiment, the processor 160 may apply a distortion effect to the target image based on the plurality of set images, and thereby obtain a single result image. To this end, the processor 160 may generate setting images respectively corresponding to a plurality of predetermined colors. For example, the predetermined colors may include red, green, and blue. The processor 160 may divide the target image into a plurality of color images respectively corresponding to predetermined colors. In this case, the processor 160 may match the set images with the color images according to predetermined colors. In addition, the processor 160 may apply a distortion effect to each of the color images based on the set images. Through this, a plurality of distorted images may be obtained. As an example, the distortion images may include a red image, a green image, and a blue image. Accordingly, the processor 160 may obtain a result image by synthesizing the distorted images.
제 3 실시예에 따르면, 프로세서(160)는 복수 개의 설정 이미지들을 기반으로, 대상 이미지에 왜곡 효과를 적용하고, 이를 통해 애니메이션을 구현할 수 있다. 이를 위해, 프로세서(160)는 연속적인 설정 이미지들을 생성할 수 있다. 여기서, 프로세서(160)는 설정 이미지들의 생성 시간에 대응하여, 설정 이미지들에 순서들을 부여할 수 있다. 프로세서(160)는 설정 이미지들을 기반으로, 대상 이미지에 왜곡 효과를 적용할 수 있다. 일 예로, 프로세서(160)는 대상 이미지와 동일한 복수 개의 복사 이미지들을 생성하고, 설정 이미지들을 기반으로, 복사 이미지들 각각에 왜곡 효과를 적용할 수 있다. 다른 예로, 프로세서(160)는 설정 이미지들을 기반으로, 설정 이미지들의 순서들에 따라, 대상 이미지에 왜곡 효과를 부가적으로 적용할 수 있다. 이를 통해, 복수 개의 왜곡 이미지들이 획득될 수 있다. 이에 따라, 프로세서(160)는 설정 이미지들의 순서를 기반으로, 왜곡 이미지들을 연속적으로 결합하여, 애니메이션을 획득할 수 있다. 즉 왜곡 이미지들이 애니메이션을 구성하는 프레임들로 각각 이용될 수 있다. According to the third embodiment, the processor 160 may apply a distortion effect to a target image based on a plurality of set images, and may implement animation through this. To this end, the processor 160 may generate continuous setting images. Here, the processor 160 may assign orders to the setting images in response to the generation time of the setting images. The processor 160 may apply a distortion effect to the target image based on the set images. For example, the processor 160 may generate a plurality of copy images identical to the target image, and apply a distortion effect to each of the copy images based on the set images. As another example, the processor 160 may additionally apply a distortion effect to the target image according to the order of the setting images based on the setting images. Through this, a plurality of distorted images may be obtained. Accordingly, the processor 160 may obtain an animation by successively combining the distortion images based on the order of the set images. That is, each of the distorted images may be used as frames constituting the animation.
다양한 실시예들에 따른 전자 장치(100)는, 사용자 입력을 수신하기 위한 입력 모듈(110), 및 입력 모듈(110)과 연결되며, 이미지를 처리하도록 구성되는 프로세서(160)를 포함할 수 있다. The electronic device 100 according to various embodiments may include an
다양한 실시예들에 따르면, 프로세서(160)는, 사용자 입력을 기반으로, 왜곡 효과와 관련된 적어도 하나의 파라미터가 적어도 하나의 컬러로 표현되는 적어도 하나의 설정 이미지를 생성하고, 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용하도록 구성될 수 있다. According to various embodiments, the processor 160 generates, based on a user input, at least one setting image in which at least one parameter related to a distortion effect is expressed in at least one color, and based on the setting image, It may be configured to apply a distortion effect to the target image.
다양한 실시예들에 따르면, 파라미터는, 설정 이미지 내에서의 적어도 하나의 좌표로 식별되는 왜곡 위치, 컬러의 색상에 따라 식별되는 왜곡 방향, 또는 컬러의 색상값에 따라 식별되는 왜곡 세기 중 적어도 어느 하나를 포함할 수 있다. According to various embodiments, the parameter is at least one of a distortion position identified by at least one coordinate in a setting image, a distortion direction identified according to a color of a color, or a distortion intensity identified according to a color value of a color may include.
다양한 실시예들에 따르면, 전자 장치(100)는, 표시 모듈(140)을 더 포함할 수 있다. According to various embodiments, the electronic device 100 may further include a display module 140 .
다양한 실시예들에 따르면, 프로세서(160)는, 표시 모듈(140)을 통해, 사용자 인터페이스를 제공하고, 사용자 인터페이스를 통해, 좌표를 선택하고, 사용자 인터페이스를 통해, 색상 또는 색상값 중 적어도 어느 하나를 선택하고, 좌표에 대응하여, 색상 또는 색상값 중 적어도 어느 하나를 표현하여, 설정 이미지를 생성하도록 구성될 수 있다. According to various embodiments, the processor 160 provides a user interface through the display module 140 , selects coordinates through the user interface, and at least one of a color or a color value through the user interface may be configured to generate a setting image by selecting and expressing at least one of a color or a color value in correspondence to the coordinates.
다양한 실시예들에 따르면, 설정 이미지는, 왜곡 위치, 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나를 표현하는 적어도 하나의 컬러 엘리먼트를 포함할 수 있다. According to various embodiments, the setting image may include at least one color element representing at least one of a distortion position, a distortion direction, and a distortion intensity.
다양한 실시예들에 따르면, 컬러 엘리먼트는, 왜곡 방향의 역 방향에 있는 에지로부터 왜곡 방향을 따라 왜곡 위치로 연장되고, 색상 또는 색상값 중 적어도 어느 하나로 표현될 수 있다. According to various embodiments, the color element may extend from an edge in a direction opposite to the distortion direction to a distortion position along the distortion direction, and may be expressed as at least one of a color or a color value.
다양한 실시예들에 따르면, 색상값은, 에지와 왜곡 위치 사이에서, 균일하게 표현되거나, 왜곡 위치로부터의 거리에 따라 변경되도록 표현될 수 있다. According to various embodiments, the color value may be expressed uniformly between the edge and the distortion position, or may be expressed to be changed according to a distance from the distortion position.
다양한 실시예들에 따르면, 프로세서(160)는, 컬러 엘리먼트에 대해, 왜곡 위치를 검출하고, 컬러 엘리먼트에 대해, 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나를 검출하고, 대상 이미지에서 왜곡 위치에 대응하여, 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나에 따라 왜곡 효과를 적용하도록 구성될 수 있다. According to various embodiments, the processor 160 detects a distortion position with respect to a color element, detects at least one of a distortion direction or a distortion intensity with respect to the color element, and corresponds to the distortion position in the target image. , may be configured to apply a distortion effect according to at least one of a distortion direction or a distortion intensity.
다양한 실시예들에 따르면, 프로세서(160)는, 복수 개의 미리 정해진 색상들에 각각 대응하는 복수 개의 설정 이미지들을 생성하고, 대상 이미지를 색상들에 각각 대응하는 복수 개의 색상 이미지들로 분리하고, 설정 이미지들을 기반으로, 색상 이미지들 각각에 왜곡 효과를 적용하여, 복수 개의 왜곡 이미지들을 획득하고, 왜곡 이미지들을 합성하여, 결과 이미지를 획득하도록 구성될 수 있다. According to various embodiments, the processor 160 generates a plurality of setting images respectively corresponding to a plurality of predetermined colors, separates the target image into a plurality of color images respectively corresponding to the colors, and sets Based on the images, applying a distortion effect to each of the color images to obtain a plurality of distorted images, and synthesizing the distorted images to obtain a result image.
다양한 실시예들에 따르면, 프로세서(160)는, 연속적인 복수 개의 설정 이미지들을 기반으로, 대상 이미지에 왜곡 효과를 적용하여, 복수 개의 왜곡 이미지들을 획득하고, 왜곡 이미지들을 연속적으로 결합하여, 애니메이션을 획득하도록 구성될 수 있다. According to various embodiments, the processor 160 applies a distortion effect to a target image based on a plurality of successive set images to obtain a plurality of distorted images, and continuously combines the distorted images to perform animation. can be configured to obtain.
도 2는 다양한 실시예들에 따른 전자 장치(100)의 동작 방법을 도시하는 도면이다. 2 is a diagram illustrating a method of operating the electronic device 100 according to various embodiments of the present disclosure.
도 2를 참조하면, 전자 장치(100)는 210 동작에서 적어도 하나의 컬러로 표현되는 적어도 하나의 설정 이미지를 생성할 수 있다. 설정 이미지에는, 왜곡 효과와 관련된 적어도 하나의 파라미터가 적어도 하나의 컬러로 표현될 수 있다. 여기서, 파라미터는, 설정 이미지 내에서의 적어도 하나의 좌표로 식별되는 왜곡 위치, 컬러의 색상에 따라 식별되는 왜곡 방향, 또는 컬러의 색상값에 따라 식별되는 왜곡 세기 중 적어도 어느 하나를 포함할 수 있다. 이 때 설정 이미지는 적어도 하나의 컬러 엘리먼트를 포함할 수 있다. 설정 이미지 내에서, 각 컬러 엘리먼트가 왜곡 위치, 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나를 표현할 수 있다. 예를 들면, 컬러 엘리먼트는 왜곡 방향의 역 방향에 있는 설정 이미지의 에지(edge)로부터 왜곡 방향을 따라 왜곡 위치로 연장되고, 그의 색상 또는 색상값 중 적어도 어느 하나로 표현될 수 있다. 여기서, 컬러 엘리먼트는 에지와 왜곡 위치 사이에서, 균일한 색상값으로 표현될 수 있고, 왜곡 위치로부터의 거리에 따라 색상값이 변경되는 그라데이션 형태로 표현될 수도 있다.Referring to FIG. 2 , the electronic device 100 may generate at least one setting image expressed in at least one color in
도 3은 도 2의 설정 이미지 생성 동작을 도시하는 도면이다. 도 4 및 도 5는 도 2의 설정 이미지 생성 동작을 설명하기 위한 도면들이다. FIG. 3 is a diagram illustrating an operation of generating a setting image of FIG. 2 . 4 and 5 are diagrams for explaining an operation of generating a setting image of FIG. 2 .
도 3을 참조하면, 전자 장치(100)는 310 동작에서 설정 이미지를 생성하기 위한 사용자 인터페이스를 제공할 수 있다. 프로세서(160)는 표시 모듈(140)을 통해, 사용자 인터페이스를 제공할 수 있다. 예를 들면, 프로세서(160)는 표시 모듈(140)을 통해, 설정 이미지를 생성하기 위한 설정 화면을 표시할 수 있다. 설정 화면은 단일 컬러, 예컨대 검정일 수 있다. 일 실시예에 따르면, 프로세서(160)는 설정 화면을 표시하기 전에, 왜곡 모드를 설정할 수 있다. 다른 실시예에 따르면, 프로세서(160)는 설정 화면을 표시하면서, 왜곡 모드를 설정할 수 있다. 프로세서(160)는 입력 모듈(110)을 통해, 사용자 입력을 검출하고, 사용자 입력을 기반으로 왜곡 모드를 설정할 수 있다. 왜곡 모드는 전체 왜곡 방향 또는 생성하고자 하는 설정 이미지들의 개수 중 적어도 어느 하나에 따라 결정될 수 있다. 여기서, 전체 왜곡 방향은 수평 방향 또는 수직 방향 중 적어도 어느 하나로 이루어질 수 있다. Referring to FIG. 3 , the electronic device 100 may provide a user interface for generating a setting image in
전자 장치(100)는 320 동작에서 사용자 인터페이스를 통해, 왜곡 효과를 적용하기 위한 위치의 좌표가 선택할 수 있다. 프로세서(160)는 사용자 인터페이스를 제공하면서, 입력 모듈(110)을 통해, 사용자 입력을 검출할 수 있다. 여기서, 전자 장치(100)의 사용자는 입력 모듈(110)을 통해, 왜곡 위치로서의 좌표를 지정하기 위한 사용자 입력을 제공할 수 있다. 이를 통해, 프로세서(160)는 사용자 입력을 기반으로, 좌표를 선택할 수 있다. 예를 들면, 표시 모듈(140)이 입력 모듈(110)과 함께 터치 스크린으로 구현된 경우, 프로세서(160)는 사용자 입력에 대응하는 터치 위치를 검출하고, 터치 위치의 좌표를 선택할 수 있다. 일 예로, 터치 위치에 복수 개의 좌표들이 존재하면, 프로세서(160)는 좌표들 중 중심의 좌표 또는 가장 강한 터치 강도의 좌표를 선택할 수 있다. In
전자 장치(100)는 330 동작에서 좌표에 대한 색상 및 색상값 중 적어도 어느 하나를 설정할 수 있다. 프로세서(160)는 사용자 인터페이스를 제공하면서, 입력 모듈(110)을 통해, 사용자 입력을 검출할 수 있다. 여기서, 전자 장치(100)의 사용자는 입력 모듈(110)을 통해, 왜곡 방향으로서의 색상 또는 왜곡 세기로서의 색상값 중 적어도 어느 하나를 지정하기 위한 사용자 입력을 제공할 수 있다. 이를 통해, 프로세서(160)는 사용자 입력을 기반으로, 색상 또는 색상값 중 적어도 어느 하나를 설정할 수 있다. 일 예로, 전체 왜곡 방향이 수평 방향으로 설정된 경우, 제 1 색상은 우측 방향을 나타내고, 제 2 색상은 좌측 방향을 나타낼 수 있다. 다른 예로, 전체 왜곡 방향이 수직 방향으로 설정된 경우, 제 1 색상은 상측 방향을 나타내고, 제 2 색상은 하측 방향을 나타낼 수 있다. 여기서, 제 1 색상은 파랑이고, 제 2 색상은 빨강일 수 있으나, 이에 한정되는 것은 아니다. 한편, 색상값이 높을수록, 강한 왜곡 세기를 나타낼 수 있다. The electronic device 100 may set at least one of a color and a color value for coordinates in
예를 들면, 320 동작에서 좌표가 선택되면, 프로세서(160)는 색상 또는 색상값을 선택하기 위한 입력창을 설정 화면 상에 중첩하여 표시할 수 있다. 이를 통해, 프로세서(160) 사용자 입력을 기반으로, 색상 또는 색상값 중 적어도 어느 하나를 설정할 수 있다. 일 실시예에 따르면, 프로세서(160)는 사용자 입력을 기반으로, 색상 또는 색상값 중 어느 하나만을 설정한 다음, 임의로 색상 또는 색상값 중 나머지를 설정할 수 있다. 일 예로, 사용자 입력을 기반으로 색상만이 선택되는 경우, 프로세서(160)는 선택된 색상에 대응하여 디폴트로 설정된 색상값을 추가로 선택할 수 있다. 다른 예로, 사용자 입력을 기반으로 색상값만이 선택되는 경우, 프로세서(160)는 선택된 색상값이 속하는 색상을 추가로 선택할 수 있다.For example, when coordinates are selected in
전자 장치(100)는, 340 동작에서 설정 이미지를 생성하기 위한 설정이 완료되었는 지의 여부를 판단할 수 있다. 이 때 프로세서(160)는 입력 모듈(110)을 통해, 사용자 입력을 검출하고, 사용자 입력을 기반으로 설정 이미지를 생성하기 위한 설정이 완료되었는 지의 여부를 판단할 수 있다. In
340 동작에서 설정 이미지를 생성하기 위한 설정이 완료되지 않은 것으로 판단되면, 전자 장치(100)는 320 동작으로 복귀할 수 있다. 그리고 전자 장치(100)는 320 동작, 330 동작 및 340 동작을 반복하여 수행할 수 있다. 프로세서(160)는 이미 선택된 좌표, 해당 좌표에 대응하여 설정된 색상 또는 해당 좌표에 대응하여 설정된 색상값 중 적어도 어느 하나를 삭제하거나 변경할 수 있다. 또는 프로세서(160)는 새로운 좌표를 선택하고, 새로운 좌표에 대응하여 색상 또는 색상값 중 적어도 어느 하나를 추가로 설정할 수 있다. If it is determined in
340 동작에서 설정 이미지를 생성하기 위한 설정이 완료된 것으로 판단되면, 전자 장치(100)는 350 동작에서 설정 이미지를 생성할 수 있다. 이 때 설정 이미지는 적어도 하나의 컬러 엘리먼트를 포함할 수 있다. 프로세서(160)는 선택된 좌표에 대응하여, 설정된 색상 또는 설정된 색상값 중 적어도 어느 하나를 컬러 엘리먼트로 표현할 수 있다. 이를 통해, 설정 이미지 내에서, 각 컬러 엘리먼트가 왜곡 위치, 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나를 표현할 수 있다. 예를 들면, 컬러 엘리먼트는 왜곡 방향의 역 방향에 있는 설정 이미지의 에지로부터 왜곡 방향을 따라 왜곡 위치로 연장되고, 그의 색상 또는 색상값 중 적어도 어느 하나로 표현될 수 있다. 여기서, 컬러 엘리먼트는 에지와 왜곡 위치 사이에서, 균일한 색상값으로 표현될 수 있고, 왜곡 위치로부터의 거리에 따라 색상값이 변경되는 그라데이션 형태로 표현될 수도 있다. 이 후 전자 장치(100)는 도 2로 리턴할 수 있다. If it is determined in
일 예로, 프로세서(160)는, 도 4에 도시된 바와 같이 설정 이미지(410)를 생성할 수 있다. 설정 이미지(410)는 복수 개의 컬러 엘리먼트(예: ①, ②, ③, ④, ⑤)들을 포함할 수 있다. 전체 왜곡 방향이 수평 방향으로 설정된 경우, 설정 이미지(410)에서 컬러 엘리먼트(예: ①, ②, ③, ④, ⑤)들은 수평 방향으로 연장될 수 있다. 이 때 컬러 엘리먼트(예: ①, ②, ③, ④, ⑤)들은 제 1 색상, 즉 파랑의 제 1 컬러 엘리먼트(예: ①, ②, ⑤)들과 제 2 색상, 즉 빨강의 제 2 컬러 엘리먼트(예: ③, ④)들을 포함할 수 있다. As an example, the processor 160 may generate a
제 1 색상은 우측 방향(>>)을 나타내므로, 제 1 컬러 엘리먼트(예: ①, ②, ⑤)들은 설정 이미지(410)의 좌측 에지로부터 우측 방향(>>)을 따라 왜곡 위치로 연장될 수 있다. 그리고 각 제 1 컬러 엘리먼트(예: ①, ②, ⑤)는 각 색상값(예: 255, 130, 110)으로 표현될 수 있다. 여기서, 각 색상값(예: 255, 130, 110)은 각 왜곡 세기(예: 1.0, 0.5, 0.4)와 매핑되어 있을 수 있다. 어떤 제 1 컬러 엘리먼트(예: ①, ②)는 설정 이미지(410)의 좌측 에지와 왜곡 위치 사이에서, 균일한 색상값(예: 255, 130)으로 표현될 수 있다. 또는 어떤 제 1 컬러 엘리먼트(예: ⑤)는 설정 이미지(410)의 좌측 에지와 왜곡 위치 사이에서, 왜곡 위치로부터의 거리에 따라 색상값(예: 110 -> 255)이 변경되는 그라데이션 형태로 표현될 수도 있다. Since the first color represents the right direction ( >> ), the first color elements (eg, ①, ②, ⑤) are to extend from the left edge of the setting
제 2 색상은 좌측 방향(<<)을 나타내므로, 제 2 컬러 엘리먼트(예: ③, ④)들은 설정 이미지(410)의 우측 에지로부터 좌측 방향(<<)을 따라 왜곡 위치로 연장될 수 있다. 그리고 각 제 2 컬러 엘리먼트(예: ③, ④)는 각 색상값(예: 255, 104)으로 표현될 수 있다. 여기서, 각 색상값(예: 255, 130, 110)은 각 왜곡 세기(예: 1.0, 0.5, 0.4)와 매핑되어 있을 수 있다. 어떤 제 2 컬러 엘리먼트(예: ③, ④)는 설정 이미지(410)의 좌측 에지와 왜곡 위치 사이에서, 균일한 색상값(예: 255, 104)으로 표현될 수 있다. 또는 어떤 제 2 컬러 엘리먼트(미도시)는 설정 이미지(410)의 좌측 에지와 왜곡 위치 사이에서, 왜곡 위치로부터의 거리에 따라 색상값이 변경되는 그라데이션 형태로 표현될 수도 있다. Since the second color represents the left direction ( << ), the second color elements (eg, ③, ④) may extend from the right edge of the setting
다른 예로, 프로세서(160)는, 도 5에 도시된 바와 같이 설정 이미지(510)를 생성할 수 있다. 설정 이미지(510)는 복수 개의 컬러 엘리먼트들을 포함할 수 있다. 전체 왜곡 방향이 수직 방향으로 설정된 경우, 설정 이미지(410)에서 컬러 엘리먼트들은 수직 방향으로 연장될 수 있다. 이 때 컬러 엘리먼트들은 제 1 색상, 즉 파랑의 제 1 컬러 엘리먼트(예: ③)들과 제 2 색상, 즉 빨강의 제 2 컬러 엘리먼트(예: ①, ②)들을 포함할 수 있다. As another example, the processor 160 may generate a
제 1 색상은 상측 방향()을 나타내므로, 제 1 컬러 엘리먼트(예: ③)들은 설정 이미지(510)의 하측 에지로부터 상측 방향()을 따라 왜곡 위치로 연장될 수 있다. 그리고 각 제 1 컬러 엘리먼트(예: ③)는 각 색상값(예: 188)으로 표현될 수 있다. 여기서, 각 색상값(예: 188)은 각 왜곡 세기(예: 0.74)와 매핑되어 있을 수 있다. 어떤 제 1 컬러 엘리먼트(예: ③)는 설정 이미지(510)의 하측 에지와 왜곡 위치 사이에서, 균일한 색상값(예: 188)으로 표현될 수 있다. 또는 어떤 제 1 컬러 엘리먼트(미도시)는 설정 이미지(510)의 하측 에지와 왜곡 위치 사이에서, 왜곡 위치로부터의 거리에 따라 색상값이 변경되는 그라데이션 형태로 표현될 수도 있다. The first color is upward ( ), the first color elements (eg, ③) move from the lower edge of the setting
제 2 색상은 하측 방향()을 나타내므로, 제 2 컬러 엘리먼트(예: ①, ②)들은 설정 이미지(510)의 우측 에지로부터 좌측 방향()을 따라 왜곡 위치로 연장될 수 있다. 그리고 각 제 2 컬러 엘리먼트(예: ①, ②)는 각 색상값(예: 255, 123)으로 표현될 수 있다. 여기서, 각 색상값(예: 255, 123)은 각 왜곡 세기(예: 0.88, 0.48)와 매핑되어 있을 수 있다. 어떤 제 2 컬러 엘리먼트(예: ①, ②)는 설정 이미지(510)의 상측 에지와 왜곡 위치 사이에서, 균일한 색상값(예: 255, 123)으로 표현될 수 있다. 또는 어떤 제 2 컬러 엘리먼트(미도시)는 설정 이미지(510)의 상측 에지와 왜곡 위치 사이에서, 왜곡 위치로부터의 거리에 따라 색상값이 변경되는 그라데이션 형태로 표현될 수도 있다.The second color is downward ( ), the second color elements (eg, ①, ②) move from the right edge of the setting
다시 도 2를 참조하면, 전자 장치(100)는 220 동작에서 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용할 수 있다. 이를 위해, 프로세서(160)는 통신 모듈(120)을 통해 대상 이미지를 수신하거나, 카메라 모듈(130)을 통해 대상 이미지를 촬영하거나, 메모리(150)로부터 미리 저장된 대상 이미지를 선택할 수 있다. 이 때 프로세서(160)는 설정 이미지로부터 왜곡 효과를 결정할 수 있다. 프로세서(160)는 설정 이미지로부터 적어도 하나의 왜곡 위치를 검출하고, 각 왜곡 위치에 대응하여, 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나를 검출할 수 있다. 이 때 프로세서(160)는 각 컬러 엘리먼트에 대해, 좌표 및 색상 또는 색상값 중 적어도 어느 하나를 검출함으로써, 왜곡 위치 및 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나를 검출할 수 있다. 그리고 프로세서(160)는 대상 이미지에서 각 왜곡 위치에 대응하여, 대응하는 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나에 따라 왜곡 효과를 적용할 수 있다.Referring again to FIG. 2 , in
도 6은 도 2의 대상 이미지에 왜곡 효과 적용 동작을 도시하는 도면이다. 도 7, 도 8, 도 9 및 도 10은 도 2의 대상 이미지에 왜곡 효과 적용 동작을 설명하기 위한 도면들이다. FIG. 6 is a diagram illustrating an operation of applying a distortion effect to the target image of FIG. 2 . 7, 8, 9 and 10 are diagrams for explaining an operation of applying a distortion effect to the target image of FIG. 2 .
도 6을 참조하면, 전자 장치(100)는 610 동작에서 각 설정 이미지로부터 적어도 하나의 왜곡 위치를 검출할 수 있다. 이 때 프로세서(160)는 왜곡 위치를 검출하기 전에, 각 설정 이미지에 대해 설정된 전체 왜곡 방향을 확인할 수 있다. 또는 프로세서(160)는 왜곡 위치를 검출한 후에, 각 설정 이미지에 대해 설정된 전체 왜곡 방향을 확인할 수 있다. 프로세서(160)는 설정 이미지 내의 각 컬러 엘리먼트에 대해, 좌표를 검출할 수 있다. 예를 들면, 프로세서(160)는 각 컬러 엘리먼트에 대해, 설정 이미지로의 에지로부터 가장 먼 좌표를 검출할 수 있다. 그리고 프로세서(160)는 각 좌표를 각 왜곡 위치로 결정할 수 있다.Referring to FIG. 6 , the electronic device 100 may detect at least one distortion position from each set image in
일 예로, 프로세서(160)는, 도 4에 도시된 바와 같은 설정 이미지(410)로부터 복수 개의 컬러 엘리먼트(예: ①, ②, ③, ④, ⑤)들을 식별할 수 있다. 전체 왜곡 방향이 수평 방향으로 설정된 경우, 설정 이미지(410)에서 컬러 엘리먼트(예: ①, ②, ③, ④, ⑤)들은 수평 방향으로 연장될 수 있다. 이 때 프로세서(160)는 각 컬러 엘리먼트(예: ①, ②, ③, ④, ⑤)에 대해, 설정 이미지(410)의 내측에서 좌표를 검출할 수 있다. 그리고 프로세서(160)는 각 좌표를 각 왜곡 위치로 결정할 수 있다. For example, the processor 160 may identify a plurality of color elements (eg, ①, ②, ③, ④, ⑤) from the setting
다른 예로, 프로세서(160)는, 도 5에 도시된 바와 같은 설정 이미지(510)로부터 복수 개의 컬러 엘리먼트(예: ①, ②, ③)들을 식별할 수 있다. 전체 왜곡 방향이 수평 방향으로 설정된 경우, 설정 이미지(510)에서 컬러 엘리먼트(예: ①, ②, ③)들은 수평 방향으로 연장될 수 있다. 이 때 프로세서(160)는 각 컬러 엘리먼트(예: ①, ②, ③)에 대해, 설정 이미지(510)의 내측에서 좌표를 검출할 수 있다. 그리고 프로세서(160)는 각 좌표를 각 왜곡 위치로 결정할 수 있다. As another example, the processor 160 may identify a plurality of color elements (eg, ①, ②, ③) from the setting
전자 장치(100)는 620 동작에서 각 설정 이미지로부터 각 왜곡 위치에 대한 왜곡 방향과 왜곡 세기를 검출할 수 있다. 프로세서(160)는 설정 이미지 내의 각 컬러 엘리먼트에 대해, 색상과 색상값을 검출할 수 있다. 그리고 프로세서(160)는 각 색상에 대응하여 각 왜곡 방향으로 결정하고, 각 색상값에 대응하여 각 왜곡 세기를 결정할 수 있다. In
일 예로, 프로세서(160)는, 도 4에 도시된 바와 같은 설정 이미지(410)로부터, 각 컬러 엘리먼트(예: ①, ②, ③, ④, ⑤)의 색상과 색상값을 검출할 수 있다. 제 1 컬러 엘리먼트(예: ①, ②, ⑤)들은 제 1 색상을 나타내므로, 프로세서(160)는 각 제 1 컬러 엘리먼트(예: ①, ②, ⑤)에 대해, 우측 방향(>>)으로 왜곡 방향을 결정하고, 각 색상값(예: 255, 130, 110)에 대응하여 각 왜곡 세기(예: 1.0, 0.5, 0.4)를 결정할 수 있다. 여기서, 프로세서(160)는 어떤 제 1 컬러 엘리먼트(예: ⑤)에 대해, 그라데이션 형태의 왜곡 세기(예: 0.4 -> 1.0)를 결정할 수 있다. 한편, 제 2 컬러 엘리먼트(예: ③, ④)들은 제 2 색상을 나타내므로, 프로세서(160)는 각 제 2 컬러 엘리먼트(예: ③, ④)에 대해, 좌측 방향(<<)으로 왜곡 방향을 결정하고, 각 색상값(예: 255, 130, 110)에 대응하여 각 왜곡 세기(예: 1.0, 0.5, 0.4)를 결정할 수 있다. 여기서, 프로세서(160)는 어떤 제 2 컬러 엘리먼트(미도시)에 대해, 그라데이션 형태의 왜곡 세기를 결정할 수 있다. For example, the processor 160 may detect a color and a color value of each color element (eg, ①, ②, ③, ④, ⑤) from the setting
다른 예로, 프로세서(160)는, 도 5에 도시된 바와 같은 설정 이미지(510)로부터, 각 컬러 엘리먼트(예: ①, ②, ③)의 색상과 색상값을 검출할 수 있다. 제 1 컬러 엘리먼트(예: ③)들은 제 1 색상을 나타내므로, 프로세서(160)는 각 제 1 컬러 엘리먼트(예: ③)에 대해, 상측 방향()으로 왜곡 방향을 결정하고, 각 색상값(예: 188)에 대응하여 각 왜곡 세기(예: 0.74)를 결정할 수 있다. 한편, 제 2 컬러 엘리먼트(예: ①, ②)들은 제 2 색상을 나타내므로, 프로세서(160)는 각 제 2 컬러 엘리먼트(예: ①, ②)에 대해, 좌측 방향()으로 왜곡 방향을 결정하고, 각 색상값(예: 255, 123)에 대응하여 각 왜곡 세기(예: 0.88, 0.48)를 결정할 수 있다. 여기서, 프로세서(160)는 어떤 제 1 컬러 엘리먼트(미도시) 또는 어떤 제 2 컬러 엘리먼트(미도시)에 대해, 그라데이션 형태의 왜곡 세기를 결정할 수 있다.As another example, the processor 160 may detect a color and a color value of each color element (eg, ①, ②, ③) from the setting
전자 장치(100)는 630 동작에서 대상 이미지에서 각 왜곡 위치에 대응하여, 왜곡 방향과 왜곡 세기에 따라 왜곡 효과를 적용할 수 있다. 프로세서(160)는 대상 이미지에서 각 왜곡 위치에 대응하여, 왜곡 방향 및 왜곡 세기에 따라 왜곡 효과를 적용할 수 있다. 이 때 프로세서(160)는 대상 이미지에서 왜곡 방향의 역 방향에 있는 에지로부터 왜곡 방향을 따라 왜곡 위치로 왜곡 세기에 따른 강도의 왜곡 효과를 적용할 수 있다. 여기서, 그라데이션 형태의 왜곡 세기가 결정된 경우, 프로세서(160)는 그라데이션 형태의 왜곡 세기에 따라, 왜곡 효과의 강도를 변화시킬 수 있다. The electronic device 100 may apply a distortion effect according to a distortion direction and a distortion intensity in response to each distortion position in the target image in
제 1 실시예에 따르면, 프로세서(160)는, 도 7 또는 도 8에 도시된 바와 같이 하나의 설정 이미지(710, 810)를 기반으로, 대상 이미지(720, 820)에 왜곡 효과를 적용하고, 이를 통해 단일 결과 이미지(730, 830)를 획득할 수 있다. 프로세서(160)는 설정 이미지(710, 810)로부터의 각 왜곡 위치에 대응하여, 왜곡 방향과 왜곡 세기에 따라 왜곡 효과를 왜곡 효과(715, 815)를 결정할 수 있다. 그리고 프로세서(160)는 대상 이미지(720, 820)에 왜곡 효과(715, 815)를 적용할 수 있다. 이를 통해, 단일 결과 이미지(730, 830)가 획득될 수 있다.According to the first embodiment, the processor 160 applies a distortion effect to the
제 2 실시예에 따르면, 프로세서(160)는, 도 9에 도시된 바와 같이 복수 개의 설정 이미지(911, 912, 913)들을 기반으로, 대상 이미지(920)에 왜곡 효과를 적용하고, 이를 통해 단일 결과 이미지(940)를 획득할 수 있다. 이를 위해, 복수 개의 미리 정해진 색상들에 각각 대응하는 설정 이미지(911, 912, 913)들을 생성되어 있을 수 있다. 일 예로, 미리 정해진 색상들은, 빨강, 초록 및 파랑을 포함할 수 있다. 프로세서(160)는 대상 이미지(920)를 미리 정해진 색상들에 각각 대응하는 복수 개의 색상 이미지(미도시)들로 분리할 수 있다. 이 때 프로세서(160)는 미리 정해진 색상들에 따라 설정 이미지(911, 912, 913)들과 색상 이미지들을 대응시킬 수 있다. 그리고 프로세서(160)는 설정 이미지(911, 912, 913)들을 기반으로, 색상 이미지들 각각에 왜곡 효과를 적용할 수 있다. 이를 통해, 복수 개의 왜곡 이미지(931, 932, 933)들이 획득될 수 있다. 일 예로, 왜곡 이미지(931, 932, 933)들은, 빨강 이미지, 초록 이미지 및 파랑 이미지를 포함할 수 있다. 이에 따라, 프로세서(160)는 왜곡 이미지(931, 932, 933)들을 합성하여, 결과 이미지(940)를 획득할 수 있다. According to the second embodiment, the processor 160 applies a distortion effect to the
제 3 실시예에 따르면, 프로세서(160)는 복수 개의 설정 이미지(1011, 1012, 1013, 1014, 1015, 1016)들을 기반으로, 대상 이미지(1020)에 왜곡 효과를 적용하고, 이를 통해 애니메이션(미도시)을 구현할 수 있다. 이를 위해, 프로세서(160)는 연속적인 설정 이미지(1011, 1012, 1013, 1014, 1015, 1016)들이 생성되어 있을 수 있다. 여기서, 프로세서(160)는 설정 이미지(1011, 1012, 1013, 1014, 1015, 1016)들의 생성 시간에 대응하여, 설정 이미지(1011, 1012, 1013, 1014, 1015, 1016)들에 순서들을 부여할 수 있다. 프로세서(160)는 설정 이미지(1011, 1012, 1013, 1014, 1015, 1016)들을 기반으로, 대상 이미지(1020)에 왜곡 효과를 적용할 수 있다. 일 예로, 프로세서(160)는 대상 이미지(1020)와 동일한 복수 개의 복사 이미지들을 생성하고, 설정 이미지(1011, 1012, 1013, 1014, 1015, 1016)들을 기반으로, 복사 이미지들 각각에 왜곡 효과를 적용할 수 있다. 다른 예로, 프로세서(160)는 설정 이미지(1011, 1012, 1013, 1014, 1015, 1016)들을 기반으로, 설정 이미지(1011, 1012, 1013, 1014, 1015, 1016)들의 순서들에 따라, 대상 이미지(1020)에 왜곡 효과를 부가적으로 적용할 수 있다. 이를 통해, 복수 개의 왜곡 이미지(1031, 1032, 1033, 1034, 1035, 1036)들이 획득될 수 있다. 이에 따라, 프로세서(160)는 설정 이미지(1011, 1012, 1013, 1014, 1015, 1016)들의 순서를 기반으로, 왜곡 이미지(1031, 1032, 1033, 1034, 1035, 1036)들을 연속적으로 결합하여, 애니메이션을 획득할 수 있다. 즉 왜곡 이미지(1031, 1032, 1033, 1034, 1035, 1036)들이 애니메이션을 구성하는 프레임들로 각각 이용될 수 있다. According to the third embodiment, the processor 160 applies a distortion effect to the
다양한 실시예들에 따른 전자 장치(100)의 동작 방법은, 왜곡 효과와 관련된 적어도 하나의 파라미터가 적어도 하나의 컬러로 표현되는 적어도 하나의 설정 이미지를 생성하는 동작, 및 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용하는 동작을 포함할 수 있다. An operating method of the electronic device 100 according to various embodiments includes an operation of generating at least one setting image in which at least one parameter related to a distortion effect is expressed in at least one color, and an operation of generating at least one setting image based on the setting image, It may include an operation of applying a distortion effect to the image.
다양한 실시예들에 따르면, 파라미터는, 설정 이미지 내에서의 적어도 하나의 좌표로 식별되는 왜곡 위치, 컬러의 색상에 따라 식별되는 왜곡 방향, 또는 컬러의 색상값에 따라 식별되는 왜곡 세기 중 적어도 어느 하나를 포함할 수 있다. According to various embodiments, the parameter is at least one of a distortion position identified by at least one coordinate in a setting image, a distortion direction identified according to a color of a color, or a distortion intensity identified according to a color value of a color may include.
다양한 실시예들에 따르면, 설정 이미지 생성 동작은, 사용자 인터페이스를 제공하는 동작, 사용자 인터페이스를 통해, 좌표를 선택하는 동작, 사용자 인터페이스를 통해, 색상 또는 색상값 중 적어도 어느 하나를 선택하는 동작, 및 좌표에 대응하여, 색상 또는 색상값 중 적어도 어느 하나를 표현하여, 설정 이미지를 생성하는 동작을 포함할 수 있다. According to various embodiments, the setting image generating operation includes an operation of providing a user interface, an operation of selecting coordinates through the user interface, an operation of selecting at least one of a color or a color value through the user interface, and The method may include generating a setting image by expressing at least one of a color or a color value in correspondence with the coordinates.
다양한 실시예들에 따르면, 설정 이미지는, 왜곡 위치, 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나를 표현하는 적어도 하나의 컬러 엘리먼트를 포함할 수 있다. According to various embodiments, the setting image may include at least one color element representing at least one of a distortion position, a distortion direction, and a distortion intensity.
다양한 실시예들에 따르면, 컬러 엘리먼트는, 왜곡 방향의 역 방향에 있는 에지로부터 왜곡 방향을 따라 왜곡 위치로 연장되고, 색상 또는 색상값 중 적어도 어느 하나로 표현될 수 있다. According to various embodiments, the color element may extend from an edge in a direction opposite to the distortion direction to a distortion position along the distortion direction, and may be expressed as at least one of a color or a color value.
다양한 실시예들에 따르면, 색상값은, 에지와 왜곡 위치 사이에서, 균일하게 표현되거나, 왜곡 위치로부터의 거리에 따라 변경되도록 표현될 수 있다. According to various embodiments, the color value may be expressed uniformly between the edge and the distortion position, or may be expressed to be changed according to a distance from the distortion position.
다양한 실시예들에 따르면, 효과 적용 동작은, 컬러 엘리먼트에 대해, 왜곡 위치를 검출하는 동작, 컬러 엘리먼트에 대해, 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나를 검출하는 동작, 및 대상 이미지에서 왜곡 위치에 대응하여, 왜곡 방향 또는 왜곡 세기 중 적어도 어느 하나에 따라 왜곡 효과를 적용하는 동작을 포함할 수 있다. According to various embodiments, the operation of applying an effect includes, for a color element, an operation of detecting a distortion position, an operation of detecting at least one of a distortion direction or a distortion intensity, with respect to the color element, and a distortion position in the target image. Correspondingly, the method may include applying a distortion effect according to at least one of a distortion direction and a distortion intensity.
다양한 실시예들에 따르면, 설정 이미지 생성 동작은, 복수 개의 미리 정해진 색상들에 각각 대응하는 복수 개의 설정 이미지들을 생성하는 동작을 포함할 수 있다. According to various embodiments, the operation of generating the setting image may include generating a plurality of setting images respectively corresponding to a plurality of predetermined colors.
다양한 실시예들에 따르면, 왜곡 효과 적용 동작은, 대상 이미지를 색상들에 각각 대응하는 복수 개의 색상 이미지들로 분리하는 동작, 설정 이미지들을 기반으로, 색상 이미지들 각각에 왜곡 효과를 적용하여, 복수 개의 왜곡 이미지들을 획득하는 동작, 및 왜곡 이미지들을 합성하여, 결과 이미지를 획득하는 동작을 포함할 수 있다. According to various embodiments, the operation of applying the distortion effect may include dividing the target image into a plurality of color images respectively corresponding to colors and applying a distortion effect to each of the color images based on the setting images, It may include an operation of acquiring the distorted images, and an operation of synthesizing the distorted images to obtain a result image.
다양한 실시예들에 따르면, 왜곡 효과 적용 동작은, 연속적인 복수 개의 설정 이미지들을 기반으로, 대상 이미지에 왜곡 효과를 적용하여, 복수 개의 왜곡 이미지들을 획득하는 동작, 및 왜곡 이미지들을 연속적으로 결합하여, 애니메이션을 획득하는 동작을 포함할 수 있다. According to various embodiments, the operation of applying the distortion effect, based on a plurality of successive set images, applying a distortion effect to the target image, obtaining a plurality of distorted images, and successively combining the distorted images, It may include an operation of acquiring an animation.
본 문서의 다양한 실시예들은 컴퓨터 장치(예: 전자 장치(100))에 의해 읽을 수 있는 기록 매체(storage medium)(예: 메모리(150))에 저장된 하나 이상의 명령어들을 포함하는 컴퓨터 프로그램으로서 구현될 수 있다. 예를 들면, 컴퓨터 장치의 프로세서(예: 프로세서(160))는, 기록 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 컴퓨터 장치가 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 컴퓨터-판독 가능(computer-readable) 기록 매체는, 비일시적(non-transitory) 기록 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 기록 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 기록 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다. Various embodiments of the present document may be implemented as a computer program including one or more instructions stored in a storage medium (eg, memory 150) readable by a computer device (eg, electronic device 100). can For example, the processor (eg, the processor 160 ) of the computer device may call at least one of the one or more instructions stored from the recording medium and execute it. This enables the computer device to be operated to perform at least one function according to at least one instruction called. The one or more instructions may include code generated by a compiler or code executable by an interpreter. A computer-readable recording medium may be provided in the form of a non-transitory recording medium. Here, 'non-transitory' only means that the recording medium is a tangible device and does not contain a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the recording medium and It does not distinguish between temporary storage cases.
다양한 실시예들에 따른 컴퓨터 프로그램은, 컴퓨터 장치와 결합되어 왜곡 효과 적용 방법을 컴퓨터 장치에 실행시키기 위해 컴퓨터 판독 가능한 기록 매체에 저장될 수 있다. The computer program according to various embodiments may be stored in a computer-readable recording medium in combination with the computer device to execute the method for applying the distortion effect to the computer device.
다양한 실시예들에 따르면, 왜곡 효과 적용 방법은, 왜곡 효과와 관련된 적어도 하나의 파라미터가 적어도 하나의 컬러로 표현되는 적어도 하나의 설정 이미지를 생성하는 동작, 및 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용하는 동작을 포함할 수 있다. According to various embodiments, the method of applying a distortion effect includes an operation of generating at least one setting image in which at least one parameter related to the distortion effect is expressed in at least one color, and distortion of the target image based on the setting image It may include an action to apply an effect.
다양한 실시예들에 따르면, 파라미터는, 설정 이미지 내에서의 적어도 하나의 좌표로 식별되는 왜곡 위치, 컬러의 색상에 따라 식별되는 왜곡 방향, 또는 컬러의 색상값에 따라 식별되는 왜곡 세기 중 적어도 어느 하나를 포함할 수 있다. According to various embodiments, the parameter is at least one of a distortion position identified by at least one coordinate in a setting image, a distortion direction identified according to a color of a color, or a distortion intensity identified according to a color value of a color may include.
다양한 실시예들에 따르면, 전자 장치(100)는 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용할 수 있다. 이 때 전자 장치(100)가 사용자 인터페이스를 제공함으로써, 사용자 입력을 기반으로 설정 이미지를 생성할 수 있다. 이를 통해, 전자 장치(100)의 사용자는 왜곡 함수를 도출하지 않고도, 전자 장치(100)를 통해 원하는 영상 왜곡을 구현할 수 있다. 즉 전자 장치(100)가 사용자로 하여금, 원하는 영상 왜곡을 용이하게 구현하게 할 수 있다. 이로 인해, 전자 장치(100)를 통해 영상 왜곡을 구현하는 데 있어서, 화질 저하와 같은 문제가 발생되지 않을 수 있다. 아울러, 전자 장치(100)는 적은 리소스로도 영상 왜곡을 구현하게 할 수 있다. 따라서, 전자 장치(100)는 비개발자라 하더라도, 원하는 영상 왜곡을 구현하게 할 수 있다. According to various embodiments, the electronic device 100 may apply a distortion effect to the target image based on the set image. In this case, the electronic device 100 may generate a setting image based on a user input by providing a user interface. Through this, the user of the electronic device 100 may implement desired image distortion through the electronic device 100 without deriving a distortion function. That is, the electronic device 100 may enable a user to easily realize desired image distortion. For this reason, in implementing image distortion through the electronic device 100 , a problem such as image quality degradation may not occur. In addition, the electronic device 100 may implement image distortion with a small amount of resources. Accordingly, even a non-developer can implement the desired image distortion in the electronic device 100 .
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 다양한 실시예들에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed in this document may have various types of devices. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. Electronic devices according to various embodiments of the present document are not limited to the aforementioned devices.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 해당 실시 예의 다양한 변경, 균등물, 및/또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및/또는 B 중 적어도 하나", "A, B 또는 C" 또는 "A, B 및/또는 C 중 적어도 하나" 등의 표현은 함께 나열된 항목들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", "첫째" 또는 "둘째" 등의 표현들은 해당 구성요소들을, 순서 또는 중요도에 상관없이 수식할 수 있고, 한 구성요소를 다른 구성요소와 구분하기 위해 사용될 뿐 해당 구성요소들을 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에 "(기능적으로 또는 통신적으로) 연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로 연결되거나, 다른 구성요소(예: 제 3 구성요소)를 통하여 연결될 수 있다.It should be understood that the various embodiments of this document and the terms used therein are not intended to limit the technology described in this document to a specific embodiment, and include various modifications, equivalents, and/or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for like components. The singular expression may include the plural expression unless the context clearly dictates otherwise. In this document, expressions such as “A or B”, “at least one of A and/or B”, “A, B or C” or “at least one of A, B and/or C” refer to all of the items listed together. Possible combinations may be included. Expressions such as “first”, “second”, “first” or “second” can modify the corresponding components regardless of order or importance, and are only used to distinguish one component from another. The components are not limited. When an (eg, first) component is referred to as being “connected (functionally or communicatively)” or “connected” to another (eg, second) component, that component is It may be directly connected to the component or may be connected through another component (eg, a third component).
본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구성된 유닛을 포함하며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 모듈은 ASIC(application-specific integrated circuit)으로 구성될 수 있다. As used herein, the term “module” includes a unit composed of hardware, software, or firmware, and may be used interchangeably with terms such as, for example, logic, logic block, component, or circuit. A module may be an integrally formed part or a minimum unit or a part of one or more functions. For example, the module may be configured as an application-specific integrated circuit (ASIC).
다양한 실시예들에 따르면, 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 통합 이전에 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다. According to various embodiments, each component (eg, a module or a program) of the described components may include a singular or a plurality of entities. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to integration. According to various embodiments, operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, omitted, or , or one or more other operations may be added.
Claims (20)
왜곡 효과와 관련된 적어도 하나의 파라미터가 적어도 하나의 컬러로 표현되는 적어도 하나의 설정 이미지를 생성하는 동작; 및
상기 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용하는 동작을 포함하는 방법.
A method of operating an electronic device, comprising:
generating at least one setting image in which at least one parameter related to a distortion effect is expressed in at least one color; and
and applying a distortion effect to a target image based on the set image.
상기 설정 이미지 내에서의 적어도 하나의 좌표로 식별되는 왜곡 위치,
상기 컬러의 색상에 따라 식별되는 왜곡 방향, 또는
상기 컬러의 색상값에 따라 식별되는 왜곡 세기 중 적어도 어느 하나를 포함하는 방법.
The method of claim 1, wherein the parameter is
a distortion position identified by at least one coordinate within the set image;
a distortion direction identified according to the color of the color; or
The method comprising at least one of the distortion intensity identified according to the color value of the color.
사용자 인터페이스를 제공하는 동작;
상기 사용자 인터페이스를 통해, 상기 좌표를 선택하는 동작;
상기 사용자 인터페이스를 통해, 상기 색상 또는 상기 색상값 중 적어도 어느 하나를 선택하는 동작; 및
상기 좌표에 대응하여, 상기 색상 또는 상기 색상값 중 적어도 어느 하나를 표현하여, 상기 설정 이미지를 생성하는 동작을 포함하는 방법.
The method of claim 2, wherein the setting image creation operation comprises:
providing a user interface;
selecting the coordinates through the user interface;
selecting at least one of the color and the color value through the user interface; and
and generating the set image by expressing at least one of the color and the color value in response to the coordinates.
상기 왜곡 위치, 상기 왜곡 방향 또는 상기 왜곡 세기 중 적어도 어느 하나를 표현하는 적어도 하나의 컬러 엘리먼트를 포함하는 방법.
According to claim 2, wherein the setting image,
and at least one color element representing at least one of the distortion position, the distortion direction, or the distortion intensity.
상기 왜곡 방향의 역 방향에 있는 에지(edge)로부터 상기 왜곡 방향을 따라 상기 왜곡 위치로 연장되고,
상기 색상 또는 상기 색상값 중 적어도 어느 하나로 표현되는 방법.
According to claim 4, wherein the color element,
extending from an edge in a direction opposite to the distortion direction to the distortion position along the distortion direction;
A method of expressing at least one of the color and the color value.
상기 에지와 상기 왜곡 위치 사이에서, 균일하게 표현되거나, 상기 왜곡 위치로부터의 거리에 따라 변경되도록 표현되는 방법.
The method of claim 5, wherein the color value is
Between the edge and the distortion location, the representation is uniformly represented, or represented to change with the distance from the distortion location.
상기 컬러 엘리먼트에 대해, 상기 왜곡 위치를 검출하는 동작;
상기 컬러 엘리먼트에 대해, 상기 왜곡 방향 또는 상기 왜곡 세기 중 적어도 어느 하나를 검출하는 동작; 및
상기 대상 이미지에서 상기 왜곡 위치에 대응하여, 상기 왜곡 방향 또는 상기 왜곡 세기 중 적어도 어느 하나에 따라 상기 왜곡 효과를 적용하는 동작을 포함하는 방법.
The method of claim 4, wherein the operation of applying the distortion effect comprises:
for the color element, detecting the distortion location;
detecting at least one of the distortion direction and the distortion intensity with respect to the color element; and
and applying the distortion effect according to at least one of the distortion direction and the distortion intensity in response to the distortion position in the target image.
복수 개의 미리 정해진 색상들에 각각 대응하는 복수 개의 설정 이미지들을 생성하는 동작을 포함하는 방법.
The method of claim 1, wherein the setting image creation operation comprises:
A method comprising generating a plurality of setting images respectively corresponding to a plurality of predetermined colors.
상기 대상 이미지를 상기 색상들에 각각 대응하는 복수 개의 색상 이미지들로 분리하는 동작;
상기 설정 이미지들을 기반으로, 상기 색상 이미지들 각각에 왜곡 효과를 적용하여, 복수 개의 왜곡 이미지들을 획득하는 동작; 및
상기 왜곡 이미지들을 합성하여, 결과 이미지를 획득하는 동작을 포함하는 방법.
The method of claim 8, wherein the applying the distortion effect comprises:
dividing the target image into a plurality of color images respectively corresponding to the colors;
obtaining a plurality of distorted images by applying a distortion effect to each of the color images based on the set images; and
and synthesizing the distorted images to obtain a result image.
연속적인 복수 개의 설정 이미지들을 기반으로, 상기 대상 이미지에 왜곡 효과를 적용하여, 복수 개의 왜곡 이미지들을 획득하는 동작; 및
상기 왜곡 이미지들을 연속적으로 결합하여, 애니메이션을 획득하는 동작을 포함하는 방법.
The method of claim 1, wherein the distortion effect application operation comprises:
obtaining a plurality of distorted images by applying a distortion effect to the target image based on a plurality of consecutive set images; and
and continuously combining the distorted images to obtain an animation.
사용자 입력을 수신하기 위한 입력 모듈; 및
상기 입력 모듈과 연결되며, 이미지를 처리하도록 구성되는 프로세서를 포함하고,
상기 프로세서는,
사용자 입력을 기반으로, 왜곡 효과와 관련된 적어도 하나의 파라미터가 적어도 하나의 컬러로 표현되는 적어도 하나의 설정 이미지를 생성하고,
상기 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용하도록 구성되는 장치.
In an electronic device,
an input module for receiving user input; and
a processor coupled to the input module and configured to process an image;
The processor is
generating at least one setting image in which at least one parameter related to a distortion effect is expressed in at least one color based on the user input,
an apparatus configured to apply a distortion effect to a target image based on the set image.
상기 설정 이미지 내에서의 적어도 하나의 좌표로 식별되는 왜곡 위치,
상기 컬러의 색상에 따라 식별되는 왜곡 방향, 또는
상기 컬러의 색상값에 따라 식별되는 왜곡 세기 중 적어도 어느 하나를 포함하는 장치.
The method of claim 11, wherein the parameter is
a distortion position identified by at least one coordinate within the set image;
a distortion direction identified according to the color of the color; or
The apparatus comprising at least one of the distortion intensity identified according to the color value of the color.
표시 모듈을 더 포함하고,
상기 프로세서는,
상기 표시 모듈을 통해, 사용자 인터페이스를 제공하고,
상기 사용자 인터페이스를 통해, 상기 좌표를 선택하고,
상기 사용자 인터페이스를 통해, 상기 색상 또는 상기 색상값 중 적어도 어느 하나를 선택하고,
상기 좌표에 대응하여, 상기 색상 또는 상기 색상값 중 적어도 어느 하나를 표현하여, 상기 설정 이미지를 생성하도록 구성되는 장치.
13. The method of claim 12,
further comprising a display module,
The processor is
Through the display module, providing a user interface,
through the user interface, selecting the coordinates,
selecting at least one of the color and the color value through the user interface,
The apparatus is configured to generate the set image by expressing at least one of the color and the color value in response to the coordinates.
상기 왜곡 위치, 상기 왜곡 방향 또는 상기 왜곡 세기 중 적어도 어느 하나를 표현하는 적어도 하나의 컬러 엘리먼트를 포함하는 장치.
The method of claim 12, wherein the setting image,
and at least one color element representing at least one of the distortion position, the distortion direction, or the distortion intensity.
상기 왜곡 방향의 역 방향에 있는 에지(edge)로부터 상기 왜곡 방향을 따라 상기 왜곡 위치로 연장되고,
상기 색상 또는 상기 색상값 중 적어도 어느 하나로 표현되는 장치.
15. The method of claim 14, wherein the color element,
extending from an edge in a direction opposite to the distortion direction to the distortion position along the distortion direction;
A device expressed by at least one of the color and the color value.
상기 에지와 상기 왜곡 위치 사이에서, 균일하게 표현되거나, 상기 왜곡 위치로부터의 거리에 따라 변경되도록 표현되는 장치.
The method of claim 15, wherein the color value is
Between the edge and the distortion position, the device is expressed uniformly, or is expressed to change according to the distance from the distortion position.
상기 컬러 엘리먼트에 대해, 상기 왜곡 위치를 검출하고,
상기 컬러 엘리먼트에 대해, 상기 왜곡 방향 또는 상기 왜곡 세기 중 적어도 어느 하나를 검출하고,
상기 대상 이미지에서 상기 왜곡 위치에 대응하여, 상기 왜곡 방향 또는 상기 왜곡 세기 중 적어도 어느 하나에 따라 상기 왜곡 효과를 적용하도록 구성되는 장치.
15. The method of claim 14, wherein the processor,
for the color element, detecting the distortion position;
For the color element, detecting at least one of the distortion direction and the distortion intensity,
and apply the distortion effect according to at least one of the distortion direction or the distortion intensity, corresponding to the distortion position in the target image.
복수 개의 미리 정해진 색상들에 각각 대응하는 복수 개의 설정 이미지들을 생성하고,
상기 대상 이미지를 상기 색상들에 각각 대응하는 복수 개의 색상 이미지들로 분리하고,
상기 설정 이미지들을 기반으로, 상기 색상 이미지들 각각에 왜곡 효과를 적용하여, 복수 개의 왜곡 이미지들을 획득하고,
상기 왜곡 이미지들을 합성하여, 결과 이미지를 획득하도록 구성되는 장치.
The method of claim 11 , wherein the processor comprises:
Generate a plurality of setting images respectively corresponding to a plurality of predetermined colors,
dividing the target image into a plurality of color images respectively corresponding to the colors;
Based on the set images, applying a distortion effect to each of the color images to obtain a plurality of distorted images,
and synthesizing the distorted images to obtain a resulting image.
연속적인 복수 개의 설정 이미지들을 기반으로, 상기 대상 이미지에 왜곡 효과를 적용하여, 복수 개의 왜곡 이미지들을 획득하고,
상기 왜곡 이미지들을 연속적으로 결합하여, 애니메이션을 획득하도록 구성되는 장치.
The method of claim 11 , wherein the processor comprises:
Based on a plurality of consecutive set images, applying a distortion effect to the target image to obtain a plurality of distorted images,
and continuously combining the distorted images to obtain an animation.
상기 왜곡 효과 적용 방법은,
왜곡 효과와 관련된 적어도 하나의 파라미터가 적어도 하나의 컬러로 표현되는 적어도 하나의 설정 이미지를 생성하는 동작; 및
상기 설정 이미지를 기반으로, 대상 이미지에 왜곡 효과를 적용하는 동작을 포함하고,
상기 파라미터는,
상기 설정 이미지 내에서의 적어도 하나의 좌표로 식별되는 왜곡 위치,
상기 컬러의 색상에 따라 식별되는 왜곡 방향, 또는
상기 컬러의 색상값에 따라 식별되는 왜곡 세기 중 적어도 어느 하나를 포함하는 컴퓨터 프로그램.
A computer program stored in a computer-readable recording medium in combination with a computer device to execute a method for applying a distortion effect to the computer device,
How to apply the distortion effect,
generating at least one setting image in which at least one parameter related to a distortion effect is expressed in at least one color; and
Based on the set image, including the operation of applying a distortion effect to the target image,
The parameter is
a distortion location identified by at least one coordinate within the set image;
a distortion direction identified according to the color of said color, or
A computer program comprising at least one of distortion intensity identified according to the color value of the color.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020190173300A KR102283494B1 (en) | 2019-12-23 | 2019-12-23 | Electronic device for applying distortion effect to image and operating method thereof |
KR1020210097165A KR102422202B1 (en) | 2019-12-23 | 2021-07-23 | Electronic device for applying distortion effect to image and operating method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020190173300A KR102283494B1 (en) | 2019-12-23 | 2019-12-23 | Electronic device for applying distortion effect to image and operating method thereof |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020210097165A Division KR102422202B1 (en) | 2019-12-23 | 2021-07-23 | Electronic device for applying distortion effect to image and operating method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20210081091A true KR20210081091A (en) | 2021-07-01 |
KR102283494B1 KR102283494B1 (en) | 2021-07-29 |
Family
ID=76860207
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020190173300A KR102283494B1 (en) | 2019-12-23 | 2019-12-23 | Electronic device for applying distortion effect to image and operating method thereof |
KR1020210097165A KR102422202B1 (en) | 2019-12-23 | 2021-07-23 | Electronic device for applying distortion effect to image and operating method thereof |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020210097165A KR102422202B1 (en) | 2019-12-23 | 2021-07-23 | Electronic device for applying distortion effect to image and operating method thereof |
Country Status (1)
Country | Link |
---|---|
KR (2) | KR102283494B1 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20140021346A (en) * | 2012-08-10 | 2014-02-20 | 삼성전자주식회사 | Method for displaying graphic user interface and apparatus thereof |
JP2014057169A (en) * | 2012-09-11 | 2014-03-27 | Olympus Imaging Corp | Image generating apparatus, imaging apparatus including the same, image generating method and image generation program |
JP2016200753A (en) * | 2015-04-13 | 2016-12-01 | 株式会社ニコン | Image display device |
-
2019
- 2019-12-23 KR KR1020190173300A patent/KR102283494B1/en active IP Right Grant
-
2021
- 2021-07-23 KR KR1020210097165A patent/KR102422202B1/en active IP Right Grant
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20140021346A (en) * | 2012-08-10 | 2014-02-20 | 삼성전자주식회사 | Method for displaying graphic user interface and apparatus thereof |
JP2014057169A (en) * | 2012-09-11 | 2014-03-27 | Olympus Imaging Corp | Image generating apparatus, imaging apparatus including the same, image generating method and image generation program |
JP2016200753A (en) * | 2015-04-13 | 2016-12-01 | 株式会社ニコン | Image display device |
Also Published As
Publication number | Publication date |
---|---|
KR20210095611A (en) | 2021-08-02 |
KR102283494B1 (en) | 2021-07-29 |
KR102422202B1 (en) | 2022-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11412153B2 (en) | Model-based method for capturing images, terminal, and storage medium | |
CN107179889B (en) | Interface color adjusting method, webpage color adjusting method and webpage color adjusting device | |
JP2006157892A (en) | Image processing apparatus and image processing method | |
CN113379775A (en) | Generating a colorized image based on interactive color edges using a colorized neural network | |
JPWO2008133195A1 (en) | Image quality adjustment capability measurement method, apparatus and program, and image quality adjustment method, apparatus and program | |
EP3822757A1 (en) | Method and apparatus for setting background of ui control | |
JP2023500510A (en) | A system for performing ambient light image correction | |
KR101791603B1 (en) | Detecting method for color object in image using noise and detecting system for light emitting apparatus using noise | |
JP2018163444A (en) | Information processing apparatus, information processing method and program | |
JP2021006982A (en) | Method and device for determining character color | |
CN111787240B (en) | Video generation method, apparatus and computer readable storage medium | |
KR102482874B1 (en) | Apparatus and Method of rendering | |
KR20210083016A (en) | Electronic apparatus and controlling method thereof | |
CN117412449B (en) | Atmosphere lamp equipment, lamp effect playing control method thereof, and corresponding device and medium | |
CN114003160A (en) | Data visualization display method and device, computer equipment and storage medium | |
CN112153360B (en) | Method, device and equipment for determining exposure parameters of head-mounted equipment | |
CN111935418B (en) | Video processing method and device, electronic equipment and storage medium | |
TW201401868A (en) | Electronic devices and methods for enhancing image resolution and computer-readable mediums thereof | |
KR102283494B1 (en) | Electronic device for applying distortion effect to image and operating method thereof | |
KR20130092240A (en) | Method for transforming drawing from digital picture | |
KR101214674B1 (en) | Apparatus and method for generating mosaic image including text | |
US10321047B2 (en) | Imaging-setting device, imaging device, imaging system, imaging-setting method, and non-transitory computer readable recording medium storing program | |
JP6155349B2 (en) | Method, apparatus and computer program product for reducing chromatic aberration in deconvolved images | |
JP2020061081A (en) | Image processor and method for processing image | |
CN112367399B (en) | Filter effect generation method and device, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AMND | Amendment | ||
AMND | Amendment | ||
X701 | Decision to grant (after re-examination) |