Nothing Special   »   [go: up one dir, main page]

CN101572821A - Processing method and processing device for image zooming - Google Patents

Processing method and processing device for image zooming Download PDF

Info

Publication number
CN101572821A
CN101572821A CN 200910303356 CN200910303356A CN101572821A CN 101572821 A CN101572821 A CN 101572821A CN 200910303356 CN200910303356 CN 200910303356 CN 200910303356 A CN200910303356 A CN 200910303356A CN 101572821 A CN101572821 A CN 101572821A
Authority
CN
China
Prior art keywords
picture
pixel
format data
bitmap format
image zooming
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200910303356
Other languages
Chinese (zh)
Other versions
CN101572821B (en
Inventor
易润平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN MESADA TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN MESADA TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN MESADA TECHNOLOGY Co Ltd filed Critical SHENZHEN MESADA TECHNOLOGY Co Ltd
Priority to CN 200910303356 priority Critical patent/CN101572821B/en
Publication of CN101572821A publication Critical patent/CN101572821A/en
Application granted granted Critical
Publication of CN101572821B publication Critical patent/CN101572821B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The invention relates to a processing method and a processing device for image zooming. The method comprises the following steps: bitmap formatted data of a source image is obtained by receiving and decoding information data of the source image; the amount of pixels of the bitmap formatted data of the source image is changed according to the position coordinates of the pixel on the basis of a first set image zoom scale to form bitmap formatted data of an intermediate image; the amount of the pixels of the bitmap formatted data of the intermediate image is changed according to the average of color values of adjacent pixels on the basis of a second set image zoom scale to form bitmap data of a target image. The invention realizes zooming for images in various sizes, meets different requirements on display equipment and easily realizes hardware circuit.

Description

Image zooming processing method and processing unit
[technical field]
The present invention relates to digital image processing field, particularly a kind of image zooming processing method and processing unit.
[background technology]
At present, the object of Digital Image Processing has related to many fields of our social life, and the image zooming processing is particularly important as the basic operation of Digital Image Processing.The image zooming processing is exactly when the intrinsic resolution of the resolution of original input picture and display device does not match, and adopts Graph Scaler to regulate the resolution of original input picture to satisfy the requirement of image zoom equipment.
Image zooming processing method commonly used is a linear interpolation algorithm, and the correlation of several pixels utilizes interpolation formula to estimate the color of this point around its original image pixel of handling as required, thereby original image is realized convergent-divergent.Yet above-mentioned linear interpolation algorithm can only carry out convergent-divergent for the picture of specific dimensions, can not satisfy the requirement of different display devices, and having must limitation.In addition, the algorithm complexity of above-mentioned linear interpolation algorithm, operation time is long, and hardware circuit is difficult to realize.
[summary of the invention]
Purpose of the present invention is exactly to be difficult to technical problems such as realization in order to solve convergent-divergent and algorithm complexity, operation time long, the hardware circuit of can only carrying out for the picture of specific dimensions that exists in the prior art image zooming processing method, the invention provides a kind of image zooming processing method and processing unit.
Concrete technical scheme of the present invention is as follows:
The invention provides a kind of image zooming processing method, this method comprises:
Reception sources pictorial information data are also decoded, and obtain source picture bitmap format data;
According to the first image zooming ratio of setting, change the quantity of source picture bitmap format data pixels point, the bitmap format data of formation intermediate picture according to the position coordinates of pixel;
According to the second image zooming ratio of setting, change the quantity of pixel in the intermediate picture bitmap format data according to the mean value of the color value of neighbor pixel, form Target Photo bitmap format data.
The described first image zooming ratio is the picture reduce in scale, and the described second image zooming ratio is the picture magnification ratio.
According to the picture reduce in scale of setting, change the quantity of source picture bitmap format data pixels point according to the position coordinates of pixel, formation intermediate picture bitmap format data specifically comprise:
The position coordinates of each pixel in the picture bitmap format data of setting source;
According to the picture reduce in scale of setting, to source picture bitmap format data according to extracting one or more pixel every a pixel or every the position coordinates of a plurality of pixels line by line;
According to the picture reduce in scale of setting, to source picture bitmap format data according to extracting one or more pixel every a pixel or every the position coordinates of a plurality of pixels by row;
Form intermediate picture bitmap format data.
According to the picture magnification ratio of setting, change the quantity of pixel in the intermediate picture bitmap format data according to the mean value of the color value of neighbor pixel, form Target Photo bitmap format data, specifically comprise:
According to the picture magnification ratio of setting, calculate the mean value of the represented color value of adjacent a plurality of pixels in the intermediate picture bitmap format data line by line;
According to the picture magnification ratio of setting, by the mean value of the represented color value of adjacent a plurality of pixels in the column count intermediate picture bitmap format data;
Be that the pixel of above-mentioned mean value adds in the intermediate picture bitmap format data between adjacent a plurality of pixels line by line with color value;
Is that the pixel of above-mentioned mean value adds in the intermediate picture bitmap format data between adjacent a plurality of pixels by row with color value;
Form Target Photo bitmap format data.
The described first image zooming ratio is the picture magnification ratio, and the described second image zooming ratio is the picture reduce in scale.
According to the picture magnification ratio of setting, change the quantity of source picture bitmap format data pixels point according to the position coordinates of pixel, formation intermediate picture bitmap format data specifically comprise:
The position coordinates of each pixel in the picture bitmap format data of setting source;
According to the picture magnification ratio of setting, to source picture bitmap format data according to adding one or more repetition pixels every a pixel or every the position coordinates of a plurality of pixels line by line;
According to the picture magnification ratio of setting, to source picture bitmap format data according to adding one or more repetition pixels every a pixel or every the position coordinates of a plurality of pixels by row;
Form intermediate picture bitmap format data.
According to the picture reduce in scale of setting, change the quantity of pixel in the intermediate picture bitmap format data according to the mean value of the color value of neighbor pixel, form Target Photo bitmap format data, specifically comprise:
According to the picture reduce in scale of setting, calculate the mean value of the represented color value of adjacent a plurality of pixels in the intermediate picture bitmap format data line by line;
According to the picture reduce in scale of setting, by the mean value of the represented color value of adjacent a plurality of pixels in the column count intermediate picture bitmap format data;
Be that the pixel of above-mentioned mean value substitutes the adjacent a plurality of pixels in the intermediate picture bitmap format data line by line with color value;
Is that the pixel of above-mentioned mean value substitutes in the intermediate picture bitmap format data between adjacent a plurality of pixels by row with color value;
Form Target Photo bitmap format data.
Described image zooming processing method further comprises: the bitmap format data of receiving target picture are encoded, and obtain Target Photo information data and output.
The present invention also provides a kind of image zooming processing unit, and this device comprises:
Decoding unit is used for the source pictorial information data that receive are decoded, and obtains source picture bitmap format data;
The first convergent-divergent processing unit is used for according to the first image zooming ratio of setting, and changes the quantity of source picture bitmap format data pixels point, the bitmap format data of formation intermediate picture according to the position coordinates of pixel;
The second convergent-divergent processing unit is used for according to the second image zooming ratio of setting, and changes the quantity of pixel in the intermediate picture bitmap format data according to the mean value of the color value of neighbor pixel, forms Target Photo bitmap format data.
The described first convergent-divergent processing unit comprises:
The setting coordinate subelement, the position coordinates of each pixel in the picture bitmap format data of setting source;
First image zooming is used to set the first image zooming ratio than row setup unit;
The first pixel control unit according to the first image zooming ratio of setting and the position coordinates of pixel, reaches by row line by line to source picture bitmap format data pick-up or interpolation pixel.
The described second convergent-divergent processing unit comprises:
Second image zooming is used to set the second image zooming ratio than row setup unit;
The color value computing unit is used to calculate the mean value of the represented color value of adjacent a plurality of pixels;
The second pixel control unit is used for the mean value according to the color value of second image zooming ratio of setting and neighbor pixel, reaches line by line by row and extracts or substitute pixel in the described intermediate picture bitmap format data.
Described image zooming processing unit also comprises:
Coding unit, the bitmap format data that are used for the Target Photo that will receive are encoded, and obtain Target Photo information data and output.
Compared to prior art, the main beneficial effect of image zooming processing method of the present invention and processing unit is:
(1). according to the position coordinates of pixel, source picture bitmap format data are extracted or add pixel than row according to first, the source image zooming of making is the suitable intermediate picture of a size; According to the mean value of the represented color value of neighbor pixel, middle picture is carried out convergent-divergent again, obtain Target Photo.Therefore, by aforesaid operations, the present invention can carry out convergent-divergent to the picture of arbitrary dimension, can satisfy the requirement of different display devices, has compatible preferably.
(2). the present invention only needs the color value of neighbor pixel is averaged calculating, so its algorithm is simple, operation time is short, and hardware circuit is easy to realize and be convenient to operation.
[description of drawings]
Fig. 1 is the flow chart of the embodiment of the invention 1 image zooming processing method;
Fig. 2 is the block diagram of the embodiment of the invention 5 image zooming processing unit;
Fig. 3 is the block diagram of the embodiment of the invention 6 image zooming processing unit;
Fig. 4 is the block diagram of the embodiment of the invention 7 image zooming processing unit.
[embodiment]
The present invention relates to a kind of image zooming processing method and processing unit, describe technical scheme of the present invention in detail below in conjunction with accompanying drawing:
Embodiment 1
As shown in Figure 1, a kind of image zooming processing method provided by the invention comprises step:
101, reception sources pictorial information data and decoding are obtained source picture bitmap format data; Described source pictorial information data are BMP format picture, JPG format picture, PNG format picture, TGA format picture or PCX format picture etc.;
102,, change the quantity of source picture bitmap format data pixels point, the bitmap format data of formation intermediate picture according to the position coordinates of pixel according to the first image zooming ratio of setting;
103, according to the second image zooming ratio of setting, change the quantity of pixel in the intermediate picture bitmap format data according to the mean value of the color value of neighbor pixel, form Target Photo bitmap format data.
Embodiment 2
On the basis of embodiment 1, further among the embodiment 2, the described first image zooming ratio is the picture reduce in scale, and the described second image zooming ratio is the picture magnification ratio, and then described step 102 and described step 103 specifically comprise:
(1). the source picture is carried out picture dwindle when handling operation:
The position coordinates of each pixel in the picture bitmap format data of setting source., n row capable as the total m of the pixel in the picture bitmap format data of source, set be positioned at wherein that i is capable, the coordinate of the pixel of j row for (i, j), set coordinate and be (i, the color value of pixel j) be expressed as f (i, j).
According to the picture reduce in scale value of source picture, set the reduce in scale value of the less source picture of a numerical value earlier to intermediate picture to Target Photo.For example: the dimension of picture of the Target Photo that obtain is the B/E of the dimension of picture of source picture, the reduce in scale value that can set the source picture earlier is D/F, promptly set earlier and obtain the intermediate picture of D/F that dimension of picture is the dimension of picture of source picture, wherein, B, D, E, F are natural number, B<E, D<F, the numerical value of D/F<B/E.
According to the reduce in scale value of the source picture of setting to intermediate picture, to source picture bitmap format data according to extracting one or more pixel every a pixel or every the position coordinates of a plurality of pixels line by line; To source picture bitmap format data according to extracting one or more pixel every a pixel or every the position coordinates of a plurality of pixels by row; Form intermediate picture bitmap format data.
According to the source picture in the picture reduce in scale value of Target Photo and the step 102 the source picture to the picture reduce in scale value of intermediate picture, by calculating the picture magnification ratio value of intermediate picture to Target Photo.For example: the dimension of picture of the Target Photo that obtain is the B/E of the dimension of picture of source picture, and the source picture of setting in the step 102 is D/F to the reduce in scale value of intermediate picture, and then intermediate picture is to the picture magnification ratio value B*F/E*D of Target Photo.
According to the magnification ratio value of the intermediate picture of setting to Target Photo, calculate the mean value of adjacent two pixels in the intermediate picture bitmap format data or the represented color value of adjacent a plurality of pixels line by line, and by the mean value of the represented color value of adjacent a plurality of pixels in the column count intermediate picture bitmap format data.For example, pixel for i in capable, get adjacent (i, j+1) pixel, (i, j+2) pixel ..., (i, j+X) pixel, the mean value of the color value of the individual pixel of then above-mentioned adjacent X (X is the natural number more than or equal to 2) for [f (and i, j+1)+f (i, j+2) ..., f (i, j+X)]/X, the pixel for i+1 in capable and the like; For the pixel in the j row, get adjacent (i+1, j) pixel, (i+2, j) pixel ..., (mean value of the color value of the individual pixel of then above-mentioned adjacent Y (Y is the natural number more than or equal to 2) is [f (i+1 for i+Y, j) pixel, j)+f (i+2, j), Pang, f (i+Y, j)]/Y, for the pixel in the j+1 row.
Be that the pixel of the mean value of above-mentioned color value adds in the intermediate picture bitmap format data between adjacent a plurality of pixels line by line with color value, is that the pixel of above-mentioned mean value adds in the intermediate picture bitmap format data between adjacent two pixels or the adjacent a plurality of pixel by row with color value, forms Target Photo bitmap format data.
(2). when the source picture is carried out the operation of picture processing and amplifying:
The position coordinates of each pixel in the picture bitmap format data of setting source., n row capable as the total m of the pixel in the picture bitmap format data of source, set be positioned at wherein that i is capable, the coordinate of the pixel of j row for (i, j), set coordinate and be (i, the color value of pixel j) be expressed as f (i, j).
According to the picture magnification ratio value of source picture, set earlier the reduce in scale value of a suitable source picture to intermediate picture to Target Photo.For example: the dimension of picture of the Target Photo that obtain is the B/E of the dimension of picture of source picture, the reduce in scale value that can set the source picture earlier is D/F, promptly set earlier and obtain the intermediate picture of D/F that dimension of picture is the dimension of picture of source picture, wherein, B, D, E, F are natural number, B>E, D<F, the numerical value of D/F<1<B/E.
According to the reduce in scale value of the source picture of setting to intermediate picture, to source picture bitmap format data according to extracting one or more pixel every a pixel or every the position coordinates of a plurality of pixels line by line; To source picture bitmap format data according to extracting one or more pixel every a pixel or every the position coordinates of a plurality of pixels by row; Form intermediate picture bitmap format data.
According to the source picture in the picture magnification ratio value of Target Photo and the step 102 the source picture to the picture reduce in scale value of intermediate picture, by calculating the picture magnification ratio value of intermediate picture to Target Photo.For example: the dimension of picture of the Target Photo that obtain is the B/E of the dimension of picture of source picture, and the source picture of setting in the step 102 is D/F to the reduce in scale value of intermediate picture, and then intermediate picture is to the picture magnification ratio value B*F/E*D of Target Photo.
According to the magnification ratio value of the intermediate picture of setting to Target Photo, calculate the mean value of adjacent two pixels in the intermediate picture bitmap format data or the represented color value of adjacent a plurality of pixels line by line, and by the mean value of the represented color value of adjacent a plurality of pixels in the column count intermediate picture bitmap format data.For example, pixel for i in capable, get adjacent (i, j+1) pixel, (i, j+2) pixel ..., (i, j+X) pixel, the mean value of the color value of the individual pixel of then above-mentioned adjacent X (X is the natural number more than or equal to 2) for [f (and i, j+1)+f (i, j+2) ..., f (i, j+X)]/X, the pixel for i+1 in capable and the like; For the pixel in the j row, get adjacent (i+1, j) pixel, (i+2, j) pixel ..., (mean value of the color value of the individual pixel of then above-mentioned adjacent Y (Y is the natural number more than or equal to 2) is [f (i+1 for i+Y, j) pixel, j)+f (i+2, j) ..., f (i+Y, j)]/Y, for the pixel in the j+1 row.
Be that the pixel of the mean value of above-mentioned color value adds in the intermediate picture bitmap format data between adjacent a plurality of pixels line by line with color value, is that the pixel of above-mentioned mean value adds in the intermediate picture bitmap format data between adjacent two pixels or the adjacent a plurality of pixel by row with color value, forms Target Photo bitmap format data.
Embodiment 3
On the basis of embodiment 1, further among the embodiment 3, the described first image zooming ratio is the picture magnification ratio, and the described second image zooming ratio is the picture reduce in scale, and then described step 102 and described step 103 specifically comprise:
(1). the source picture is carried out picture dwindle when handling operation:
The position coordinates of each pixel in the picture bitmap format data of setting source., n row capable as the total m of the pixel in the picture bitmap format data of source, set be positioned at wherein that i is capable, the coordinate of the pixel of j row for (i, j), set coordinate and be (i, the color value of pixel j) be expressed as f (i, j).
According to the picture reduce in scale value of source picture, set the magnification ratio value that a suitable source picture arrives intermediate picture earlier to Target Photo.For example: the dimension of picture of the Target Photo that obtain is the B/E of the dimension of picture of source picture, the magnification ratio value that can set the source picture earlier is D/F, promptly set earlier and obtain the intermediate picture of D/F that dimension of picture is the dimension of picture of source picture, wherein, B, D, E, F are natural number, B<E, D>F, the numerical value of D/F>1>B/E.
According to the magnification ratio value of the source picture of setting to intermediate picture, to source picture bitmap format data according to adding one or more repetition pixels every a pixel or every the position coordinates of a plurality of pixels line by line; To source picture bitmap format data according to adding one or more repetition pixels every a pixel or every the position coordinates of a plurality of pixels by row; Form intermediate picture bitmap format data.
According to the source picture in the picture reduce in scale value of Target Photo and the step 102 the source picture to the picture magnification ratio value of intermediate picture, by calculating the picture reduce in scale value of intermediate picture to Target Photo.For example: obtain dimension of picture and be the Target Photo of B/E of the dimension of picture of source picture, the source picture of setting in the step 102 is D/F to the magnification ratio value of intermediate picture, and then intermediate picture arrives the picture reduce in scale value B*F/E*D of Target Photo.
According to the reduce in scale value of the intermediate picture of setting to Target Photo, calculate the mean value of the represented color value of adjacent a plurality of pixels in the intermediate picture bitmap format data line by line, and the mean value that pursues the represented color value of adjacent a plurality of pixels in the column count intermediate picture bitmap format data.For example, pixel for i in capable, get adjacent (i, j+1) pixel, (i, j+2) pixel ..., (i, j+X) pixel, the mean value of the color value of the individual pixel of then above-mentioned adjacent X (X is the natural number more than or equal to 2) for [f (and i, j+1)+f (i, j+2), Pang, f (i, j+X)]/X, the pixel for i+1 in capable and the like; For the pixel in the j row, get adjacent (i+1, j) pixel, (i+2, j) pixel ..., (mean value of the color value of the individual pixel of then above-mentioned adjacent Y (Y is the natural number more than or equal to 2) is [f (i+1 for i+Y, j) pixel, j)+f (i+2, j) ..., f (i+Y, j)]/Y, for the pixel in the j+1 row.
Be that the pixel of above-mentioned mean value substitutes the adjacent a plurality of pixels in the intermediate picture bitmap format data line by line with color value; Pursue between the adjacent a plurality of pixels in the alternative intermediate picture bitmap format data of pixel that row are above-mentioned mean value with color value; Form Target Photo bitmap format data.
(2). when the source picture is carried out the operation of picture processing and amplifying:
The position coordinates of each pixel in the picture bitmap format data of setting source., n row capable as the total m of the pixel in the picture bitmap format data of source, set be positioned at wherein that i is capable, the coordinate of the pixel of j row for (i, j), set coordinate and be (i, the color value of pixel j) be expressed as f (i, j).
According to the picture magnification ratio value of source picture, set the magnification ratio value that a bigger source picture arrives intermediate picture earlier to Target Photo.For example: the dimension of picture of the Target Photo that obtain is the B/E of the dimension of picture of source picture, the magnification ratio value that can set the source picture earlier is D/F, promptly set earlier and obtain the intermediate picture of D/F that dimension of picture is the dimension of picture of source picture, wherein, B, D, E, F are natural number, B>E, D>F, the numerical value of D/F>B/E.
According to the magnification ratio value of the source picture of setting to intermediate picture, to source picture bitmap format data according to adding one or more repetition pixels every a pixel or every the position coordinates of a plurality of pixels line by line; To source picture bitmap format data according to adding one or more repetition pixels every a pixel or every the position coordinates of a plurality of pixels by row; Form intermediate picture bitmap format data.
According to the source picture in the picture magnification ratio value of Target Photo and the step 102 the source picture to the picture magnification ratio value of intermediate picture, by calculating the picture reduce in scale value of intermediate picture to Target Photo.For example: obtain dimension of picture and be the Target Photo of B/E of the dimension of picture of source picture, the source picture of setting in the step 102 is D/F to the magnification ratio value of intermediate picture, and then intermediate picture arrives the picture reduce in scale value B*F/E*D of Target Photo.
According to the reduce in scale value of the intermediate picture of setting to Target Photo, calculate the mean value of the represented color value of adjacent a plurality of pixels in the intermediate picture bitmap format data line by line, and the mean value that pursues the represented color value of adjacent a plurality of pixels in the column count intermediate picture bitmap format data.For example, pixel for i in capable, get adjacent (i, j+1) pixel, (i, j+2) pixel ..., (i, j+X) pixel, the mean value of the color value of the individual pixel of then above-mentioned adjacent X (X is the natural number more than or equal to 2) for [f (and i, j+1)+f (i, j+2), Pang, f (i, j+X)]/X, the pixel for i+1 in capable and the like; For the pixel in the j row, get adjacent (i+1, j) pixel, (i+2, j) pixel ..., (mean value of the color value of the individual pixel of then above-mentioned adjacent Y (Y is the natural number more than or equal to 2) is [f (i+1 for i+Y, j) pixel, j)+f (i+2, j) ..., f (i+Y, j)]/Y, for the pixel in the j+1 row.
Be that the pixel of above-mentioned mean value substitutes the adjacent a plurality of pixels in the intermediate picture bitmap format data line by line with color value; Pursue between the adjacent a plurality of pixels in the alternative intermediate picture bitmap format data of pixel that row are above-mentioned mean value with color value; Form Target Photo bitmap format data.
Embodiment 4
On the basis of embodiment 1, embodiment 2 or embodiment 3, a kind of image zooming processing method provided by the invention further comprises step:
104, the bitmap format data of receiving target picture are encoded, and obtain Target Photo information data and output.
Embodiment 5
As shown in Figure 3, the present invention also provides a kind of image zooming processing unit, and this image zooming processing unit comprises:
Decoding unit is used for the source pictorial information data that receive are decoded, and obtains source picture bitmap format data;
The first convergent-divergent processing unit is used for according to the first image zooming ratio of setting, and changes the quantity of source picture bitmap format data pixels point, the bitmap format data of formation intermediate picture according to the position coordinates of pixel;
The second convergent-divergent processing unit is used for according to the second image zooming ratio of setting, and changes the quantity of pixel in the intermediate picture bitmap format data according to the mean value of the color value of neighbor pixel, forms Target Photo bitmap format data.
Embodiment 6
As shown in Figure 4, on the basis of embodiment 5, further among the embodiment 6, the described first convergent-divergent processing unit comprises:
The setting coordinate unit, the position coordinates of each pixel in the picture bitmap format data of setting source;
First image zooming is used to set the first image zooming ratio than row setup unit;
The first pixel control unit is used for according to the first image zooming ratio of setting and the position coordinates of pixel, reaches line by line by row source picture bitmap format data pick-up or interpolation pixel.
Embodiment 7
As shown in Figure 5, on the basis of embodiment 5, further among the embodiment 7, the described second convergent-divergent processing unit comprises:
Second image zooming is used to set the second image zooming ratio than row setup unit;
The color value computing unit is used to calculate the mean value of the represented color value of adjacent a plurality of pixels;
The second pixel control unit is used for the mean value according to the color value of second image zooming ratio of setting and neighbor pixel, reaches line by line by row and extracts or substitute pixel in the described intermediate picture bitmap format data.
Embodiment 8
On the basis of embodiment 5, embodiment 6 or embodiment 7, described image zooming processing unit also comprises:
Coding unit, the bitmap format data that are used for the Target Photo that will receive are encoded, and obtain Target Photo information data and output.
The invention provides a kind of image zooming processing method and processing unit, compared to prior art, main beneficial effect of the present invention is:
(1). according to the position coordinates of pixel, source picture bitmap format data are extracted or add pixel than row according to first, the source image zooming of making is the suitable intermediate picture of a size; According to the mean value of the represented color value of neighbor pixel, middle picture is carried out convergent-divergent again, obtain Target Photo.Therefore, by aforesaid operations, the present invention can carry out convergent-divergent to the picture of arbitrary dimension, can satisfy the requirement of different display devices, has compatible preferably.
(2). the present invention only needs the color value of neighbor pixel is averaged calculating, so its algorithm is simple, operation time is short, and hardware circuit is easy to realize and be convenient to operation.
It should be noted that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not breaking away from the spirit and scope of technical solution of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.

Claims (12)

1. an image zooming processing method is characterized in that, comprising:
Reception sources pictorial information data are also decoded, and obtain source picture bitmap format data;
According to the first image zooming ratio of setting, change the quantity of source picture bitmap format data pixels point, formation intermediate picture bitmap format data according to the position coordinates of pixel;
According to the second image zooming ratio of setting, the quantity according to pixel in the color value mean value change intermediate picture bitmap format data of neighbor pixel forms Target Photo bitmap format data.
2. image zooming processing method according to claim 1 is characterized in that, the described first image zooming ratio is the picture reduce in scale, and the described second image zooming ratio is the picture magnification ratio.
3. image zooming processing method according to claim 2, it is characterized in that,, change the quantity of source picture bitmap format data pixels point according to the position coordinates of pixel according to the picture reduce in scale of setting, form intermediate picture bitmap format data, specifically comprise:
The position coordinates of each pixel in the picture bitmap format data of setting source;
According to the picture reduce in scale of setting, to source picture bitmap format data according to extracting one or more pixel every a pixel or every the position coordinates of a plurality of pixels line by line;
According to the picture reduce in scale of setting, to source picture bitmap format data according to extracting one or more pixel every a pixel or every the position coordinates of a plurality of pixels by row;
Form intermediate picture bitmap format data.
4. image zooming processing method according to claim 3, it is characterized in that,, change the quantity of pixel in the intermediate picture bitmap format data according to the color value mean value of neighbor pixel according to the picture magnification ratio of setting, form Target Photo bitmap format data, specifically comprise:
According to the picture magnification ratio of setting, calculate the mean value of the represented color value of adjacent a plurality of pixels in the intermediate picture bitmap format data line by line;
According to the picture magnification ratio of setting, by the mean value of the represented color value of adjacent a plurality of pixels in the column count intermediate picture bitmap format data;
Be that the pixel of above-mentioned mean value adds in the intermediate picture bitmap format data between adjacent a plurality of pixels line by line with color value;
Is that the pixel of above-mentioned mean value adds in the intermediate picture bitmap format data between adjacent a plurality of pixels by row with color value;
Form Target Photo bitmap format data.
5. image zooming processing method according to claim 1 is characterized in that, the described first image zooming ratio is the picture magnification ratio, and the described second image zooming ratio is the picture reduce in scale.
6. image zooming processing method according to claim 5, it is characterized in that,, change the quantity of source picture bitmap format data pixels point according to the position coordinates of pixel according to the picture magnification ratio of setting, form intermediate picture bitmap format data, specifically comprise:
The position coordinates of each pixel in the picture bitmap format data of setting source;
According to the picture magnification ratio of setting, to source picture bitmap format data according to adding one or more repetition pixels every a pixel or every the position coordinates of a plurality of pixels line by line;
According to the picture magnification ratio of setting, to source picture bitmap format data according to adding one or more repetition pixels every a pixel or every the position coordinates of a plurality of pixels by row;
Form intermediate picture bitmap format data.
7. image zooming processing method according to claim 6, it is characterized in that,, change the quantity of pixel in the intermediate picture bitmap format data according to the mean value of the color value of neighbor pixel according to the picture reduce in scale of setting, form Target Photo bitmap format data, specifically comprise:
According to the picture reduce in scale of setting, calculate the mean value of the represented color value of adjacent a plurality of pixels in the intermediate picture bitmap format data line by line;
According to the picture reduce in scale of setting, by the mean value of the represented color value of adjacent a plurality of pixels in the column count intermediate picture bitmap format data;
Be that the pixel of above-mentioned mean value substitutes the adjacent a plurality of pixels in the intermediate picture bitmap format data line by line with color value;
Is that the pixel of above-mentioned mean value substitutes in the intermediate picture bitmap format data between adjacent a plurality of pixels by row with color value;
Form Target Photo bitmap format data.
8. according to claim 1,4 or 7 described image zooming processing methods, it is characterized in that, further comprise: receiving target picture bitmap format data are encoded, and obtain Target Photo information data and output.
9. an image zooming processing unit is characterized in that, comprising:
Decoding unit is used for the source pictorial information data that receive are decoded, and obtains source picture bitmap format data;
The first convergent-divergent processing unit is used for according to the first image zooming ratio of setting, and changes the quantity of source picture bitmap format data pixels point, formation intermediate picture bitmap format data according to the position coordinates of pixel;
The second convergent-divergent processing unit is used for according to the second image zooming ratio of setting, and changes the quantity of pixel in the intermediate picture bitmap format data according to the mean value of the color value of neighbor pixel, forms Target Photo bitmap format data.
10. image zooming processing unit according to claim 9 is characterized in that, the described first convergent-divergent processing unit comprises:
The setting coordinate subelement, the position coordinates of each pixel in the picture bitmap format data of setting source;
First image zooming is used to set the first image zooming ratio than row setup unit;
The first pixel control unit according to the first image zooming ratio of setting and the position coordinates of pixel, reaches by row line by line to source picture bitmap format data pick-up or interpolation pixel.
11. image zooming processing unit according to claim 9 is characterized in that, the described second convergent-divergent processing unit comprises:
Second image zooming is used to set the second image zooming ratio than row setup unit;
The color value computing unit is used to calculate the mean value of the represented color value of adjacent a plurality of pixels;
The second pixel control unit is used for the mean value according to the color value of second image zooming ratio of setting and neighbor pixel, reaches line by line by row and extracts or substitute pixel in the described intermediate picture bitmap format data.
12., it is characterized in that this device also comprises according to claim 9,10 or 11 described image zooming processing unit:
Coding unit, the bitmap format data that are used for the Target Photo that will receive are encoded, and obtain Target Photo information data and output.
CN 200910303356 2009-06-18 2009-06-18 Processing method and processing device for image zooming Expired - Fee Related CN101572821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910303356 CN101572821B (en) 2009-06-18 2009-06-18 Processing method and processing device for image zooming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910303356 CN101572821B (en) 2009-06-18 2009-06-18 Processing method and processing device for image zooming

Publications (2)

Publication Number Publication Date
CN101572821A true CN101572821A (en) 2009-11-04
CN101572821B CN101572821B (en) 2013-07-17

Family

ID=41232033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910303356 Expired - Fee Related CN101572821B (en) 2009-06-18 2009-06-18 Processing method and processing device for image zooming

Country Status (1)

Country Link
CN (1) CN101572821B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103366343A (en) * 2013-07-17 2013-10-23 广东欧珀移动通信有限公司 Bitmap scaling method and system
CN105761204A (en) * 2016-02-23 2016-07-13 惠州Tcl移动通信有限公司 Method and system for stretching discontinuous gradient image based on intelligent terminal
CN106874444A (en) * 2017-02-09 2017-06-20 北京小米移动软件有限公司 Image processing method and device
CN109087252A (en) * 2018-09-26 2018-12-25 浙江浙大万朋软件有限公司 A method of calculating picture pantograph ratio
CN109947973A (en) * 2018-09-21 2019-06-28 北京字节跳动网络技术有限公司 Background configuration method, device, equipment and the readable medium of display area
CN114500702A (en) * 2022-01-30 2022-05-13 上海傲显科技有限公司 Sub-pixel arrangement based segmentation method, mobile terminal and terminal-readable storage medium
CN117641063A (en) * 2023-12-05 2024-03-01 北京视睿讯科技有限公司 Video source previewing method and device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1312635C (en) * 2004-03-17 2007-04-25 致伸科技股份有限公司 Image zooming method
FI20045201A (en) * 2004-05-31 2005-12-01 Nokia Corp A method and system for viewing and enhancing images

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103366343A (en) * 2013-07-17 2013-10-23 广东欧珀移动通信有限公司 Bitmap scaling method and system
CN103366343B (en) * 2013-07-17 2016-05-04 广东欧珀移动通信有限公司 A kind of bitmap Zoom method and system
CN105761204A (en) * 2016-02-23 2016-07-13 惠州Tcl移动通信有限公司 Method and system for stretching discontinuous gradient image based on intelligent terminal
CN106874444A (en) * 2017-02-09 2017-06-20 北京小米移动软件有限公司 Image processing method and device
CN109947973A (en) * 2018-09-21 2019-06-28 北京字节跳动网络技术有限公司 Background configuration method, device, equipment and the readable medium of display area
CN109947973B (en) * 2018-09-21 2020-08-18 北京字节跳动网络技术有限公司 Background configuration method, device and equipment for display area and readable medium
CN109087252A (en) * 2018-09-26 2018-12-25 浙江浙大万朋软件有限公司 A method of calculating picture pantograph ratio
CN109087252B (en) * 2018-09-26 2022-10-28 浙江万朋云软件技术有限公司 Method for calculating picture zoom ratio
CN114500702A (en) * 2022-01-30 2022-05-13 上海傲显科技有限公司 Sub-pixel arrangement based segmentation method, mobile terminal and terminal-readable storage medium
CN117641063A (en) * 2023-12-05 2024-03-01 北京视睿讯科技有限公司 Video source previewing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN101572821B (en) 2013-07-17

Similar Documents

Publication Publication Date Title
CN101572821B (en) Processing method and processing device for image zooming
Yuan et al. Dynamic and invisible messaging for visual MIMO
CN101261740B (en) Processing method of an image storage
CN101990095B (en) Method and apparatus for generating compressed file, camera module associated therewith, and terminal including the same
EP2559270B1 (en) Method and apparatus for generating and playing animation message
CN104780329B (en) High standard definition based on FPGA can mixed seeding multi-image divider and dividing method
CN109889846B (en) Method and device for compressing and decompressing Demura table data and coding and decoding system
CN102783153A (en) Signal processing device and moving image capturing device
US20140169693A1 (en) Streaming Wavelet Transform
CN114071223A (en) Optical flow-based video interpolation frame generation method, storage medium and terminal equipment
CN102123259A (en) Method for displaying extra-large-resolution pictures on television
CN112188180B (en) Method and device for processing sub-block images
CN111179370B (en) Picture generation method and device, electronic equipment and storage medium
CN101520887A (en) Image zooming method, device and chip
CN102271251B (en) Lossless image compression method
CN104639834A (en) Method and system for transmitting camera image data
CN102542298A (en) Electronic device and image similarity degree comparison method thereof
JP2014533060A (en) Binarization of end position for high throughput
CN112565603B (en) Image processing method and device and electronic equipment
CN110390636A (en) Unmanned plane is super, the simulation Zooming method of high definition picture or video data
CN102111636A (en) Method and system for converting three-dimensional (3D) signal into two-dimensional (2D) signal
CN105681825B (en) A kind of video code flow output-controlling device and method
Kim et al. Video display field communication: Practical design and performance analysis
TW200608783A (en) Image processing circuit of digital TV
CN102665056A (en) Display method for videos and images in display terminals

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 518102, Guangdong, Baoan District, Xixiang street, the Peach Garden science and Technology Innovation Park, 2 R & D center, 1, 3, 4, Shenzhen

Applicant after: SHENZHEN MESADA TECHNOLOGY CO., LTD.

Address before: 518000, Guangdong, Nanshan District science and Technology Park, Shenzhen District, North Lang Road 11, the same side of the information port, D building, 8 floor

Applicant before: Shenzhen Mesada Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
PP01 Preservation of patent right

Effective date of registration: 20160201

Granted publication date: 20130717

RINS Preservation of patent right or utility model and its discharge
PD01 Discharge of preservation of patent

Date of cancellation: 20160801

Granted publication date: 20130717

RINS Preservation of patent right or utility model and its discharge
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130717

Termination date: 20160618

CF01 Termination of patent right due to non-payment of annual fee