Hi,thank you so much for your code! Recently,I write a CMakelists.txt for your project and try to build your project by cmake in Windows. But I found a Bug.When running on Linux(Ubuntu), the result was normal .But when running on Windows,the output image was abnormal(all black). Puzzling ! So I debug your code, I found this function read_data_from_file read the binary file and try to print its value ,result show that different from the Linux.
So , I modified the code FILE * fi = fopen(file_name, "rb");and it ran successfully in windows.
Hi,thank you so much for your code! Recently,I write a CMakelists.txt for your project and try to build your project by cmake in Windows. But I found a Bug.When running on Linux(Ubuntu), the result was normal .But when running on Windows,the output image was abnormal(all black). Puzzling ! So I debug your code, I found this function read_data_from_file read the binary file and try to print its value ,result show that different from the Linux. So , I modified the code FILE * fi = fopen(file_name, "rb");and it ran successfully in windows.