随笔分类 -  代码

摘要:超分辨率算法代码 POCS算法,凸集投影法。 pocs.m,没有调用的代码,没看懂。。只有这个函数。。抱歉。 【其他】貌似这个里面有,可以试一下,没下载过 凸集投影法(POCS)超分辨重建算法MATLAB实现 https://download.csdn.net/download/styyzxjq20 阅读全文
posted @ 2018-12-20 18:57 ostartech 阅读(1065) 评论(0) 推荐(0)
摘要:文件路径: main.m: monarch: 耗时: psnr由28.4249->30.1206,提升了1.6957。 阅读全文
posted @ 2018-12-20 17:39 ostartech 阅读(307) 评论(0) 推荐(0)
摘要:文件路径: 滤波算法main.m: 记录:有些忘了,貌似是想对比滤波+插值和插值+滤波? [PSNR_ori, MSE_ori] = psnr(rima, ima_ori);[PSNR_nlm, MSE_nlm] = psnr(fima, ima_ori); 分别计算的是单纯降采样后又插值的psnr 阅读全文
posted @ 2018-12-20 17:15 ostartech 阅读(753) 评论(0) 推荐(0)
摘要:图像大小:640×512 8位灰度图 效果: 24位: 阅读全文
posted @ 2018-11-21 17:24 ostartech 阅读(3117) 评论(0) 推荐(0)
摘要:x=sqrt(a^2*(1-y^2/b^2)); r=ceil(3+2*y); x=ceil(x); if r==1 I(m/2,m/2+x)=155+100*y; elseif r==2 I(m/2:1:m/2+1,m/2+x:1:m/2+1+x)=155+100*y; elseif r=... 阅读全文
posted @ 2018-09-10 17:08 ostartech 阅读(250) 评论(0) 推荐(0)
摘要:已改为:圆形目标+5*5均值滤波模糊处理 存在问题:以Y轴为自变量(表示观测远近);会产生突变 后半段改为存成MP4型视频文件: 阅读全文
posted @ 2018-09-04 16:16 ostartech 阅读(224) 评论(0) 推荐(0)
摘要:扩展为存入20*20的分块,需要改动的地方: 预设blockSrc[ ]扩展为400。 存入时,分块改为20*20的循环。 映射后的块初始点本身为(16*block_numx-16,16*block_numy-16),扩展为20*20是周围补了两圈,因此块初始点应该行列各减2,变为(16*block 阅读全文
posted @ 2018-08-02 20:08 ostartech 阅读(330) 评论(0) 推荐(0)
摘要:RotateZoom.cpp查表方式图像旋转代码:构建表。 -S src3.bmp 22.5 2 tar 阅读全文
posted @ 2018-08-01 20:32 ostartech 阅读(250) 评论(0) 推荐(0)
摘要:测试1:-S src3.bmp 22.5 2 tar pbTag[y*newWidth+x]=blockSrc[yOr*16+xOr]; 处理后图起始点(250,250),区域250×250区域; 直接赋值过去,由于图像是放大二倍,效果近似最近邻插值。 测试2:加入4×4区域内边界判别 边界待定值赋 阅读全文
posted @ 2018-07-25 19:06 ostartech 阅读(327) 评论(0) 推荐(0)
摘要:// RotateZoom.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "RotateZoom.h" #ifdef _DEBUG #define new DEBUG_NEW #endif #include #include // The one... 阅读全文
posted @ 2018-07-25 17:15 ostartech 阅读(289) 评论(0) 推荐(0)
摘要:16x16分块 阅读全文
posted @ 2018-07-19 20:48 ostartech 阅读(296) 评论(0) 推荐(0)
摘要:前一小段是时钟: 后一段是百度统计,但是显示不出来。 网站概况 - 百度统计 https://tongji.baidu.com/web/25880379/overview/index 趋势分析 - 百度统计 https://tongji.baidu.com/web/25880379/trend/ti 阅读全文
posted @ 2018-07-06 20:53 ostartech 阅读(2820) 评论(0) 推荐(0)
摘要:20180622代码加入随意变换图像大小 批处理框架先不看:-B src3.bmp 10 1 30 2 0.1 3 tar.bmp src2.bmp 37.5 2.1 tar 在批处理框架中: 阅读全文
posted @ 2018-06-22 11:58 ostartech 阅读(199) 评论(0) 推荐(0)
摘要:// RotateZoom.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "RotateZoom.h" #ifdef _DEBUG #define new DEBUG_NEW #endif #include #include // The on... 阅读全文
posted @ 2018-06-14 19:24 ostartech 阅读(193) 评论(0) 推荐(0)
摘要:双三次插值C代码(利用opencv) phasecubic2.cpp D:\文件及下载相关\文档\Visual Studio 2010\Projects\phasecubic2\phasecubic2 阅读全文
posted @ 2018-06-08 16:41 ostartech 阅读(1400) 评论(0) 推荐(0)
摘要:point-position2 初步完善版。 不再使用eigen库,行列式直接计算得出结果。判断共面异面分别处理。 先提取双站获得图像的匹配特征点,由双站位置信息解析目标位置。 阅读全文
posted @ 2018-06-02 11:58 ostartech 阅读(454) 评论(0) 推荐(0)
摘要:直接使用Mat的构造函数,把指针的位置赋给下面中的data就OK了: Mat(int rows, int cols, int type, void* data, size_t step=AUTO_STEP); 代码为matTest.cpp 运行结果: Mat(int _rows, int _cols 阅读全文
posted @ 2018-05-30 15:53 ostartech 阅读(14000) 评论(0) 推荐(0)
摘要:// phaseinter.cpp : 定义控制台应用程序的入口点。 #include "stdafx.h" #include #include #include "opencv2/core/core.hpp" #include "opencv2/features2d/features2d.hpp" #include "opencv2/highgui/highgui.hpp" #includ... 阅读全文
posted @ 2018-05-24 19:05 ostartech 阅读(219) 评论(0) 推荐(0)
摘要:代码存在问题:主要问题是F滤波器的类型上。 OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)size.p[0] && (unsigned)(i1*DataType<_Tp>::channels 阅读全文
posted @ 2018-05-24 11:39 ostartech 阅读(537) 评论(0) 推荐(0)
摘要:calc.m 阅读全文
posted @ 2018-05-21 22:18 ostartech 阅读(282) 评论(0) 推荐(0)