Tilde图像在MATLAB中是什么意思? [英] what does Tilde image mean in MATLAB?

查看:314
本文介绍了Tilde图像在MATLAB中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Matlab进行图像处理的代码,除非使用波浪号在原始图像上调用该函数,然后将其保存到相同的变量(在Internet上的某个位置)中,否则稀疏化将无法进行.

I am working on a code for image processing in Matlab and the thinning won't work unless I call the function on the original image with the tilde and then save it to the same variable (found it somewhere on the internet).

 I= bwmorph(~I, 'thin', inf);
 I=~I;

我的问题是,代字号在这里做什么/意味着什么?

My question is, what does the tilde do/mean here?

推荐答案

在您的问题中,如前所述,它是逻辑而非运算符.

In your question, as already told, it's the logical not operator.

但是,我的研究使我来到这里,而我的答案是(这比您的问题更笼统):

But, my research made me come here and for my part the answer is (this is more general than your question):

参数占位符

Argument Placeholder

要使fileparts函数返回其第三个输出值并跳过 前两个,用波浪号字符替换参数一和二:

To have the fileparts function return its third output value and skip the first two, replace arguments one and two with a tilde character:

[~, ~, filenameExt] = fileparts(fileSpec);

请参见MATLAB中的忽略函数输入编程文档以获取更多信息.

See Ignore Function Inputs in the MATLAB Programming documentation for more information.

来源: MATLAB运算符和特殊字符

这篇关于Tilde图像在MATLAB中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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