算法
4月16!
平时记录用,不喜忽喷
展开
-
ITK 点集配准svd
最后得到的R T 就是配准后的结果;原创 2024-07-04 09:46:43 · 102 阅读 · 0 评论 -
一元四次方程解法,亲测ok
自己写的不行,这个博主的完全ok,赞!原创 2023-12-12 14:12:09 · 208 阅读 · 0 评论 -
IIR 滤波器的C++实现 亲测ok
【代码】IIR 滤波器的C++实现 亲测ok。原创 2023-11-30 11:10:59 · 327 阅读 · 0 评论 -
opencv grab cut
//GrabCut程序#include <iostream>#include <opencv2/opencv.hpp>#include <opencv2/highgui/highgui.hpp>#include <opencv2/imgproc/imgproc.hpp>using namespace cv;using namespace std;void onMouse(int event, int x, int y, int flags, .转载 2021-04-21 17:05:45 · 101 阅读 · 0 评论 -
检测vector是否有交集
#include <iostream> // std::cout#include <algorithm> // std::find_if#include <vector> // std::vectorauto test(const std::vector< itk::Index<3>>& va, const std::vector< itk::Index<3>>& vb)..转载 2021-03-27 10:41:18 · 316 阅读 · 0 评论 -
牛顿法解多项式的根
给个初值,用牛顿法解多项式的根;#include<iostream>#include<math.h>#include<vector>using namespace std;struct Newton {public: double ini_para; // 最高n次,系数列表,初值 double resultNewton(int n,std::vector<double> coffer,d...原创 2021-03-01 11:48:39 · 380 阅读 · 0 评论 -
三维坐标点拟合球(matlab and C )
三维坐标点读取.csv文件;拟合一个球,输出球中心和半径%最小二乘的方法进行拟合clear all;close allclc;R = 2; %球面半径x0 = 100; %球心x坐标y0 = 1; %球心y坐标z0 = 76; %球心z坐标points = load( '2.csv');[mm,nn]=size(points);x=points(:,1);y=points(:,2);z=points(:,3);% % 加.原创 2021-01-15 15:04:08 · 3899 阅读 · 0 评论 -
空间四点确定球心坐标
不在同一平面上的四个点确定一个球: void getCircle3d(const cv::Point3d& point1, const cv::Point3d& point2, const cv::Point3d& point3, const cv::Point3d& point4, cv::Point3d& center, double &radius) { std::vector<double> p1 = { poin.原创 2021-01-05 13:34:59 · 3152 阅读 · 3 评论 -
李群李代数
大师兄!SLAM 为什么需要李群与李代数? (qq.com)原创 2020-12-05 15:44:46 · 119 阅读 · 0 评论 -
从旋转向量到旋转矩阵的转化公式
这个博客是公式详解:https://www.cnblogs.com/xpvincent/archive/2013/02/15/2912836.html Eigen::Matrix3d constructMatrix(Eigen::RowVector4d rotationVector) { double x = rotationVector(0, 0); double y = rotationVector(0, 1); double z...原创 2020-10-22 11:54:18 · 652 阅读 · 0 评论 -
SVD配准 eigen库
q.transpose() = R * p.transpose() + tTemp ; void registerSVD(Eigen::Matrix3d &p, Eigen::Matrix3d &q, Eigen::Matrix3d &R, Eigen::Matrix3d &tTemp) { Eigen::Vector3d pc = p.colwise().mean(); Eigen::Vector3d q...原创 2020-10-22 11:51:16 · 296 阅读 · 0 评论 -
三维向量求夹角(0-360)
double Cross( Eigen::Vector3d a, Eigen::Vector3d b){ double theta = atan2(a.cross(b).norm(), a.transpose() * b); //规定正方向(0,0,1) Eigen::Vector3d direction(0,0,1); double z = a.cross(b).transpose() * direction; return z >= 0.原创 2020-05-19 17:49:10 · 5663 阅读 · 0 评论 -
机器人
<div id="article_content" class="article_content clearfix"> <link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-211130ba7a.css"> ...转载 2020-04-21 09:15:53 · 567 阅读 · 0 评论 -
C++ 排列
n个数排列:例如:1 2 3 4 有多少种排列方法?分别是什么?#include <iostream>#include <stdlib.h>#include <stdio.h>#include <memory.h>#include <vector>using namespace std;void P...原创 2019-08-29 11:36:28 · 334 阅读 · 0 评论 -
C++ 组合(从n个数中选m个的组合有哪些?)
从n个数中选m个,组合有哪些?只输出组合,不进行排列!(如果想排列,博客中有针对某一个组合进行专门排列的:https://blog.csdn.net/qq_35007834/article/details/100134635)#include <stdio.h>#include <cstring>#include <fstream>#inc...原创 2019-08-29 17:35:48 · 2200 阅读 · 0 评论 -
opencv 求质心理论指导
https://www.cnblogs.com/muffled/p/3344500.html原图转化为二值图像再求质心:#include "stdio.h"#include "stdlib.h"#include <iostream>#include <opencv2/opencv.hpp>#include <opencv2/highgui/high...原创 2019-08-22 09:41:45 · 817 阅读 · 0 评论 -
肺分割
https://blog.csdn.net/tianjinyikedaxue/article/details/89951069转载 2019-08-01 11:43:51 · 1854 阅读 · 0 评论 -
距离变换
细化,提取质心https://blog.csdn.net/z827997640/article/details/80461240原创 2019-07-30 10:44:06 · 324 阅读 · 0 评论 -
数据类型取值范围
原创 2019-07-10 15:50:09 · 538 阅读 · 0 评论