标签归档:Matlab

python读取mat

Matlab:

在Matlab中首先使用save函数保存变量。为了方便python读出,使用参数version指定保存数据的版本为-v7

save函数的参考资料:[1]

Python:

python端读出使用scipy库

参考资料:[2] loadmat

import scipy.io as sio
data = sio.loadmat('matlab.mat')

是的,最近在做口腔CT的伪影去除。当然是用流行的深度学习的方法啦~~

Matlab中最出名的美女

lena

没错就是Lena Söderberg!这张图来自《1972 Playboy Magazine – The “Lenna” Edition》 It is a picture of Lena Söderberg, a Swedish model, shot by photographer Dwight Hooker.

From wikipedia:

Lenna is the name given to a standard test image which has been in use since 1973. It comprises 512×512 pixels, and was originally cropped from the centerfold of the November 1972 issue of Playboy magazine. It is a picture of Lena Söderberg, a Swedish model, shot by photographer Dwight Hooker. The test image is often used for image processing algorithms (such as compression and denoising) and related scientific publications.

1972年出版playboy,1973年马上就被工程师拿来当测试用。看来作为一名合格的工程师,也要什么都看,包括nudie magazines^_^其中有个小细节,虽然他叫lena,但是playboy却是打印城lenna。我一开始以为是出错了,后来发现原来当年的Playboy真的是这么写的“Lenna”.好在我在一篇文章中找到了解释:

Although her name is spelled “Lena”, Playboy spelled her name as “Lenna” in the magazine. It’s not a typo. It was common practice to anglicize foreign names into something “more English” sounding.

1972 Playboy Magazine – The “Lenna” Edition

此时,就像看到易知难一样,我就想看看现在她是什么样的。比易知难好找多了。The Lenna Story

而且直到1988年,瑞典一家计算机出版社来采访她。她才知道,原来她的照片在计算机领域如此的广泛应用。后来她居住在了瑞典,并且快乐的结婚,生了3个小孩,找了一份工作。

nov72playboy

至于原图,由于担心法律问题。所以请自己看这里。(18禁!)

解决Matlab imaqhwinfo 找不到设备

最近做点MATLAB computer vision的仿真,用到IMAQ工具箱。但是却无法找到设备。可是webcamlist却可以找到。google一番,发现原来是缺少硬件支持。此文记录我的解决过程。

imaqhwinfo-problem

No Image Acquisition adaptors found.Image acquisition adaptors may be available as downloadable support packages. Open Support Package Installer to install additional vendors.

这是Google查到的解释

继续阅读