-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
23 lines (17 loc) · 716 Bytes
/
Copy pathmain.cpp
File metadata and controls
23 lines (17 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef LOADSAVEIMAGE_H__
#define LOADSAVEIMAGE_H__
#include <string>
#include <cuda_runtime.h> //for uchar4
void loadImageHDR(const std::string &filename,
float **imagePtr,
size_t *numRows, size_t *numCols);
void loadImageRGBA(const std::string &filename,
uchar4 **imagePtr,
size_t *numRows, size_t *numCols);
void saveImageRGBA(const uchar4* const image,
const size_t numRows, const size_t numCols,
const std::string &output_file);
void saveImageHDR(const float* const image,
const size_t numRows, const size_t numCols,
const std::string &output_file);
#endif