- 博客(10)
- 收藏
- 关注
原创 python如何安装torch详细步骤
以下步骤亲测有效(1)确定自己的python版本import sysprint(sys.prefix)print(sys.executable)使用python运行此代码 得到python的版本(2)下载torcha.如何选择python版本对应的torchcp37表示python版本是3.7的win amd64表示python是64位的b.这里以Python3.7.0对应的torch-1.4.0+cpu-cp37-cp37m-win_amd64.whl为例下载链接https://
2020-08-02 20:54:54
37726
11
原创 BMP图片加马赛克C语言C++超简单
首先来看一下原图与效果原图效果图代码如下` cout<<"3.对图像进行马赛克处理:"<<endl; //定义原始图像的宽和高 unsigned int Height = 0; unsigned int Width = 0; //定义循环变量 int i=0,newi=0; int j=0,newj=0; BITMAPFILEHEADER bmpfileheader; //文件头 BITMAPINFOHEADER bmpinfoheader; //
2020-06-15 15:01:30
1804
原创 隐式声明与内建函数exit不兼容解决方案
在使用gcc 对vi 文件进行编辑如下代码时:#include<stdio.h>int main(){ char *str="I like Linux! I advices you jion in the Linux World";printf("%s ",str);exit(0);}出现了如下情况:警告:隐式声明与内建函数‘exit’不兼容 [默认启用]解决方法:加入头文件<stdlib.h>改正后代码如下:#include<stdio.h>
2020-05-22 20:39:55
5195
2
原创 C语言c++--图像平滑--高斯滤波
#include <fstream> #include <math.h>#include <stdio.h>#include <windows.h>#include <iostream>using namespace std;int main(){ //定义原始图像的宽和高 unsigned int Height = 0; unsigned int Width = 0; //定义循环变量 int i=0; int j
2020-05-20 14:57:48
1413
1
原创 C语言c++-图像平滑--中值滤波
#include <fstream> #include <math.h>#include <stdio.h>#include <windows.h>#include <iostream>using namespace std;int sort(int a[]){ int temp=0; for(int i=0;i<9;i++) { for(int j=i;j<9;j++) { if(a[i]>=
2020-05-20 14:56:08
1333
2
原创 C语言C++-图像平滑-均值滤波
#include <fstream> #include <math.h>#include <stdio.h>#include <windows.h>#include <iostream>using namespace std;int main(){ //定义原始图像的宽和高 unsigned int Height = 0; unsigned int Width = 0; //定义循环变量 int i=0; int j
2020-05-20 14:53:24
2463
3
原创 BMP图像加高斯噪声 C语言、C++ 超简单
#include <fstream> #include <math.h>#include <stdio.h>#include <windows.h>#include <iostream>using namespace std;//引入时间库 和 随机函数库 #include<time.h>#include<...
2020-05-07 16:22:59
1890
1
原创 C语言C++BMP图像的缩放
#include <fstream> #include <math.h>#include <stdio.h>#include <windows.h>#include <iostream>using namespace std;int main(){ //定义原始图像的宽和高 unsigned int Height =...
2020-05-01 23:41:27
2289
2
原创 C语言/C++对BMP图片加椒盐噪声 超简单
#include <fstream> #include <math.h>#include <stdio.h>#include <windows.h>#include <iostream>using namespace std;//引入时间库 和 随机函数库 #include<time.h>#include<...
2020-04-28 15:33:34
1723
原创 BMP图片的平移
BMP图片的平移我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:全新的界面设计 ,将会带来全新的写作体验;在创作中心设置你喜爱的代码高亮样式,Markdown 将代码片显示选择的高亮样式 进行展示;增加了 图片拖拽 功能,你可以将本地的图片直接拖拽到编辑区域直接展示;全新的 KaTeX数学公式 ...
2020-04-12 18:28:01
585
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人