No BSD License  

Highlights from
Bilinear Interpolation

3.8

3.8 | 5 ratings Rate this file 80 Downloads (last 30 days) File Size: 1.57 KB File ID: #5219

Bilinear Interpolation

by Florian Jousset

 

11 Jun 2004 (Updated 15 Jun 2004)

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)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
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.

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.

13 Aug 2007 jac ren

fine

01 Nov 2007 Tom Shih

Thanks very much

16 Aug 2009 Jason JUEHAO

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

29 Sep 2009 Pratik Mehta

its good enough for understanding

02 Nov 2011 FEI GUO

this code really helped me a lot~~Thx~

Please login to add a comment or rating.
Updates
15 Jun 2004

Inversion of the green and the blue channel

Tag Activity for this File
Tag Applied By Date/Time
application Florian Jousset 22 Oct 2008 07:23:24
demosaicing Florian Jousset 22 Oct 2008 07:23:24
bilinear interpolation Florian Jousset 22 Oct 2008 07:23:24
rgb image Florian Jousset 22 Oct 2008 07:23:24
digital photography Florian Jousset 22 Oct 2008 07:23:24
i Florian Jousset 22 Oct 2008 07:23:24
bilinear interpolation andreia 07 Jan 2010 03:28:50
digital photography andreia 07 Jan 2010 08:32:34
bilinear interpolation christina sfika 26 Sep 2011 07:18:37
application krish sam 17 Nov 2011 07:32:49
application Superb 27 Feb 2012 23:39:55

Contact us at files@mathworks.com