上一页 1 2 3 4 5 6 ··· 68 下一页
摘要: from mxnet import nd 创建向量 #创建行向量 x=nd.arange(12) print(x) #输出x的size print(x.shape) #把向量x的形状改成(3,4) X = x.reshape(3,4) print(X) Y = x.reshape(3,-1) pri 阅读全文
posted @ 2020-03-31 20:50 喵小喵~ 阅读(866) 评论(0) 推荐(0) 编辑
摘要: Energy-Based Models(EBM) 基于能量的概率模型将一个标量能量与相关变量的每个配置相关联。学习相当于修改能量函数,能量达到最佳性质 。例如,我们希望合理的或理想的结构具有低能量。基于能量的概率模型通过能量函数定义概率分布,如下: Z是正则化系数,也叫做配分函数: 基于能量的模型可 阅读全文
posted @ 2020-03-26 18:03 喵小喵~ 阅读(379) 评论(0) 推荐(0) 编辑
摘要: ** WIN10系统下OSG+VS2017或者vs2019环境搭建**一、资料准备1、OSG源码下载地址:http://www.openscenegraph.org/index.php/download-section/stable-releases(OpenSceneGraph-3.4.1 rel 阅读全文
posted @ 2020-03-26 15:02 喵小喵~ 阅读(7127) 评论(2) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Fri Jul 13 09:17:41 2018 @author: wzy """ from matplotlib.font_manager import FontProperties import matplotlib. 阅读全文
posted @ 2020-03-21 14:47 喵小喵~ 阅读(315) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import matplotlib.pyplot as plt from sklearn import datasets from sklearn import tree # 生成所有测试样本点 def make_meshgrid(x, y, h=.02): x_min, x_max = x.min() - 1, x.max() + 1 y_min, y_ma 阅读全文
posted @ 2020-01-08 15:08 喵小喵~ 阅读(385) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import matplotlib.pyplot as plt from sklearn import datasets from sklearn.naive_bayes import GaussianNB import matplotlib #生成所有测试样本点 def make_meshgrid(x,y,h=0.02): x_min,x_max... 阅读全文
posted @ 2020-01-07 14:08 喵小喵~ 阅读(429) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/opencv.hpp> #include <iostream> #include <math.h> using namespace cv; Mat src, dst, map_x, map_y; const char* OUTPUT_TITLE = "remap demo"; int index = 0; void update_map(void); int m 阅读全文
posted @ 2019-12-13 13:22 喵小喵~ 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/opencv.hpp> #include <iostream> #include <math.h> using namespace cv; Mat src, dst, map_x, map_y; const char* OUTPUT_TITLE = "remap demo"; int index = 0; void update_map(void); int m 阅读全文
posted @ 2019-12-12 16:47 喵小喵~ 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 方法1: 2.所以我们可以以如下方式进行投票: 遍历图像上的所有像素点,选取不同的半径进行投票,选择投票数超过阈值的那个像素点作为圆心,如下图所示: 缺点:计算量太大 方法二:霍夫梯度法 原理: 如下图所示: 圆的边缘点切线的垂直方向,也就是梯度方向过圆点,所以我们可以遍历图像的所有点,对每个像素点 阅读全文
posted @ 2019-12-12 13:03 喵小喵~ 阅读(1836) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/qq_15971883/article/details/80583364 image: 必须是二值图像,推荐使用canny边缘检测的结果图像; rho: 线段以像素为单位的距离精度,double类型的,推荐用1.0 theta: 线段以弧度为单位的角 阅读全文
posted @ 2019-12-11 13:55 喵小喵~ 阅读(339) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 68 下一页