# Matlab Call Micro-Manager
## Setting Matlab and Micro-Manager
We almost follow [Micro-Manager wiki](https://micro-manager.org/wiki/Matlab_Configuration).
We tested on Matlab(2017b, 2020) and Micro-Manager 2.0-gamma(20210312), but should work
on other version.
1. Install Micro-Manager and Andor Driver(just for andor camera) in same folder
2. Add all MM jar files into Matlab classpath.txt by running:
```matlab
cd C:\Program Files\Micro-Manager-2.0gamma
StartMMStudio('-setup')
```
3. Run `edit librarypath.txt` in Matlab command prompt. Append the location of
the dll files
`C:/Program Files/Micro-Manager-2.0gamma` in opening file.
4. Add the location of the dll files to the system path. This is not required
for all device drivers but is required to access the Andor driver. For example,
append `C:\Program Files\Micro-Manager-2.0gamma` to system environment `PATH` or
`Path`
5. Restart Matlab and computer(I don't know whether it is required to refresh
System environment)
6. Test with simple code:
```matlab
>> import mmcorej.*;
>> mmc = CMMCore;
>> mmc.load('C:\user\qblab\documents\MMConfig_Ti.cfg')
```
We once troubled to load Andor driver:
```matlab
```
Typically, in this case, Micro-Manager fail to find other Andor dll files inside
current Matlab working directory. If you just change current working directory
to Micro-Manager installation directory, Andor driver could be loaded normally.
For permanent setting, you should check step 4.
IMPORTANT NOTE:
If camera set to 16 bit, `mmc.getImage()` will returen a 1D array of signed
integers in row-major order in Matlab, we must interpreted it as unsigned integers.
```matlab
>> mmc.snapImage();
>> img = mmc.getImage(); % returned as a 1D array of signed integers in row-major order
>> width = mmc.getImageWidth();
>> height = mmc.getImageHeight();
>> if mmc.getBytesPerPixel == 2
pixelType = 'uint16';
else
pixelType = 'uint8';
end
>> img = typecast(img, pixelType); % pixels must be interpreted as unsigned integers
>> img = reshape(img, [width, height]); % image should be interpreted as a 2D array
>> img = transpose(img); % make column-major order for MATLAB
>> imshow(img);
```
没有合适的资源?快使用搜索试试~ 我知道了~
使用Matlab调用Micro-Manager控制显微镜.zip
共43个文件
m:25个
csv:10个
mat:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 183 浏览量
2024-04-26
23:03:15
上传
评论
收藏 235KB ZIP 举报
温馨提示
1.版本:matlab2014/2019a/2021a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
资源推荐
资源详情
资源评论
收起资源包目录
使用Matlab调用Micro-Manager控制显微镜.zip (43个子文件)
使用Matlab调用Micro-Manager控制显微镜
MMProperty.png 99KB
6LED-20x6-D1-3-5-13-15-17-10x6-D8-10-12-D20-22-24-4x1-D6.csv 5KB
MultiPosition_Color_organoid_1201_PRIME.m 5KB
MultiPosition_RunTime_1015.m 3KB
initialize.m 614B
MultiPosition_RunTime.m 4KB
test_burstAcquisition.bsh 1KB
LLJ_48well_10X_E3_E8_25pW.mat 311B
MatlabCallMM.m 1KB
U24-Zyla55_4XAPO-EB-control-24wells-14perwell_1015.csv 7KB
scan_plate
scan_wellplate.m 6KB
rapid_scan_wellplate.m 6KB
U24-4XAPO-EB-control-12wells-0525for10x.csv 5KB
U24-4XAPO-EB-control-12wells-0525.csv 6KB
BuildMap.m 904B
autofocus_test.m 1KB
Tandeng_organoid_1103_96well.csv 956B
autofocus_run.m 4KB
test_snapImage.m 747B
MultiPosition_Color_1109_PRIME.m 5KB
Tandeng_organoid_1126_96well.csv 580B
MultiPosition_Color_Hamamatsu.m 5KB
MultiPosition_RunTime_1015_Andor.m 4KB
MultiPosition_Color.m 5KB
saveastiff.m 13KB
U24-DS-QI2_4XAPO-EB-control-24wells-14perwell_1015.csv 7KB
LLJ_48well_10X_E3_E8.mat 311B
MultiPosition_Color_0803_Calcium_RFP.m 7KB
MultiPosition_Color_1104_PRIME.m 5KB
LLJ_48well_10X_E3_E8_1pW.mat 203B
test_brustAcquisition.m 973B
MultiPosition_Color_0731_Calcium_GFP_RFP.m 7KB
MultiPosition_BuildMap.m 3KB
loadtiff.m 7KB
MultiPosition_Color_0801_Calcium_GFP_RFP.m 7KB
Tandeng_organoid_1201_96well.csv 580B
README.md 2KB
MultiPosition_RunTime_0818.m 4KB
Tandeng_organoid_1103_96well.m 0B
6LED-20x6-D1-3-5-13-15-17-10x6-D8-10-12.csv 4KB
config
MMConfig_Ti.cfg 3KB
MMProperty2.png 88KB
LLJ_24well_20x_20200706.csv 1KB
共 43 条
- 1
资源评论
matlab科研助手
- 粉丝: 3w+
- 资源: 5974
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功