AFdemosaick

所属分类:图形图像处理
开发工具:matlab
文件大小:1456KB
下载次数:34
上传日期:2008-12-29 12:41:53
上 传 者ivychang
说明:  数码相机的图像恢复程序,从CCD数据恢复出完整的三色图像
(Digital camera image restoration process, from the CCD data recovery a complete three-color image)

文件列表:
AFdemosaick (0, 2006-05-18)
AFdemosaick\AFbilinear.m (2423, 2006-04-25)
AFdemosaick\AFdemosaick.m (3210, 2006-04-25)
AFdemosaick\AFinterp.m (2457, 2006-04-25)
AFdemosaick\AFweight.m (1995, 2006-04-25)
AFdemosaick\Demosaicked.bmp (1179702, 2004-12-06)
AFdemosaick\Original.bmp (1179702, 2003-01-06)
imfilter2.m (5107, 2006-10-04)

% **************************************************** % * Adaptive Filtering Demosaicking Algorithm * % **************************************************** % Written by: Lian Naixiang (pg03806***0@ntu.edu.sg) % Packed by: Chang Lanlan (chan0069@ntu.edu.sg) % Designed by: Lian Naixiang, Chang Lanlan, and Prof. Tan Yap Peng (eyptan@ntu.edu.sg) % % out = AFdemosaick(in,lp_flt) % in input image, ranges 0~255 (it has full R,G,B components) % lp_flt low pass filter for green CFA pixels % out demosaicked image by adaptive filtering demosaicking algorithm % % Files: AFdemosaick main algorithm % AFweight calculate adaptive weight for each pixel % AFbilinear bilinear interpolation % AFinterp adaptive interpolation % % imfilter2 filtering function for 2-D images, for researchers without Image Processing Toolbox. Provided by Johann Schoonees [j.schoonees@irl.cri.nz]. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% To run the adaptive filtering demosaicking algorithm, out = AFdemosaick(in,lp_flt) in input image with full RGB values lp_flt low pass filter for green CFA pixels out output demosaicked image Default low pass filter lp_flt = [ 0 1 -2 1 0; ... 1 -4 6 -4 1; ... -2 6 56 6 -2; ... 1 -4 6 -4 1; ... 0 1 -2 1 0]/*** is our designed filter for extracting luminance component at green pixels. You can try your own designed filter by input lp_flt. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Please email us for questions and comments. This is experimental software. It is provided for noncommercial research purposes only. Use at your own risk. No warranty is implied by this distribution. Copyright 2006, Lian Naixiang, Chang Lanlan and Tan Yap Peng. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any non-commercial purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ANY PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

近期下载者

相关文件


收藏者