Code covered by the BSD License

### Highlights from Bilinear Interpolation

4.0
4.0 | 8 ratings Rate this file 10 Downloads (last 30 days) File Size: 1.57 KB File ID: #5219 Version: 1.0

# Bilinear Interpolation

### Florian Jousset (view profile)

11 Jun 2004 (Updated )

Reconstruction of an RGB image.

File Information
Description

In digital photography the red, green and blue values are not sampled at the same position. We can use demosaicing to reconstruct a "regular" RGB image.
This program is using bilinear interpolation for the reconstruction.

Required Products Image Processing Toolbox
MATLAB release MATLAB 6.5 (R13)
MATLAB Search Path
`/`
01 Jun 2016 bokki Chen

### bokki Chen (view profile)

great

Comment only
11 Nov 2014 anum eman

26 Feb 2013 Meng

25 Feb 2013 dd

### dd (view profile)

02 Nov 2011 FEI GUO

### FEI GUO (view profile)

this code really helped me a lot~~Thx~

29 Sep 2009 Pratik Mehta

### Pratik Mehta (view profile)

its good enough for understanding

16 Aug 2009 Jason JUEHAO

### Jason JUEHAO (view profile)

Thanks very much!
That will give me a great help to understand bilinear interpolation algorithm!
Keep moving!

Comment only
01 Nov 2007 Tom Shih

Thanks very much

13 Aug 2007 jac ren

fine

Comment only
09 Mar 2006 Marcelo Soto Thompson

Basic but efficient function! A similar function is part of the Image Acquisition Toolbox (which I haven't tried)

Just add a ";" to the line "R = R + R1 + R2"
or you'll end upp waiting forever. ;-)

Also, for larger images you might want to clear variables (im, B1, B2, R1, R2) along the function to avoid the omnipresent "Out of memory" errors.

09 Mar 2006 Marcelo Soto Thompson

Basic but efficient function! A similar function is part of the Image Acquisition Toolbox (which I haven't tried)

Just add a ";" to the line "R = R + R1 + R2
" or you'll end upp waiting forever. ;-)

Also, for larger images you might want to clear variables (im, B1, B2, R1, R2) along the function to avoid the omnipresent "Out of memory" errors.

Comment only
14 Jun 2004 Paul Lee

Bi-linear interpolation is the most primitive demosaicing algorithm. Educational use is fine, but it is not suitable for high-end image processing.