KR20170019159A - Electronic device and image processing method thereof - Google Patents
Electronic device and image processing method thereof Download PDFInfo
- Publication number
- KR20170019159A KR20170019159A KR1020150113176A KR20150113176A KR20170019159A KR 20170019159 A KR20170019159 A KR 20170019159A KR 1020150113176 A KR1020150113176 A KR 1020150113176A KR 20150113176 A KR20150113176 A KR 20150113176A KR 20170019159 A KR20170019159 A KR 20170019159A
- Authority
- KR
- South Korea
- Prior art keywords
- image
- alpha value
- pixel
- filtering
- value
- Prior art date
Links
Images
Classifications
-
- H04M1/72522—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/20—Image enhancement or restoration by the use of local operators
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/52—Details of telephonic subscriber devices including functional features of a camera
Abstract
An electronic device according to various embodiments of the present invention includes: a memory; A processor; And an application that is stored in the memory and is operable in the processor, the application performing image filtering from the original image to generate a filtered image, wherein the memory stores the alpha value of the original image Wherein the processor stores an instruction to perform an operation of restoring an alpha value of the filtered image, and the processor executes an instruction stored in the memory after the application generates the filtered image.
Description
Various embodiments of the present invention are directed to an electronic device, for example, an electronic device capable of performing image filtering.
Portable terminal devices have evolved according to the development of mobile communication technology and hardware technology, and can perform various functions required by users. In particular, the portable terminal device includes a camera module to acquire a digital image, and provides a function of filtering an image obtained through a camera module or an image received from the outside.
Conventionally, analog camera filters have been widely used. Recently, portable terminal devices have been used to provide similar effects to conventional analog camera filters through digital real-time or pre-processing camera filters, Image filters that are capable of digital post-processing filtering are being provided. Recent portable terminal devices provide as many as dozens of image filtering techniques (or correction, editing, and conversion techniques), such as grayscale to give a monochrome effect on an image, cartoon to give a cartoon effect, sketch, etc., and it is possible to apply multiple filtering techniques overlapping one image.
Such digital filters can be implemented through an application, and a portable terminal device can install a corresponding application through various paths such as downloading from a market.
Many of the various image filtering applications do not preserve alpha values (alpha) during image filtering. Here, the alpha value is a value indicating the degree of transparency of the image, and an alpha value may be determined for each pixel. These applications can perform filtering by reflecting the area in the color of the background even if a completely transparent area exists in the image. In this way, when the alpha value is not maintained before / after the image filtering, there is a problem that the user can not obtain the expected result due to the image filtering. That is, a transparent region of an image can not be maintained, and a transparent region may be changed to a different color, unlike a user's intention.
It is an object of the present invention to provide an electronic device and an image processing method of an electronic device capable of restoring a lost alpha value after image filtering.
An electronic device according to various embodiments of the present invention includes: a memory; A processor; And an application that is stored in the memory and is operable in the processor, the application performing image filtering from the original image to generate a filtered image, wherein the memory stores the alpha value of the original image Storing an instruction to perform an operation of restoring an alpha value of the filtered image, and the processor may execute an instruction stored in the memory after the application generates the filtered image.
An image processing method of an electronic device according to various embodiments of the present invention includes: executing an application for performing image filtering; Performing image filtering on the original image through the application to generate a filtered image; And generating a restored image by restoring an alpha value of the filtered image using an alpha value of the original image.
According to the present invention described above, it is possible to provide an electronic device and an image processing method of an electronic device capable of restoring a lost alpha value after image filtering.
1 illustrates an electronic device in a network environment in various embodiments.
2 is a block diagram of an electronic device according to various embodiments.
3 is a block diagram of a program module according to various embodiments.
Figures 4A-4C illustrate examples of original images, filtered images, and restored images in accordance with various embodiments.
5 is a block diagram of an electronic device according to various embodiments.
Figure 6 illustrates a portion of the pixel values of the original image, the filtered image, and the restored image according to various embodiments.
7 and 8 are flow charts of a method of image processing an electronic device according to various embodiments.
Hereinafter, various embodiments of the present document will be described with reference to the accompanying drawings. It should be understood, however, that this invention is not intended to be limited to the particular embodiments described herein but includes various modifications, equivalents, and / or alternatives of the embodiments of this document . In connection with the description of the drawings, like reference numerals may be used for similar components.
In this document, the expressions "having," " having, "" comprising," or &Quot;, and does not exclude the presence of additional features.
In this document, the expressions "A or B," "at least one of A or / and B," or "one or more of A and / or B," etc. may include all possible combinations of the listed items . For example, "A or B," "at least one of A and B," or "at least one of A or B" includes (1) at least one A, (2) Or (3) at least one A and at least one B all together.
As used herein, the terms "first," "second," "first," or "second," and the like may denote various components, regardless of their order and / or importance, But is used to distinguish it from other components and does not limit the components. For example, the first user equipment and the second user equipment may represent different user equipment, regardless of order or importance. For example, without departing from the scope of the rights described in this document, the first component can be named as the second component, and similarly the second component can also be named as the first component.
(Or functionally or communicatively) coupled with / to "another component (eg, a second component), or a component (eg, a second component) Quot; connected to ", it is to be understood that any such element may be directly connected to the other element or may be connected through another element (e.g., a third element). On the other hand, when it is mentioned that a component (e.g., a first component) is "directly connected" or "directly connected" to another component (e.g., a second component) It can be understood that there is no other component (e.g., a third component) between other components.
As used herein, the phrase " configured to " (or set) to be "configured according to circumstances may include, for example, having the capacity to, To be designed to, "" adapted to, "" made to, "or" capable of ". The term " configured to (or set up) "may not necessarily mean" specifically designed to "in hardware. Instead, in some situations, the expression "configured to" may mean that the device can "do " with other devices or components. For example, a processor configured (or configured) to perform the phrases "A, B, and C" may be implemented by executing one or more software programs stored in a memory device or a dedicated processor (e.g., an embedded processor) , And a generic-purpose processor (e.g., a CPU or an application processor) capable of performing the corresponding operations.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of the other embodiments. The singular expressions may include plural expressions unless the context clearly dictates otherwise. Terms used herein, including technical or scientific terms, may have the same meaning as commonly understood by one of ordinary skill in the art. The general predefined terms used in this document may be interpreted in the same or similar sense as the contextual meanings of the related art and, unless expressly defined in this document, include ideally or excessively formal meanings . In some cases, even the terms defined in this document can not be construed as excluding the embodiments of this document.
An electronic device according to various embodiments of the present document may be, for example, a smartphone, a tablet personal computer, a mobile phone, a video phone, an e-book reader, A desktop personal computer, a laptop personal computer, a netbook computer, a workstation, a server, a personal digital assistant (PDA), a portable multimedia player (PMP) A medical device, a camera, or a wearable device. According to various embodiments, the wearable device may be of the accessory type (e.g., a watch, a ring, a bracelet, a bracelet, a necklace, a pair of glasses, a contact lens or a head-mounted-device (HMD) (E. G., Electronic apparel), a body attachment type (e. G., A skin pad or tattoo), or a bioimplantable type (e.g., implantable circuit).
In some embodiments, the electronic device may be a home appliance. Home appliances include, for example, televisions, digital video disc (DVD) players, audio, refrigerators, air conditioners, vacuum cleaners, ovens, microwaves, washing machines, air cleaners, set- Such as a home automation control panel, a security control panel, a TV box such as Samsung HomeSync, Apple TVTM or Google TVTM, a game console such as Xbox ™, PlayStation ™, a digital camera, a camcorder, or an electronic photo frame.
In an alternative embodiment, the electronic device may be any of a variety of medical devices (e.g., various portable medical measurement devices such as a blood glucose meter, a heart rate meter, a blood pressure meter, or a body temperature meter), magnetic resonance angiography (MRA) Navigation systems, global navigation satellite systems (GNSS), event data recorders (EDRs), flight data recorders (FDRs), infotainment (infotainment) systems, ) Automotive electronic equipment (eg marine navigation systems, gyro compass, etc.), avionics, security devices, head units for vehicles, industrial or home robots, automatic teller's machines (ATMs) Point of sale, or internet of things (eg, light bulbs, various sensors, electrical or gas meters, sprinkler devices, fire alarms, thermostats, street lights, Of the emitter (toaster), exercise equipment, hot water tank, a heater, boiler, etc.) may include at least one.
According to some embodiments, the electronic device is a piece of furniture or a part of a building / structure, an electronic board, an electronic signature receiving device, a projector, Water, electricity, gas, or radio wave measuring instruments, etc.). In various embodiments, the electronic device may be a combination of one or more of the various devices described above. An electronic device according to some embodiments may be a flexible electronic device. Further, the electronic device according to the embodiment of the present document is not limited to the above-described devices, and may include a new electronic device according to technological advancement.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An electronic apparatus according to various embodiments will now be described with reference to the accompanying drawings. In this document, the term user may refer to a person using an electronic device or a device using an electronic device (e.g., an artificial intelligence electronic device).
Referring to Figure 1, in various embodiments, an electronic device 101 in a
The
The processor 120 may include one or more of a central processing unit (CPU), an application processor (AP), or a communication processor (CP). The processor 120 may perform computations or data processing related to, for example, control and / or communication of at least one other component of the electronic device 101.
The
The
In addition, the
The
The input /
The
Wireless communications may include, for example, cellular communication protocols such as long-term evolution (LTE), LTE Advance (LTE), code division multiple access (CDMA), wideband CDMA (WCDMA) mobile telecommunications system, WiBro (Wireless Broadband), or Global System for Mobile Communications (GSM). The wireless communication may also include, for example,
Each of the first and second external
2 is a block diagram of an electronic device 201 according to various embodiments. The electronic device 201 may include all or part of the electronic device 101 shown in Fig. 1, for example. The electronic device 201 may include one or more processors (e.g., an application processor (AP)) 210, a
The
The
The cellular module 221 can provide voice calls, video calls, text services, or Internet services, for example, over a communication network. According to one embodiment, the cellular module 221 may utilize a subscriber identity module (e.g., a SIM card) 224 to perform the identification and authentication of the electronic device 201 within the communication network. According to one embodiment, the cellular module 221 may perform at least some of the functions that the
Each of the
The
The
Memory 230 (e.g., memory 130) may include, for example,
The
The
The
(Digital)
Display 260 (e.g., display 160) may include a
The
The
The
The power management module 295 can, for example, manage the power of the electronic device 201. [ According to one embodiment, the power management module 295 may include a power management integrated circuit (PMIC), a charger integrated circuit, or a battery or fuel gauge. The PMIC may have a wired and / or wireless charging scheme. The wireless charging scheme may include, for example, a magnetic resonance scheme, a magnetic induction scheme, or an electromagnetic wave scheme, and may further include an additional circuit for wireless charging, for example, a coil loop, a resonant circuit, have. The battery gauge can measure, for example, the remaining amount of the
The
Each of the components described in this document may be composed of one or more components, and the name of the component may be changed according to the type of the electronic device. In various embodiments, the electronic device may comprise at least one of the components described herein, some components may be omitted, or may further include additional other components. In addition, some of the components of the electronic device according to various embodiments may be combined into one entity, so that the functions of the components before being combined can be performed in the same manner.
3 is a block diagram of a program module according to various embodiments. According to one embodiment, program module 310 (e.g., program 140) includes an operating system (OS) that controls resources associated with an electronic device (e.g., electronic device 101) (E.g., application programs 147) running on the system. The operating system may be, for example, android, iOS, windows, symbian, tizen, or bada.
The
The kernel 320 (e.g., the kernel 141) may include, for example, a system resource manager 321 and / or a device driver 323. The system resource manager 321 can perform control, allocation, or recovery of system resources. According to one embodiment, the system resource manager 321 may include a process manager, a memory manager, or a file system manager. The device driver 323 may include, for example, a display driver, a camera driver, a Bluetooth driver, a shared memory driver, a USB driver, a keypad driver, a WiFi driver, an audio driver, or an inter-process communication .
The middleware 330 may provide various functions commonly required by the application 370 or may be provided through the
The
The application manager 341 can manage the life cycle of at least one of the applications 370, for example. The window manager 342 can manage GUI resources used in the screen. The multimedia manager 343 can recognize the format required for reproducing various media files and can encode or decode the media file using a codec suitable for the format. The
The
The
Middleware 330 may include a middleware module that forms a combination of various functions of the above-described components. The middleware 330 may provide a module specialized for each type of operating system in order to provide differentiated functions. In addition, the middleware 330 may dynamically delete some existing components or add new ones.
The API 360 (e.g., API 145) may be provided in a different configuration depending on the operating system, for example, as a set of API programming functions. For example, for Android or iOS, you can provide one API set per platform, and for tizen, you can provide more than two API sets per platform.
An application 370 (e.g., an application program 147) may include, for example, a
According to one embodiment, an application 370 is an application that supports the exchange of information between an electronic device (e.g., electronic device 101) and an external electronic device (e.g., electronic devices 102 and 104) For convenience, an "information exchange application"). The information exchange application may include, for example, a notification relay application for communicating specific information to an external electronic device, or a device management application for managing an external electronic device.
For example, the notification delivery application may send notification information generated by other applications (e.g., SMS / MMS applications, email applications, health care applications, or environmental information applications) of the electronic device to external electronic devices , 104), respectively. Further, the notification delivery application can receive notification information from, for example, an external electronic device and provide it to the user.
The device management application may be configured to perform at least one function (e.g., turn-on or turn-off) of an external electronic device (e.g., an electronic device 102 or 104) (E.g., on / off-off, or adjusting the brightness (or resolution) of the display), managing applications (e.g., , Or updated).
According to one embodiment, the application 370 may include an application (e.g., a healthcare application of a mobile medical device, etc.) designated according to an attribute of an external electronic device (e.g., electronic device 102, 104). According to one embodiment, application 370 may include an application received from an external electronic device (e.g.,
According to various embodiments, at least some of the
As used in this document, the term "module" may refer to a unit comprising, for example, one or a combination of two or more of hardware, software or firmware. A "module" may be interchangeably used with terms such as, for example, unit, logic, logical block, component, or circuit. A "module" may be a minimum unit or a portion of an integrally constructed component. A "module" may be a minimum unit or a portion thereof that performs one or more functions. "Modules" may be implemented either mechanically or electronically. For example, a "module" may be an application-specific integrated circuit (ASIC) chip, field-programmable gate arrays (FPGAs) or programmable-logic devices And may include at least one.
At least a portion of a device (e.g., modules or functions thereof) or a method (e.g., operations) according to various embodiments may include, for example, computer-readable storage media in the form of program modules, As shown in FIG. When the instruction is executed by a processor (e.g., processor 120), the one or more processors may perform a function corresponding to the instruction. The computer readable storage medium may be, for example,
The computer readable recording medium may be a hard disk, a floppy disk, a magnetic media (e.g., a magnetic tape), an optical media (e.g., a compact disc read only memory (CD-ROM) digital versatile discs, magneto-optical media such as floptical disks, hardware devices such as read only memory (ROM), random access memory (RAM) Etc. The program instructions may also include machine language code such as those produced by a compiler, as well as high-level language code that may be executed by a computer using an interpreter, etc. The above- May be configured to operate as one or more software modules to perform the operations of the embodiment, and vice versa.
Modules or program modules according to various embodiments may include at least one or more of the elements described above, some of which may be omitted, or may further include additional other elements. Operations performed by modules, program modules, or other components in accordance with various embodiments may be performed in a sequential, parallel, iterative, or heuristic manner. Also, some operations may be performed in a different order, omitted, or other operations may be added. And the embodiments disclosed in this document are presented for the purpose of explanation and understanding of the disclosed technology and do not limit the scope of the technology described in this document. Accordingly, the scope of this document should be interpreted to include all modifications based on the technical idea of this document or various other embodiments.
An image consists of a plurality of pixels, digital images contain information about each pixel, and each pixel stores a pixel value (or pixel data) of a predefined size according to the format of the image Lt; / RTI > The pixel value may include information such as the color, brightness, etc. of the image, and may include an alpha value.
The alpha value is a value indicating the transparency of the pixel. For example, when the alpha value is represented by 8-bit data, the pixel has a value of 0 to 255. Here, when the pixel has an alpha value of 255, the pixel is completely opaque, translucent when 0 to 255, transparent when converged to 0 ≪ / RTI > When displaying on the
Of various formats of digital images, formats such as portable network graphics (PNG), bitmap (BMP), and TGA may include an alpha channel. The pixel value of each pixel can be defined as an RGB (red, green, blue) value including an alpha value and color information, and can be represented by (A, R, G, B) in this case. In the case of JPEG (or JPG) among some image formats, an alpha channel is not defined, and the
Digital images can be filtered (or corrected, edited, transformed, enhanced, adjusted) according to various image processing techniques. Image filtering is a process of editing the color, contrast, and outline of at least some pixels or objects in an image, for example, grayscale to give a monochrome effect on an image, cartoon to give a cartoon effect, sketch to convert as a drawing with a pen And the like. According to various embodiments, image filtering may be performed in a manner that includes a series of processes for correcting, editing, converting, enhancing, and adjusting an image according to known image processing techniques . ≪ / RTI > That is, the image filtering application can define the process of receiving the original image and generating a modified image from the original image through a predetermined process of correction, editing, conversion, enhancement, and adjustment.
In the following, various embodiments of the present invention for restoring alpha values after an image filtering operation will be described in more detail.
Figures 4A-4C illustrate an example of an
According to various embodiments of the present invention, an image obtained by filtering the
The
4A shows an image that includes an opaque (e.g., alpha = 255) flower shaped object and a fully transparent (e.g., alpha = 0) background as an example of the
Figure 4b shows a filtered
4C shows an example of the restored
In various embodiments, the
In various embodiments, the
When the application is executed, the
The
The application may support at least one of pre-processing (or real-time) image filtering and post-processing image filtering, and various embodiments of the present invention may be used to restore an alpha value Technology.
Image filtering is a process of filtering the color, contrast, and outline of an
The application for performing image filtering may be a central processing unit (CPU) or an image filtering application based on a GPU (graphical processing unit). As is known, a CPU is a processor that performs control and operation on an overall system, and a GPU corresponds to a processor for graphics processing. Various image filtering applications can be classified into a CPU-based application operated by a CPU and a GPU-based application operated by a GPU. The GPU is designed to efficiently process parallel processing including a plurality of cores It is advantageous for parallel processing of relatively simple operations, and the CPU consists of a small number of cores optimized for serial processing, and each of the advantages and disadvantages of processing complicated logic is that the applications can be CPU-based And can be designed to operate on a GPU basis. For example, an application for pre-processing (or real-time) image filtering that requires fast operation processing may operate on a GPU basis, an application for post-processing image filtering may be designed to operate on a CPU basis, Pre-processing (or real-time) image filtering as well as post-processing image filtering can be performed, and CPU-based applications can perform pre-processing (or real-time) image filtering as well as post-processing image filtering.
Some of the image filtering applications may cause the alpha value of the
Some filtering applications are GPU-based applications that are suitable for pre-processing (or real-time) image filtering, and pre-processing image filtering is to filter images currently being captured through the camera module of the
The
5 is a block diagram of an
As shown, the
The
The
The
The
The
In various embodiments of the invention, the instructions may include control instructions such as arithmetic and logic operations, data movement, input / output, etc., which may be recognized by the
In the following, in addition to the operation in which the application generates the filtered image, the operations performed by the
The
The
The application may generate the filtered
According to various embodiments, the
The
The first buffer and the second buffer are created to temporarily store the
The digital image data including the
The
The
The
The
The
According to various embodiments, the
According to various embodiments, the
As described above, the
The
According to various embodiments, the
The
According to various embodiments, the
Figure 6 depicts some of the pixel values of the
In FIG. 6, the first image shows the
According to various embodiments, in restoring the alpha value of the filtered
As shown in the figure, in the
An electronic device according to various embodiments of the present invention includes: a memory; A processor; And an application that is stored in the memory and is operable in the processor, the application performing image filtering from the original image to generate a filtered image, wherein the memory stores the alpha value of the original image Storing an instruction to perform an operation of restoring an alpha value of the filtered image, and the processor may execute an instruction stored in the memory after the application generates the filtered image.
According to various embodiments, the processor may execute instructions to create a first buffer for storage of the original image and a second buffer for storage of the filtered image on the memory.
According to various embodiments, the processor may perform an instruction to restore the alpha value of the filtered image to generate a reconstructed image, and then to remove the first buffer and the second buffer.
According to various embodiments, the processor may perform an instruction to reconstruct an alpha value for each pixel of the filtered image to generate a reconstructed image.
According to various embodiments, each pixel value of the original image, the filtered image, and the restored image may include an alpha value and an RGB value.
According to various embodiments, the processor may perform an instruction to determine a pixel value of the restored image by combining the alpha value of the original image and the RGB value of the filtered image for each pixel.
According to various embodiments, the processor may perform an instruction to extract at least one pixel whose alpha value is equal to or greater than a predetermined upper limit value in the filtered image, and to restore an alpha value for the extracted at least one pixel.
According to various embodiments, the processor may extract at least one pixel whose alpha value is less than or equal to a predetermined lower limit value in the original image, and restore the alpha value of the pixel of the filtered image corresponding to each of the extracted at least one pixel Can be executed.
According to various embodiments, the processor may filter the original image according to a filtering technique selected according to a user's input, and only when the selected filtering technique is a filtering technique that does not change the shape of an image, You can perform the command to restore the alpha value of the image.
According to various embodiments, the processor may perform an instruction to restore an alpha value of the filtered image only when the application is an application that performs GPU (Graphical Processing Unit) -based image filtering.
7 is a flow chart of a method of image processing an electronic device according to various embodiments of the present invention.
The illustrated method can be performed by the above-described electronic apparatus, and a description of the same or similar features of the electronic apparatus described above will be omitted.
At 710, the electronic device may perform an operation of receiving an original image.
At 720, the electronic device may include an operation of driving an image filtering application and performing image filtering using the driven application. As a result of performing the image filtering, a filtered image may be generated.
At 830, the electronic device may include restoring the alpha value of the filtered image using the alpha value of the original image. As a result, a restored image can be generated.
8 is a flow chart of a method of image processing an electronic device according to various embodiments of the present invention.
The illustrated method can be performed by the above-described electronic apparatus, and a description of the same or similar features of the electronic apparatus described above will be omitted.
At 810, the electronic device may include an operation to execute an image filtering application stored in memory (or non-volatile memory), depending on the user's input.
At 820, the electronic device may include, depending on the user's input, an operation to receive a selection of the original image and image filtering technique. Here, the image filtering technique can be grayscale to give a monochrome effect to an image, cartoon to give a cartoon effect, sketch to convert a drawing with a pen, and various filtering techniques can be selected for one original image.
At 830, the electronic device may include an act of filtering the original image using the executed application and generating a filtered image.
At 840, the electronic device may include an operation to determine whether the application is an application that performs GPU-based image filtering. This is because some of the filtering applications that are GPU based applications are suitable for pre-processing (or real-time) image filtering, and the preprocessing image filtering is for filtering the image currently being photographed through the camera module of the electronic device, As there is no need to generate filtered images using these GPU-based applications, alpha values may be lost.
At 850, the electronic device may include an operation to confirm whether the selected filtering technique is a technique that does not change the shape of the image. This is because, in the case of the filtering technique in which the shape of the image including the blurring process is changed, if the alpha value of the original image is directly applied to the filtered image, it may not exhibit the intended filtering effect.
Here, the electronic device may omit at least some of the
At 860, the electronic device generates a first buffer for storage of the original image and a second buffer for storage of the filtered image on the memory, and stores the original image and the filtered image in the first buffer and the second buffer, respectively . ≪ / RTI > Here, the first buffer and the second buffer may correspond to a specific (or unspecified) segment in a memory (or a volatile memory), and need not be implemented as separate hardware buffers.
At 870, the electronic device may include restoring the alpha value of the original image stored in the first buffer to restore the alpha value of the filtered image in the second buffer.
In restoring the alpha value of the filtered image, the electronic device may restore the alpha value for each pixel of the filtered image to produce a reconstructed image. The electronic device can recover the alpha value of the corresponding pixel of the filtered image using the alpha value of the pixel of the original image corresponding to the coordinates (x, y) of the pixel whose alpha value has been lost in the filtered image.
The electronic device can determine the pixel value of the reconstructed image by combining the alpha value of the original image and the RGB value of the filtered image for each pixel. For example, if the pixel value of the pixel coordinate (x1, y1) in the original image is (A1a, R1a, G1a, B1a) and the pixel value of the pixel coordinate (x1, y1) , R1b, G1b, and B1b), the pixel value of the original image in the pixel coordinates (x1, y1) of the restored image may be a combination of the alpha value and the RGB values of the filtered image (A1a, R1b, G1b, B1b) .
The electronic device can determine the pixel value of the restored image by combining the alpha value of the original image and the RGB value of the filtered image for all the pixels of the filtered image. In another embodiment, the alpha value in the filtered image or the original image It is possible to perform an operation of restoring the alpha value only for the searched pixels.
According to various embodiments, it is possible to extract at least one pixel whose alpha value is greater than or equal to a predetermined upper limit in the electronic device filtering image, and restore the alpha value only for the extracted at least one pixel. Here, the upper limit value may be 255 or a specific value of 128 or more based on 8-bit data.
According to various embodiments, it is possible to extract at least one pixel whose alpha value is less than or equal to a predetermined lower limit value in the original image of the electronic device, and to restore the alpha value of the pixel of the filtered image corresponding to each extracted at least one pixel. Here, the lower limit value may be a specific value of 0 or less than 127 based on 8-bit data.
At 880, the electronic device may include an operation of generating a reconstructed image as a result of alpha value restoration of the filtered image.
At 890, the electronic device may include removing the first and second pre-created buffers after the creation of the restored image is complete. However, the operation of 890 may be omitted depending on the setting of the electronic device and the memory storage space.
An image processing method according to various embodiments of the present invention includes: executing an application for performing image filtering; Performing image filtering on the original image through the application to generate a filtered image; And generating a restored image by restoring an alpha value of the filtered image using an alpha value of the original image.
According to various embodiments, the method may further include generating a first buffer for storing the original image and a second buffer for storing the filtered image on a memory.
According to various embodiments, after generating the restored image, the method may further include removing the first buffer and the second buffer.
According to various embodiments, the act of generating the reconstructed image may include generating an reconstructed image by reconstructing an alpha value for each pixel of the filtered image.
According to various embodiments, each pixel value of the original image, the filtered image, and the restored image may include an alpha value and an RGB value.
According to various embodiments, the act of generating the reconstructed image comprises determining the pixel value of the reconstructed image by combining the alpha value of the original image and the RGB value of the filtered image for each pixel can do.
According to various embodiments, the operation of generating the reconstructed image may include extracting at least one pixel whose alpha value is equal to or greater than a predetermined upper limit value in the filtered image, and restoring the alpha value of the extracted at least one pixel .
According to various embodiments, the operation of generating the reconstructed image may include extracting at least one pixel whose alpha value is less than or equal to a predetermined lower limit value in the original image, extracting at least one pixel of the filtered image corresponding to the extracted at least one pixel, Lt; RTI ID = 0.0 > alpha. ≪ / RTI >
According to various embodiments, the act of generating the filtered image includes filtering the original image according to a filtering technique selected in accordance with a user's input, wherein the act of generating the restored image comprises: And restoring the alpha value of the filtered image only when the filtering technique does not change the shape of the image.
According to various embodiments, the act of creating the restored image may include restoring the alpha value of the filtered image only if the application is an application that performs GPU (Graphical Processing Unit) based image filtering. have.
According to various embodiments of the invention described above, an electronic device and an image of an electronic device capable of restoring a lost alpha value if the alpha value of at least some of the pixels in the filtered image is lost through an application that filters the image And can provide a processing method.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
400: electronic device
410: Processor
420: memory
430: input device
440: Display
450: Communication module
Claims (20)
A processor; And
An application stored in the memory and operable in the processor,
The application performs image filtering from the original image to generate a filtered image,
Wherein the memory stores an instruction for performing an operation of restoring an alpha value of the filtered image using an alpha value of the original image,
Wherein the processor executes the instructions stored in the memory after the application generates the filtered image.
The processor comprising:
A first buffer for storing the original image and a second buffer for storing the filtered image on the memory.
The processor comprising:
And performing an instruction to remove the first buffer and the second buffer after restoring an alpha value of the filtered image to generate a restored image.
The processor comprising:
And to restore the alpha value for each pixel of the filtered image to produce a reconstructed image.
Wherein each pixel value of the original image, filtered image, and restored image comprises an alpha value and an RGB value.
The processor comprising:
And performing an instruction to determine a pixel value of the restored image by combining the alpha value of the original image and the RGB value of the filtered image for each of the pixels.
The processor comprising:
Extracts at least one pixel whose alpha value is equal to or greater than a predetermined upper limit value in the filtered image, and restores an alpha value for the extracted at least one pixel.
The processor comprising:
Extracting at least one pixel whose alpha value is equal to or less than a predetermined lower limit value in the original image and restoring an alpha value of a pixel of the filtered image corresponding to each of the extracted at least one pixel Device.
The processor comprising:
Filtering the original image according to a filtering technique selected according to a user's input,
Wherein the command is to restore an alpha value of the filtered image only when the selected filtering technique is a filtering technique that does not change the shape of the image.
The processor comprising:
Wherein the controller executes an instruction to restore an alpha value of the filtered image only when the application is an application that performs GPU (Graphical Processing Unit) based image filtering.
Performing image filtering on the original image through the application to generate a filtered image; And
And generating a restored image by restoring an alpha value of the filtered image using an alpha value of the original image.
Further comprising generating a first buffer for storage of the original image and a second buffer for storage of the filtered image on a memory.
Further comprising: after generating the reconstructed image, removing the first buffer and the second buffer.
Wherein the generating the reconstructed image comprises:
And restoring an alpha value for each pixel of the filtered image to produce a reconstructed image.
Wherein each pixel value of the original image, the filtered image, and the restored image comprises an alpha value and an RGB value.
Wherein the generating the reconstructed image comprises:
And combining the alpha value of the original image and the RGB value of the filtered image for each pixel to determine a pixel value of the reconstructed image.
Wherein the generating the reconstructed image comprises:
Extracting at least one pixel whose alpha value is equal to or greater than a predetermined upper limit value in the filtered image, and restoring an alpha value for the extracted at least one pixel.
Wherein the generating the reconstructed image comprises:
Extracting at least one pixel whose alpha value is less than or equal to a predetermined lower limit value in the original image and restoring an alpha value of the pixel of the filtered image corresponding to each of the extracted at least one pixel .
The operation of generating the filtered image comprises:
Filtering the original image according to a filtering technique selected according to a user's input,
Wherein the generating the reconstructed image comprises:
And restoring an alpha value of the filtered image only when the selected filtering technique is a filtering technique that does not change the shape of the image.
Wherein the generating the reconstructed image comprises:
And restoring an alpha value of the filtered image only when the application is an application that performs GPU (Graphical Processing Unit) based image filtering.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020150113176A KR20170019159A (en) | 2015-08-11 | 2015-08-11 | Electronic device and image processing method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020150113176A KR20170019159A (en) | 2015-08-11 | 2015-08-11 | Electronic device and image processing method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20170019159A true KR20170019159A (en) | 2017-02-21 |
Family
ID=58313775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020150113176A KR20170019159A (en) | 2015-08-11 | 2015-08-11 | Electronic device and image processing method thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20170019159A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019209007A1 (en) * | 2018-04-24 | 2019-10-31 | 주식회사 지디에프랩 | Ai-based image compression and decompression system |
-
2015
- 2015-08-11 KR KR1020150113176A patent/KR20170019159A/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019209007A1 (en) * | 2018-04-24 | 2019-10-31 | 주식회사 지디에프랩 | Ai-based image compression and decompression system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10284775B2 (en) | Electronic device and method for processing captured image associated with preview frames by electronic device | |
CN107665485B (en) | Electronic device and computer-readable recording medium for displaying graphic objects | |
KR102264806B1 (en) | Method and apparatus for providing of screen mirroring service | |
KR20160105242A (en) | Apparatus and method for providing of screen mirroring service | |
KR102399764B1 (en) | Method and apparatus for capturing image | |
KR102272108B1 (en) | Image processing apparatus and method | |
KR20170122580A (en) | Electronic eevice for compositing graphic data and method thereof | |
KR20170105213A (en) | Electronic device and method for driving display thereof | |
KR20160129607A (en) | Method for short-range wireless communication and Electronic device using the same | |
KR20170019615A (en) | Apparatus and method for adjusting resolution of electronic device | |
KR20170014979A (en) | Method and apparatus for displaying in an electronic device | |
KR20160105239A (en) | Electronic device and method for displaying picture thereof | |
KR20170077730A (en) | Content recognition device and method for controlling thereof | |
KR20160143094A (en) | Electronic Device for Performing Personal Authentication and Method Thereof | |
KR20170086977A (en) | Method and apparatus for processing image data | |
KR20160132620A (en) | Display data processing method and electronic device supporting the same | |
KR20170004723A (en) | Dynamic preview display method of electronic apparatus and electronic apparatus thereof | |
KR20160084147A (en) | Image metadata managing method and apparatus | |
KR20160031217A (en) | Method for controlling and an electronic device thereof | |
KR20160147432A (en) | Device For Controlling Respectively Multiple Areas of Display and Method thereof | |
JP2020502696A (en) | Electronic device and web page display method using the same | |
KR20160114434A (en) | Electronic Device And Method For Taking Images Of The Same | |
KR20170081903A (en) | Electronic device and method for operating thereof | |
US10582156B2 (en) | Electronic device for performing video call and computer-readable recording medium | |
KR20160125783A (en) | Electronic apparatus and method for displaying contetns |