自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(114)
  • 收藏
  • 关注

转载 ubuntu 16.04 NVIDIA驱动安装后 黑屏

参考:https://blog.csdn.net/xunan003/java/article/details/81665835 https://blog.csdn.net/qq_33588730/article/details/81108563 https://www.cnblogs.com/nanjingli/p/9996270.html系统 ubuntu 16.04, NVIDIA driver: 440.xx在安装完Ubuntu系统后,安装...

2020-06-12 16:55:10 2328

原创 ubuntu 单显卡下安装 nvidia driver, cuda, cudnn

ubuntu 下安装显卡驱动,及 cuda cudnn一、安装显卡驱动1.若是单显卡,可参照https://blog.csdn.net/u014682691/article/details/80605201中的二,从官网下载驱动的安装方法2.若是有集显和独显,建议参考(未实现)https://blog.csdn.net/u012759136/article/details/5335...

2019-11-21 16:21:19 196

转载 在ubuntu下编译opencv程序后,执行报下面到错误: error while loading shared libraries: libopencv_core.so.2.4: cannot op

转自:   https://www.douban.com/note/327349156/在ubuntu下编译opencv程序后,执行报下面到错误:error while loading shared libraries: libopencv_core.so.2.4: cannot open shared object file: No such file or directory解决方

2018-01-04 14:46:21 895

原创 caffe 中 top_data, top_label 的存储方式

top_data的存储方式?个人觉得是:先宽,后高,最后是通道数对应的top_label的存储方式是?个人觉得是:先宽,后高--- 在读取数据时,需要注意top_data, top_label的对应。

2017-12-15 17:25:38 834

原创 C++ 中 opencv Mat 变量的常见运算

1. cv::Mat 的属性 cv::Mat img ;img = cv::imread( img_path, CV_LOAD_IMAGE_COLOR ) ;if ( !img.data )    std::cout int img_rows =  img.rows ; //// Mat 的长宽属性int img_cols = img.cols ;for( int i;

2017-12-15 16:54:34 3618

原创 matlab存储的矩阵,在C++处理的方法

matlab生成的大小为 [ H, W, C ]  的矩阵在C++中的处理方法,需要注意的是存储习惯:matlab矩阵的存储方式:先列,后行,最后通道数, 而C++矩阵的存储方式:先行,后列,最后通道数。假设matlab生成的矩阵为matData, 存储到C++的 top_data中,(需按C++行优先来存)---该问题即是:在C++中将一个列优先存储的矩阵 转化为一个行优先存储的

2017-12-14 15:28:13 1845

原创 C++与matlab存储方式的不同

注意到:C++矩阵的数据是按 行优先 进行存储的           matlab矩阵的数据是按 列优先 进行存储的在C++中矩阵元素下标常这样来查询:假设其第 item_id  个 2 维矩阵,该矩阵的 高为:data_height,宽为 data_width.index = ( item_id*data_height + h ) * data_width + w ;

2017-12-13 21:31:20 495

原创 图像分割中各个指标的计算方法

评价像素级图像分割,常使用 recall, IoU, 在多幅图像一起测试时,这两个指标是怎么计算的呢?recall = pt  / ( pt + fn )IoU    = intersection / union假设有N幅测试图像,有C个类别,则各个指标具体怎样计算呢?

2017-12-12 08:54:06 5474 1

转载 ubuntu 下更新 GPU 驱动

当使用新的显卡时,若出现 找不到 cuda 可使用的显卡,此时:可能是新显卡,在老版本的GPU驱动中没有写明识别方法,解决办法:安装新的显卡驱动, 方法可以参考   http://blog.csdn.net/lien0906/article/details/54312166

2017-11-06 14:43:19 2038

转载 matlab在图片上写字后保存

close allclcI=imread('cameraman.tif');ti=vision.TextInserter('Test', 'Location', [30 30],'FontSize', 12);J=step(ti,I);figuresubplot(121),imshow(I),title('原始图像')subplot(122)

2017-06-29 20:02:08 4732 1

转载 C++使用 matio读写 .mat文件

资料来自网页:http://www.cnblogs.com/muffled/p/3789162.html读取matioTest.zip中s.mat文件,数据为普通matrix#include #include #include int main(){    mat_t *matfp;    const char* matFilePath = "testRes

2017-06-21 17:36:19 3290

原创 C++ read images with opencv

#include#include#include"opencv2/opencv.hpp"using namespace std;using namespace cv ;int main(){    string filepath = "1.jpg" ;    Mat img = imread( filepath, 0 ) ;    cout

2017-03-30 16:05:13 439

转载 matlab 读取 改写 .xml

参考http://www.cnblogs.com/emituofo/archive/2011/11/06/2238219.htmlclearVideo = xml_read('regular.xml');%读取XMLTitleContent=Video.Title;%获取Title节点的文本内容Slide1Content=Video.Slide(1).CONTENT

2017-01-16 18:50:30 3206

转载 vs 环境下opencv配置

参考 http://jingyan.baidu.com/article/75ab0bcbee4b47d6864db2fc.html

2016-12-22 19:47:27 283

转载 voc 做目标检测中所用到的AP, http://blog.csdn.net/a1154761720/article/details/50864994

voc 做目标检测中所用到的AP:recal 和 precision所形成的面积,具体请见:http://blog.csdn.net/a1154761720/article/details/50864994

2016-10-21 11:46:42 752

原创 read .xml by matlab

xml_path = [ annotation_path, tline, '.xml' ] ;    xmlDoc   = xmlread( xml_path ) ;    xmlRoot  = xmlDoc.getDocumentElement(); % the root node. why this     %%%%% read objects from xmlRoot.

2016-10-21 08:17:51 349

转载 caffe

1.fatal error: caffe/proto/caffe.pb.h: No such file or directory #include "caffe/proto/caffe.pb.h"解决方法:# In the directory you installed Caffe toprotoc src/caffe/proto/caffe.proto --cpp_out=.

2016-10-11 20:22:48 429

转载 安装tslib中遇到的错误:./autogen.sh: 4: autoreconf: not found

./autogen.sh: 4: autoreconf: not found  是在不同版本的 tslib 下执行 autogen.sh 产生。它们产生的原因一样,是因为没有安装  automake 工具,      (ubuntu 8.04)用下面的命令安装好就可以了。  sudo apt-get install autoconf automake libtool

2016-10-02 14:07:12 375

转载 error while loading shared libraries: libboost_system.so.1.45.0: cannot open shared object file: No

http://stackoverflow.com/questions/4581305/error-while-loading-shared-libraries-libboost-system-so-1-45-0-cannot-open-shaThe library cannot be found.Libraries are by default looked for in /lib

2016-10-02 13:55:58 2239

转载 install gcc on your computer

the main steps:for example: configuring and building gcc-5.3.0 should be as simple as tar gcc-5.3.0./contrib/download_prerequisitiescd ..mkdir objdircd objdir$PWD/../gcc-5.3.0/configur

2016-09-29 22:03:45 387

转载 install matlab iso on ubuntu

zhuan zi: http://blog.csdn.net/rauber_hotzenplotz/article/details/43368725

2016-09-27 21:24:33 340

原创 win10 和 ubuntu 双系统安装方法

电脑情况: 硬盘  240G SSD  +  1T 机械硬盘, win10系统已经安装在SSD盘上,以EFI 启动现试图在SSD盘上安装 ubuntu系统,已经将SSD盘上的一个分区 删除, 其变为黑色, 为未分配的区域关键是:在 分区 与 启动设备安装常识是: 一个硬盘上 有一个 EFI 便可以了,在安装ubuntu系统时,仅仅分配  根目录 /      便可,   也可以

2016-09-08 14:08:58 732

转载 linux一些设置

1. ubuntu 输入法 打不出汉字http://forum.ubuntu.com.cn/viewtopic.php?t=253605摘自:右键点击IBus->首选项->输入法;把之前下面这些没用的垃圾输入法法通通删掉;点击上面的“选择输入法”,找到汉语,然后,随你了,想用什么就添加什么就o了。

2016-08-17 19:39:06 254

原创 使用ifstream对象逐行读取.txt文件,并使用stringsream拆分各个变量

#include#include#include#includeint main(){        std::string fileName = "my_file.txt" ;        std::ifstream fstr( fileName.c_str() )   ;   // 打开文件,建立数据流        std::string lineStr

2016-05-13 11:11:48 8981 1

原创 C++将矩阵存到.txt文件, 使用 FILE 或 ofstream

在C/C++中常常需要查看中间结果,比如:某一个矩阵中的数据的数值情况,在这种情况下常将该数值矩阵存成 .txt文件再查看。比如:#include#include#include"opencv2/highgui/highgui.hpp"#include"opencv2/imgproc/imgproc.hpp"#include"opencv2/core/core.hpp"

2016-05-02 09:15:52 6660

转载 C++中#if #ifdef 的作用

#ifdef 标识符 程序段1 #else 程序段2 #endif 它的作用是:当标识符已经被定义过(一般是用#define命令定义),则对程序段1进行编译,否则编译程序段2。 ---摘自http://blog.csdn.net/bigpretty/article/details/5018261

2016-01-04 18:12:44 379

原创 linux下安装java等

1. javasudo apt-get install openjdk-7-jre--- sudo apt-get install openjdk-7-jdk openjdk-7-jre

2016-01-01 08:37:14 234

原创 opencv图像数据操作

1.imreadcv::Mat img;img = cv::imread(image_path, CV_LOAD_IMAGE_COLOR); // image_path为图片存储路径if (!img.data || !seg.data) {    std::cout     return;}2.resizecv::Size rescaleSize(

2015-12-31 09:22:48 789

原创 C++整行读取.txt文件

读取文件 lhc.txt,  内容如下:zhongguo  1 2 3 4  chinese#include#include#include#includeint main(){        std::cout         std::string filename = "lhc.txt";        std::ifstrea

2015-12-29 21:57:07 3129

转载 string to int

#include iostream>11 #include string>12 #include cstdlib>13 14 using namespace std;15 16 int main() {17   string s = "123";18   double n = atof(s.c_str());19   //int n = atoi(s.c

2015-12-29 21:23:53 289

转载 caffe 的边训练边测试

个人认为需要改以下两个地方:训练文件中增加测试层                                                        在solver.prototxt中设定迭代多少次进行测试train_val.prototxt###### test layer, ignore_labellayer {  name: "accuracy"  type

2015-12-17 10:42:15 1304

转载 opencv获得图像某点像素值等

http://docs.opencv.org/2.4/doc/user_guide/ug_mat.htmlcv::Mat 获取数据的下标和值Scalar intensity = img.atuchar>( row_n, col_n );////

2015-11-20 16:48:20 1582

原创 数据下载 等其他

windows 下,tgz 文件无法解压,将其扩展名改为.tar.gz 即可解压,

2015-11-02 14:01:55 277

原创 caffe 的

matlab 读取模型参数net.layer_vec(1,1).params(1,2).get_data

2015-10-20 17:05:27 376

原创 linux 文件路径的表示

linux 命令行中: ./filename   是当前目录下的文件   filename1/filename2  也认为是当前目录下的文件而:/filename1/filename2   是认为绝对路径下的目录文件

2015-10-17 15:35:32 743

转载 Linux sh、source和.命令执行.sh文件的区别

sh文件介绍.sh为Linux的脚本文件,我们可以通过.sh执行一些命令,可以理解为windows的.bat批处理文件。点命令.命令和source是同一个命令,可以理解为source的缩写,简称点命令。sh、source和.命令执行.sh文件的区别假如有一个文件test.sh,脚本内容如下#!/bin/bashecho "step 1 sleeping

2015-10-03 20:53:42 11237

原创 以个人用户在服务器运行 caffe 点滴

在服务器运行,用到gpu, 故需要提交到gpu节点进行计算1. 在提交到集群运算时,注意文件路径 ./       2.

2015-09-15 20:00:46 882

原创 caffe点滴

caffe中的forward_cpu_gemm用到 caffe_cpu_gemm用到 cblas_sgemm是blas库中的函数:cblas_sgemmMultiplies two matrices (single-precision).

2015-08-27 22:07:11 411

转载 caffe安装网址

http://caffe.berkeleyvision.org/installation.html#compilation服务器安装http://andrewjanowczyk.com/installing-caffe-on-the-ohio-super-computing-osc-ruby-cluster/

2015-08-23 11:48:42 377

原创 高光谱图像预处理中的数值范围问题

高光谱遥感图像的数值范围往往在10^4数量级,而普通的RGB图像的数值范围是[0,255], 因此常常需要将数值范围进行归一化,如下I = uint8( 255*mat2gray( im_hyper) ) ;

2015-07-31 16:22:29 3369

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除