Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and device for partially enlarging an image

A technology of local magnification and image, applied in the field of image processing, can solve the problems of large amount of calculation, blurred outline, and jagged edge details, etc., to achieve the effect of small amount of calculation and improved edge details

Active Publication Date: 2020-03-06
TCL CORPORATION
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of the present invention provides a method and device for partially enlarging an image, aiming at solving the problem of partially enlarging an image provided by the prior art. When using the traditional difference algorithm, the edge details in the enlarging image may have a jagged effect, or Problems with blurred outlines or heavy calculations

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for partially enlarging an image
  • A method and device for partially enlarging an image
  • A method and device for partially enlarging an image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] figure 1 It shows the implementation process of the method for partial image enlargement provided by Embodiment 1 of the present invention, and the details are as follows:

[0055] In step S101, a grayscale image of an image area to be enlarged is acquired.

[0056] In the embodiment of the present invention, after the image area to be enlarged is selected, the grayscale image of the image area to be enlarged is calculated. If the color space of the image area to be enlarged is YUV, the grayscale image of the image area to be enlarged is the Y value of each pixel in the image area to be enlarged; if the color space of the image area to be enlarged is RGB, then The grayscale image of the image area to be enlarged can be calculated according to the following formula:

[0057] Gray=Red*0.299+Green*0.587+Blue*0.114.

[0058] In step S102, edge detection is performed on the grayscale image.

[0059] In the embodiment of the present invention, edge detection may be perfor...

Embodiment 2

[0095] Figure 4 A specific structural block diagram of an apparatus for partially enlarging an image provided by Embodiment 2 of the present invention is shown. For convenience of description, only parts related to the embodiment of the present invention are shown. The device for partially enlarging an image includes: a grayscale image acquisition module 41 , an edge detection module 42 , an area division module 43 and an enlargement processing module 44 .

[0096] Wherein, the grayscale image obtaining module 41 is used to obtain the grayscale image of the image area to be enlarged;

[0097] An edge detection module 42, configured to perform edge detection on the grayscale image;

[0098] The area division module 43 is used to divide the image area to be enlarged into a first image area and a second image area according to the result of edge detection, wherein the first image area is an image area that does not contain edge pixels, and the second image area is an image area...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention is applicable to the field of image processing technology, and provides a method and a device for locally magnifying an image. The method comprises: obtaining the grey scale map of an image area to be magnified; performing edge detection on the grey scale image; according to the result of edge detection, dividing the image area to be magnified into a first image area and a second image area wherein the former does not contain edge pixels and the latter contains edge pixels; and using different interpolation algorithms to magnify the first image area and the second image area respectively. According to the invention, different interpolation algorithms are used to magnify the corresponding image areas based on the continuous distribution of the edge pixels included in the different image areas, and therefore, the magnifying treatment to an image is not limited to one interpolation algorithm only, and the treatment details to the edges of a magnified image can be improved with small computations.

Description

technical field [0001] The invention belongs to the technical field of image processing, and in particular relates to a method and device for partially enlarging an image. Background technique [0002] Generally, an interpolation algorithm is used when zooming in on a part of an image. Common interpolation algorithms include nearest neighbor pixel interpolation algorithm, bilinear interpolation algorithm and cubic convolution interpolation algorithm. Using the nearest neighbor pixel interpolation algorithm, the pixel value of the pixel to be interpolated is the pixel value of the nearest pixel, and the edge details in the enlarged image are blurred; using the bilinear interpolation algorithm, the pixel value of the pixel to be interpolated is respectively in Perform an interpolation in the x and y directions, and the resulting value will have jagged edge details in the enlarged image; while the cubic convolution interpolation algorithm is obtained by neighborhood interpolat...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T3/40
CPCG06T3/4007
Inventor 洪瑜
Owner TCL CORPORATION
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products