摘要: 重映射,就是把一幅图像中某位置的像素放置到另一个图片指定位置的过程。 为了完成映射过程, 我们需要获得一些插值为非整数像素的坐标,因为源图像与目标图像的像素坐标不是一一对应的。 一般情况下,我们通过重映射来表达每个像素的位置 (x,y), 像这样 : g(x,y) = f ( h(x,y) ) 在这 阅读全文
posted @ 2019-12-23 20:30 无左无右 阅读(4007) 评论(0) 推荐(0)
摘要: 1. ('scaled=', array([[0.01791432, 0.00399722, 0.97808844], [0.04980332, 0.04506391, 0.90513283]], dtype=float32)) ('scaled2=', array([[0.21747023, 0. 阅读全文
posted @ 2019-12-19 19:35 无左无右 阅读(162) 评论(0) 推荐(0)
摘要: ##1. 点旋转 vector<Point> rot_pt(vector<Point> &v_pt,const cv::Mat &map_matrix) { //std::cout<<"map_matrix="<<map_matrix<<std::endl; float *map = (float 阅读全文
posted @ 2019-12-19 13:36 无左无右 阅读(1786) 评论(0) 推荐(2)
摘要: Params 'pad_out_{}_' are deprecated. Please declare upsample height and width useing the upsample_h, upsample_w parameters. 查了一下,segnet的长宽需要设成32的倍数,要不 阅读全文
posted @ 2019-12-14 13:41 无左无右 阅读(455) 评论(0) 推荐(0)
摘要: example 1: 阅读全文
posted @ 2019-12-10 13:43 无左无右 阅读(337) 评论(0) 推荐(0)
摘要: 一张图对应txt 45.0,1400.0,320.0,1317.0,3387.0,1447.0,3575.0,1537.0,3537.0,1592.0,3367.0,1640.0,287.0,1502.0 drawContours这个函数接受的contours格式搞死我了,一定要这样arr = np 阅读全文
posted @ 2019-11-29 10:44 无左无右 阅读(233) 评论(0) 推荐(0)
摘要: 参考链接如下: 原理:https://max.book118.com/html/2019/0313/8102130101002012.shtm 代码:https://wenku.baidu.com/view/b3f91c3467ec102de2bd89a3.html 例如原理链接里面的一题: 跑代码 阅读全文
posted @ 2019-11-25 21:03 无左无右 阅读(4865) 评论(0) 推荐(0)
摘要: 应用场景: 文件夹img,txt, img存放的是原图,txt存放的是img中图片名字一样的.txt。 其中一个txt样例如下: 一个框一行 阅读全文
posted @ 2019-11-19 11:00 无左无右 阅读(704) 评论(0) 推荐(0)
摘要: .pro function.h function.cpp main.cpp 阅读全文
posted @ 2019-11-14 11:03 无左无右 阅读(413) 评论(0) 推荐(0)
摘要: 效果图:键盘控制各个x,y,z,还有fov数值 一开始的w, h = img.shape[0:2]这里宽、高错乱,原因未知,只能这么用 python版本的: c++ 版本: include include include "opencv2/opencv.hpp" using namespace st 阅读全文
posted @ 2019-10-25 11:30 无左无右 阅读(2045) 评论(0) 推荐(0)