(19)
(11)EP 3 502 967 A1

(12)EUROPEAN PATENT APPLICATION

(43)Date of publication:
26.06.2019 Bulletin 2019/26

(21)Application number: 18209658.6

(22)Date of filing:  15.06.2018
(51)International Patent Classification (IPC): 
G06K 9/62(2006.01)
G06K 9/46(2006.01)
(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR
Designated Extension States:
BA ME
Designated Validation States:
KH MA MD TN

(30)Priority: 18.12.2017 US 201762599936 P
09.03.2018 KR 20180027790

(62)Application number of the earlier application in accordance with Art. 76 EPC:
18178123.8 / 3499416

(71)Applicant: Samsung Electronics Co., Ltd.
Gyeonggi-do 16677 (KR)

(72)Inventors:
  • LEE, Hyun-seung
    Seoul (KR)
  • KIM, Dong-hyun
    Gyeonggi-do (KR)
  • MOON, Young-su
    Seoul (KR)
  • AHN, Tae-gyoung
    Gyeonggi-do (KR)

(74)Representative: Taor, Simon Edward William et al
Venner Shipley LLP 200 Aldersgate
London EC1A 4HD
London EC1A 4HD (GB)

  


(54)ELECTRONIC APPARATUS AND CONTROL METHOD THEREOF


(57) An electronic apparatus is provided. The electronic apparatus includes: a storage configured to store a plurality of filters each corresponding to a plurality of image patterns; and a processor configured to classify an image block including a target pixel and a plurality of surrounding pixels into one of the plurality of image patterns based on a relationship between pixels within the image block and to obtain a final image block in which the target pixel is image-processed by applying at least one filter corresponding to the classified image pattern from among the plurality of filters to the image block, wherein the plurality of filters are obtained by learning, through an artificial intelligence algorithm, a relationship between a plurality of first sample image blocks and a plurality of second sample image blocks corresponding to the plurality of first sample image blocks based on each of the plurality of image patterns.


Description

CROSS-REFERENCE TO RELATED APPLICATIONS



[0001] This application is based on and claims priority under 35 U.S.C. §119 to Korean Patent Application No. 10-2018-0027790, filed on March 9, 2018, in the Korean Intellectual Property Office and U.S. Provisional Patent Application No. 62/599,936, filed on December 18, 2017, in the U.S. Patent and Trademark Office, the disclosures of which are incorporated herein by reference in their entireties.

BACKGROUND


Field



[0002] The present disclosure relates generally to an electronic apparatus and a control method thereof, and for example, to an electronic apparatus performing image processing, and a control method thereof.

[0003] The present disclosure also relates to an artificial intelligence (AI) system simulating a recognition function and a decision function of a human brain using a machine learning algorithm, and an application thereof.

Description of Related Art



[0004] Recently, an artificial intelligence system implementing human-level intelligence has been used in various fields. The artificial intelligence system is a system in which a machine performs learning and decision and becomes smart by itself unlike an existing rule-based smart system. As the artificial intelligence system is used more, a recognition rate is improved and a user's taste may be more accurately understood, such that the existing rule-based smart system has been gradually replaced by a deep learning-based artificial intelligence system.

[0005] An artificial intelligence technology may include machine learning (for example, deep learning) and element technologies using the machine learning.

[0006] The machine learning may include an algorithm technology of classifying/learning features of input data by itself, and the element technology may include a technology of simulating functions such as recognition, decision, and the like, of a human brain using a machine learning algorithm such as deep learning, or the like, and may include technical fields such as linguistic understanding, visual understanding, inference/prediction, knowledge representation, a motion control, and the like.

[0007] Various fields to which the artificial intelligence technology may be applied are as follows. The linguistic understanding may refer to a technology of recognizing and applying/processing human languages, and may include natural language processing, machine translation, a dialog system, question and answer, speech recognition/synthesis, or the like. The visual understanding may refer to a technology of recognizing and processing things like human vision, and may include object recognition, object tracking, image search, human recognition, scene understanding, space understanding, image improvement, or the like. The inference/prediction may refer to a technology of deciding and logically inferring and predicting information, and may include knowledge/probability-based inference, optimization prediction, preference-based planning, recommendation, or the like. The knowledge representation may refer to a technology of automating and processing human experience information as knowledge data, and may include knowledge construction (data creation/ classification), knowledge management (data utilization), or the like. The motion control may refer to a technology of controlling self-driving of a vehicle and a motion of a robot, and may include a motion control (navigation, collision, driving), a manipulation control (behavior control), or the like.

[0008] Meanwhile, a conventional image processing method may be divided into a non-leaning-based technology and a learning-based technology. The non-learning-based technology has an advantage that an image processing speed is rapid, but has a problem that flexible image processing depending on image characteristics is impossible. The learning-based technology has an advantage that flexible image processing is possible, but has a problem that real-time processing is difficult.

[0009] For example, considering a case of enlarging a resolution of an image, in an interpolation method, which is a representative method of the non-learning-based technology, a brightness of a pixel corresponding to a position at which the resolution is enlarged is calculated using a filter having low pass characteristics. In detail, there is a bi-cubic interpolation manner based on a spline, a resampling manner using a Lanczos filter formed by simplifying an ideal low-pass filter (Sinc Kernel), or the like. Such a non-learning-based technology shows stable image enlarging performance due to a low complexity, but may not reflect prior information possessed by only an image, such that edge sharpness is blurred, an edge is jagged, aliasing or ringing occurs in the vicinity of the edge.

[0010] As a representative method of the learning-based technology, there are a manner of directly using a high image quality image database for reconstruction, a manner of learning and using a high resolution conversion rule for each classified class, a manner of learning low resolution/high resolution conversion in an end-to-end mapping form by a deep learning network and enlarging the image using a learned network at the time of enlarging the image.

[0011] In the learning-based technologies, unique characteristics of an image signal are reflected in learning and are used at the time of enlarging the image, and the learning-based technologies may thus reconstruct a sharp, non-jagged, and smooth edge as compared with non-learning-based image enlarging methods. However, the learning-based technologies are appropriate for applications requiring non-real time due to a high complexity, but it is difficult to apply the learning-based technologies to apparatuses requiring real time, such as a television (TV). In addition, it is difficult to apply the learning-based technologies to system-on-chip (Soc) implementation for real time implementation.

[0012] In addition, the learning-based technologies show excellent performance with respect to edge components of which region features are clear, but show noise components with respect to a flat region of which a feature is unclear or show low performance on a detail representation surface. In addition, the learning-based technologies have a problem that the image may not be enlarged with respect to a non-learned magnification.

[0013] Therefore, it has been required to develop a technology capable of performing flexible image processing and improving an image processing speed.

SUMMARY



[0014] Example embodiments of the present disclosure address the above disadvantages and other disadvantages not described above.

[0015] The present disclosure provides an electronic apparatus performing learning-based image process in real time, and a control method thereof.

[0016] According to an example aspect of the present disclosure, an electronic apparatus includes: a storage configured to store a plurality of filters, each filter corresponding to a plurality of image patterns; and a processor configured to classify an image block including a target pixel and a plurality of surrounding pixels into one of the plurality of image patterns based on a relationship between pixels within the image block and to obtain a final image block in which the target pixel is image-processed by applying at least one filter corresponding to the classified image pattern from among the plurality of filters to the image block, wherein the plurality of filters are obtained by learning a relationship between a plurality of first sample image blocks and a plurality of second sample image blocks corresponding to the plurality of first sample image blocks through an artificial intelligence algorithm based on each of the plurality of image patterns.

[0017] The processor may calculate (determine) a gradient vector from the image block, calculate (determine) correlations of the image block to each of a plurality of index vectors based on an index matrix stored in the storage and including the plurality of index vectors and the gradient vector, and classify the image block into one of the plurality of image patterns based on the calculated (determined) correlations, and the plurality of index vectors may be obtained based on a plurality of sample gradient vectors calculated (determined) from the plurality of first sample image blocks and corresponding to the plurality of image patterns, respectively.

[0018] The processor may calculate (determine) the gradient vector from the image block when a strength of horizontal directivity of the image block is larger than that of vertical directivity of the image block, and may transpose the image block and calculate the gradient vector from the transposed image block when the strength of the horizontal directivity of the image block is less than that of the vertical directivity of the image block.

[0019] The processor may reduce a size of the gradient vector using an eigen vector stored in the storage and calculate the correlations of the image block to each of the plurality of index vectors based on the gradient vector of which the size is reduced, and the eigen vector may be created by applying a principal component analysis from the plurality of sample gradient vectors.

[0020] The processor may calculate a first correlation of the image block to each of a plurality of index vector groups based on a first index matrix stored in the storage and the gradient vector, obtain one of the plurality of index vector groups based on the first correlation, calculate a second correlation of the image block to each of a plurality of index vectors included in the obtained index vector group based on a second index matrix corresponding to the obtained index vector group from among a plurality of second index matrices stored in the storage and the gradient vector, and obtain the final image block by applying at least one of the plurality of filters to the image block based on the second correlation, the plurality of index vector groups may be obtained by dividing the plurality of index vectors into a predetermined number of groups, the first index matrix may include index vectors representing each of the plurality of index vector groups, and each of the plurality of second index matrices may include a plurality of index vectors corresponding to each of the plurality of index vector groups.

[0021] The processor may obtain one of the plurality of index vectors included in the obtained index vector group based on the second correlation, obtain at least one additional index vector included in the others of the plurality of index vector groups and corresponding to the obtained index vector based on similar index vector information stored in the storage, calculate a third correlation of the image block based on the obtained index vector, the obtained additional index vector, and the gradient vector, and obtain the final image block by applying at least one of the plurality of filters to the image block based on the third correlation.

[0022] The processor may obtain at least two of the plurality of filters based on a plurality of calculated correlations, calculate a final filter based on the at least two filters and correlations corresponding to each of the at least two filters, and obtain the final image block by applying the calculated final filter to the image block.

[0023] The plurality of first sample image blocks may be images in which resolutions of the corresponding second sample image blocks are reduced, respectively, and the processor may obtain the final image block in which a resolution of the target pixel is enlarged by applying at least one of the plurality of filters to the image block.

[0024] The processor may obtain an additional image block in which the resolution of the target pixel is enlarged by applying a non-learning-based resolution enlarging technology to the image block, and update the final image block based on the largest correlation of a plurality of calculated correlations and the additional image block.

[0025] The processor may calculate horizontal gradients and vertical gradients for the target pixel and each of the plurality of surrounding pixels, and calculate the gradient vector based on the horizontal gradients and the vertical gradients.

[0026] Each of the plurality of filters may be obtained by obtaining a plurality of first sub-sample image blocks corresponding to one of the plurality of index vectors among the plurality of first sample image blocks, obtaining a plurality of second sub-sample image blocks corresponding to the plurality of first sub-sample image blocks from among the plurality of second sample image blocks, and learning a relationship between the plurality of first sub-sample image blocks and the plurality of second sub-sample image blocks through the artificial intelligence algorithm.

[0027] According to another example aspect of the present disclosure, a method of controlling an electronic apparatus includes: classifying an image block including a target pixel and a plurality of surrounding pixels into one of a plurality of image patterns based on a relationship between pixels within the image block; and obtaining a final image block in which the target pixel is image-processed by applying at least one filter corresponding to the classified image pattern from among a plurality of filters each corresponding to the plurality of image patterns to the image block, wherein the plurality of filters are obtained by learning a relationship between a plurality of first sample image blocks and a plurality of second sample image blocks corresponding to the plurality of first sample image blocks through an artificial intelligence algorithm based on each of the plurality of image patterns.

[0028] The classifying may include: calculating (determining) a gradient vector from the image block; calculating (determining) correlations of the image block to each of a plurality of index vectors based on an index matrix including the plurality of index vectors and the gradient vector; and classifying the image block into one of the plurality of image patterns based on the calculated (determined) correlations, and the plurality of index vectors may be obtained based on a plurality of sample gradient vectors calculated from the plurality of first sample image blocks and correspond to the plurality of image patterns, respectively.

[0029] In the calculating of the gradient vector, the gradient vector may be calculated from the image block when a strength of horizontal directivity of the image block is larger than that of vertical directivity of the image block, and the image block may be transposed and the gradient vector may be calculated from the transposed image block when the strength of the horizontal directivity of the image block is less than that of the vertical directivity of the image block.

[0030] The method may further include reducing a size of the gradient vector using an eigen vector, wherein in the calculating of the correlations, the correlations of the image block to each of the plurality of index vectors are calculated based on the gradient vector of which the size is reduced, and the eigen vector is created by applying a principal component analysis from the plurality of sample gradient vectors.

[0031] The calculating of the correlations may include: calculating a first correlation of the image block to each of a plurality of index vector groups based on a first index matrix and the gradient vector; obtaining one of the plurality of index vector groups based on the first correlation; calculating a second correlation of the image block to each of a plurality of index vectors included in the obtained index vector group based on a second index matrix corresponding to the obtained index vector group among a plurality of second index matrices and the gradient vector, and in the obtaining of the final image block, the final image block is obtained by applying at least one of the plurality of filters to the image block based on the second correlation, the plurality of index vector groups may be obtained by dividing the plurality of index vectors into a predetermined number of groups, the first index matrix may include index vectors representing each of the plurality of index vector groups, and each of the plurality of second index matrices may include a plurality of index vectors corresponding to each of the plurality of index vector groups.

[0032] The calculating of the correlations may include: obtaining one of the plurality of index vectors included in the obtained index vector group based on the second correlation; obtaining at least one additional index vector included in the others of the plurality of index vector groups and corresponding to the obtained index vector based on similar index vector information; and calculating a third correlation of the image block based on the obtained index vector, the obtained additional index vector, and the gradient vector, and in the obtaining of the final image block, the final image block may be obtained by applying at least one of the plurality of filters to the image block based on the third correlation.

[0033] The obtaining of the final image block may include: obtaining at least two of the plurality of filters based on a plurality of calculated correlations; calculating a final filter based on the at least two filters and correlations corresponding to each of the at least two filters; and obtaining the final image block by applying the calculated final filter to the image block.

[0034] The plurality of first sample image blocks may be images in which resolutions of the corresponding second sample image blocks are reduced, respectively, and in the obtaining of the final image block, the final image block in which a resolution of the target pixel is enlarged may be obtained by applying at least one of the plurality of filters to the image block.

[0035] The method may further include: obtaining an additional image block in which the resolution of the target pixel is enlarged by applying a non-learning-based resolution enlarging technology to the image block; and updating the final image block based on the largest correlation of a plurality of calculated correlations and the additional image block.

[0036] In the calculating of the gradient vector, horizontal gradients and vertical gradients for the target pixel and each of the plurality of surrounding pixels may be calculated, and the gradient vector may be calculated based on the horizontal gradients and the vertical gradients.

[0037] Each of the plurality of filters may be obtained by obtaining a plurality of first sub-sample image blocks corresponding to one of the plurality of index vectors from among the plurality of first sample image blocks, obtaining a plurality of second sub-sample image blocks corresponding to the plurality of first sub-sample image blocks from among the plurality of second sample image blocks, and learning a relationship between the plurality of first sub-sample image blocks and the plurality of second sub-sample image blocks through the artificial intelligence algorithm.

[0038] According to various example embodiments of the present disclosure as described above, the electronic apparatus may perform image processing in real time and be thus used in various applications, and may improve quality of the image processing as compared with non-learning-based image processing by performing learning-based image processing.

BRIEF DESCRIPTION OF THE DRAWINGS



[0039] The above and/or other aspects, features and attendant advantages of the present disclosure will be more apparent and readily appreciated from the following detailed description, taken in conjunction with the accompanying drawings, in which like reference numerals refer to like elements, and wherein:

FIG. 1A is a block diagram illustrating components of an example electronic apparatus according to an example embodiment of the present disclosure;

FIG. 1B is a block diagram illustrating an example of components of the electronic apparatus;

FIG. 2 is a diagram illustrating example operations of a processor according to an example embodiment of the present disclosure;

FIGS. 3A, 3B, 3C, 3D and 3E are diagrams illustrating an example method of deciding directivity of an image block and creating a gradient vector according to an example embodiment of the present disclosure;

FIGS. 4A and 4B are diagrams illustrating an example feature dimension reduction of a gradient vector according to an example embodiment of the present disclosure;

FIGS. 5A and 5B are diagrams illustrating an example search of a filter using an index matrix according to an example embodiment of the present disclosure;

FIGS. 6A, 6B and 6C are diagrams illustrating an example method of reducing a search calculation amount of a filter according to an example embodiment of the present disclosure;

FIGS. 7A and 7B are diagrams illustrating an example method of reducing a search calculation amount of a filter according to another example embodiment of the present disclosure;

FIGS. 8A and 8B are diagrams illustrating an example method of applying a filter to an image block according to an example embodiment of the present disclosure;

FIGS. 9A and 9B are diagrams illustrating an example learning method of a filter according to an example embodiment of the present disclosure;

FIG. 10 is a flow diagram illustrating an example streaming operation according to an example embodiment of the present disclosure; and

FIG. 11 is a flowchart illustrating an example method of controlling an electronic apparatus according to an example embodiment of the present disclosure.


DETAILED DESCRIPTION



[0040] The various example embodiments of the present disclosure may be diversely modified. Accordingly, specific example embodiments are illustrated in the drawings and are described in detail in the disclosure. However, it is to be understood that the present disclosure is not limited to a specific example embodiment, but includes all modifications, equivalents, and substitutions without departing from the scope and spirit of the present disclosure. Also, well-known functions or constructions may not be described in detail where they obscure the disclosure with unnecessary detail.

[0041] Hereinafter, various example embodiments of the present disclosure will be described in greater detail with reference to the accompanying drawings.

[0042] FIG. 1A is a block diagram illustrating example components of an electronic apparatus 100 according to an example embodiment of the present disclosure. As illustrated in FIG. 1A, the electronic apparatus 100 includes a storage 110 and a processor (e.g., including processing circuitry) 120.

[0043] The electronic apparatus 100 may be an apparatus performing image processing. For example, the electronic apparatus 100 may be an apparatus performing image processing based on data learned through an artificial intelligence algorithm. For example, the electronic apparatus 100 may, for example, and without limitation, be a desktop personal computer (PC), a laptop computer, a smartphone, a tablet PC, a server, a refrigerator, a washing machine, a signage, or the like. In addition, the electronic apparatus 100 may, for example, and without limitation, be a system itself in which a cloud computing environment is configured. However, the electronic apparatus 100 is not limited thereto, but may be any apparatus that may perform image processing.

[0044] The storage 110 may store a plurality of filters corresponding to each of a plurality of image patterns. Here, the plurality of image patterns may be classified depending on image characteristics. For example, a first image pattern may be an image pattern having many lines in a horizontal direction, and a second image pattern may be an image pattern having many lines in a rotation direction.

[0045] The storage 110 may further store an index matrix including a plurality of index vectors. The plurality of index vectors may be obtained based on a plurality of sample gradient vectors calculated (determined) from a plurality of first sample image blocks, and may correspond to the plurality of image patterns, respectively. The plurality of filters may be obtained by learning a relationship between the plurality of first sample image blocks and a plurality of second sample image blocks corresponding to the plurality of first sample image blocks through an artificial intelligence algorithm based on each of the plurality of index vectors.

[0046] The plurality of index vectors and the plurality of filters may be created by an external server rather than the electronic apparatus 100. However, the plurality of index vectors and the plurality of filters are not limited thereto, but may also be created by the electronic apparatus 100. In this case, the storage 110 may store the plurality of first sample image blocks and the plurality of second sample image blocks.

[0047] A method of creating the gradient vectors, the plurality of index vectors, and the plurality of filters is described below.

[0048] The storage 110 may store at least one image block. The storage 110 may store the plurality of first sample image blocks and the plurality of second sample image blocks. In addition, the storage 110 may store a non-learning-based filter, and a kind of storage is not limited.

[0049] The storage 110 may, for example, and without limitation, be implemented by a hard disk, a non-volatile memory, a volatile memory, or the like, and may be any component that may store data.

[0050] The processor 120 may include various processing circuitry and generally controls an operation of the electronic apparatus 100.

[0051] According to an example embodiment, the processor 120 may be implemented, for example, and without limitation, by a digital signal processor (DSP), a microprocessor, and/or a time controller (TCON), or the like. However, the processor 120 is not limited thereto, but may include, for example, and without limitation, one or more of a dedicated processor, a central processing unit (CPU), a micro controller unit (MCU), a micro processing unit (MPU), a controller, an application processor (AP), a communication processor (CP), an ARM processor, and/or may be defined by these terms, or the like. In addition, the processor 120 may be implemented by a system-on-chip (SoC) or a large scale integration (LSI) in which a processing algorithm is embedded, and/or may be implemented in a field programmable gate array (FPGA) form.

[0052] The processor 120 may receive an image block including a target pixel and a plurality of surrounding pixels input from an external server. In this case, the processor 120 may store the image block in the storage 110. The processor 120 may read the image block stored in the storage 110. The processor 120 may read an image block having a predetermined size from an image frame stored in the storage 110. For example, the processor 120 may read a first image block of 3 × 3 of the left upper end of the image frame, and may image-process the first image block. In addition, the processor 120 may read a second image block of 3 × 3 moved rightward from the left upper end of the image frame by a unit pixel, and may image-process the second image block. In this manner, the processor 120 may perform image processing on the entire image frame.

[0053] The target pixel may be a pixel that becomes a target of filtering to be described below. That is, the target pixel may be filtered based on pixel values of the plurality of surrounding pixels.

[0054] The processor 120 may classify the image block including the target pixel and the plurality of surrounding pixels into one of the plurality of image patterns based on a relationship between pixels within the image block. For example, when a difference between pixel values of pixels adjacent to each other in the horizontal direction is smaller than that of pixel values of pixels adjacent to each other in a vertical direction, the processor 120 may classify the image block into an image pattern having characteristics of the vertical direction.

[0055] However, the present disclosure is not limited thereto, and the processor 120 may also obtain a relationship between pixels within the image block depending on various methods.

[0056] In addition, the processor 120 may obtain a final image block in which the target pixel is image-processed by applying at least one filter corresponding to the classified image pattern from among the plurality of filters to the image block.

[0057] As another example for classifying the image block, the processor 120 may calculate (determine) a gradient vector from the image block. For example, the processor 120 may calculate horizontal gradients and vertical gradients for the target pixel and each of the plurality of surrounding pixels, and calculate the gradient vector based on the horizontal gradients and the vertical gradients. The gradient vector may indicate change amounts for pixels existing in a predetermined direction in relation to each pixel. That is, characteristics of the image block may be detected through the gradient vector.

[0058] For example, the processor 120 may calculate a horizontal gradient and a vertical gradient for an image block of 3 × 3 using a Sobel operator. Each of the horizontal gradient and the vertical gradient may include nine elements, and the processor 120 may arrange the elements of each of the horizontal gradient and the vertical gradient in a predetermined sequence and convert the elements into a vector form. The predetermined sequence may be set by various methods. However, the predetermined sequence may be the same as a sequence for calculating the gradient vector in a process of creating a plurality of index vectors and a plurality of filters to be described below.

[0059] The processor 120 may calculate the gradient vector of the image block through various methods in addition to the Sobel operator, and the various methods are not particularly limited. In addition to the horizontal and vertical gradient vectors, a gradient vector having another angle may be calculated, and any method may be used so long as the gradient vector is calculated by the same method as a method used in a process of creating a plurality of index vectors and a plurality of filters to be described below. Hereinafter, a case in which a gradient vector of c × 1 is calculated is described for convenience of explanation. Here, c may be changed depending on a size of an image block.

[0060] The processor 120 may calculate correlations of the image block to each of the plurality of index vectors based on the index matrix stored in the storage 110 and the gradient vector. The index matrix may include the plurality of index vectors, and the plurality of index vectors may be obtained based on the plurality of sample gradient vectors calculated from the plurality of first sample image blocks.

[0061] For example, in the case in which 1,000,000 sample gradient vectors calculated from 1,000,000 first sample image blocks are divided into groups for each of characteristics of the image block, each of the plurality of index vectors may be a vector representing each group. That is, the correlations of the image block to each of the plurality of index vectors may mean similarities of the image block to each of the a groups. In addition, the image block may be considered as having characteristics similar to those of a group corresponding to the largest correlation of a correlations.

[0062] However, this is only an example, and the number of first sample image blocks and the number of groups may be changed. In addition, the number of groups may also be changed depending on a kind of filter. For example, in the case of a resolution enlarging filter, the number of groups is a, but in the case of a sharpen filter, the number of groups may not be a.

[0063] The processor 120 may obtain a final image block in which the target pixel is image-processed by applying at least one filter of the plurality of filters to the image block based on the calculated correlations. Here, the filter may be the resolution enlarging filter, the sharpen filter, or the like, but is not limited thereto, and may also be any filter related to image processing.

[0064] In addition, the plurality of filters may be obtained by learning a relationship between the plurality of first sample image blocks and the plurality of second sample image blocks corresponding to the plurality of first sample image blocks through the artificial intelligence algorithm based on each of the plurality of index vectors.

[0065] For example, each of the plurality of filters may be obtained by obtaining a plurality of first sub-sample image blocks corresponding to one of the plurality of index vectors from among the plurality of first sample image blocks, obtaining a plurality of second sub-sample image blocks corresponding to the plurality of first sub-sample image blocks from among the plurality of second sample image blocks, and learning a relationship between the plurality of first sub-sample image blocks and the plurality of second sub-sample image blocks through the artificial intelligence algorithm.

[0066] In the example described above, each of the plurality of filters may, for example, and without limitation, be a resolution enlarging filter obtained by learning image characteristics of one of the a groups through the artificial intelligence algorithm. In the case in which first image characteristics are represented by a first index vector and a first filter corresponding to the first index vector exists and second image characteristics are represented by a second index vector and a second filter corresponding to the second index vector exists, when a correlation between the image block and the first image characteristics is high, the image block may show more improved quality in the case in which a resolution thereof is enlarged through the first filter than in the case in which the resolution thereof is enlarged through the second filter. The reason is that the first filter and the second filter are filters learned to be appropriate for the first image characteristics and the second image characteristics, respectively.

[0067] The processor 120 may calculate the gradient vector from the image block when a strength of horizontal directivity of the image block is larger than that of vertical directivity of the image block, and may transpose the image block and calculate the gradient vector from the transposed image block when the strength of the horizontal directivity of the image block is smaller than that of the vertical directivity of the image block.

[0068] For example, the processor 120 may transpose the image block of which the vertical directivity is dominant to the image block of which the horizontal directivity is dominant, and calculate the gradient vector from the image block of which the horizontal directivity is dominant. In this case, the number of index vectors may be reduced, and a calculation speed may thus be improved.

[0069] For example, in the case in which the image block having the horizontal directivity is divided into a first groups for each of image characteristics, the image block having the vertical directivity may also be divided into a second groups for each of image characteristics. Therefore, a total of 2 × a groups may be formed for each of the image characteristics, and a total of 2 × a index vectors may be created.

[0070] Therefore, in the case in which the processor 120 transposes the image block of which the vertical directivity is dominant, the transposed image block may have the horizontal directivity, and may be included in one of the first groups. That is, the processor 120 may process an image block belonging to one of the second groups in one of the first groups by transposing the image block of which the vertical directivity is dominant, and may process the image block of which the horizontal directivity is dominant in one of the first groups without transposing the image block of which the horizontal directivity is dominant. Therefore, the number of index vectors may be reduced by half depending on a transpose operation, and a calculation speed may be improved.

[0071] The processor 120 may obtain a final image block in which the target pixel is image-processed by applying the filter to the transposed image block and again transposing the image block. In the case of an image block that is not transposed, an operation of applying the filter to the image block and then transposing again the image block may be omitted.

[0072] Meanwhile, although a case in which the processor 120 transposes the image block of which the vertical directivity is dominant is described hereinabove, this is only an example, and the processor 120 may also transpose the image block of which the horizontal directivity is dominant.

[0073] Meanwhile, the processor 120 may reduce a size of the gradient vector using an eigen vector stored in the storage 110, and calculate the correlations of the image block to each of the plurality of index vectors based on the gradient vector of which the size is reduced. Here, the eigen vector may be created by applying a principal component analysis from the plurality of sample gradient vectors.

[0074] When the eigen vector is not used in a state in which a index vectors exist, an index matrix may have a form of a × c. In this regard, when a gradient vector of c × 1 is reduced to a gradient vector of c' × 1 using the eigen vector, an index matrix may have a form of a × c'. In detail, feature dimensions of a plurality of index vectors included in the index matrix of a × c may be reduced using the same eigen vector, and the index matrix including the plurality of index vectors of which the feature dimensions are reduced may have the form of a × c'. Here, the eigen vector may have a form of c' × c, and c' may be smaller than c.

[0075] A calculation speed may be improved in the case of using the index matrix of a × c' as compared with the case of using the index matrix of a × c.

[0076] Meanwhile, the principal component analysis is a statistical method of extracting principal components concisely expressing variance type patterns of many variables as a linear combination of original variables. That is, in the case in which p variables exist, information obtained from the p variables may be reduced to k variables significantly smaller than p. In the above example, c feature dimensions may be considered as being reduced to c' feature dimensions. However, the number of reduced feature dimensions is not limited, but may also be changed.

[0077] Hereinafter, a case of reducing the index matrix and the gradient vectors using the eigen vector is described. However, the present disclosure is not limited thereto, and a configuration that does not use the eigen vector corresponds to an example embodiment of the present disclosure.

[0078] Meanwhile, the processor 120 may calculate a first correlation of the image block to each of a plurality of index vector groups based on a first index matrix stored in the storage 110 and the gradient vector, obtain one of the plurality of index vector groups based on the first correlation, and obtain a second index matrix corresponding to the obtained index vector group from among a plurality of second index matrices stored in the storage 110.

[0079] Here, the plurality of index vector groups may be obtained by dividing the plurality of index vectors into a predetermined number of groups. For example, the plurality of index vector groups may be divided into a total of four groups depending on characteristics, and each of the four groups may include b index vectors. That is, the b index vectors in the same group may be similar to one another.

[0080] The first index matrix may include index vectors representing each of the plurality of index vector groups. In the example described above, in each of the four groups, one of the b index vectors may be set to a representative, and the first index matrix may be formed using four index vectors representing the respective groups. Here, the first index matrix may have a form 4 × c'.

[0081] Each of the plurality of second index matrices may include a plurality of index vectors corresponding to each of the plurality of index vector groups. For example, each of the plurality of index vectors may have a form of b × c'.

[0082] In the example described above, the processor 120 may determine to which of the plurality of index vector groups the image block belongs based on the first correlation, and obtain a second index matrix corresponding to the corresponding group from among the plurality of second index matrices.

[0083] The processor 120 may calculate a second correlation of the image block to each of the plurality of index vectors included in the obtained index vector group based on the obtained second index matrix and the gradient vector, and may obtain the final image block by applying at least one of the plurality of filters to the image block based on the second correlation. A calculation speed may be improved through the method as described above.

[0084] However, this is only an example, and the number of index vector groups may be changed. In addition, the numbers of index vectors included in the plurality of index vector groups may be different from each other.

[0085] Meanwhile, according to the example embodiment described above, the correlations to only some of the total of a index vectors may be calculated. Therefore, calculation of the correlations to the other index vectors is omitted, and in the case in which grouping is inappropriate, an index vector having the highest correlation may not be detected. Hereinafter, a method of complementing this is described.

[0086] The processor 120 may obtain one of the plurality of index vectors included in the obtained index vector group based the second correlation, obtain at least one additional index vector included in the others of the plurality of index vector groups and corresponding to the obtained index vector based on similar index vector information stored in the storage 110, calculate a third correlation of the image block based on the obtained index vector, the obtained additional index vector, and the gradient vector, and obtain the final image block by applying at least one of the plurality of filters to the image block based on the third correlation.

[0087] That is, the storage 110 may further store the similar index vector information, which is information on additional index vectors included in different index vector groups for each index vector and having similar characteristics.

[0088] When one index vector is obtained based on the second correlation, the processor 120 may calculate a correlation of the image block to the additional index vectors having characteristics similar to those of the obtained index vector based on information stored in the storage 110. The processor 120 may obtain at least one filter based on the correlation to the image block to the obtained index vector and the correlation to the image block to the additional index vectors.

[0089] In this case, additional multiplication is performed in a process of calculating the correlation of the image block to the additional index vectors, such that a speed may be decreased as compared with the previous example embodiment, but accuracy may be improved as compared with the previous example embodiment. In addition, in the case in which the number of additional index vectors is not many, a decrease in the speed may be insignificant.

[0090] The processor 120 may obtain at least two of the plurality of filters based on a plurality of calculated correlations, calculate a final filter based on the at least two filters and correlations corresponding to each of the at least two filters, and obtain the final image block by applying the calculated final filter to the image block.

[0091] For example, the processor 120 may obtain the first filter and the second filter, and calculate the final filter by weighting and summing the first filter and the second filter based on the first correlation and the second correlation corresponding to each of the first filter and the second filter.

[0092] However, the present disclosure is not limited thereto, and the processor 120 may also calculate the final filter from the first filter and the second filter without considering the correlations.

[0093] Meanwhile, the plurality of first sample image blocks may be images in which resolutions of the corresponding second sample image blocks are reduced, respectively, and the processor 120 may obtain the final image block in which a resolution of the target pixel is enlarged by applying at least one of the plurality of filters to the image block.

[0094] In this case, the plurality of filters may be filters learned and obtained through the artificial intelligence algorithm to derive the corresponding second sample image blocks in which the resolutions are enlarged from each of the plurality of first sample image blocks.

[0095] The processor 120 may obtain an additional image block in which the resolution of the target pixel is enlarged by applying a non-learning-based resolution enlarging technology to the image block, and update the final image block based on the largest correlation of the plurality of calculated correlations and the additional image block.

[0096] For example, the processor 120 may select the largest correlation of the plurality of calculated correlations, and determine a change level of the final image block based on the selected correlation. In detail, the processor 120 may minimize and/or reduce a change of the final image block by reducing an influence of the additional image block as the selected correlation becomes large, and enlarge the change of the final image block by enlarging the influence of the additional image block as the selected correlation becomes small.

[0097] FIG. 1B is a block diagram illustrating example components of the electronic apparatus 100. As illustrated in FIG. 1B, the electronic apparatus 100 includes the storage 110, the processor (e.g., including processing circuitry) 120, a communicator (e.g., including communication circuitry) 130, a display 140, a user interface 150, an audio processor (e.g., including audio processing circuitry) 160, and a video processor (e.g., including video processing circuitry) 170. A detailed description for components overlapping those illustrated in FIG. 1A among components illustrated in FIG. 1B may not be repeated here.

[0098] The processor 120 may include various processing circuitry and generally controls an operation of the electronic apparatus 100 using various programs stored in the storage 110.

[0099] For example, the processor 120 may include, without limitation, a random access memory (RAM) 121, a read only memory (ROM) 122, a main central processing unit (CPU) 123, a graphic processor 124, first to n-th interfaces 125-1 to 125-n, and a bus 126.

[0100] The RAM 121, the ROM 122, the main CPU 123, the graphic processor 124, the first to n-th interfaces 125-1 to 125-n, and the like, may be connected to one another through the bus 126.

[0101] The first to n-th interfaces 125-1 to 125-n are connected to the various components described above. One of the interfaces may be a network interface connected to an external server through a network.

[0102] The main CPU 123 accesses the storage 110 to perform booting using an operating system (O/S) stored in the storage 110. In addition, the main CPU 123 performs various operations using various programs, or the like, stored in the storage 110.

[0103] An instruction set for booting a system, or the like, may be stored in the ROM 122. When a turn-on command is input to supply power to the main CPU 123, the main CPU 123 copies the operating system (O/S) stored in the storage 110 to the RAM 121 depending on an instruction stored in the ROM 122, and execute the O/S to boot the system. When the booting is completed, the main CPU 123 copies various application programs stored in the storage 110 to the RAM 121, and executes the application programs copied to the RAM 121 to perform various operations.

[0104] The graphic processor 124 renders a screen including various objects such as an icon, an image, a text, and the like, using a calculator (not illustrated) and a renderer (not illustrated). The calculator (not illustrated) calculates attribute values such as coordinate values at which the respective objects will be displayed, forms, sizes, colors, and the like, of the respective objects depending on a layout of the screen based on a received control command. The renderer (not illustrated) renders screens of various layouts including objects based on the attribute values calculated in the calculator (not illustrated). The screen rendered by the renderer (not illustrated) is displayed on a display region of the display 140.

[0105] Meanwhile, the operation of the processor 120 described above may be performed by a program stored in the storage 110.

[0106] The storage 110 stores various data such as an operating system (O/S) software module for driving the electronic apparatus 100, an image block analyzing module, a filter module, and the like.

[0107] The communicator 130 may include various communication circuitry and is a component performing communication with various types of external servers in various types of communication manners. The communicator 130 may include various communication circuitry included in various communication chips, such as, for example, and without limitation, a wireless fidelity (WiFi) chip 131, a Bluetooth chip 132, a wireless communication chip 133, a near field communication (NFC) chip 134, or the like. The processor 120 performs communication with various external servers using the communicator 130.

[0108] The WiFi chip 131 and the Bluetooth chip 132 perform communication in a WiFi manner and a Bluetooth manner, respectively. In the case of using the WiFi chip 131 or the Bluetooth chip 132, various kinds of connection information such as a service set identifier (SSID), a session key, and the like, are first transmitted and received, communication is connected using the connection information, and various kinds of information may then be transmitted and received. The wireless communication chip 133 means a chip performing communication depending on various communication protocols such as Institute of Electrical and Electronics Engineers (IEEE), Zigbee, 3rd generation (3G), 3rd generation partnership project (3GPP), long term evolution (LTE), and the like. The NFC chip 134 means a chip operated in the NFC manner using a band of 13.56MHz among various radio frequency identification (RFID) frequency bands such as 135kHz, 13.56MHz, 433MHz, 860 to 960MHz, 2.45GHz, and the like.

[0109] The processor 120 may receive the index matrix, the plurality of filters, and the like, from the external server through the communicator 130. Alternatively, the processor 120 may receive the image blocks, and the like, in real time from the external server through the communicator 130.

[0110] The display 140 may be implemented by various types of displays such as, for example, and without limitation, a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display panel (PDP), or the like. A driving circuit, a backlight unit, and the like, that may be implemented in a form such as a-si, low temperature poly silicon (LTPS), a thin film transistor (TFT), an organic TFT (OTFT), or the like, may be included in the display 140. Meanwhile, the display 140 may be implemented by a touch screen by combining with a touch sensor.

[0111] The processor 120 may control the display 140 to display the image block and the final image block.

[0112] The user interface 150 receives various user interactions. Here, the user interface 150 may be implemented in various forms depending in an implementation of the electronic apparatus 100. For example, the user interface 150 may include various interface circuitry, such as, for example, and without limitation, a button included in the electronic apparatus 100, a microphone receiving a user's voice, a camera sensing a user's motion, or the like. In the case in which the electronic apparatus 100 is implemented by a touch-based electronic apparatus, the user interface 150 may also be implemented in a form of a touch screen forming a layer structure together with a touch pad. In this case, the user interface 150 may be used as the display 140 described above.

[0113] The audio processor 160 is a component performing processing for audio data. In the audio processor 160 may include various audio processing circuitry and may perform various kinds of processing such as, for example, and without limitation, decoding, amplifying, noise filtering, or the like, for the audio data may be performed.

[0114] The video processor 170 is a component performing processing for video data. In the video processor 170 may include various video processing circuitry and may perform various kinds of image processing such as, for example, and without limitation, decoding, scaling, noise filtering, frame rate converting, resolution converting, or the like, for the video data may be performed.

[0115] Meanwhile, a model including the index matrix, the plurality of filters, and the like, provided by the external server as described above is a decision model learned based on the artificial intelligence algorithm, and may be, for example, a model based on a neutral network. The learned decision model may be designed to simulate a human brain structure on a computer, and may include a plurality of network nodes simulating neurons of a human neutral network and having weights. The plurality of network nodes may form a connection relationship thereamong to simulate synaptic activity of the neurons transmitting and receiving signals through synapses. In addition, the learned decision model may include, for example, a neutral network model or a deep learning model developed from the neutral network model. In the deep learning model, the plural of network nodes may be positioned at different depths (or layers), and may transmit and receive data thereamong depending on a convolution connection relationship. An example of the learned decision model may include, for example, and without limitation, a deep neural network (DNN), a recurrent neural network (RNN), a bidirectional recurrent deep neural network (BRDNN), or the like, but is not limited thereto.

[0116] In addition, the electronic apparatus 100 may use a personal secretary program, which is an artificial intelligence dedicated program (or an artificial intelligence agent) to receive the final image block obtained by applying the filter to the image block as described above. In this case, the personal secretary program, which is a dedicated program for providing an artificial intelligence (AI) based service, may be executed by an existing general-purpose processor (for example, a central processing unit (CPU)) or a separate AI dedicated processor (for example, a graphic processing unit (GPU)).

[0117] In the case in which a predetermined user input (for example, image photographing depending on a manipulation of a photographing button, or the like) is input or the image block is input from an external apparatus, the artificial intelligence agent may be operated (or executed).

[0118] According to another example embodiment of the present disclosure, the electronic apparatus 100 may transmit the input image block to the external server. The external server may obtain the final image block by directly applying the filter to the image block, and transmit the obtained final image block to the electronic apparatus 100.

[0119] The processor 120 may improve quality of image processing by performing learning-based image processing in real time through the method as described above.

[0120] Hereinafter, example operations of the processor 120 are described in greater detail with reference to the drawings.

[0121] FIG. 2 is a diagram illustrating example operations of a processor 120 according to an example embodiment of the present disclosure.

[0122] When an image block is input, the processor 120 may first perform gradient extraction 210 of the image block. For example, the processor 120 may decide directivity of the image block and create a gradient vector. In addition, the processor 120 may also transpose the image block based on a directivity decision result of the image block.

[0123] The processor 120 may perform feature dimension reduction 220 of the gradient vector using an eigen vector 260.

[0124] The processor 120 may perform filter search 230 on a filter to be applied to the gradient vector of which a feature dimension is reduced, using an index matrix 270.

[0125] The processor 120 may obtain at least one of a plurality of filters included in a filter database DB 280 based on a search result, and apply at least one filter to the image block (filter application 240).

[0126] The plurality of filters included in the filter database 280 may be learning-based filters. For example, the plurality of filters may be obtained by learning a relationship between a plurality of first sample image blocks and a plurality of second sample image blocks corresponding to the plurality of first sample image blocks through an artificial intelligence algorithm. That is, the operation described above may be considered as applying the learning-based filter to the image block.

[0127] Meanwhile, the processor 120 may apply a non-learning-based filter to the image block (applying 250 of non-learning-based filter), separately from the operation described above. For example, the processor 120 may perform the applying of the learning-based filter and the applying of the non-learning-based filter to the same image block in parallel.

[0128] In addition, the processor 120 may weight and sum a first result depending on the applying of the learning-based filter and a second result depending on the applying of the non-learning-based filter.

[0129] Meanwhile, the eigen vector 260, the index matrix 270, and the filter database 280 may be created using the plurality of first sample image blocks and the plurality of second sample image blocks corresponding to the plurality of first sample image blocks.

[0130] In FIG. 2, the transposition of the image block depending on a directivity decision result, the feature dimension reduction of the gradient vector, and the applying of the non-learning-based filter are optional operations, and may be omitted.

[0131] FIGS. 3A, 3B, 3C, 3D and 3E are diagrams illustrating an example method of deciding directivity of an image block and creating a gradient vector according to an example embodiment of the present disclosure.

[0132] As illustrated in FIG. 3, the processor 120 may decide directivity of the image block using masks such as Sx and Sy. For example, the processor 120 may decide the directivity of the image block by applying an image block of 5 × 5 and the masks to the following Equation 1:



[0133] Here, GV indicates vertical directivity of the image block, GH indicates horizontal directivity of the image block, n and m indicate indices for identifying a row and a column, respectively, and i and j indicate reference points of the image block in an image frame.

[0134] The processor 120 may obtain the directivity of the image block by comparing a magnitude of the vertical directivity and a magnitude of the horizontal directivity with each other.

[0135] The processor 120 may determine whether or not to transpose the image block based on directivity used in the case of creating an eigen vector, an index matrix, and a plurality of filters. For example, in the case in which only the horizontal directivity is used and the vertical directivity is not used at the time of creating the eigen vector, the index matrix, and the plurality of filters, the processor 120 does not transpose the image block when the image block has the horizontal directivity, and may transpose the image block when the image block has the vertical directivity. In the case in which only the vertical directivity is used and the horizontal directivity is not used at the time of creating the eigen vector, the index matrix, and the plurality of filters, the processor 120 does not transpose the image block when the image block has the vertical directivity, and may transpose the image block when the image block has the horizontal directivity.

[0136] In FIG. 3B, a base block indicates directivity used in the case of creating the eigen vector, the index matrix, and the plurality of filters.

[0137] In the case in which the base block has the vertical directivity as in an upper end of FIG. 3B, the processor 120 may transpose only a right image block of left two image blocks. In the case in which the base block has the horizontal directivity as in a lower end of FIG. 3B, the processor 120 may transpose only a right image block of left two image blocks.

[0138] Since only one of the vertical directivity and the horizontal directivity is used, amounts of data of the eigen vector, the index matrix, and the plurality of filters may be reduced. In addition, additional calculation depending on the directivity decision and the transposition of the image block may be generated, but a calculation amount may be reduced in the subsequent operations due to the reduction in the amounts of data of the eigen vector, the index matrix, and the plurality of filters. For example, the entire calculation amount may be reduced depending on a directivity decision operation.

[0139] Meanwhile, the masks such as Sx and Sy illustrated in FIG. 3A are only an example, and the processor 120 may decide the directivity of the image block by another method. In addition, although only pixels of 3 × 3 in the image block of 5 × 5 are illustrated in FIG. 3B, this is to illustrate the directivity. The processor 120 may decide the directivity of the image block by applying the image block of 5 × 5 and the masks as illustrated in FIG. 3A.

[0140] However, the present disclosure is not limited thereto, and the processor 120 may also decide the directivity of the image block using only some pixels of the image block to improve a calculation speed. For example, the processor 120 may decide the directivity of the image block by applying a mask for deciding directivity of 3 × 3 to pixels of 3 × 3 except for pixels positioned in the vicinity of edges in the image block of 5 × 5.

[0141] Hereinafter, a case in which an image block of 3 × 3 is input is described for convenience of explanation. However, the present disclosure is not limited thereto, and the processor 120 may be operated in the same manner with respect to image blocks having other sizes. In addition, the storage 110 may store masks corresponding to various image sizes, a gradient calculating operator to be described below, an index matrix, a plurality of vectors, and the like.

[0142] The processor 120 may calculate a horizontal gradient and a vertical gradient for an image block of 3 × 3 using a Sobel operator, as illustrated in FIG. 3C. The processor 120 may obtain a horizontal gradient of 3 × 3 and a vertical gradient of 3 × 3 by the Sobel operator and multiplication of an image block of 3 × 3, as illustrated in FIG. 3D.

[0143] The processor 120 may calculate a gradient vector of c × 1 from the horizontal gradient of 3 × 3 and the vertical gradient of 3 × 3, as illustrated in FIG. 3E.

[0144] Although a case in which the gradient vector is calculated after the transposition of the image block is performed is described hereinabove, the present disclosure is not limited thereto. For example, the processor 120 may decide only the directivity of the image block, and calculate the horizontal gradient and the vertical gradient of the image block. In addition, the processor 120 may change a calculation sequence of the gradient vector by reflecting the transposition from the horizontal gradient and the vertical gradient, when the image block needs to be transposed.

[0145] FIGS. 4A and 4B are diagrams illustrating a feature dimension reduction of a gradient vector according to an example embodiment of the present disclosure.

[0146] The processor 120 may reduce a feature dimension of the gradient vector of c × 1 using an eigen vector of c' × c, as illustrated in FIG. 4A. For example, the processor 120 may obtain a gradient vector of c' × 1 of which a feature dimension is reduced through multiplication between the eigen vector of c' × c and the gradient vector of c × 1.

[0147] FIG. 4B illustrates an example of a gradient vector Gradient vector' of which a feature dimension is reduced.

[0148] The eigen vector may be created through a principal component analysis method by the external server, and the electronic apparatus 100 may receive the eigen vector from the external server, and store the eigen vector in the storage 110. For example, the external server may create a gradient vector of each of 10,000 first sample image blocks. A method of creating the gradient vector is the same as the method described above. Here, the external server may decide directivity of each of the first sample image blocks, transpose the first sample image blocks based on the decided directivity, and calculate gradient vectors for the transposed first sample image blocks. Then, the external server may calculate an eigen vector by applying the principal component analysis method to each of a plurality of calculated sample gradient vectors.

[0149] However, the present disclosure is not limited thereto, and the processor 120 may also directly create the eigen vector through the principal component analysis method. In this case, the storage 110 may store a plurality of first sample image blocks.

[0150] Hereinafter, a case of using a gradient vector of which a feature dimension is reduced is described for convenience of explanation. However, the reduction of the feature dimension as described above is an optional operation, and the following operations may thus be performed without reducing the feature dimension of the gradient vector.

[0151] FIGS. 5A and 5B are diagrams illustrating an example search of a filter using an index matrix according to an example embodiment of the present disclosure.

[0152] The storage 110 may store an index matrix of a × c' as illustrated in FIG. 5A. The index matrix may include a index vectors of 1 × c'. Here, the index vectors represent characteristics of an image block, and may also be called classes or groups. FIG. 5A illustrates the index matrix including the index vectors indicating characteristics for each of a classes or groups into which the characteristics of the image block are divided.

[0153] The processor 120 may perform multiplication between the index matrix of a × c' and the gradient vector of c' × 1 of which the feature dimension is reduced, and calculate a correlation vector of a × 1 as illustrated in FIG. 5B. Each row of the correlation vector indicates a correlation of an image block to each class or group.

[0154] The higher the number in the correlation vector, the higher the correlation. For example, in the case in which 0.9 is the largest number in FIG. 5B, the processor 120 may decide that the image block has characteristics of a class or a group corresponding to 0.9.

[0155] The index matrix may be created by the external server, and the electronic apparatus 100 may receive the index matrix from the external server and store the index matrix in the storage 110. The external server may calculate a index vectors that may represent a plurality of sample gradient vectors calculated from a plurality of first sample image blocks using a K-SVD or K-Means algorithm, which is one of unsupervised learning methods. The external server may create the index matrix including the a index vectors.

[0156] However, the present disclosure is not limited thereto, and the processor 120 may also calculate a index vectors that may represent a plurality of sample gradient vectors calculated from a plurality of first sample image blocks.

[0157] In addition, although a case in which the characteristics of the image block are divided into the a classes or groups is described hereinabove, the characteristics of the image block are not limited thereto, but may also be divided into another number of classes or groups. However, hereinafter, the case in which the characteristics of the image block are divided into the a classes or groups is described for convenience of explanation. In addition, the index vectors, the classes, and the groups are used together hereinabove, but a case in which the classes are used as a concept indicating the characteristics of the image block and the index vectors indicate each class is described hereinafter.

[0158] Meanwhile, the numbers of classes or groups may be changed depending on a kind of filters. For example, in the case of the resolution enlarging filter, the characteristics of the image block may be divided into the a classes or groups, but in the case of the sharpen filter, the characteristics of the image block may be divided into classes or filters of which the number is different from a.

[0159] FIGS. 6A, 6B and 6C are diagrams illustrating an example method of reducing a search calculation amount of a filter according to an example embodiment of the present disclosure.

[0160] FIG. 6A is a diagram illustrating that a plurality of classes are grouped into four groups, and classes 620 representing each group may be designated in each group 610, 611, 612, and 613. FIG. 6B illustrates a first index matrix Index Matrix 1 including a plurality of index vectors corresponding to the classes 620 representing each group. FIG. 6C illustrates a second index matrix Index Matrix 2 including a plurality of index vectors corresponding to classes included in one of the four groups. That is, the number of second index matrices is the same as that of groups.

[0161] The first index matrix and the second index matrix may be created by the external server, and the electronic apparatus 100 may receive the first index matrix and the second index matrix from the external server and store the first index matrix and the second index matrix in the storage 110. The external server may perform grouping on a index vectors by a k-means clustering method, or the like, and determine index vectors representing each group. However, the present disclosure is not limited thereto, and the external server may also calculate representative index vectors representing each group. In this case, the representative index vectors may not coincide with all the index vectors in the corresponding group.

[0162] However, the present disclosure is not limited thereto, and the processor 120 may also calculate the first index matrix and the second index matrix by the method described above and store the first index matrix and the second index matrix in the storage 110.

[0163] The processor 120 may perform multiplication between a first index matrix of 4 × c' and a gradient vector of c' × 1 of which a feature dimension is reduced, and calculate correlations to each group. The processor 120 may obtain one group based on the largest correlation of the correlations to each group. The processor 120 may perform multiplication between a second index matrix of b × c' corresponding to the obtained group and the gradient vector of c' × 1 of which the feature dimension is reduced, and calculate correlations to each of classes included in the obtained group.

[0164] In this case, calculation of correlations to classes except for three representative classes among b × 3 classes included in the other groups except for the obtained group is not performed, and accuracy may be reduced as compared with FIGS. 5A and 5B, but a calculation speed may be improved.

[0165] In the case of reducing the number of groups, the accuracy may be further improved. The calculation speed may be further improved by increasing the number of groups.

[0166] FIGS. 7A and 7B are diagrams illustrating an example method of reducing a search calculation amount of a filter according to another example embodiment of the present disclosure. For example, the method of FIGS. 7A and 7B is a method of selecting a class having a higher correlation through additional calculation after the method of FIGS. 6A, 6B and 6C is completely executed.

[0167] The processor 120 may obtain a class A 710 of a third group as a class of which a correlation to an image block is highest, as a calculation result of the correlations to the second index matrix, as illustrated in FIG. 7A.

[0168] The storage 110 may store a third index matrix Index Matrix 3 for the class A 710, as illustrated in FIG. 7B. The third index matrix may include a plurality of index vectors corresponding to classes A' 720-1, 720-2, and 720-3 included in groups different from a group of the class A 710 and having characteristics similar to those of the class A 710. In addition, the storage 110 may store third index matrices for each of the other classes that are not the class A 710. For example, the number of third index matrices may be the same as that of classes. In addition, sizes of a plurality of third index matrices may be different from one another.

[0169] The plurality of third index matrices may be created by the external server or be created by the processor 120.

[0170] The processor 120 may perform multiplication between a third index matrix of 3 × c' and a gradient vector of c' × 1 of which a feature dimension is reduced, and calculate correlations to the classes A' 720-1, 720-2, and 720-3 having the characteristics similar to those of the class A 710.

[0171] A process of calculating correlations to the third index matrix may be added in the method of FIGS. 7A and 7B as compared with the method of FIGS. 6A, 6B and 6C, but accuracy may be improved.

[0172] FIGS. 8A and 8B are diagrams illustrating an example method of applying a filter to an image block according to an example embodiment of the present disclosure. In FIG. 8A, an image block of 5 × 5 is illustrated for convenience of explanation.

[0173] The processor 120 may apply at least one of a plurality of filters to the image block based on the correlations calculated by the methods as illustrated in FIGS. 5A, 5B, 6A, 6B, 6C, 7A and 7B. For example, when the correlations to all the classes are calculated as illustrated in FIG. 5B, the processor 120 may obtain a first filter corresponding to a class of 0.9, a second filter corresponding to a class of 0.2, and a third filter corresponding to a class of 0.1 in a sequence of high correlations. Each of the plurality of filters may correspond to each of the plurality of classes. For example, in the case in which a classes are created depending on characteristics of the image block, one filter corresponding to each of the a classes is created, and a total of a filters may be created. A detailed description for a method of creating the filters is described below.

[0174] The processor 120 may convert the plurality of filters into one filter through the following Equation 2:



[0175] Here, H(1), H(2), and H(3) indicate the first filter, the second filter, and the third filter, respectively, and C(1), C(2), and C(3) indicate correlations of the image block to the first filter, the second filter, and the third filter, respectively.

[0176] However, the present disclosure is not limited thereto, and the processor 120 may also convert the plurality of filters into one filter without considering the correlations of each filter. In this case, the processor 120 may convert the plurality of filters into one filter by replacing C(1), C(2), and C(3) with 1 in Equation 2.

[0177] The processor 120 may obtain a final image block 820 for a target pixel 810 by applying the filter to the image block of 5 × 5, as illustrated in FIG. 8A. The right of FIG. 8A illustrates a final image block in which a total of six target pixels are image-processed, and is a view in which a resolution enlarging filter is applied. That is, one target pixel may be enlarged to a total of nine pixels.

[0178] The processor 120 may vectorize the image block and apply the filter to the image block. For example, the processor 120 may vectorize the image block of 5 × 5 and apply the filter to the image block of 5 × 5. That is, the processor 120 may obtain a final image block of 3 × 3 as illustrated at the right of FIG. 8A by performing multiplication between the filter and the vector. A method of vectorizing the image block and obtaining the final image block from the vector is the same as, or similar to, that described in FIG. 3E, and an overlapping description is thus omitted.

[0179] Although a case in which the resolution enlarging filter is used is described hereinabove, the present disclosure is not limited thereto. For example, the sharpen filter may be used. In this case, a resolution is maintained as it is, and a target pixel may be filtered to be sharpened based on a plurality of surrounding pixels. The sharpen filter may also be created through the artificial intelligence algorithm, and a sample image used in a learning process may be different from that in the resolution enlarging filter. A detailed description for this is provided below.

[0180] Meanwhile, the processor 120 may store information on whether or not the image block is transposed depending on directivity of the initial image block in the storage 110. When the final image block is obtained from the transposed image block, the processor 120 may again transpose the final image block based on the information stored in the storage 110 as illustrated in FIG. 8B.

[0181] Meanwhile, the processor 120 may obtain an additional image block by applying a non-learning-based filter to the image block, and update the final image block based on the largest correlation of the plurality of calculated correlations and the additional image block.

[0182] In detail, the processor 120 may update the final image block as represented by the following Equation 3:



[0183] Here, Y1' indicates the updated final image block, Y1 indicates the final image block, Y2 indicates an additional image block, w indicates a weight, c indicates the largest correlation of the plurality of calculated correlations, and k indicates a constant.

[0184] The non-learning-based filter may show better performance than that of the learning-based filter depending on a kind of filter and a kind of image characteristics. For example, a learning-based resolution enlarging filter shows excellent performance with respect to edge components of which image features are clear, but shows a noise component with respect to a flat region of which an image feature is unclear or shows low performance on a detail representation surface. Therefore, in the case in which the final image block by the learning-based resolution enlarging filter is updated with the additional image block by a non-learning-based resolution enlarging filter as represented by the following Equation 3, excellent filtering performance may be provided with respect to the flat region of which the image feature is unclear.

[0185] In addition, since a correlation between the image block and the learning-based resolution enlarging filter is considered as a weight in an update process, performance may be further improved. For example, in the case in which the image block is the flat region of which the image feature is unclear, correlations of the image block to the plurality of classes may be low. A sample image block including the flat region of which the image feature is unclear may be excluded from learning in the learning process.

[0186] Meanwhile, the processor 120 may also perform resolution enlargement with respect to a non-learned magnification by connecting the non-learning-based resolution enlarging filter to the learning-based resolution enlarging filter in series.

[0187] For example, the learning-based resolution enlarging filter is operated depending on only a learned resolution enlarging magnification, and may not be operated with respect to a non-learned resolution enlarging magnification. However, the processor 120 may enlarge a resolution using the learning-based resolution enlarging filter, and then perform resampling using the non-learning-based resolution enlarging filter to obtain a result depending on a desired resolution enlarging magnification.

[0188] Meanwhile, although a case in which three filters are weighted and summed in Equation 2 is described, the present disclosure is not limited thereto. For example, the processor 120 may use only one filter or use a plurality of filter and apply different weights to the plurality of filters.

[0189] In addition, the processor 120 may provide a final image block using one filter and a plurality of final image blocks using the plurality of filters to which different weights are applied, and may change Equation 2 depending on selection of a user. For example, the processor 120 may provide the final image block using one filter and the plurality of final image blocks using the plurality of filters depending on Equation 2, and in the case in which the user selects the final image block using one filter, the processor 120 may use one filter in the subsequent filter applying process.

[0190] FIGS. 9A and 9B are diagrams illustrating an example learning method of a filter according to an example embodiment of the present disclosure. In FIGS. 9A and 9B, a learning method of a resolution enlarging filter and a case in which learning is performed in the external server are described for convenience of explanation.

[0191] The external server may store a high resolution image, as illustrated in FIG. 9A. The external server may read a plurality of second sample image blocks from the high resolution image, and obtain a plurality of first sample images by reducing a resolution of each of the plurality of second sample image blocks, as illustrated in FIG. 9B. The external server may store a plurality of second sample image blocks having a high resolution and a plurality of first sample image blocks corresponding to the plurality of second sample image blocks and having a low resolution. Here, the high resolution and the low resolution are to indicate relative states, and a low resolution image block may refer, for example, to an image block having a resolution lower than that of a high resolution image block.

[0192] The external server may obtain a plurality of sample gradient vectors from the plurality of first sample images. Here, the external server may perform transposition in consideration of directivity of the plurality of first sample images, but this is an optional operation.

[0193] The external server may obtain an eigen vector from the plurality of sample gradient vectors, and reduce feature dimensions of the plurality of sample gradient vectors. However, the external server may also perform learning without reducing the feature dimensions.

[0194] The external server may divide the plurality of sample gradient vectors of which the feature dimensions are reduced into a predetermined number of groups for each of characteristics of an image block, and obtain index vectors representing each group. Here, the index vectors representing each group may be the same as or may not be the same as one of the plurality of sample gradient vectors corresponding to the corresponding group. The external server may obtain an index matrix including a plurality of index vectors.

[0195] For convenience of explanation, a case in which the external server divides the characteristics of the image block into two groups having vertical directivity and horizontal directivity is described. In this case, the external server may obtain two index vectors representing each group, and obtain an index matrix including the two index vectors.

[0196] In addition, the external server may classify the first sample image blocks into one of two groups. For example, the external server may calculate first sample gradient vectors for the first sample image blocks, calculate correlations of the first sample image blocks to the two groups through multiplication between the index matrix and the first sample gradient vectors, and classify the first sample image blocks into a group having a higher correlation. The external server may perform the process as described above on all of the first sample image blocks. As a result, for example, 354,000 of 1,000,000 first sample image blocks may be classified into a group having horizontal directivity, and 646,000 of the of 1,000,000 first sample image blocks may be classified into a group having vertical directivity.

[0197] The external server may create a first filter by learning a relationship between the 354,000 first sample image blocks having the horizontal directivity and 354,000 second sample image blocks corresponding to the 354,000 first sample image blocks through the artificial intelligence algorithm. In addition, the external server may create a second filter by learning a relationship between the 646,000 first sample image blocks having the vertical directivity and 646,000 second sample image blocks corresponding to the 646,000 first sample image blocks through the artificial intelligence algorithm.

[0198] The index vector may be considered as an index indicating characteristics of one image block, and a filter corresponding to the index vector may be obtained by learning the first sample image blocks and the second sample image blocks corresponding to the first sample image blocks based on the characteristics of the image block corresponding to the corresponding index vector.

[0199] The external server may perform the learning through a method of minimizing and/or reducing an L2 norm error and a method of minimizing and/or reducing an L1 norm error. For example, the external server may calculate an image enlarging filter minimizing and/or reducing the L2 norm error through the following Equation 4:



[0200] Here, K means a class, X indicates an image value of a high resolution sample image block, and Y indicates an image value of a low resolution sample image block.

[0201] However, this is only an example, and various learning methods may be used.

[0202] In addition, although a case of learning the high resolution image block and the low resolution image block is described in FIGS. 9A and 9B, the present disclosure is not limited thereto. For example, the external server may also obtain a sharpen filter or a blur filter by learning a blur image block and a sharp image block. In this case, a resolution of the image block may not be changed. Here, the blur image block means an image block having sharpness relatively lower than that of the sharp image block.

[0203] In addition, the electronic apparatus 100 rather than the external server may directly perform the learning. In this case, the storage 110 may store the first sample image blocks and the second sample image blocks, and the processor 120 may obtain an index matrix and a plurality of filters by performing the learning based on stored information. In addition, when the image block is input, the processor 120 may create a final image block by applying at least one filter to the input image block.

[0204] Meanwhile, it is described above that the transposition of the image block depending on the directivity decision result, the feature dimension reduction of the gradient vector, and the applying of the non-learning-based filter are optional operations. For example, the index matrix and the filters may be changed depending on whether or not the optional operations are performed.

[0205] For example, when the transposition of the image block depending on the directivity decision result is performed, an index matrix of a × c (in the case in which the feature dimension reduction is not performed) may be created. On the other hand, when the transposition of the image block depending on the directivity decision result is not performed, an index matrix of 2 × a × c (in the case in which the feature dimension reduction is not performed) may be created. The reason is that in the case in which the image characteristics are divided into a, when the transposition is not performed, two cases of the horizontal directivity and the vertical directivity are divided, and the image characteristics are thus doubled.

[0206] When the feature dimension reduction of the gradient vectors is performed, an index matrix of a × c' (in the case in which the transposition is performed) may be created. On the other hand, when the feature dimension reduction of the gradient vectors is not performed, an index matrix of a × c (in the case in which the transposition is performed) may be created.

[0207] FIG. 10 is a flow diagram illustrating an example image transmitting operation according to an example embodiment of the present disclosure.

[0208] An external server 200 may, for example, and without limitation, be an apparatus providing an image to the electronic apparatus 100. In addition, the external server 200 may, for example, and without limitation, be a desktop PC, a laptop PC, a tablet, a smartphone, or the like, as well as a server, and may be any apparatus that may perform learning through an artificial intelligence algorithm and perform encoding.

[0209] The external server 200 may obtain a low resolution image from a high resolution image (S1010). For example, the external server 200 may obtain a 4K video from a 8K video. A method of reducing a resolution of the video may be any method.

[0210] In addition, the external server 200 may create filter information by learning the high resolution image and the low resolution image (S1020). For example, the external server 200 may divide the respective frames of the high resolution image into image blocks having a predetermined size, and may also divide the low resolution image by the same method. In this case, the number of image blocks created from the high resolution image may be the same as that of image blocks created from the low resolution image. In addition, each of the image blocks created from the high resolution image may correspond to one of the image blocks created from the low resolution image, and may be different in only a resolution from one of the image blocks created from the low resolution image. Hereinafter, the image blocks created from the high resolution image and the image blocks created from the low resolution image are described as high resolution image blocks and low resolution image blocks, respectively.

[0211] The external server 200 may create a plurality of filters by performing learning for deriving the corresponding high resolution image blocks from the low resolution image blocks. Here, a method of creating the plurality of filters overlaps that described in FIGS. 1A to 9B, and a description thereof is thus not repeated here.

[0212] In addition, the external server 200 may encode and compress the low resolution image (S1030). An encoding method is not particularly limited.

[0213] The external server 200 may transmit the encoded low resolution image and filter information to the electronic apparatus 100 (S1040). Here, the filter information may include an index matrix and the plurality of filters. In addition, according to an example embodiment, the filter information may further include an eigen vector. In addition, the filter information may include a method of dividing the respective frame of the low resolution image into image blocks having a predetermined size.

[0214] The electronic apparatus 100 may decode the encoded low resolution image to reconstruct the low resolution image (S1050). A decoding method is not particularly limited as long as it corresponds to the encoding method of the external server 200.

[0215] The electronic apparatus 100 may reconstruct the high resolution image by applying the filter information to the low resolution image (S1060). For example, the electronic apparatus 100 may divide the low resolution image into a plurality of image blocks based on the method of dividing the respective frames of the low resolution image into the image blocks having the predetermined size, included in the filter information. In addition, the electronic apparatus 100 may obtain high resolution image blocks from the respective image blocks based on the index matrix and the plurality of filters. A method of obtaining the high resolution image blocks overlaps that described in FIGS. 1A to 9B, and a description thereof is thus not repeated here. The electronic apparatus 100 may obtain the high resolution image from a plurality of high resolution image blocks.

[0216] It is difficult to transmit a 8K image by only a current encoding technology, but the 8K image may be transmitted through the method as described above. For example, the external server 200 may encode a 4K image, and transmit the encoded 4K image to the electronic apparatus 100. In addition, the electronic apparatus 100 may decode the received information to reconstruct the 4K image, and may create the 8K image from the 4K image using learning data learned through the artificial intelligence algorithm to derive the 8K image from the 4K image.

[0217] The filter information transmitted from the external server 200 to the electronic apparatus 100 is only a tool for deriving the 8K image from the 4K image, and may be considered as being different from image information. For example, a capacity of the filter information may be much smaller than a capacity when the 8K image is directly transmitted, and in the case of using the filter information as described above, streaming of the 8K image may be possible.

[0218] FIG. 11 is a flowchart illustrating an example method of controlling an electronic apparatus according to an example embodiment of the present disclosure.

[0219] An image block including a target pixel and a plurality of surrounding pixels is classified into one of a plurality of image patterns based on a relationship between pixels within the image block (S1110). In addition, a final image block in which the target pixel is image-processed is obtained by applying at least one filter corresponding to the classified image pattern from among a plurality of filters each corresponding to the plurality of image patterns to the image block (S1120). The plurality of filters may be obtained by learning a relationship between a plurality of first sample image blocks and a plurality of second sample image blocks corresponding to the plurality of first sample image blocks through an artificial intelligence algorithm based on each of the plurality of image patterns.

[0220] The classifying (S1110) may include calculating a gradient vector from the image block, calculating correlations of the image block to each of a plurality of index vectors based on an index matrix including the plurality of index vectors and the gradient vector, and classifying the image block into one of the plurality of image patterns based on the calculated correlations, and the plurality of index vectors may be obtained based on a plurality of sample gradient vectors calculated from the plurality of first sample image blocks and may correspond to the plurality of image patterns, respectively.

[0221] In addition, in the calculating of the gradient vector, the gradient vector may be calculated from the image block when a strength of horizontal directivity of the image block is larger than that of vertical directivity of the image block, and the image block may be transposed and the gradient vector may be calculated from the transposed image block when the strength of the horizontal directivity of the image block is less than that of the vertical directivity of the image block.

[0222] Meanwhile, the method of controlling an electronic apparatus according to an example embodiment of the present disclosure may further include reducing a size of the gradient vector using an eigen vector, wherein in the calculating of the correlations, the correlations of the image block to each of the plurality of index vectors are calculated based on the gradient vector of which the size is reduced, and the eigen vector is created by applying a principal component analysis from the plurality of sample gradient vectors.

[0223] In addition, the calculating of the correlations may include calculating a first correlation of the image block to each of a plurality of index vector groups based on a first index matrix and the gradient vector, obtaining one of the plurality of index vector groups based on the first correlation, obtaining a second index matrix corresponding to the obtained index vector group from among a plurality of second index matrices, and calculating a second correlation of the image block to each of a plurality of index vectors included in the obtained index vector group based on the obtained second index matrix and the gradient vector, and in the obtaining (S1120) of the final image block, the final image block may be obtained by applying at least one of the plurality of filters to the image block based on the second correlation, the plurality of index vector groups may be obtained by dividing the plurality of index vectors into a predetermined number of groups, the first index matrix may include index vectors representing each of the plurality of index vector groups, and each of the plurality of second index matrices may include a plurality of index vectors corresponding to each of the plurality of index vector groups.

[0224] The calculating of the correlations may include obtaining one of the plurality of index vectors included in the obtained index vector group based on the second correlation, obtaining at least one additional index vector included in the others of the plurality of index vector groups and corresponding to the obtained index vector based on similar index vector information, and calculating a third correlation of the image block based on the obtained index vector, the obtained additional index vector, and the gradient vector, and in the obtaining (S1120) of the final image block, the final image block may be obtained by applying at least one of the plurality of filters to the image block based on the third correlation.

[0225] Meanwhile, the obtaining (S1120) of the final image block may include obtaining at least two of the plurality of filters based on a plurality of calculated correlations, calculating a final filter based on the at least two filters and correlations corresponding to each of the at least two filters, and obtaining the final image block by applying the calculated final filter to the image block.

[0226] In addition, the plurality of first sample image blocks may be images in which resolutions of the corresponding second sample image blocks are reduced, respectively, and in the obtaining (S1120) of the final image block, the final image block in which a resolution of the target pixel is enlarged may be obtained by applying at least one of the plurality of filters to the image block.

[0227] The method of controlling an electronic apparatus according to an example embodiment of the present disclosure may further include obtaining an additional image block in which the resolution of the target pixel is enlarged by applying a non-learning-based resolution enlarging technology to the image block and updating the final image block based on the largest correlation of the plurality of calculated correlations and the additional image block.

[0228] Meanwhile, in the calculating of the gradient vector, horizontal gradients and vertical gradients for the target pixel and each of the plurality of surrounding pixels may be calculated, and the gradient vector may be calculated based on the horizontal gradients and the vertical gradients.

[0229] In addition, each of the plurality of filters may be obtained by obtaining a plurality of first sub-sample image blocks corresponding to one of the plurality of index vectors from among the plurality of first sample image blocks, obtaining a plurality of second sub-sample image blocks corresponding to the plurality of first sub-sample image blocks from among the plurality of second sample image blocks, and learning a relationship between the plurality of first sub-sample image blocks and the plurality of second sub-sample image blocks through the artificial intelligence algorithm.

[0230] According to the variouis example embodiments of the present disclosure as described above, the electronic apparatus may perform image processing in real time and be thus used in various applications, and may improve quality of the image processing as compared with non-learning-based image processing by performing learning-based image processing.

[0231] Meanwhile, the processor may apply the filter for each pixel of the image block. The processor may apply the filter for each sub-pixel of each pixel in the image block. The processor may apply the filter to only some of the sub-pixels. The processor may distinguish a chrominance component and a luminance component of each pixel in the image block from each other, and apply the filter to at least one of the chrominance component and the luminance component.

[0232] Meanwhile, according to an example embodiment of the present disclosure, the various example embodiments described above may be implemented by software including instructions stored in a machine-readable storage medium (for example, a computer-readable storage medium). A machine may be an apparatus that invokes the stored instruction from the storage medium and may be operated depending on the invoked instruction, and may include the electronic apparatus according to the disclosed example embodiments. In the case in which a command is executed by the processor, the processor may directly perform a function corresponding to the command or other components may perform the function corresponding to the command under a control of the processor. The command may include codes created or executed by a compiler or an interpreter. The machine-readable storage medium may be provided in a form of a non-transitory storage medium. Here, the term 'non-transitory' may refer, for example to a storage medium that is tangible, and does not distinguish whether data are semi-permanently or temporarily stored on the storage medium.

[0233] In addition, according to an example embodiment of the present disclosure, the methods according to the diverse example embodiments described above may be included and provided in a computer program product. The computer program product may be traded as a product between a seller and a purchaser. The computer program product may be distributed in a form of a storage medium (for example, a compact disc read only memory (CD-ROM)) that may be read by the machine or online through an application store (for example, PlayStore™). In the case of the online distribution, at least portions of the computer program product may be at least temporarily stored in a storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server or be temporarily created.

[0234] In addition, according to an example embodiment of the present disclosure, the various example embodiments described above may be implemented in a computer or a computer-readable recording medium using software, hardware, or any combination of software and hardware. In some cases, example embodiments described in the present disclosure may be implemented by the processor itself. According to a software implementation, example embodiments such as procedures and functions described in the present disclosure may be implemented by separate software modules. Each of the software modules may perform one or more functions and operations described in the present disclosure.

[0235] Meanwhile, computer instructions for performing processing operations of the machines according to the diverse example embodiment of the present disclosure described above may be stored in a non-transitory computer-readable medium. The computer instructions stored in the non-transitory computer-readable medium allow a specific machine to perform the processing operations in the machine according to the diverse example embodiments described above when they are executed by a processor of the specific machine. The non-transitory computer-readable medium may refer, for example, to a medium that semi-permanently stores data therein and is readable by the machine. Examples of the non-transitory computer-readable medium may include a compact disk (CD), a digital versatile disk (DVD), a hard disk, a Blu-ray disk, a universal serial bus (USB), a memory card, a read only memory (ROM), or the like.

[0236] In addition, each of components (for example, modules or programs) according to the various example embodiments described above may include a single entity or a plurality of entities, and some of the corresponding sub-components described above may be omitted or other sub-components may be further included in the diverse example embodiments. Alternatively or additionally, some of the components (for example, the modules or the programs) may be integrated into one entity, and may perform functions performed by the respective corresponding components before being integrated in the same or similar manner. Operations performed by the modules, the programs, or other components according to the diverse example embodiments may be executed in a sequential manner, a parallel manner, an iterative manner, or a heuristic manner, at least some of the operations may be performed in a different order or be omitted, or other operations may be added.

[0237] Although various example embodiments of the present disclosure have been illustrated and described hereinabove, the present disclosure is not limited to the abovementioned specific example embodiments, but may be variously modified by those skilled in the art to which the present disclosure pertains without departing from the true spirit and full scope of the present disclosure as disclosed in the accompanying claims. These modifications should also be understood to fall within the scope and spirit of the present disclosure.


Claims

1. An electronic apparatus comprising:

a storage configured to store a plurality of filters, each of the plurality of filters corresponding to a plurality of image patterns; and

a processor configured to classify an image block including a target pixel and a plurality of surrounding pixels into one of the plurality of image patterns based on a relationship between pixels within the image block and to obtain a final image block in which the target pixel is image-processed by applying at least one filter corresponding to the classified image pattern from among the plurality of filters to the image block,

wherein the plurality of filters are obtained by learning, through an artificial intelligence algorithm, a relationship between a plurality of first sample image blocks and a plurality of second sample image blocks corresponding to the plurality of first sample image blocks based on each of the plurality of image patterns,
wherein each of the plurality of filters is obtained by obtaining a plurality of first sub-sample image blocks corresponding to one of the plurality of image patterns from among the plurality of first sample image blocks, obtaining a plurality of second sub-sample image blocks corresponding to the plurality of first sub-sample image blocks from among the plurality of second sample image blocks, and learning, through the artificial intelligence algorithm, a relationship between the plurality of first sub-sample image blocks and the plurality of second sub-sample image blocks.
 
2. The electronic apparatus as claimed in claim 1, wherein the processor is configured to determine a gradient vector from the image block, to determine correlations of the image block to each of a plurality of index vectors based on an index matrix stored in the storage and including the plurality of index vectors and the gradient vector, and to classify the image block into one of the plurality of image patterns based on the determined correlations, and
the plurality of index vectors are obtained based on a plurality of sample gradient vectors determined from the plurality of first sample image blocks, wherein the plurality of index vectors correspond to the plurality of image patterns.
 
3. The electronic apparatus as claimed in claim 2, wherein the processor is configured to determine the gradient vector from the image block when a strength of horizontal directivity of the image block is greater than a strength of vertical directivity of the image block, and to transpose the image block and to determine the gradient vector from the transposed image block when the strength of the horizontal directivity of the image block is less than the strength of the vertical directivity of the image block.
 
4. The electronic apparatus as claimed in claim 2 or 3, wherein the processor is configured to reduce a size of the gradient vector using an eigen vector stored in the storage and to determine the correlations of the image block to each of the plurality of index vectors based on the gradient vector of which the size is reduced, and
the eigen vector is created by applying a principal component analysis from the plurality of sample gradient vectors.
 
5. The electronic apparatus as claimed in any one of claims 2 to 4, wherein the processor is configured to determine a first correlation of the image block to each of a plurality of index vector groups based on a first index matrix stored in the storage and the gradient vector, to obtain one of the plurality of index vector groups based on the first correlation, to determine a second correlation of the image block to each of a plurality of index vectors included in the obtained index vector group based on a second index matrix corresponding to the obtained index vector group from among a plurality of second index matrices stored in the storage and the gradient vector, and to obtain the final image block by applying at least one of the plurality of filters to the image block based on the second correlation, wherein:

the plurality of index vector groups are obtained by dividing the plurality of index vectors into a predetermined number of groups,

the first index matrix includes index vectors representing each of the plurality of index vector groups, and

each of the plurality of second index matrices includes a plurality of index vectors corresponding to each of the plurality of index vector groups.


 
6. The electronic apparatus as claimed in claim 5, wherein the processor is configured to obtain one of the plurality of index vectors included in the obtained index vector group based on the second correlation, to obtain at least one additional index vector included in the plurality of index vector groups other than the obtained one of the plurality of index vectors and corresponding to the obtained index vector based on similar index vector information stored in the storage, to determine a third correlation of the image block based on the obtained index vector, the obtained additional index vector, and the gradient vector, and to obtain the final image block by applying at least one of the plurality of filters to the image block based on the third correlation.
 
7. The electronic apparatus as claimed in any one of claims 2 to 6, wherein the processor is configured to obtain at least two of the plurality of filters based on a plurality of determined correlations, to determine a final filter based on the at least two filters and correlations corresponding to each of the at least two filters, and to obtain the final image block by applying the determined final filter to the image block.
 
8. The electronic apparatus as claimed in any one of claims 2 to 7, wherein the plurality of first sample image blocks comprise images in which resolutions of the corresponding second sample image blocks are reduced, and
the processor is configured to obtain the final image block in which a resolution of the target pixel is enlarged by applying at least one of the plurality of filters to the image block.
 
9. The electronic apparatus as claimed in claim 8, wherein the processor is configured to obtain an additional image block in which the resolution of the target pixel is enlarged by applying a non-learning-based resolution enlarging technology to the image block, and to update the final image block based on a largest correlation of a plurality of determined correlations and the additional image block.
 
10. The electronic apparatus as claimed in any one of claims 2 to 9, wherein the plurality of first sub-sample image blocks is obtained based on one of the plurality of index vectors from among the plurality of first sample image blocks.
 
11. A method of controlling an electronic apparatus, comprising:

classifying an image block including a target pixel and a plurality of surrounding pixels into one of a plurality of image patterns based on a relationship between pixels within the image block; and

obtaining a final image block in which the target pixel is image-processed by applying at least one filter corresponding to the classified image pattern from among a plurality of filters each corresponding to the plurality of image patterns to the image block,

wherein the plurality of filters are obtained by learning, through an artificial intelligence algorithm, a relationship between a plurality of first sample image blocks and a plurality of second sample image blocks corresponding to the plurality of first sample image blocks based on each of the plurality of image patterns,
wherein each of the plurality of filters is obtained by obtaining a plurality of first sub-sample image blocks corresponding to one of the plurality of image patterns from among the plurality of first sample image blocks, obtaining a plurality of second sub-sample image blocks corresponding to the plurality of first sub-sample image blocks from among the plurality of second sample image blocks, and learning, through the artificial intelligence algorithm, a relationship between the plurality of first sub-sample image blocks and the plurality of second sub-sample image blocks.
 
12. The method as claimed in claim 11, wherein the classifying includes:

determining a gradient vector from the image block;

determining correlations of the image block to each of a plurality of index vectors based on an index matrix including the plurality of index vectors and the gradient vector; and

classifying the image block into one of the plurality of image patterns based on the determined correlations, and

obtaining the plurality of index vectors based on a plurality of sample gradient vectors calculated from the plurality of first sample image blocks, wherein the plurality of index vectors correspond to the plurality of image patterns.


 
13. The method as claimed in claim 12, wherein in the determining of the gradient vector, the gradient vector is calculated from the image block when a strength of horizontal directivity of the image block is greater than a strength of vertical directivity of the image block, and the image block is transposed and the gradient vector is calculated from the transposed image block when the strength of the horizontal directivity of the image block is less than the strength of the vertical directivity of the image block.
 
14. The method as claimed in claim 12 or 13, further comprising reducing a size of the gradient vector using an eigen vector,
wherein in the determining of the correlations, the correlations of the image block to each of the plurality of index vectors are calculated based on the gradient vector of which the size is reduced, and
the eigen vector is created by applying a principal component analysis from the plurality of sample gradient vectors.
 
15. The method as claimed in any one of claims 12 to 14, wherein the determining of the correlations includes:

determining a first correlation of the image block to each of a plurality of index vector groups based on a first index matrix and the gradient vector;

obtaining one of the plurality of index vector groups based on the first correlation;

determining a second correlation of the image block to each of a plurality of index vectors included in the obtained index vector group based on a second index matrix corresponding to the obtained index vector group from among a plurality of second index matrices and the gradient vector, and

wherein in the obtaining of the final image block, the final image block is obtained by applying at least one of the plurality of filters to the image block based on the second correlation, wherein:

the plurality of index vector groups are obtained by dividing the plurality of index vectors into a predetermined number of groups,

the first index matrix includes index vectors representing each of the plurality of index vector groups, and

each of the plurality of second index matrices includes a plurality of index vectors corresponding to each of the plurality of index vector groups.


 




Drawing




















































Search report












Search report




Cited references

REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Patent documents cited in the description