在matlab中将链接插入图像? [英] Inserting a link into an image in matlab?

查看:97
本文介绍了在matlab中将链接插入图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在matlab中的图像中放置一个文档的链接。我有一个特定的区域,我想把链接。例如,我希望在位置x = 40,y = 120的图像中链接文档的地址。类似于下面的内容,我知道这不是合适的matlab代码。

I want to put a link to a document in an image I have in matlab. I have a specific region I want to put the link. For example I want there to be link in the image at position x = 40, y = 120 with the address of the document. Something similar to this below, I know this is not proper matlab code.

text(40,120, '<a href="C:\Documents and Settings\Sentinelle\Desktop\LCModel\sl5_knt1\sl5_11-6.pdf"; ">Click here for plot documentation</a>')

这可能吗?我希望能够使用imshow()或imtool()并能够点击该区域图像并查看文档。

Is this possible to do do? I want to be able to use imshow() or imtool() and be able to click on the region of the image and see the document.

推荐答案

您可以设置 'ButtonDownFcn' 文本属性使用函数打开给定文档 OPEN

filePath = 'C:\Documents and Settings\Sentinelle\Desktop\LCModel\sl5_knt1\sl5_11-6.pdf';
text(40,120,'Click here for plot documentation',...
     'ButtonDownFcn',['open(''' filePath ''');']);

这篇关于在matlab中将链接插入图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆