changed JF structures and tiff writer for rectangular detectors

This commit is contained in:
2022-11-08 11:27:31 +01:00
parent 4f21ad5122
commit f0c0f07701
4 changed files with 184 additions and 71 deletions

View File

@ -5,12 +5,12 @@
//Write 32bit float data to tiff file
//Always returns nullptr, prints message on failure
void *WriteToTiff(float *imgData, const char *imgname, int nrow, int ncol);
void *WriteToTiff(float *imgData, const char *imgname, int ncol, int nrow);
//Read 32bit float data from tiff file, returns pointer to data and sets
//image dimensions in the out parameters nrow, ncol.
//Returns nullptr on failure
//The caller is responsible to deallocate the memory that the returned
//pointer points to.
float *ReadFromTiff(const char *imgname, uint32_t &nrow, uint32_t &ncol);
float *ReadFromTiff(const char *imgname, uint32_t &ncol, uint32_t &nrow);