自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

#+!

  • 博客(18)
  • 资源 (1)
  • 收藏
  • 关注

原创 任意图像转换灰度图像 matlab

%-- Converts image to one channel (grayscale) doublefunction img = im2graydouble(img)      [dimy, dimx, c] = size(img);  if(isfloat(img)) % image is a double    if(c==3)       img = rgb2gray

2011-11-30 15:26:15 2054

原创 matlab 设定编译环境

设定编译环境mbuild -setup通常会有两个选项,如果你安装了VS2010的话。1.lcc matlab自带的2.VS2010如果要用到VS2010联合编程的话,选2.

2011-11-30 13:22:08 1395

原创 uibuttongroup 默认 radiobutton matlab

%set a buttongrouph_buttongroup = uibuttongroup('position',[0 .1 .5 .3],'SelectionChangeFcn',@select_method);h_radio1 = uicontrol('parent',h_buttongroup,'style','radiobutton','unit','normalized'

2011-11-29 12:03:38 1982

原创 Unix vi退出

esc切换命令模式和输入模式,命令模式下:q!不保存退出,:wq保存退出。

2011-11-27 12:28:44 1080

原创 GUI存储文件uiputfile matlab

[filename, pathname]=...     uiputfile({'*.jpg';'*.bmp';'*.gif'},'choose image pathway');%combination and file namestr = [pathname filename];if (filename~=0)imwrite(seg,str);else    retu

2011-11-25 20:19:54 6972

原创 打开文件为空自动返回 matlab

%choose image pathway[filename, pathname]=...     uigetfile({'*.jpg';'*.bmp';'*.gif'},'choose image pathway');%combination and file namestr = [pathname filename];if (filename~=0)

2011-11-25 18:42:51 986

转载 Win7 安装 OpenCV2.3.1 到VS2010

Getting Started with OpenCV 2.3.1 in Microsoft Visual Studio 2010 in Windows 7 64-bitI was trying to install OpenCV 2.3.1 on my Windows 7 64-bit machine and i kept getting the error: The appli

2011-11-23 22:06:42 6414

原创 matlab Units设置

figure,uicontrol,uitable的units属性默认值均为pixels.axes,uibuttongroup,uipanel的units的属性默认值均为normalized.

2011-11-18 16:17:50 3142

转载 matlab pack 清理内存

PACK   Consolidate workspace memory.    PACK performs memory garbage collection. Extended MATLAB sessions may cause memory to become fragmented, preventing large variables from being stored. PAC

2011-11-16 17:41:24 6763

原创 GUI对象大小随窗口变化 units

对于含有多个GUI对象的窗口,如果窗口最大化时,对象的Units为normalized,则该对象的大小会随着窗口大小的变化而适当改变,使其与窗口的大小比例不变。>>get(0,'ScreenSize‘)   %获取当前屏幕尺寸ans=            1    1     1440      900       % 左下角坐标,宽,高>>set(0,'Units','

2011-11-16 17:26:39 1739

原创 matlab 记录命令行

>> set(0,'diary','on')    % 开始记录set(0,'diaryfile','a.txt')    %输出到a.txt>> jso=11111;>> set(0,'diary','off')    %结束记录打开a.txtjso=11111;

2011-11-16 17:20:23 983

原创 matlab 程序暂停 uiwait

%An example which blocks execution until the user responds:        uiwait(msgbox('String','Title','modal'));message = sprintf('Left click and hold to begin drawing.\nLift mouse button to fin

2011-11-16 16:13:34 6448

原创 Foxit Phantom Business v5.03.0811 注册码

安装后打开开始文件夹 Foxit PhantomPDF[Foxit License]SN=FPMRK1913Modules=Express,PDF/A validation,DocProcess,TouchUp,PageFormat,FormDesigner,Organizer,CertificateEncryption,DigtalSignature,OCR,

2011-11-12 14:31:13 11379 1

原创 Cadence 16.5 下载及破解

Candence 和 破解下载地址http://bbs.elecfans.com/forum.php?mod=viewthread&tid=196594&extra=page%3D1&page=1& 注册下就可以看到链接Crack具体的步骤1、安装licensemanager,问license时,单击cancel,然后finish;2、安装cadence的product;3

2011-11-11 19:22:31 9126 1

原创 GUI 变量传递 handles

function uipushtool1_ClickedCallback(hObject,eventdata,handles)    %open the image filefilename = uigetfile('*.jpg', 'Select an image file');im = imread(filename);imagesc(im);handles.im =

2011-11-08 16:03:55 1126

原创 鼠标连续画点 matlab

function mouse(action)switch action            case 'start'        set(gcbf,'windowbuttondownfcn','mouse draw');    case 'draw'        %当光标移动时 执行'move'的操作        set(gcbf,'windowbut

2011-11-04 18:52:32 2790

转载 matlab 寻找二进制图像边缘

I = imread(‘rice.png‘);%读入图像BW = im2bw(I, graythresh(I));%转换成2进制图像[B,L] = bwboundaries(BW,‘noholes‘);%寻找边缘,不包括孔imshow(label2rgb(L, @jet, [.5 .5 .5]))%显示图像hold onfor k = 1:length(B)   bound

2011-11-04 18:43:44 1558

原创 matlab ROI选取产生二进制mask

grayImage = imread('monkey.png');   % Read in standard MATLAB gray scale  image. subplot(2, 2, 1); imshow(grayImage, []);title('Original Grayscale Image'); hFH = imfreehand();   %Choos

2011-11-04 18:26:38 5951

codeviewer

乱码查看

2011-11-11

空空如也

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

TA关注的人

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