CN104700361B - Image interpolation method and system based on rim detection - Google Patents
Image interpolation method and system based on rim detection Download PDFInfo
- Publication number
- CN104700361B CN104700361B CN201510152962.3A CN201510152962A CN104700361B CN 104700361 B CN104700361 B CN 104700361B CN 201510152962 A CN201510152962 A CN 201510152962A CN 104700361 B CN104700361 B CN 104700361B
- Authority
- CN
- China
- Prior art keywords
- mrow
- msub
- interpolation
- mtd
- mtr
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 132
- 238000001514 detection method Methods 0.000 title claims abstract description 40
- 238000001914 filtration Methods 0.000 claims description 19
- 239000011159 matrix material Substances 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 6
- 230000003321 amplification Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Medicines Containing Antibodies Or Antigens For Use As Internal Diagnostic Agents (AREA)
- Image Processing (AREA)
Abstract
Description
(1-dx)*(1-dy) | (1-dy) | (1-dy) | (1-dy) | (1-dy) | dx*(1-dy) |
(1-dx) | 1 | 1 | 1 | 1 | dx |
(1-dx) | 1 | 1 | 1 | 1 | dx |
(1-dx)*dy | dy | dy | dy | dy | dx*dy |
Claims (10)
- A kind of 1. image interpolation method based on rim detection, it is characterised in that including:Position of the interpolation pixel in original image is determined according to the size of image after original image and interpolation;Determine edge direction of the interpolation pixel in original image;If the absolute value of the slope of edge direction is not less than first threshold, inserted according to row intersection method and/or row intersection method Value, the row intersection method and/or row intersection method include:Calculate in original image what some rows and/or several columns in interpolation neighborhood of pixels were determined by interpolation pixel and edge direction The position of some row intersection points and/or several columns intersection point that straight line is cut;Determine that the row is handed over using the value of pixel in one-dimensional interpolation method row intersection point according to original image and/or row intersection point neighborhood The pixel value of point and/or row intersection point;One-dimensional filtering is carried out to the pixel value of the row intersection point in identified interpolation neighborhood of pixels and/or row intersection point, treated The value of interpolating pixel, and row interpolation is entered to original image;Wherein,The selection condition of the row intersection method and/or row intersection method is:When the absolute value of the slope of edge direction is less than Second Threshold, row interpolation is entered according to row intersection method;When edge direction When the absolute value of slope is not less than three threshold values, row interpolation is entered according to row intersection method;When edge direction slope absolute value not When being less than three threshold values less than Second Threshold, then row interpolation is entered according to row intersection method and row intersection method simultaneously;The row intersection point, it is the straight line that m rows are determined by interpolation pixel and edge direction in interpolation neighborhood of pixels in original image The m row intersection point cut;Wherein, above interpolation pixel, each m/2 in lower section;M is even number;The row intersection point, it is that n arranges the straight line by interpolation pixel and edge direction determination in interpolation neighborhood of pixels in original image The n row intersection point cut;Wherein, on the left of interpolation pixel, each n/2 in right side;N is even number;The magnitude relationship of three threshold values is:First threshold<Second Threshold<3rd threshold value.
- 2. the image interpolation method according to claim 1 based on rim detection, it is characterised in that described while according to row Intersection method and row intersection method enter row interpolation, specifically include:Calculate in original image some rows and several columns in interpolation neighborhood of pixels determined by interpolation pixel and edge direction it is straight The position of some row intersection points and several columns intersection point that line is cut;The row intersection point is determined using the value of pixel in one-dimensional interpolation method row intersection point according to original image and row intersection point neighborhood With the pixel value of row intersection point;One-dimensional filtering is carried out respectively to the row intersection point in identified interpolation neighborhood of pixels and the pixel value of row intersection point to be gone The interpolation result I of intersection point filteringHR(iH,jH) and row intersection point filtering interpolation result IHC(iH,jH), weighted according to formula (23) true Determine the value I of interpolation pixelH(iH,jH):IH(iH,jH)=w*IHR(iH,jH)+(1-w)*IHC(iH,jH) (23)Row interpolation is entered to original image further according to the value of the interpolation pixel;Wherein, (iH,jH) represent interpolation pixel position coordinate, w represents the weight of the interpolation result of row intersection point filtering.
- 3. the image interpolation method according to claim 1 based on rim detection, it is characterised in that also include:If the absolute value of the slope of edge direction is less than first threshold, row interpolation is entered according to non-edge interpolation method;Accordingly, one is carried out in the pixel value of the row intersection point in identified interpolation neighborhood of pixels and/or row intersection point Dimension filtering, obtains the value of interpolation pixel, and original image is entered after row interpolation and carried out described according to non-edge interpolation method After interpolation, in addition to:The result that the result obtained to the row intersection method and/or row intersection method interpolation obtains with the non-edge interpolation method is carried out Merge so as to obtain the image after interpolation.
- 4. the image interpolation method according to claim 1 based on rim detection, it is characterised in that the row intersection method is adopted Realized with the intersection point of four rows above and below interpolation pixel;Accordingly, it is described to calculate in original image what some rows in interpolation neighborhood of pixels were determined by interpolation pixel and edge direction The position for some row intersection points that straight line is cut includes calculating four row intersection points respectively according to formula (9), (10), (11) and (12) Position:<mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>P</mi> <mn>0</mn> </msub> <mo>:</mo> </mrow> </mtd> <mtd> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>+</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>)</mo> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>9</mn> <mo>)</mo> </mrow> </mrow><mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>P</mi> <mn>1</mn> </msub> <mo>:</mo> </mrow> </mtd> <mtd> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>)</mo> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>10</mn> <mo>)</mo> </mrow> </mrow><mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>P</mi> <mn>2</mn> </msub> <mo>:</mo> </mrow> </mtd> <mtd> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>)</mo> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>11</mn> <mo>)</mo> </mrow> </mrow><mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>P</mi> <mn>3</mn> </msub> <mo>:</mo> </mrow> </mtd> <mtd> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>2</mn> <mo>,</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>2</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>)</mo> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>12</mn> <mo>)</mo> </mrow> </mrow>It is described that using one-dimensional interpolation method, the value of pixel determines the picture of the row intersection point in row intersection point neighborhood according to original image Plain value includes determining the pixel value of four row intersection points according to formula (17), (18), (19) and (20):<mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>I</mi> <mrow> <mi>P</mi> <mn>0</mn> </mrow> </msub> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mo>(</mo> <mrow> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>+</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>-</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>+</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> </mrow> <mo>)</mo> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>+</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>+</mo> <mrow> <mo>(</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>+</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>-</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>+</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>+</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>17</mn> <mo>)</mo> </mrow> </mrow><mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>I</mi> <mrow> <mi>P</mi> <mn>1</mn> </mrow> </msub> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mo>(</mo> <mrow> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>-</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> </mrow> <mo>)</mo> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>+</mo> <mrow> <mo>(</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>-</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>+</mo> <mfrac> <mrow> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>18</mn> <mo>)</mo> </mrow> </mrow><mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>I</mi> <mrow> <mi>P</mi> <mn>2</mn> </mrow> </msub> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mo>(</mo> <mrow> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>-</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> </mrow> <mo>)</mo> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>+</mo> <mrow> <mo>(</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>-</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>19</mn> <mo>)</mo> </mrow> </mrow><mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>I</mi> <mrow> <mi>P</mi> <mn>3</mn> </mrow> </msub> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mo>(</mo> <mrow> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>2</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>-</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>2</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> </mrow> <mo>)</mo> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>2</mn> <mo>,</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>2</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>+</mo> <mrow> <mo>(</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>2</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>-</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>2</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>2</mn> <mo>,</mo> <mo>&lsqb;</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>-</mo> <mfrac> <mrow> <mo>(</mo> <mn>2</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> <mo>*</mo> <msub> <mi>v</mi> <mi>x</mi> </msub> </mrow> <msub> <mi>v</mi> <mi>y</mi> </msub> </mfrac> <mo>&rsqb;</mo> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>20</mn> <mo>)</mo> </mrow> </mrow>The pixel value of the row intersection point in identified interpolation neighborhood of pixels carries out one-dimensional filtering, obtains interpolation pixel Value include according to formula (22) carry out one-dimensional filtering obtain interpolation pixel value:IH(iH,jH)=f0*IP0+f1*IP1+f2*IP2+f3*IP3 (22)Wherein, [] represents to round downwards, (iL,jL) represent the coordinate of position of the interpolation pixel in original image, i and j difference tables Show line number and columns, (vx,vy) represent edge direction, vxRepresent the horizontal component of edge direction, vyRepresent the vertical of edge direction Component, P0、P1、P2、P3Four row intersection points, I are represented respectivelyP0、IP1、IP2、IP3The pixel value of four row intersection points, [f are represented respectively0, f1,f2,f3] be one-dimensional filtering device coefficient.
- 5. the image interpolation method according to claim 1 based on rim detection, it is characterised in that the determination interpolation Edge direction of the pixel in original image includes:The horizontal gradient g of some pixels in interpolation neighborhood of pixels in original image is calculated according to formula (2) and (3) respectivelyH(i,j) With vertical gradient gV(i,j):<mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>=</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>+</mo> <mn>2</mn> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>+</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>-</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>-</mo> <mn>2</mn> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>-</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>2</mn> <mo>)</mo> </mrow> </mrow><mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>=</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>+</mo> <mn>2</mn> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>+</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>-</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>-</mo> <mn>2</mn> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>-</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>3</mn> <mo>)</mo> </mrow> </mrow>Horizontal gradient and vertical ladder of the position with pixel in the neighborhood according to the interpolation pixel in original image respectively Degree utilizes bilinear interpolation namely the horizontal gradient g of interpolation pixel is determined according to formula (4) and (5)H(iL,jL) and vertical ladder Spend gV(iL,jL), then the edge direction of interpolation pixel is the vertical direction (g in the direction of the gradient of the interpolation pixelV (iL,jL),-gH(iL,jL)):<mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>i</mi> <mi>L</mi> </msub> <mo>,</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>)</mo> </mrow> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>x</mi> <mo>)</mo> </mrow> <mo>*</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>+</mo> <mi>d</mi> <mi>x</mi> <mo>*</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>+</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>x</mi> <mo>)</mo> </mrow> <mo>*</mo> <mi>g</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>+</mo> <mi>d</mi> <mi>x</mi> <mo>*</mo> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>4</mn> <mo>)</mo> </mrow> </mrow><mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>i</mi> <mi>L</mi> </msub> <mo>,</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>)</mo> </mrow> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>x</mi> <mo>)</mo> </mrow> <mo>*</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>+</mo> <mi>d</mi> <mi>x</mi> <mo>*</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>+</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>x</mi> <mo>)</mo> </mrow> <mo>*</mo> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>+</mo> <mi>d</mi> <mi>x</mi> <mo>*</mo> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>5</mn> <mo>)</mo> </mrow> </mrow>Wherein, IL(i-1,j+1)、IL(i,j+1)、IL(i+1,j+1)、IL(i-1,j-1)、IL(i,j-1)、IL(i+1,j-1)、IL (i-1,j)、IL(i+1, j) is illustrated respectively in the pixel value of eight pixels in interpolation neighborhood of pixels in original image.
- 6. the image interpolation method according to claim 1 based on rim detection, it is characterised in that the determination interpolation Edge direction of the pixel in original image includes:The window of arbitrary size in interpolation neighborhood of pixels is chosen, determines the horizontal gradient g of whole pixels in windowH(i, j) and hang down Vertical ladder degree gV(i, j), so that it is determined that in interpolation neighborhood of pixels in window whole pixels covariance matrix M:<mrow> <mi>M</mi> <mo>=</mo> <mfenced open = "[" close = "]"> <mtable> <mtr> <mtd> <mi>A</mi> </mtd> <mtd> <mi>B</mi> </mtd> </mtr> <mtr> <mtd> <mi>B</mi> </mtd> <mtd> <mi>C</mi> </mtd> </mtr> </mtable> </mfenced> <mo>=</mo> <mfenced open = "[" close = "]"> <mtable> <mtr> <mtd> <mrow> <munder> <mo>&Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&Element;</mo> <mi>&Omega;</mi> </mrow> </munder> <msup> <mrow> <mo>(</mo> <msub> <mi>g</mi> <mi>H</mi> </msub> <mo>(</mo> <mrow> <mi>i</mi> <mo>,</mo> <mi>j</mi> </mrow> <mo>)</mo> <mo>)</mo> </mrow> <mn>2</mn> </msup> </mrow> </mtd> <mtd> <mrow> <munder> <mo>&Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&Element;</mo> <mi>&Omega;</mi> </mrow> </munder> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <munder> <mo>&Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&Element;</mo> <mi>&Omega;</mi> </mrow> </munder> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> </mrow> </mtd> <mtd> <mrow> <munder> <mo>&Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&Element;</mo> <mi>&Omega;</mi> </mrow> </munder> <msup> <mrow> <mo>(</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mo>(</mo> <mrow> <mi>i</mi> <mo>,</mo> <mi>j</mi> </mrow> <mo>)</mo> <mo>)</mo> </mrow> <mn>2</mn> </msup> </mrow> </mtd> </mtr> </mtable> </mfenced> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>6</mn> <mo>)</mo> </mrow> </mrow>Calculate the characteristic value and characteristic vector of the covariance matrix, it is determined that characteristic vector v corresponding to smaller characteristic value is institute Edge direction is stated, namely:<mrow> <mi>v</mi> <mo>=</mo> <mo>=</mo> <mfenced open = "[" close = "]"> <mtable> <mtr> <mtd> <msub> <mi>v</mi> <mi>x</mi> </msub> </mtd> </mtr> <mtr> <mtd> <msub> <mi>v</mi> <mi>y</mi> </msub> </mtd> </mtr> </mtable> </mfenced> <mo>=</mo> <mfenced open = "[" close = "]"> <mtable> <mtr> <mtd> <mrow> <mn>2</mn> <mi>B</mi> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mi>C</mi> <mo>-</mo> <mi>A</mi> <mo>-</mo> <msqrt> <mrow> <msup> <mrow> <mo>(</mo> <mi>C</mi> <mo>-</mo> <mi>A</mi> <mo>)</mo> </mrow> <mn>2</mn> </msup> <mo>+</mo> <mn>4</mn> <msup> <mi>B</mi> <mn>2</mn> </msup> </mrow> </msqrt> </mrow> </mtd> </mtr> </mtable> </mfenced> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>7</mn> <mo>)</mo> </mrow> </mrow> 3Wherein,Represent characteristic vector corresponding to the smaller characteristic value of the covariance matrix, vxRepresent edge direction Horizontal component, vyRepresent the vertical component of edge direction.
- 7. according to the image interpolation method based on rim detection described in claim 6, it is characterised in that the determination interpolation picture Edge direction of the element in original image also includes:Covariance matrix M' after the covariance matrix is improved is improved according to formula (6):<mrow> <msup> <mi>M</mi> <mo>&prime;</mo> </msup> <mo>=</mo> <mfenced open = "[" close = "]"> <mtable> <mtr> <mtd> <mi>A</mi> </mtd> <mtd> <mi>B</mi> </mtd> </mtr> <mtr> <mtd> <mi>B</mi> </mtd> <mtd> <mi>C</mi> </mtd> </mtr> </mtable> </mfenced> <mo>=</mo> <mfenced open = "[" close = "]"> <mtable> <mtr> <mtd> <mrow> <munder> <mo>&Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&Element;</mo> <mi>&Omega;</mi> </mrow> </munder> <mi>w</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>*</mo> <msup> <mrow> <mo>(</mo> <msub> <mi>g</mi> <mi>H</mi> </msub> <mo>(</mo> <mrow> <mi>i</mi> <mo>,</mo> <mi>j</mi> </mrow> <mo>)</mo> <mo>)</mo> </mrow> <mn>2</mn> </msup> </mrow> </mtd> <mtd> <mrow> <munder> <mo>&Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&Element;</mo> <mi>&Omega;</mi> </mrow> </munder> <mi>w</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <munder> <mo>&Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&Element;</mo> <mi>&Omega;</mi> </mrow> </munder> <mi>w</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> </mrow> </mtd> <mtd> <mrow> <munder> <mo>&Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&Element;</mo> <mi>&Omega;</mi> </mrow> </munder> <mi>w</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>*</mo> <msup> <mrow> <mo>(</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mo>(</mo> <mrow> <mi>i</mi> <mo>,</mo> <mi>j</mi> </mrow> <mo>)</mo> <mo>)</mo> </mrow> <mn>2</mn> </msup> </mrow> </mtd> </mtr> </mtable> </mfenced> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>8</mn> <mo>)</mo> </mrow> </mrow>Wherein, w (i, j) value following the example of using bilinear interpolation, it is:W (i-1, j-2)=(1-dx) * (1-dy), w (i-1, j-1)=(1-dy), w (i-1, j)=(1-dy),W (i-1, j+1)=(1-dy), w (i-1, j+2)=(1-dy), w (i-1, j+3)=dx* (1-dy);W (i, j-2)=(1-dx), w (i, j-1)=1, w (i, j)=1, w (i, j+1)=1, w (i, j+2)=1,W (i, j+3)=dx;W (i+1, j-2)=(1-dx), w (i+1, j-1)=1, w (i+1, j)=1, w (i+1, j+1)=1,W (i+1, j+2)=1, w (i+1, j+3)=dx;W (i+2, j-2)=(1-dx) * dy, w (i+2, j-1)=dy,W (i+2, j)=dy, w (i+2, j+1)=dy, w (i+2, j+2)=dy, w (i+2, j+3)=dx*dy.
- A kind of 8. image interpolation system based on rim detection, it is characterised in that including:Coordinate calculating unit, for determining position of the interpolation pixel in original image according to the size of image after original image and interpolation Put;Direction calculating unit, for determining edge direction of the interpolation pixel in original image;Intersection point calculation unit, is configured to:When the absolute value of the slope of edge direction is not less than first threshold, calculate in original image Some rows that some rows and/or several columns are cut by the straight line that interpolation pixel and edge direction determine in interpolation neighborhood of pixels The position of intersection point and/or several columns intersection point;Edge interpolation filter unit, it is configured to enter row interpolation according to row intersection method and/or row intersection method, concrete configuration is:Utilize In one-dimensional interpolation method row intersection point according to original image and/or row intersection point neighborhood the value of pixel determine the row intersection point and/or The pixel value of row intersection point;The pixel value of row intersection point in identified interpolation neighborhood of pixels and/or row intersection point is carried out one-dimensional Filtering, obtains the value of interpolation pixel, and enters row interpolation to original image;Wherein,The selection condition of the row intersection method and/or row intersection method is:When the absolute value of the slope of edge direction is less than Second Threshold, row interpolation is entered according to row intersection method;When edge direction When the absolute value of slope is not less than three threshold values, row interpolation is entered according to row intersection method;When edge direction slope absolute value not When being less than three threshold values less than Second Threshold, then row interpolation is entered according to row intersection method and row intersection method simultaneously;The row intersection point, it is the straight line that m rows are determined by interpolation pixel and edge direction in interpolation neighborhood of pixels in original image The m row intersection point cut;Wherein, above interpolation pixel, each m/2 row intersection point in lower section;M is even number;The row intersection point, it is that n arranges the straight line by interpolation pixel and edge direction determination in interpolation neighborhood of pixels in original image The n row intersection point cut;Wherein, on the left of interpolation pixel, each n/2 in right side;N is even number;The magnitude relationship of three threshold values is:First threshold<Second Threshold<3rd threshold value.
- 9. the image interpolation system according to claim 8 based on rim detection, it is characterised in that also include:Non-edge interpolating unit, when the absolute value for the slope in edge direction is less than first threshold, according to non-edge interpolation Method enters row interpolation;Integrated unit, for result and the non-edge interpolation method obtained to the row intersection method and/or row intersection method interpolation Obtained result is merged so as to obtain the image after interpolation.
- 10. the image interpolation system according to claim 8 based on rim detection, it is characterised in that the direction calculating Unit is specifically used for:The horizontal ladder of some pixels in interpolation neighborhood of pixels in original image is calculated according to formula (2) and (3) respectively Spend gH(i, j) and vertical gradient gV(i,j):<mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>=</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>+</mo> <mn>2</mn> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>+</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>-</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>-</mo> <mn>2</mn> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>-</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>2</mn> <mo>)</mo> </mrow> </mrow><mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>=</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>+</mo> <mn>2</mn> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>+</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>-</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>-</mo> <mn>1</mn> <mo>)</mo> </mrow> <mo>-</mo> <mn>2</mn> <mo>*</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>-</mo> <msub> <mi>I</mi> <mi>L</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>3</mn> <mo>)</mo> </mrow> </mrow>Respectively according to the horizontal gradient of position of the interpolation pixel in original image and pixel in the neighborhood and vertical Gradient utilizes bilinear interpolation namely the horizontal gradient g of interpolation pixel is determined according to formula (4) and (5)H(iL,jL) and it is vertical Gradient gV(iL,jL), then the edge direction of interpolation pixel is the vertical direction in the direction of the gradient of the interpolation pixel (gV(iL,jL),-gH(iL,jL)):<mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>i</mi> <mi>L</mi> </msub> <mo>,</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>)</mo> </mrow> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>x</mi> <mo>)</mo> </mrow> <mo>*</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>+</mo> <mi>d</mi> <mi>x</mi> <mo>*</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>+</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>x</mi> <mo>)</mo> </mrow> <mo>*</mo> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>+</mo> <mi>d</mi> <mi>x</mi> <mo>*</mo> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>g</mi> <mi>H</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>4</mn> <mo>)</mo> </mrow> </mrow><mrow> <mtable> <mtr> <mtd> <mrow> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>i</mi> <mi>L</mi> </msub> <mo>,</mo> <msub> <mi>j</mi> <mi>L</mi> </msub> <mo>)</mo> </mrow> <mo>=</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>x</mi> <mo>)</mo> </mrow> <mo>*</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>+</mo> <mi>d</mi> <mi>x</mi> <mo>*</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>y</mi> <mo>)</mo> </mrow> <mo>*</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>+</mo> <mrow> <mo>(</mo> <mn>1</mn> <mo>-</mo> <mi>d</mi> <mi>x</mi> <mo>)</mo> </mrow> <mo>*</mo> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>+</mo> <mi>d</mi> <mi>x</mi> <mo>*</mo> <mi>d</mi> <mi>y</mi> <mo>*</mo> <msub> <mi>g</mi> <mi>V</mi> </msub> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>1</mn> <mo>,</mo> <mi>j</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> </mtable> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>5</mn> <mo>)</mo> </mrow> </mrow>Wherein, IL(i-1,j+1)、IL(i,j+1)、IL(i+1,j+1)、IL(i-1,j-1)、IL(i,j-1)、IL(i+1,j-1)、IL (i-1,j)、IL(i+1, j) is illustrated respectively in the pixel value of eight pixels in interpolation neighborhood of pixels in original image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510152962.3A CN104700361B (en) | 2015-04-01 | 2015-04-01 | Image interpolation method and system based on rim detection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510152962.3A CN104700361B (en) | 2015-04-01 | 2015-04-01 | Image interpolation method and system based on rim detection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104700361A CN104700361A (en) | 2015-06-10 |
CN104700361B true CN104700361B (en) | 2017-12-05 |
Family
ID=53347450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510152962.3A Active CN104700361B (en) | 2015-04-01 | 2015-04-01 | Image interpolation method and system based on rim detection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104700361B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105678700B (en) * | 2016-01-11 | 2018-10-09 | 苏州大学 | Image interpolation method and system based on prediction gradient |
CN106886981B (en) * | 2016-12-30 | 2020-02-14 | 中国科学院自动化研究所 | Image edge enhancement method and system based on edge detection |
CN108062821B (en) * | 2017-12-12 | 2020-04-28 | 深圳怡化电脑股份有限公司 | Edge detection method and currency detection equipment |
CN109993693B (en) * | 2017-12-29 | 2023-04-25 | 澜至电子科技(成都)有限公司 | Method and apparatus for interpolating an image |
CN108495118A (en) * | 2018-02-27 | 2018-09-04 | 吉林省行氏动漫科技有限公司 | A kind of 3 D displaying method and system of Glassless |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1667650A (en) * | 2005-04-08 | 2005-09-14 | 杭州国芯科技有限公司 | Image zooming method based on edge detection |
CN101197995A (en) * | 2006-12-07 | 2008-06-11 | 深圳艾科创新微电子有限公司 | Edge self-adapting de-interlacing interpolation method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7286721B2 (en) * | 2003-09-11 | 2007-10-23 | Leadtek Research Inc. | Fast edge-oriented image interpolation algorithm |
-
2015
- 2015-04-01 CN CN201510152962.3A patent/CN104700361B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1667650A (en) * | 2005-04-08 | 2005-09-14 | 杭州国芯科技有限公司 | Image zooming method based on edge detection |
CN101197995A (en) * | 2006-12-07 | 2008-06-11 | 深圳艾科创新微电子有限公司 | Edge self-adapting de-interlacing interpolation method |
Non-Patent Citations (1)
Title |
---|
手机图像插值算法研究;吴炜森;《中国优秀硕士学位论文全文数据库 信息科技辑》;20111215;第11-12页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104700361A (en) | 2015-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104700361B (en) | Image interpolation method and system based on rim detection | |
CN103996170B (en) | Image edge saw-tooth eliminating method with super resolution | |
US8494308B2 (en) | Image upscaling based upon directional interpolation | |
CN106204441B (en) | Image local amplification method and device | |
CN1319375C (en) | Image zooming method based on edge detection | |
CN101755286B (en) | Image upscaling based upon directional interpolation | |
US9105106B2 (en) | Two-dimensional super resolution scaling | |
US8340472B2 (en) | Pixel interpolation apparatus and method | |
CN104700360A (en) | Image zooming method and system based on edge self-adaptation | |
CN109191377B (en) | Image amplification method based on interpolation | |
CN107330885A (en) | A kind of multi-operator image reorientation method of holding important content region the ratio of width to height | |
US8045053B2 (en) | Video image deinterlacing apparatus and methods of performing video image deinterlacing | |
US20090226097A1 (en) | Image processing apparatus | |
CN102682424A (en) | Image amplification processing method based on edge direction difference | |
CN106169173A (en) | A kind of image interpolation method | |
CN101790069A (en) | Scale transformation method based on image edge direction | |
US8830395B2 (en) | Systems and methods for adaptive scaling of digital images | |
CN103456031B (en) | A kind of new method of area image interpolation | |
CN103646379B (en) | A kind of image magnification method and device | |
CN110349090A (en) | A kind of image-scaling method based on newton second order interpolation | |
CN102800047B (en) | Method for reconstructing super resolution of single-frame image | |
US9076232B2 (en) | Apparatus and method for interpolating image, and apparatus for processing image using the same | |
CN109325909A (en) | A kind of image magnification method and image amplifying device | |
CN102831589B (en) | A kind of method utilizing convolutional filtering and antialiasing analysis to strengthen image resolution ratio | |
JP5616014B2 (en) | Method for generating a distance representing the direction of an edge in a video picture, corresponding device, and use of the method for deinterlacing or format conversion |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20171211 Address after: 102412 Beijing City, Fangshan District Yan Village Yan Fu Road No. 1 No. 11 building 4 layer 402 Patentee after: Beijing Si Lang science and Technology Co.,Ltd. Address before: 100080 Zhongguancun East Road, Beijing, No. 95, No. Patentee before: Institute of Automation, Chinese Academy of Sciences |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220119 Address after: 519031 room 532, building 18, No. 1889, Huandao East Road, Hengqin District, Zhuhai City, Guangdong Province Patentee after: Zhuhai Jilang Semiconductor Technology Co.,Ltd. Address before: 102412 room 402, 4th floor, building 11, No. 1, Yanfu Road, Yancun Town, Fangshan District, Beijing Patentee before: Beijing Si Lang science and Technology Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
CP03 | Change of name, title or address |
Address after: Room 701, 7th Floor, Building 56, No. 2, Jingyuan North Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing 100176 (Beijing Pilot Free Trade Zone High-end Industry Zone Yizhuang Group) Patentee after: Beijing Jilang Semiconductor Technology Co., Ltd. Address before: 519031 room 532, building 18, No. 1889, Huandao East Road, Hengqin District, Zhuhai City, Guangdong Province Patentee before: Zhuhai Jilang Semiconductor Technology Co.,Ltd. |
|
CP03 | Change of name, title or address |