35typedef struct _hdrl_image_ hdrl_image;
41#include "hdrl_image_math.h"
42#include "hdrl_utils.h"
43#include "hdrl_buffer.h"
44#include "hdrl_types.h"
57 const cpl_image * error);
73 cpl_size xpos, cpl_size ypos,
77 cpl_size xpos, cpl_size ypos,
84 cpl_size, cpl_size, cpl_size, cpl_size) ;
87 cpl_size xpos, cpl_size ypos);
90 const cpl_mask * map);
94 cpl_size xpos, cpl_size ypos);
100 cpl_size xpos, cpl_size ypos);
103 const cpl_image * image,
104 const cpl_image * error,
105 cpl_size xpos, cpl_size ypos);
110 cpl_size, cpl_size, cpl_size, cpl_size, FILE *) ;
115#if defined HDRL_USE_EXPERIMENTAL || defined HDRL_USE_PRIVATE
117hdrl_image_new_from_buffer(cpl_size nx, cpl_size ny, hdrl_buffer * buf);
123#ifdef HDRL_USE_PRIVATE
124hdrl_image * hdrl_image_wrap(cpl_image *, cpl_image *, hdrl_free *,
126void hdrl_image_unwrap(hdrl_image * himg);
hdrl_value hdrl_image_get_pixel(const hdrl_image *self, cpl_size xpos, cpl_size ypos, int *pis_rejected)
get pixel values of hdrl_image
int hdrl_image_is_rejected(hdrl_image *self, cpl_size xpos, cpl_size ypos)
return if pixel is marked bad
cpl_error_code hdrl_image_set_pixel(hdrl_image *self, cpl_size xpos, cpl_size ypos, hdrl_value value)
set pixel values of hdrl_image
cpl_error_code hdrl_image_reject_value(hdrl_image *self, cpl_value mode)
Reject pixels with the specified special value(s)
cpl_error_code hdrl_image_reject_from_mask(hdrl_image *self, const cpl_mask *map)
set bpm of hdrl_image
cpl_error_code hdrl_image_turn(hdrl_image *self, int rot)
Rotate an image by a multiple of 90 degrees clockwise.
hdrl_image * hdrl_image_duplicate(const hdrl_image *himg)
copy hdrl_image
cpl_error_code hdrl_image_copy(hdrl_image *dst, const hdrl_image *src, cpl_size xpos, cpl_size ypos)
Copy one image into another.
cpl_mask * hdrl_image_get_mask(hdrl_image *himg)
get cpl bad pixel mask from image
hdrl_image * hdrl_image_extract(const hdrl_image *, cpl_size, cpl_size, cpl_size, cpl_size)
extract copy of window from image
cpl_error_code hdrl_image_dump_window(const hdrl_image *, cpl_size, cpl_size, cpl_size, cpl_size, FILE *)
Dump pixel values in a HDRL image.
cpl_image * hdrl_image_get_error(hdrl_image *himg)
get error as cpl image
cpl_size hdrl_image_get_size_y(const hdrl_image *self)
return size of Y dimension of image
const cpl_mask * hdrl_image_get_mask_const(const hdrl_image *himg)
get cpl bad pixel mask from image
cpl_size hdrl_image_get_size_x(const hdrl_image *self)
return size of X dimension of image
const cpl_image * hdrl_image_get_error_const(const hdrl_image *himg)
get error as cpl image
cpl_error_code hdrl_image_insert(hdrl_image *self, const cpl_image *image, const cpl_image *error, cpl_size xpos, cpl_size ypos)
Copy cpl images into an hdrl image.
cpl_size hdrl_image_count_rejected(const hdrl_image *self)
return number of rejected pixels
hdrl_image * hdrl_image_create(const cpl_image *image, const cpl_image *error)
create a new hdrl_image from to existing images by copying them
cpl_image * hdrl_image_get_image(hdrl_image *himg)
get data as cpl image
cpl_error_code hdrl_image_reject(hdrl_image *self, cpl_size xpos, cpl_size ypos)
mark pixel as bad
const cpl_image * hdrl_image_get_image_const(const hdrl_image *himg)
get data as cpl image
CPL_BEGIN_DECLS hdrl_image * hdrl_image_new(cpl_size nx, cpl_size ny)
create new zero filled hdrl image
cpl_error_code hdrl_image_dump_structure(const hdrl_image *, FILE *)
Dump structural information of a HDRL image.
cpl_error_code hdrl_image_accept(hdrl_image *self, cpl_size xpos, cpl_size ypos)
mark pixel as good
void hdrl_image_delete(hdrl_image *himg)
delete hdrl_image
cpl_error_code hdrl_image_accept_all(hdrl_image *self)
Accept all pixels in an image.