halcon说明中的方法其实没有办法使用,摸索了很久,才找了实际可以使用的方法,记录下来备用,同时也帮助正在寻找方法的朋友
ReadImage(&image, fileName);
HTuple hv_Type, hv_Height, hv_Width, hv_pointer;
GetImagePointer1(image, &hv_pointer, &hv_Type, &hv_Width, &hv_Height);
unsigned char *data = (unsigned char *)malloc(SCAN_HEIGHT*SCAN_WIDTH);
quint64 * p = reinterpret_cast<quint64*>(hv_pointer[0].L());
if(p == NULL){
return;
}
这样就可以访问响应的内存了