Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Bilinear Interpolation

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

Bilinear Interpolation

by

 

11 Jun 2004 (Updated )

Reconstruction of an RGB image.

| Watch this File

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
/
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (12)
01 Jun 2016 bokki Chen

great

Comment only
11 Nov 2014 anum eman  
26 Feb 2013 Meng

Meng (view profile)

 
25 Feb 2013 dd

dd (view profile)

 
02 Nov 2011 FEI GUO

this code really helped me a lot~~Thx~

29 Sep 2009 Pratik Mehta

its good enough for understanding

16 Aug 2009 Jason JUEHAO

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.

Updates
31 Mar 2016 1.0

BSD License added

Contact us