mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
formatted slsDetectorCalibration
This commit is contained in:
@ -1,38 +1,35 @@
|
||||
// SPDX-License-Identifier: LGPL-3.0-or-other
|
||||
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
||||
#ifndef MY_TIFF_IO_H
|
||||
#define MY_TIFF_IO_H
|
||||
#define MY_TIFF_IO_H
|
||||
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
#include <iomanip>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <stdio.h>
|
||||
#include <fstream>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
/*****************************************************************************/
|
||||
//
|
||||
//CBFlib must be installed to use this program
|
||||
// CBFlib must be installed to use this program
|
||||
//
|
||||
/*****************************************************************************/
|
||||
#include <tiffio.h>
|
||||
|
||||
#undef cbf_failnez
|
||||
#define cbf_failnez(x) \
|
||||
{ \
|
||||
int err; \
|
||||
err = (x); \
|
||||
if (err) { \
|
||||
fprintf(stderr,"\nCBFlib fatal error %x \n",err); \
|
||||
exit(-1); \
|
||||
} \
|
||||
}
|
||||
#undef cbf_failnez
|
||||
#define cbf_failnez(x) \
|
||||
{ \
|
||||
int err; \
|
||||
err = (x); \
|
||||
if (err) { \
|
||||
fprintf(stderr, "\nCBFlib fatal error %x \n", err); \
|
||||
exit(-1); \
|
||||
} \
|
||||
}
|
||||
|
||||
void *WriteToTiff(float * imgData, const char * imgname, int nrow, int ncol);
|
||||
void *WriteToTiff(float *imgData, const char *imgname, int nrow, int ncol);
|
||||
|
||||
float *ReadFromTiff( const char * imgname, uint32_t &nrow, uint32_t &ncol);
|
||||
float *ReadFromTiff(const char *imgname, uint32_t &nrow, uint32_t &ncol);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user