我正在做的一些图像形态学运算,当我得到这个错误:为什么imsubtract()的输出是double?
Function imlincomb expected its array input arguments (A1, A2, ...) to have the same class.
有人在imsubtract()
功能,其中一个输入是另一个减法的输出给出。我检查了Matlab的文档,发现这个解释Z = imsubtract(X,Y)
:(重点是我的)
The array returned, Z, has the same size and class as X unless X is logical, in which case Z is double.
为什么要在逻辑输入X的情况下,输出是双?!
它没有任何意义。特别是,当2个输入参数都是逻辑并且考虑到这个函数大多(如果不是总是)用于图像。
为什么反对票? – Mahm00d