64 bool loadImageRGBA(
const char* filename, float4** cpu, float4** gpu,
int* width,
int* height,
const float4& mean_pixel=make_float4(0,0,0,0) );
92 bool saveImageRGBA(
const char* filename, float4* cpu,
int width,
int height,
float max_pixel=255.0f,
int quality=100 );
129 bool loadImageRGB(
const char* filename, float3** cpu, float3** gpu,
int* width,
int* height,
const float3& mean_pixel=make_float3(0,0,0) );
166 bool loadImageBGR(
const char* filename, float3** cpu, float3** gpu,
int* width,
int* height,
const float3& mean=make_float3(0,0,0) );
bool saveImageRGBA(const char *filename, float4 *cpu, int width, int height, float max_pixel=255.0f, int quality=100)
Save a float4 RGBA image to disk.
bool loadImageRGB(const char *filename, float3 **cpu, float3 **gpu, int *width, int *height, const float3 &mean_pixel=make_float3(0, 0, 0))
Load a color image from disk into CUDA memory, in float3 RGB format with pixel values 0-255...
bool loadImageRGBA(const char *filename, float4 **cpu, float4 **gpu, int *width, int *height, const float4 &mean_pixel=make_float4(0, 0, 0, 0))
Load a color image from disk into CUDA memory with alpha, in float4 RGBA format with pixel values 0-2...
bool loadImageBGR(const char *filename, float3 **cpu, float3 **gpu, int *width, int *height, const float3 &mean=make_float3(0, 0, 0))
Load a color image from disk into CUDA memory, in float3 BGR format with pixel values 0-255...