- 博客(11)
- 收藏
- 关注
原创 约瑟夫环c++
记录#include <iostream>using namespace std;struct MyNode{ MyNode(int a_data) :m_data(a_data), m_pNext(NULL) {} int m_data; MyNode *m_pNext;};int main(){ int n=0,k=0;...
2019-09-02 15:14:44
164
原创 迷宫的最短路径
输入N=10,M=10####S########…####……Q####…输出22const int INF=1000000;typedef pair<int,int> P;//输入char maze[MAX_N][MAX_M+1];int N,M;int sx,sy;int gx,gy;int d[MAX_N][MAX_M];int dx[4]={1...
2019-09-02 15:11:25
151
原创 tensorflow实现交叉熵
没有专门的交叉熵接口,可以用一些函数拼接成交叉熵的函数。1、reduce_mean(),求均值2、log(),3、clip_by_value(),将张量的数值限定到一定的范围内(用来避免运算的错误)cross_entropy=-tf.reduce_mean(y_*tf.log(tf.clip_by_value(y,1e-10,1.0)))//这里的*是矩阵内元素相乘,matmul()是...
2019-08-18 15:56:49
138
原创 支持向量机
#include <stdio.h> #include <time.h> #include <opencv2/opencv.hpp> #include <opencv/cv.h> #include <iostream> #include <opencv2/core/core.hpp> #include ...
2019-01-02 13:21:15
99
转载 OpenCV mat 的本地保存为xml格式与读取
保存mat res; FileStorage fs("C:\\Users\\Administrator\\Desktop\\xun\\ex.xml", FileStorage::WRITE); fs << "ex" << res; fs.release();读取FileStorage fs("C:\\Users\\Administrator\\Deskt...
2018-12-29 09:46:42
1885
原创 在界面关闭的时候传输数据
界面二关闭的时候数据传回界面一界面一string cc= string.Empty; private void button1_Click(object sender, EventArgs e) { Form2 f2 = new Form2(); f2.ShowDialog(); if (f...
2018-10-17 10:15:44
125
原创 c# 操作xml文件,添加、删除节点
/// <summary> /// 删除当前选择节点 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private
2018-10-17 09:55:08
3152
原创 图像采集,数据库连接搜索
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Thr...
2018-10-08 09:14:43
533
原创 打开文件获取文件名,正则表达式获取特定字符
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Tex...
2018-10-08 09:12:25
420
原创 c#调用MATLAB实现方法报告
c#调用MATLAB实现方法报告目的:在VS里新建一个窗体界面,通过其中一个按钮来调用在MATLAB里编写的函数。工具: MATLAB2016aVS 20101.实现思路:首先对MATLAB进行编译器设置,通过deploytool工具将MATLAB中的.m文件生成.dll文件,在VS“引用”添加两个.dll文件,写入代码调用。2.实现效果展示:MATLAB代码function...
2018-09-21 13:58:51
1044
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人