OpenCV 的 GrabCut 可运行代码 及实例 OpenCV中GrabCut 的可运行代码#include "opencv2/highgui/highgui.hpp"#include "opencv2/imgproc/imgproc.hpp"#include using namespace std;using namespace cv;static void help(){ cout << "This pro
C++ 计时器 单位 C++ 计时器 单位【原文出处】http://my.csdn.net/yuhentian/code/detail/29603C++中基本的计时器使用,有多种基本单位可选//Windows系统下time(),clock(),timeGetTime(),GetTickCount(),QueryPerformanceCounter()来计时#include #include
Ubuntu 查看Nvidia显卡驱动信息 Ubuntu 查看Nvidia显卡驱动信息转自:http://blog.csdn.net/xuezhisdc/article/details/48650565命令行中输入cat /proc/driver/nvidia/version查看显卡信息
Python ndarray padding Python ndarray paddingWith the bug about np.lib.pad reported here: https://github.com/numpy/numpy/issues/7353 and the corresponding update here: https://github.com/numpy/numpy/pull/7354#issuecomme
Linux 批量杀死 进程 Linux 批量杀死 进程以kill 进程列表中的'MATLAB' 为例:ps aux | grep 'MATLAB' | awk '{print $2}' | xargs kill -9
Matlab 文件按自然排序 转list文件名列表 s_SrcList_A = dirr( Src_A_Path ); c_List_A = struct2cell(s_SrcList_A); c_List_A = c_List_A(1,:);SrcList_A = (sort_nat(c_List_A))';获取基本列表,dirr.m 函数function [list,sumbytes,varargout] = DIRR(c
Python cv2 图像自适应灰度直方图均衡化处理 Python cv2 图像自适应灰度直方图均衡化处理__author__ = 'Administrator'import numpy as npimport cv2ct_img = np.load('G:\Project\MMWHS_2017\dataset\ct_mri_case.tar\ct_mri_case\send1\ct_img.npy')mri_img = np.
matlab 曲线填充 透明度 Matlab 画多条曲线并以不同透明度填充曲线下方figure(1),T1 = area(smooth(hist_C(1,:), 5)); xlim([0, 252]); T1.FaceColor='k'; T1.FaceAlpha=0.5; hold onT3 = area(smooth(hist_C(3,:), 5)); xlim([0, 252]); T3.FaceColor='g'
[Python] Python 旋转、flip Nifti三维数据 (Python Rotate and Flip Nifti volume) __author__ = 'xin yang'import osimport nibabel as nibimport numpy as npimport mathsrc_us_folder = 'G:/Temp/Data/src/us'src_seg_folder = 'G:/Temp/Data/src/seg'aug_us_folder = 'G:/Temp/Data/
[Matlab] 三视图查看3D矩阵 load mri.mat; old_img = double(squeeze(D));old_M = [0.88 0.5 3 -90; -0.5 0.88 3 -126; 0 0 2 -72; 0 0 0 1];new_img = affine(old_img, old_M, 2);[x y z] = meshgrid(1:128,1:128,1:27);sz = size(new_
深度学习-Caffe 使用问题整理 深度学习-Caffe 使用问题整理1. shape mismatch in weight initialisation (transfer). "Target shape is ..., but source shape is ...".possible solution: (1) layer name is wrong (2) 'Eltwise' or 'Concat' fusion m
ParaView Usage ParaView Usage1. click eye icon to hide the box2. use "calculator" before "contour", and rename the "Result Array Name", so different contour can have different color property3. animation. choos
python 分割 画图像的轮廓 python 分割 画图像的轮廓import numpy as npimport cv2__author__ = 'xinyang'Img_N = 130algo_seg_folder = 'G:/Project/S_rnn_201605/our_paper/AAAI2017/Figure/src/ctx_bigseg/ctx_2'gt_seg_folder = 'G:
Paraview 软件学习 Paraview 软件学习1. Paraview 读 NIFTI格式。Tools -> Manage Plugins -> Choose AnalyzeNIfTIIO -> load selected
[OpenGL系列] VS2015+FreeGLUT+GLEW 【安装】OpenGL 安装Reference:1. http://www.cnblogs.com/helloj2ee/archive/2013/03/05/2944800.html2. http://www.jianshu.com/p/8bcc5799d8fa首先弄清楚,自己电脑上的OpenGL的GL.h, GLU.h在什么位置,然后才方便存放后续相关的文件。因为电脑上可能有很多个