File Exchange

image thumbnail

Bilinear Interpolation

version 1.0 (1.57 KB) by

Reconstruction of an RGB image.

13 Downloads

Updated

View License

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.

Comments and Ratings (12)

bokki Chen

great

anum eman

Meng

Meng (view profile)

dd

dd (view profile)

FEI GUO

this code really helped me a lot~~Thx~

Pratik Mehta

its good enough for understanding

Jason JUEHAO

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

Tom Shih

Thanks very much

jac ren

fine

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.

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.

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

1.0

BSD License added

MATLAB Release
MATLAB 6.5 (R13)

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

» Watch video