CN114626988A - Computer digital image rapid processing algorithm - Google Patents
Computer digital image rapid processing algorithm Download PDFInfo
- Publication number
- CN114626988A CN114626988A CN202210308659.8A CN202210308659A CN114626988A CN 114626988 A CN114626988 A CN 114626988A CN 202210308659 A CN202210308659 A CN 202210308659A CN 114626988 A CN114626988 A CN 114626988A
- Authority
- CN
- China
- Prior art keywords
- image
- sub
- color
- coordinate system
- cell
- 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.)
- Pending
Links
- 239000003086 colorant Substances 0.000 claims description 5
- 241000519995 Stachys sylvatica Species 0.000 claims description 3
- 230000000694 effects Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/40—Filling a planar surface by adding surface attributes, e.g. colour or texture
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/73—Deblurring; Sharpening
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/77—Retouching; Inpainting; Scratch removal
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The invention relates to the field of image processing algorithms, in particular to a computer digital image rapid processing algorithm, which comprises the following steps: s1, establishing a processing coordinate system; s2, placing the picture in a processing coordinate system and collecting the whole image content; s3, dividing cells, and collecting the sub-image content of each cell, wherein the collected content comprises sub-background color, sub-image lines and sub-image color, and the sub-background color, the sub-image lines and the sub-image color are all bound with the information of the coordinate point N (Xn, Ym); s4, respectively enlarging or reducing the cells; s5, cell image restoration: restoring the amplified cell image according to the sub-background color, the sub-image lines and the sub-image color; and S6, splicing and combining the repaired cells. In the invention, the zoomed cells are subjected to background restoration, image restoration and image color restoration, thereby ensuring the quality of image zooming.
Description
Technical Field
The invention relates to the field of image processing algorithms, in particular to a computer digital image rapid processing algorithm.
Background
Image processing is also called image processing, and is a technology for achieving a required result by using a computer to perform image processing, wherein image scaling is frequently used, a user generally needs to enlarge an image for viewing, and the existing image is easy to have the problems of distortion, blurring and the like during scaling processing and is inconvenient to use.
Chinese patent No. CN108171706A discloses a computer image processing method, which comprises the following steps: s1: establishing a coordinate system: establishing a plane coordinate system on a computer, wherein a transverse axis is set as an X axis, a longitudinal axis is set as a Y axis, an intersection point of the X axis and the Y axis is an origin, a background graph of the coordinate system is a grid graph, and any point A in the coordinate system can be represented by A (XA, YA); s2: placing the picture in a processing coordinate system; s3: equally dividing the picture into cells; s4: carrying out light sensing collection on the images in the cells; s5: regulating and controlling elements in the cells according to requirements; s6: the image processing method of the computer is simple to operate, can be used for processing the target image in a targeted mode, is good in processing effect, unifies targeted processing, and improves processing speed.
However, the above-mentioned known solutions have the following disadvantages: the image is divided into a plurality of cells, and each cell is processed independently, but the cells still have the problems of distortion, blur and the like during zooming, and the problems of distortion, blur and the like caused by image zooming still cannot be solved after the cells are combined.
Disclosure of Invention
The invention aims to provide a computer digital image fast processing algorithm for improving the image zooming quality aiming at the problems in the background technology.
The technical scheme of the invention is as follows: a computer digital image fast processing algorithm, comprising the steps of:
s1, establishing a processing coordinate system: the transverse axis is set as an X axis, the longitudinal axis is set as a Y axis, the intersection point of the X axis and the Y axis is an origin, a background graph of a coordinate system is a grid graph, and any point A in the coordinate system can be represented by A (XA, YA);
s2, placing the picture in a processing coordinate system, and collecting the whole image content, wherein the collected content comprises background color, image lines and image color;
s3, dividing a plurality of cells according to a coordinate system and the like, wherein the coordinate of the center point of each cell is N (Xn, Ym), acquiring the sub-image content of each cell, wherein the acquired content comprises sub-background color, sub-image lines and sub-image color, and the sub-background color, the sub-image lines and the sub-image color are all bound with the information of the coordinate point N (Xn, Ym);
s4, zooming in or out the image according to the processing requirement: respectively enlarging or reducing the cells;
s5, cell image restoration: restoring the amplified cell image according to the sub-background color, the sub-image lines and the sub-image color;
and S6, splicing and combining the repaired cells to form a complete image, and outputting the complete image in different formats according to requirements.
Preferably, in S1, the coordinate system precision setting parameter is T (B, C), B represents the division value of the X axis, C represents the division value of the Y axis, B and C are in millimeters, the smaller the values of B and C, the higher the division precision, and the values of B and C are filled in by the user.
Preferably, in S2, the image lines include line trends, line sizes and line edge features.
Preferably, in S2, the computer fills the image into the coordinate system such that one corner of the image coincides with the origin of the coordinate system and the other part is located in the coordinate system.
Preferably, in S3, the sub-image lines include line trends, line sizes and line edge features.
Preferably, in S5, the cell image restoration step is as follows: s51, repairing the zoomed cell background according to the sub-background color; s52, repairing the zoomed cell image lines according to the sub-image lines, and repairing the color of the filling light spots to be black or white; s53, filling the black and white spots used in the repair of S52 according to the sub-image colors.
Preferably, in S51, the scaled cell background is repaired in a specific way of filling the blurred region and the pixel light spot.
Preferably, in S52, the scaled cell image is repaired by filling the blurred region and the pixel light spot of the line and repairing the line edge, and the line edge repairing method is edge sharpening.
Compared with the prior art, the invention has the following beneficial technical effects: the method comprises the steps of performing equal-area segmentation on an image according to coordinates, then independently zooming the segmented cells, performing image restoration on the zoomed cells according to pre-extracted sub-background colors, sub-image lines and sub-image colors, performing background restoration, image restoration and image color restoration respectively, ensuring that the attributes of the zoomed cells and the cell image before zooming only have proportional changes, and finally splicing all zoomed cells, so that the image zooming quality is ensured, and the problems that distortion, blurring and the like are easily generated in image zooming in the traditional technology are solved.
Drawings
FIG. 1 is a schematic structural diagram of an embodiment of the present invention;
fig. 2 is a flowchart of cell image repair.
Detailed Description
Example one
As shown in FIG. 1, the present invention provides a computer digital image fast processing algorithm, which comprises the following steps:
s1, establishing a processing coordinate system: the transverse axis is set as X axis, the longitudinal axis is set as Y axis, the intersection point of the X axis and the Y axis is an origin, the background graph of the coordinate system is a grid graph, and any point A in the coordinate system can be represented by A (XA, YA); the coordinate system precision setting parameter is T (B, C), B represents the division value of the X axis, C represents the division value of the Y axis, the unit of B and C is millimeter, the smaller the values of B and C are, the higher the division precision is, and the values of B and C are filled in by a user;
s2, placing the picture in a processing coordinate system, wherein one corner of the picture is coincided with the origin of the coordinate system, other parts of the picture are located in the coordinate system, the collected content comprises background color, image lines and image color, and the image lines comprise line trends, line sizes and line edge characteristics;
s3, dividing a plurality of cells according to a coordinate system and the like, wherein the coordinate of the center point of each cell is N (Xn, Ym), acquiring the sub-image content of each cell, wherein the acquired content comprises sub-background color, sub-image lines and sub-image color, the sub-background color, the sub-image lines comprise line trend, line size and line edge characteristics, and the sub-image lines and the sub-image color are bound with the information of the coordinate point N (Xn, Ym) of the sub-image lines and the sub-image color;
s4, zooming in or zooming out the image according to the processing requirement: respectively enlarging or reducing the cells;
s5, cell image restoration: restoring the amplified cell image according to the sub-background color, the sub-image lines and the sub-image color;
and S6, splicing and combining the repaired cells to form a complete image, and outputting the complete image in different formats according to requirements.
In the embodiment, the image is divided into equal areas according to the coordinates, then the divided cells are independently zoomed, the zoomed cells are subjected to image restoration according to the pre-extracted sub-background color, sub-image lines and sub-image color, the background restoration, the image restoration and the image color restoration are respectively performed, the condition that the attributes of the zoomed cells and the image of the cells before zooming only change in proportion is ensured, and finally all the zoomed cells are spliced, so that the quality of image zooming is ensured, and the problems that distortion, blurring and the like are easily generated during image zooming in the traditional technology are solved.
Example two
As shown in fig. 2, compared to the first embodiment, in S5, the cell image inpainting step of the computer digital image fast processing algorithm provided by the present invention is as follows: s51, repairing the zoomed cell background according to the color of the sub-background, wherein the specific mode is to fill a fuzzy area and a pixel light spot; s52, repairing the zoomed cell image lines according to the sub-image lines, repairing and filling the light spots to be black or white, wherein the specific mode is to fill the fuzzy area and the pixel light spots of the lines and repair the line edges, and the line edge repairing mode is edge sharpening; s53, filling the black and white spots used in the repair of S52 according to the sub-image colors.
In this embodiment, the zoomed cells are subjected to image restoration, background restoration, image restoration and image color restoration, so that only the scaled cell and the scaled cell image attribute are changed in proportion, and the image zooming quality is ensured.
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited thereto, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.
Claims (8)
1. A computer digital image fast processing algorithm, comprising the steps of:
s1, establishing a processing coordinate system: the transverse axis is set as X axis, the longitudinal axis is set as Y axis, the intersection point of the X axis and the Y axis is an origin, the background graph of the coordinate system is a grid graph, and any point A in the coordinate system can be represented by A (XA, YA);
s2, placing the picture in a processing coordinate system, and collecting the whole image content, wherein the collected content comprises background color, image lines and image color;
s3, dividing a plurality of cells according to a coordinate system and the like, wherein the coordinate of the center point of each cell is N (Xn, Ym), acquiring the sub-image content of each cell, wherein the acquired content comprises sub-background color, sub-image lines and sub-image color, and the sub-background color, the sub-image lines and the sub-image color are all bound with the information of the coordinate point N (Xn, Ym);
s4, zooming in or zooming out the image according to the processing requirement: respectively enlarging or reducing the cells;
s5, cell image restoration: restoring the amplified cell image according to the sub-background color, the sub-image lines and the sub-image color;
and S6, splicing and combining the repaired cells to form a complete image, and outputting the complete image in different formats according to the requirements.
2. The computer digital image fast processing algorithm of claim 1, wherein in S1, the coordinate system precision setting parameter is T (B, C), B represents the division value of the X-axis, C represents the division value of the Y-axis, B and C are in mm, the smaller the values of B and C, the higher the division precision, the values of B and C are filled in by the user.
3. The computer digital image fast processing algorithm of claim 1, wherein in S2, the image lines include line trends, line sizes and line edge features.
4. The computer digital image fast processing algorithm of claim 1, characterized in that in S2, the computer fills the image into the coordinate system such that one corner of the image coincides with the origin of the coordinate system and the other part is located in the coordinate system.
5. The computer digital image fast processing algorithm of claim 1, wherein in S3, the sub-image lines include line trends, line sizes and line edge features.
6. The computer digital image fast processing algorithm of claim 1, wherein in S5, the cell image inpainting step is as follows: s51, repairing the zoomed cell background according to the sub-background color; s52, repairing the zoomed cell image lines according to the sub-image lines, and repairing the color of the filling light spots to be black or white; s53, filling the black and white spots used in the repair of S52 according to the sub-image colors.
7. The computer digital image fast processing algorithm of claim 6, characterized in that in S51, the scaled cell background is repaired by filling the blurred region and the pixel light point.
8. The computer digital image fast processing algorithm of claim 6, characterized in that in S52, the scaled cell image is repaired by filling the blurred region and pixel light points of the line and repairing the line edge, and the line edge is repaired by sharpening.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210308659.8A CN114626988A (en) | 2022-03-28 | 2022-03-28 | Computer digital image rapid processing algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210308659.8A CN114626988A (en) | 2022-03-28 | 2022-03-28 | Computer digital image rapid processing algorithm |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114626988A true CN114626988A (en) | 2022-06-14 |
Family
ID=81903436
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210308659.8A Pending CN114626988A (en) | 2022-03-28 | 2022-03-28 | Computer digital image rapid processing algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114626988A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104966092A (en) * | 2015-06-16 | 2015-10-07 | 中国联合网络通信集团有限公司 | Image processing method and device |
CN108171706A (en) * | 2018-01-22 | 2018-06-15 | 井冈山大学 | A kind of Computer Image Processing method |
CN108510450A (en) * | 2018-02-07 | 2018-09-07 | 北京农业信息技术研究中心 | A kind of photo-irradiation treatment method and device of crop leaf image |
CN109903322A (en) * | 2019-01-24 | 2019-06-18 | 江苏大学 | A kind of depth camera depth image restorative procedure |
AU2020101832A4 (en) * | 2019-09-26 | 2020-09-24 | Wuhan University Of Science And Technology | Image collection and depth image enhancement method and apparatus for kinect |
CN113744142A (en) * | 2021-08-05 | 2021-12-03 | 南方科技大学 | Image restoration method, electronic device and storage medium |
-
2022
- 2022-03-28 CN CN202210308659.8A patent/CN114626988A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104966092A (en) * | 2015-06-16 | 2015-10-07 | 中国联合网络通信集团有限公司 | Image processing method and device |
CN108171706A (en) * | 2018-01-22 | 2018-06-15 | 井冈山大学 | A kind of Computer Image Processing method |
CN108510450A (en) * | 2018-02-07 | 2018-09-07 | 北京农业信息技术研究中心 | A kind of photo-irradiation treatment method and device of crop leaf image |
CN109903322A (en) * | 2019-01-24 | 2019-06-18 | 江苏大学 | A kind of depth camera depth image restorative procedure |
AU2020101832A4 (en) * | 2019-09-26 | 2020-09-24 | Wuhan University Of Science And Technology | Image collection and depth image enhancement method and apparatus for kinect |
CN113744142A (en) * | 2021-08-05 | 2021-12-03 | 南方科技大学 | Image restoration method, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3881439B2 (en) | Image processing device | |
US6813041B1 (en) | Method and apparatus for performing local color correction | |
EP3407604A1 (en) | Method and device for processing high dynamic range image | |
CN111489322B (en) | Method and device for adding sky filter to static picture | |
WO2020098721A1 (en) | Image presentation method and apparatus for virtual reality device, device and computer storage medium | |
WO2019153731A1 (en) | Image processing method and system | |
CN115631117A (en) | Image enhancement method, device, detection system and storage medium for defect detection | |
US6724946B1 (en) | Image processing method, apparatus and storage medium therefor | |
CN111311528A (en) | Image fusion optimization method, device, equipment and medium | |
JP3142550B2 (en) | Graphic processing unit | |
DE10318180A1 (en) | System and method for manipulating a skewed digital image | |
CN115601472B (en) | Undistorted black edge drawing method based on expansion corrosion algorithm | |
CN114626988A (en) | Computer digital image rapid processing algorithm | |
JP3492151B2 (en) | Image sharpness processing method and apparatus, and storage medium storing program | |
JP4366634B2 (en) | Noise pixel map creation method, apparatus and program for implementing the method, and photo print apparatus | |
JP2007079586A (en) | Image processor | |
CN113283543B (en) | WebGL-based image projection fusion method, device, storage medium and equipment | |
JPH10232915A (en) | Image processor and its method | |
CN113724129B (en) | Image blurring method, storage medium and terminal equipment | |
JP2002117400A (en) | Image correction method and device, and recording medium readable by computer and having image correction program recorded thereon | |
CN114219840A (en) | Image registration and fusion method and device and computer storage medium | |
JP2007079587A (en) | Image processor | |
JP2002300404A (en) | Image processing method and image processor | |
CN118411402B (en) | Method, device and system for positioning curved-surface dot matrix map of curved-surface screen and storage medium | |
CN115731107A (en) | Super-resolution image processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |