#####void threshold(float,float [][1024])”: 无法将参数 2 从“float”转换为“float [][1024]”
"float" 类型的实参与 "float ()[1024]" 类型的形参不兼容 Project9
#####
include
#include
using namespace std;
int main()
{
float m[1024][1024] = {};
threshold(0.015, m[1024][1024]);
}
void threshold(float T, float t[1024][1024])
{
float X[1024][1024];
for (int i = 0;i < 1024;i++)
{
for (int j = 0;j < 1024;j++)
{
t[i][j] = X[i][j];
if (t[i][j] < T)
t[i][j] = 0;
if (t[i][j] > T)
t[i][j] = 1;
}
}
}
#####