gpt4 book ai didi

image-processing - 如何在 MATLAB 中检查图像的类?

转载 作者:行者123 更新时间:2023-12-04 04:50:12 26 4
gpt4 key购买 nike

我想知道是否存在一个 MATLAB 函数来了解输入图像的类别。例如,如果图像是 uint8 或 double 等?非常感谢。

最佳答案

您可以使用功能class告诉你数组的类型:

>> a = [1,2,3]
>> class(a)
ans =
double
>> a = uint8([1,2,3])
>> class(a)
ans =
uint8

关于image-processing - 如何在 MATLAB 中检查图像的类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17565725/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com