资源简介
基于NSCT和HSI变换的图像融合源码。下载解压后可以直接运行。
代码片段和文件信息
/******************************************************************
* atrousc.c - Written by Arthur Cunha. This routine builds up on
* zconv2D_OS.c written by Jason Laska
*
* Inputs: x - A 2D signal
* h - 2D filter
* m - separable upsampling matrix
*
* Outputs: y - 2D result of convolution with filter
* upsampled by a m only the ‘valid‘ part is returned.
* Similar to conv2(xh‘valid‘) where h is the upsampled
* filter.
*
*
*
* Usage: y = zconv2D_O(xhm);
*
* Notes: This function does not actually upsample the filter
* it computes the convolution as if the filter had been
* upsampled. This is the ultimate optimized version.
* Further optimized for separable (diagonal) upsampling matrices.
*
* This is a MEX-FILE for matlab
*
/********************************************************/
#include “mex.h“
#include
//Constants for matlab interfacing
#define OUT plhs[0]
#define SIGNAL prhs[0] //flip and shift
#define FILTER prhs[1] //stationary
#define MMATRIX prhs[2]
//MACRO for converting positions to linear
#define LINPOS(rowcolcollen) (row*collen)+col
void mexFunction(int nlhs mxArray *plhs[] int nrhs const mxArray *prhs[])
{
//Declarations
double *FArray*SArray*outArray*M;
/* FArray - Filter coefficients
SArray - Signal coefficients
outArray - Output coefficients
M - upsampling matrix */
int SColLengthSRowLengthFColLengthFRowLengthO_SColLengthO_SRowLength;
int SFColLengthSFRowLength;
int n1n2l1l2k1k2f1f2 kk2 kk1;
double sum;
int M0M3sM0sM3;
//Get the input sizes
SColLength = mxGetM(SIGNAL);
SRowLength = mxGetN(SIGNAL);
FColLength = mxGetM(FILTER);
FRowLength = mxGetN(FILTER);
SFColLength = FColLength-1;
SFRowLength = FRowLength-1;
//Get The Data
FArray = mxGetPr(FILTER);
SArray = mxGetPr(SIGNAL);
M = mxGetPr(MMATRIX);
M0 = (int)M[0];
M3 = (int)M[3];
sM0 = M0-1;
sM3 = M3-1;
// Corrected Lengths
O_SColLength = SColLength - M0*FColLength + 1;
O_SRowLength = SRowLength - M3*FRowLength + 1;
//Make output size and Allocate out vector
OUT = mxCreateDoubleMatrix(O_SColLength O_SRowLength mxREAL);
outArray = mxGetPr(OUT); //outArray is new vector
/* Convoluyion loop */
for (n1=0;n1 for (n2=0;n2 sum=0;
kk1 = n1 + sM0;;
for (k1=0;k1 kk2 = n2 + sM3;
for (k2=0;k2 f1 = SFRowLength - k1; /* flipped index */
f2 = SFColLength - k2;
sum+= FArray[LINPOS(f1f2FColLength)] * SArray[LINPOS(kk1kk2SColLength)];
kk2+=M3;
}
kk1+=M0;
}
outArray[LINPOS(n1n2O_SColLength)] = sum;
}
}
return;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 98278 2011-03-25 13:49 NSCT+HSI\1831i.bmp
文件 98278 2011-03-25 13:49 NSCT+HSI\1831v.bmp
文件 44219 2011-05-04 13:44 NSCT+HSI\457155c8db1e3ea9c8176812.jpg
文件 199823 2011-05-02 22:18 NSCT+HSI\91eff1fee0fdfa724e4aea32.jpg
文件 2969 2004-10-17 16:42 NSCT+HSI\atrousc.c
文件 7168 2004-10-17 16:45 NSCT+HSI\atrousc.dll
文件 8664 2005-01-24 21:51 NSCT+HSI\atrousc.mexmac
文件 1234 2005-11-03 09:10 NSCT+HSI\atrousdec.m
文件 19406 2004-09-09 15:01 NSCT+HSI\atrousfilters.m
文件 1012 2004-10-17 16:45 NSCT+HSI\atrousrec.m
文件 269 2011-03-11 15:26 NSCT+HSI\avgrad.m
文件 42561 2011-05-02 22:33 NSCT+HSI\can.jpg
文件 44219 2011-05-04 13:45 NSCT+HSI\can1.jpg
文件 231 2011-03-11 15:26 NSCT+HSI\CE.m
文件 455 2011-04-25 16:16 NSCT+HSI\CEN.m
文件 3212 2011-04-21 22:59 NSCT+HSI\decdemo.asv
文件 3217 2011-04-21 22:41 NSCT+HSI\decdemo.m
文件 1495 2004-12-22 22:48 NSCT+HSI\dfbdecdemo.m
文件 13234 2004-10-18 12:28 NSCT+HSI\dfilters.m
文件 2607 2004-12-22 21:26 NSCT+HSI\dmaxflat.m
文件 172626 2011-05-02 22:21 NSCT+HSI\e6ac1bc184fb0284d00060ec.jpg
文件 1103 2003-04-10 11:30 NSCT+HSI\efilter2.m
文件 1861 2003-11-06 00:25 NSCT+HSI\extend2.m
文件 80941 2011-05-05 09:04 NSCT+HSI\F.fig
文件 18145 2011-05-05 09:07 NSCT+HSI\Ffusion.jpg
文件 80941 2011-05-04 09:52 NSCT+HSI\figure1.fig
文件 18162 2011-05-06 23:47 NSCT+HSI\figure1.jpg
文件 230300 2011-05-04 09:58 NSCT+HSI\figure2.fig
文件 22507 2011-05-06 23:47 NSCT+HSI\figure2.jpg
文件 249577 2011-05-05 09:04 NSCT+HSI\Frgb.fig
............此处省略40个文件信息
相关资源
- 数字处理中 图像融合实验源图片
- Image registration pdf 图像融合 英文版
- 图像融合 CNN.zip
- 多尺度稀疏 图像融合.zip
- 高斯图像融合
- 图像融合算法大全 image fusion
- 多聚焦图像融合算法的研究
- openg多光谱图像融合
- 很不错的图像融合VC程序!
- 图像特征级融合
- 红外图像与可见光图像融合技术研究
- 基于NSCT 与模糊逻辑的图像融合方法
- PCA图像融合源码
- 多曝光图像融合基于显著性
- 医疗图像 可用于图像融合
- 高光谱图像融合,可直接运行
- 红外与可见光图像融合实验素材
- 遥感图像融合之加权融合
- 算法设计与分析-第2版-屈婉玲著
- 图像融合+质量评价
-
OCTEC公司图像融合A general fr
amework - 两组红外-可见光视频资源,用于图像
- imagefusion网站图像融合素材
- 图像融合源代码(多种算法可对比)
- slam算法的论文几篇
- 基于小波分解的图像融合算法的改进
- ImageFusion.zip
- 图像融合,像素级遥感图像融合算法
- 多光谱图像与全色图像的像素级融合
- 图像融合小波变换
评论
共有 条评论