robertson02.h (pfstools-2.1.0.tgz) | : | robertson02.h (pfstools-2.2.0.tgz) | ||
---|---|---|---|---|
skipping to change at line 34 | skipping to change at line 34 | |||
* @author Grzegorz Krawczyk, <gkrawczyk@users.sourceforge.net> | * @author Grzegorz Krawczyk, <gkrawczyk@users.sourceforge.net> | |||
* | * | |||
* $Id: robertson02.h,v 1.4 2011/02/15 15:46:27 ihrke Exp $ | * $Id: robertson02.h,v 1.4 2011/02/15 15:46:27 ihrke Exp $ | |||
*/ | */ | |||
#ifndef _robertson02_h_ | #ifndef _robertson02_h_ | |||
#define _robertson02_h_ | #define _robertson02_h_ | |||
#include <responses.h> | #include <responses.h> | |||
struct noise_parameters | ||||
{ | ||||
const char* camera_name; | ||||
float color_coefficients[3]; | ||||
float std_readout; | ||||
float std_adc; | ||||
}; | ||||
/** | /** | |||
* @brief Calculate camera response using Robertson02 algorithm | * @brief Calculate camera response using Robertson02 algorithm | |||
* | * | |||
* @param xj [out] estimated luminance values | * @param xj [out] estimated luminance values | |||
* @param imgs reference to vector containing source exposures | * @param imgs reference to vector containing source exposures | |||
* @param I [out] array to put response function | * @param I [out] array to put response function | |||
* @param w weights | * @param w weights | |||
* @param M max camera output (no of discrete steps) | * @param M max camera output (no of discrete steps) | |||
* @return number of saturated pixels in the HDR image (0: all OK) | * @return number of saturated pixels in the HDR image (0: all OK) | |||
*/ | */ | |||
skipping to change at line 73 | skipping to change at line 81 | |||
const ExposureList &imgs, | const ExposureList &imgs, | |||
const float* I, | const float* I, | |||
const float* w, | const float* w, | |||
int M ); | int M ); | |||
int robertson02_applyResponseRGB( pfs::Array2D *rgb_out[], | int robertson02_applyResponseRGB( pfs::Array2D *rgb_out[], | |||
const ExposureList *imgs[], | const ExposureList *imgs[], | |||
const float *resp_curve[], | const float *resp_curve[], | |||
const float *weights, | const float *weights, | |||
int M, | int M, | |||
bool deghosting = false ); | const noise_parameters *camera, | |||
const float deghosting_value = -1); | ||||
#endif /* #ifndef _robertson02_h_ */ | #endif /* #ifndef _robertson02_h_ */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 10 lines changed or added |