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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com