A Color Interpolation Method Based on Edge Detection
An edge detection and color interpolation technology, applied in the field of image processing, can solve the problems of lowering the quality of collected images, complicated calculation process, and low accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0166] Input an image sampled in Bayer format arranged according to "RG-GB", such as Figure 7 shown.
[0167] The process of finding the green pixel for the sampling point of the known red pixel R or blue pixel B is:
[0168] (1) Select a 5×5 pixel window centered on the pixel to be obtained, and detect the edge of the image in the 5×5 window.
[0169] Such as Figure 8 As shown, taking the 5×5 window of the central sampling point R(3,3) as an example, the edge detection operator for interpolating the green component is:
[0170] Hg(3,3)=|G(3,2)-G(3,4)|+|2R(3,3)-R(3,1)-R(3,5)|,
[0171] Vg(3,3)=|G(2,3)-G(4,3)|+|2R(3,3)-R(1,3)-R(5,3)|
[0172] When Hg(3,3)Vg(3,3), the center point is judged R(3,3) is at the vertical edge; when Hg(3,3)=Vg(3,3), it is determined that the central point R(3,3) is not at the edge.
[0173] Such as Figure 9 As shown, taking the 5×5 window of the central sampling point B(4, 4) as an example, the edge detection operator for interpolating the g...
Embodiment 2
[0194] The specific process of finding the blue pixel B from the sampling point of the known red pixel R and the red pixel R from the sampling point of the known blue pixel B is as follows:
[0195] (1) Select a 5×5 pixel window centered on the pixel to be obtained, and detect the edge of the image in the 5×5 window.
[0196] Such as Figure 8 As shown, taking the 5×5 window of the central sampling point R(3,3) as an example, the edge detection operator for interpolating the blue component is:
[0197] Hb(3,3)=|B(2,2)-B(4,4)|+|2g(3,3)-g(2,2)-g(4,4)|,
[0198] Vb(3,3)=|B(2,4)-B(4,2)|+|2g(4,4)-g(2,4)-g(4,2)|
[0199] Among them, B(2, 4) is a pixel whose sampling point is known, and g(3, 3) is a pixel obtained by interpolation.
[0200] When Hb(3,3)Vb(3,3 ), it is judged that the center point R(3,3) is on the edge of the lower left and right upper diagonal; when Hb(3,3)=Vb(3,3), it is judged that the center point R(3,3) is not in the edge.
[0201] Such as Figure 9 As sho...
Embodiment 3
[0223] The specific process of finding the red pixel R and the blue pixel B from the sampling point of the known green pixel G is:
[0224] (1) Select a 5×5 pixel window centered on the pixel to be sought, and calculate the red component R or blue component B missing from the pixel to be sought within the 5×5 window.
[0225] Such as Figure 10 As shown, taking the 5×5 window of the central sampling point G(3,4) as an example, interpolating red and blue pixels, then:
[0226] r ( 3,4 ) = R ( 3,3 ) + R ( 3,5 ) 2 + 2 g ( 3,4 ) - g ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
