Processing method and processing device for image zooming
A technology of image zooming and processing, applied in image communication, television, electrical components, etc., can solve the problems of difficult implementation of hardware circuits, complex algorithms, long operation time, etc., and achieve good compatibility, simple algorithm, and short operation time Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] Such as figure 1 As shown, a kind of image scaling processing method provided by the present invention comprises steps:
[0059] 101. Receive and decode source image information data to obtain source image bitmap format data; the source image information data is a BMP format image, JPG format image, PNG format image, TGA format image, or PCX format image, etc.;
[0060] 102. According to the set scaling ratio of the first picture, change the number of pixels of the bitmap format data of the source picture according to the position coordinates of the pixels to form the bitmap format data of the intermediate picture;
[0061] 103. According to the set scaling ratio of the second picture, change the number of pixels in the bitmap format data of the intermediate picture according to the average value of the color values of adjacent pixels to form the bitmap format data of the target picture.
Embodiment 2
[0063] On the basis of embodiment 1, in further embodiment 2, the first picture scaling ratio is the picture reduction ratio, and the second picture scaling ratio is the picture enlargement ratio, then the step 102 and the step 103 are specifically include:
[0064] (1). When performing image reduction processing on the source image:
[0065] Set the position coordinates of each pixel in the bitmap format data of the source image. For example, the pixel points in the bitmap format data of the source picture have m rows and n columns in total, and the coordinates of the pixel points located in the i-th row and j-th column are set as (i, j), and the coordinates are set as (i, j) The color value of the pixel point is expressed as f(i, j).
[0066] According to the image reduction ratio value from the source image to the target image, first set a smaller value of the reduction ratio value from the source image to the intermediate image. For example: if the image size of the tar...
Embodiment 3
[0079] On the basis of embodiment 1, in further embodiment 3, the first picture scaling ratio is the picture enlargement ratio, and the second picture scaling ratio is the picture reduction ratio, then the step 102 and the step 103 are specifically include:
[0080] (1). When performing image reduction processing on the source image:
[0081] Set the position coordinates of each pixel in the bitmap format data of the source image. For example, the pixel points in the bitmap format data of the source picture have m rows and n columns in total, and the coordinates of the pixel points located in the i-th row and j-th column are set as (i, j), and the coordinates are set as (i, j) The color value of the pixel point is expressed as f(i, j).
[0082] According to the image reduction ratio value from the source image to the target image, firstly set an appropriate enlargement ratio value from the source image to the intermediate image. For example: if the image size of the target ...
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