|
CR2RE Pipeline Reference Manual 1.6.7
|
Enumerations | |
| enum | hdrl_imagelist_basic_type |
| Define the kind of operation to apply. | |
Functions | |
| cpl_error_code | hdrl_imagelist_add_imagelist (hdrl_imagelist *himlist1, const hdrl_imagelist *himlist2) |
| Add two image lists, the first one is replaced by the result. | |
| cpl_error_code | hdrl_imagelist_sub_imagelist (hdrl_imagelist *himlist1, const hdrl_imagelist *himlist2) |
| Subtract two image lists, the first one is replaced by the result. | |
| cpl_error_code | hdrl_imagelist_mul_imagelist (hdrl_imagelist *himlist1, const hdrl_imagelist *himlist2) |
| Multiply two image lists, the first one is replaced by the result. | |
| cpl_error_code | hdrl_imagelist_div_imagelist (hdrl_imagelist *himlist1, const hdrl_imagelist *himlist2) |
| Divide two image lists, the first one is replaced by the result. | |
| cpl_error_code | hdrl_imagelist_add_image (hdrl_imagelist *himlist, const hdrl_image *himg) |
| Add an image to an image list. | |
| cpl_error_code | hdrl_imagelist_sub_image (hdrl_imagelist *himlist, const hdrl_image *himg) |
| Subtract an image from an image list. | |
| cpl_error_code | hdrl_imagelist_mul_image (hdrl_imagelist *himlist, const hdrl_image *himg) |
| Multiply an image by an image list. | |
| cpl_error_code | hdrl_imagelist_div_image (hdrl_imagelist *himlist, const hdrl_image *himg) |
| Divide an image from an image list. | |
| cpl_error_code | hdrl_imagelist_add_scalar (hdrl_imagelist *himlist, hdrl_value value) |
| Elementwise addition of a scalar to each image in the himlist. | |
| cpl_error_code | hdrl_imagelist_sub_scalar (hdrl_imagelist *himlist, hdrl_value value) |
| Elementwise subtraction of a scalar to each image in the himlist. | |
| cpl_error_code | hdrl_imagelist_mul_scalar (hdrl_imagelist *himlist, hdrl_value value) |
| Elementwise multiplication of a scalar to each image in the himlist. | |
| cpl_error_code | hdrl_imagelist_div_scalar (hdrl_imagelist *himlist, hdrl_value value) |
| Elementwise division by a scalar to each image in the himlist. | |
| cpl_error_code | hdrl_imagelist_pow_scalar (hdrl_imagelist *himlist, hdrl_value exponent) |
| Compute the elementwise power of each image in the himlist. | |
| cpl_error_code | hdrl_imagelist_collapse (const hdrl_imagelist *himlist, const hdrl_parameter *param, hdrl_image **out, cpl_image **contrib) |
| collapsing of image list | |
| cpl_error_code | hdrl_imagelist_collapse_mean (const hdrl_imagelist *himlist, hdrl_image **out, cpl_image **contrib) |
| Mean collapsing of image list. | |
| cpl_error_code | hdrl_imagelist_collapse_weighted_mean (const hdrl_imagelist *himlist, hdrl_image **out, cpl_image **contrib) |
| Weighted Mean collapsing of image list. | |
| cpl_error_code | hdrl_imagelist_collapse_median (const hdrl_imagelist *himlist, hdrl_image **out, cpl_image **contrib) |
| Median collapsing of image list. | |
| cpl_error_code | hdrl_imagelist_collapse_sigclip (const hdrl_imagelist *himlist, double kappa_low, double kappa_high, int niter, hdrl_image **out, cpl_image **contrib, cpl_image **reject_low, cpl_image **reject_high) |
| Sigma-clipped collapsing of image list. | |
| cpl_error_code | hdrl_imagelist_collapse_minmax (const hdrl_imagelist *himlist, double nlow, double nhigh, hdrl_image **out, cpl_image **contrib, cpl_image **reject_low, cpl_image **reject_high) |
| Minmax-clipped collapsing of image list. | |
| cpl_error_code | hdrl_imagelist_collapse_mode (const hdrl_imagelist *himlist, double histo_min, double histo_max, double bin_size, hdrl_mode_type mode_method, cpl_size error_niter, hdrl_image **out, cpl_image **contrib) |
| Mode collapsing of image list. | |
| hdrl_imagelist * | hdrl_imagelist_new (void) |
| Create an empty imagelist. | |
| hdrl_imagelist * | hdrl_imagelist_create (cpl_imagelist *imlist, cpl_imagelist *errlist) |
| Create an hdrl_imagelist out of 2 cpl_imagelist. | |
| cpl_size | hdrl_imagelist_get_size (const hdrl_imagelist *himlist) |
| Get the number of images in the imagelist. | |
| cpl_size | hdrl_imagelist_get_size_x (const hdrl_imagelist *himlist) |
| Get number of colums of images in the imagelist. | |
| cpl_size | hdrl_imagelist_get_size_y (const hdrl_imagelist *himlist) |
| Get number of rows of images in the imagelist. | |
| hdrl_image * | hdrl_imagelist_get (const hdrl_imagelist *himlist, cpl_size inum) |
| Get an image from a list of images. | |
| const hdrl_image * | hdrl_imagelist_get_const (const hdrl_imagelist *himlist, cpl_size inum) |
| Get an image from a list of images. | |
| cpl_error_code | hdrl_imagelist_set (hdrl_imagelist *himlist, hdrl_image *himg, cpl_size pos) |
| Insert an image into an imagelist. | |
| hdrl_image * | hdrl_imagelist_unset (hdrl_imagelist *himlist, cpl_size pos) |
| Remove an image from an imagelist. | |
| void | hdrl_imagelist_delete (hdrl_imagelist *himlist) |
| Free all memory used by a hdrl_imagelist object including the images. | |
| void | hdrl_imagelist_empty (hdrl_imagelist *himlist) |
| Empty an imagelist and deallocate all its images. | |
| hdrl_imagelist * | hdrl_imagelist_duplicate (const hdrl_imagelist *himlist) |
| Duplicate an image list. | |
| int | hdrl_imagelist_is_consistent (const hdrl_imagelist *himlist) |
| Determine if an imagelist contains images of equal size and type. | |
| cpl_error_code | hdrl_imagelist_dump_structure (const hdrl_imagelist *himlist, FILE *stream) |
| Dump structural information of images in an imagelist. | |
| cpl_error_code | hdrl_imagelist_dump_window (const hdrl_imagelist *himlist, cpl_size llx, cpl_size lly, cpl_size urx, cpl_size ury, FILE *stream) |
| Dump pixel values of images in a imagelist. | |
hdrl_imagelist is similiar to cpl_imagelist but for hdrl_image. Its reduction methods (mean, median, ...) provide linear error propagation.
| cpl_error_code hdrl_imagelist_add_image | ( | hdrl_imagelist * | himlist, |
| const hdrl_image * | himg | ||
| ) |
Add an image to an image list.
| himlist | input image list (modified) |
| himg | image to add |
The passed image is added to each image of the passed image list.
Possible cpl_error_code set in this function:
Definition at line 185 of file hdrl_imagelist_basic.c.
References hdrl_image_add_image().
| cpl_error_code hdrl_imagelist_add_imagelist | ( | hdrl_imagelist * | himlist1, |
| const hdrl_imagelist * | himlist2 | ||
| ) |
Add two image lists, the first one is replaced by the result.
| himlist1 | first input image list (modified) |
| himlist2 | image list to add |
The two input lists must have the same size, the image number n in the list himlist2 is added to the image number n in the list himlist1.
Possible cpl_error_code set in this function:
Definition at line 108 of file hdrl_imagelist_basic.c.
References hdrl_image_add_image().
| cpl_error_code hdrl_imagelist_add_scalar | ( | hdrl_imagelist * | himlist, |
| hdrl_value | value | ||
| ) |
Elementwise addition of a scalar to each image in the himlist.
| himlist | Imagelist to be modified in place. |
| value | Value to add to the images |
Possible cpl_error_code set in this function:
Definition at line 276 of file hdrl_imagelist_basic.c.
References hdrl_image_add_scalar().
| cpl_error_code hdrl_imagelist_collapse | ( | const hdrl_imagelist * | himlist, |
| const hdrl_parameter * | param, | ||
| hdrl_image ** | out, | ||
| cpl_image ** | contrib | ||
| ) |
collapsing of image list
| himlist | input image list |
| param | collapse parameters defining the type of collapse |
| out | output combined image pointer filled with pointer to allocated result object |
| contrib | output contribution mask pointer filled with pointer to allocated result object |
Collapse an imagelist according to the type of collapse parameter used as input. It only supports collapse methods with the two outputs, the combined image and the contribution map. For collapse functions with additional output the specialized collapse functions must be used.
Possible cpl_error_code set in this function:
Definition at line 407 of file hdrl_imagelist_basic.c.
References hdrl_collapse_minmax_parameter_get_nhigh(), hdrl_collapse_minmax_parameter_get_nlow(), hdrl_collapse_mode_parameter_get_bin_size(), hdrl_collapse_mode_parameter_get_error_niter(), hdrl_collapse_mode_parameter_get_histo_max(), hdrl_collapse_mode_parameter_get_histo_min(), hdrl_collapse_mode_parameter_get_method(), hdrl_collapse_parameter_is_mean(), hdrl_collapse_parameter_is_median(), hdrl_collapse_parameter_is_minmax(), hdrl_collapse_parameter_is_mode(), hdrl_collapse_parameter_is_sigclip(), hdrl_collapse_parameter_is_weighted_mean(), hdrl_collapse_sigclip_parameter_get_kappa_high(), hdrl_collapse_sigclip_parameter_get_kappa_low(), hdrl_collapse_sigclip_parameter_get_niter(), hdrl_imagelist_collapse_mean(), hdrl_imagelist_collapse_median(), hdrl_imagelist_collapse_minmax(), hdrl_imagelist_collapse_mode(), hdrl_imagelist_collapse_sigclip(), and hdrl_imagelist_collapse_weighted_mean().
Referenced by hdrl_bpm_3d_compute(), hdrl_flat_compute(), hdrl_fringe_compute(), and hdrl_spectrum1Dlist_collapse().
| cpl_error_code hdrl_imagelist_collapse_mean | ( | const hdrl_imagelist * | himlist, |
| hdrl_image ** | out, | ||
| cpl_image ** | contrib | ||
| ) |
Mean collapsing of image list.
| himlist | input image list |
| out | output combined image |
| contrib | output contribution mask |
Possible cpl_error_code set in this function:
Definition at line 470 of file hdrl_imagelist_basic.c.
Referenced by hdrl_imagelist_collapse().
| cpl_error_code hdrl_imagelist_collapse_median | ( | const hdrl_imagelist * | himlist, |
| hdrl_image ** | out, | ||
| cpl_image ** | contrib | ||
| ) |
Median collapsing of image list.
| himlist | input image list |
| out | output combined image |
| contrib | output contribution mask |
Possible cpl_error_code set in this function:
Definition at line 518 of file hdrl_imagelist_basic.c.
Referenced by hdrl_imagelist_collapse().
| cpl_error_code hdrl_imagelist_collapse_minmax | ( | const hdrl_imagelist * | himlist, |
| double | nlow, | ||
| double | nhigh, | ||
| hdrl_image ** | out, | ||
| cpl_image ** | contrib, | ||
| cpl_image ** | reject_low, | ||
| cpl_image ** | reject_high | ||
| ) |
Minmax-clipped collapsing of image list.
| himlist | input image list |
| nlow | low number of pixels to reject |
| nhigh | high number of pixels to reject |
| out | output combined image |
| contrib | output contribution mask |
| reject_low | output low rejection thresholds, may be NULL |
| reject_high | output high rejection thresholds, may be NULL |
Possible cpl_error_code set in this function:
Definition at line 613 of file hdrl_imagelist_basic.c.
Referenced by hdrl_imagelist_collapse().
| cpl_error_code hdrl_imagelist_collapse_mode | ( | const hdrl_imagelist * | himlist, |
| double | histo_min, | ||
| double | histo_max, | ||
| double | bin_size, | ||
| hdrl_mode_type | mode_method, | ||
| cpl_size | error_niter, | ||
| hdrl_image ** | out, | ||
| cpl_image ** | contrib | ||
| ) |
Mode collapsing of image list.
| himlist | input image list |
| histo_min | minimum value of low pixels to use |
| histo_max | maximum value of high pixels to be use |
| bin_size | size of the histogram bin |
| mode_method | mode_method to use for the mode computation |
| error_niter | number of iterations to compute the error of the mode |
| out | output combined image |
| contrib | output contribution mask |
Possible cpl_error_code set in this function:
Definition at line 680 of file hdrl_imagelist_basic.c.
Referenced by hdrl_imagelist_collapse().
| cpl_error_code hdrl_imagelist_collapse_sigclip | ( | const hdrl_imagelist * | himlist, |
| double | kappa_low, | ||
| double | kappa_high, | ||
| int | niter, | ||
| hdrl_image ** | out, | ||
| cpl_image ** | contrib, | ||
| cpl_image ** | reject_low, | ||
| cpl_image ** | reject_high | ||
| ) |
Sigma-clipped collapsing of image list.
| himlist | input image list |
| kappa_low | low sigma bound |
| kappa_high | high sigma bound |
| niter | number of clipping iterators |
| out | output combined image |
| contrib | output contribution mask |
| reject_low | output low rejection thresholds, may be NULL |
| reject_high | output high rejection thresholds, may be NULL |
Possible cpl_error_code set in this function:
Definition at line 548 of file hdrl_imagelist_basic.c.
Referenced by hdrl_imagelist_collapse().
| cpl_error_code hdrl_imagelist_collapse_weighted_mean | ( | const hdrl_imagelist * | himlist, |
| hdrl_image ** | out, | ||
| cpl_image ** | contrib | ||
| ) |
Weighted Mean collapsing of image list.
| himlist | input image list |
| out | output combined image |
| contrib | output contribution mask |
Possible cpl_error_code set in this function:
Definition at line 494 of file hdrl_imagelist_basic.c.
Referenced by hdrl_imagelist_collapse().
| hdrl_imagelist * hdrl_imagelist_create | ( | cpl_imagelist * | imlist, |
| cpl_imagelist * | errlist | ||
| ) |
Create an hdrl_imagelist out of 2 cpl_imagelist.
| imlist | the list of image |
| errlist | the list of errors |
Possible cpl_error_code set in this function:
Definition at line 102 of file hdrl_imagelist_io.c.
References hdrl_image_create(), hdrl_imagelist_new(), and hdrl_imagelist_set().
Referenced by cr2res_io_load_image_list(), and cr2res_io_load_image_list_from_set().
| void hdrl_imagelist_delete | ( | hdrl_imagelist * | himlist | ) |
Free all memory used by a hdrl_imagelist object including the images.
| himlist | The image list or NULL |
Definition at line 385 of file hdrl_imagelist_io.c.
References hdrl_imagelist_empty().
Referenced by cr2res_calib_image(), cr2res_calib_imagelist(), hdrl_bpm_fit_compute(), hdrl_fit_polynomial_imagelist(), hdrl_fit_polynomial_imagelist2(), hdrl_resample_image_to_table(), and hdrl_resample_result_delete().
| cpl_error_code hdrl_imagelist_div_image | ( | hdrl_imagelist * | himlist, |
| const hdrl_image * | himg | ||
| ) |
Divide an image from an image list.
| himlist | input image list (modified) |
| himg | image to divide |
The passed image is used to divide each image of the passed image list.
Possible cpl_error_code set in this function:
Definition at line 254 of file hdrl_imagelist_basic.c.
References hdrl_image_div_image().
| cpl_error_code hdrl_imagelist_div_imagelist | ( | hdrl_imagelist * | himlist1, |
| const hdrl_imagelist * | himlist2 | ||
| ) |
Divide two image lists, the first one is replaced by the result.
| himlist1 | first input image list (modified) |
| himlist2 | image list to divide |
Definition at line 162 of file hdrl_imagelist_basic.c.
References hdrl_image_div_image().
| cpl_error_code hdrl_imagelist_div_scalar | ( | hdrl_imagelist * | himlist, |
| hdrl_value | value | ||
| ) |
Elementwise division by a scalar to each image in the himlist.
| himlist | Imagelist to be modified in place. |
| value | Value to divide to the images |
Possible cpl_error_code set in this function:
Definition at line 348 of file hdrl_imagelist_basic.c.
References hdrl_image_div_scalar().
| cpl_error_code hdrl_imagelist_dump_structure | ( | const hdrl_imagelist * | himlist, |
| FILE * | stream | ||
| ) |
Dump structural information of images in an imagelist.
| himlist | Imagelist to dump |
| stream | Output stream, accepts stdout or stderr |
Possible cpl_error_code set in this function:
Definition at line 492 of file hdrl_imagelist_io.c.
References hdrl_image_dump_structure(), and hdrl_imagelist_get_const().
| cpl_error_code hdrl_imagelist_dump_window | ( | const hdrl_imagelist * | himlist, |
| cpl_size | llx, | ||
| cpl_size | lly, | ||
| cpl_size | urx, | ||
| cpl_size | ury, | ||
| FILE * | stream | ||
| ) |
Dump pixel values of images in a imagelist.
| himlist | Imagelist to dump |
| llx | Specifies the window position |
| lly | Specifies the window position |
| urx | Specifies the window position |
| ury | Specifies the window position |
| stream | Output stream, accepts stdout or stderr |
Possible cpl_error_code set in this function:
Definition at line 538 of file hdrl_imagelist_io.c.
References hdrl_image_dump_window(), and hdrl_imagelist_get_const().
| hdrl_imagelist * hdrl_imagelist_duplicate | ( | const hdrl_imagelist * | himlist | ) |
Duplicate an image list.
| himlist | Source image list. |
Copy an image list into a new image list object. The returned image list must be deallocated using hdrl_imagelist_delete().
Possible cpl_error_code set in this function:
Definition at line 440 of file hdrl_imagelist_io.c.
References hdrl_image_duplicate(), hdrl_imagelist_new(), and hdrl_imagelist_set().
| void hdrl_imagelist_empty | ( | hdrl_imagelist * | himlist | ) |
Empty an imagelist and deallocate all its images.
| himlist | The image list or NULL |
NULL nothing is done and no error is set.After the call the image list can be populated again. It must eventually be deallocated with a call to hdrl_imagelist_delete().
Definition at line 405 of file hdrl_imagelist_io.c.
References hdrl_image_delete(), and hdrl_imagelist_unset().
Referenced by hdrl_imagelist_delete().
| hdrl_image * hdrl_imagelist_get | ( | const hdrl_imagelist * | himlist, |
| cpl_size | inum | ||
| ) |
Get an image from a list of images.
| himlist | the image list |
| inum | the image id (from 0 to number of images-1) |
The returned pointer refers to already allocated data.
Possible cpl_error_code set in this function:
Definition at line 210 of file hdrl_imagelist_io.c.
Referenced by cr2res_calib_imagelist(), cr2res_combine_nodding_split(), cr2res_qc_detlin(), cr2res_qc_detlin_stat(), hdrl_bpm_3d_compute(), hdrl_bpm_fit_compute(), hdrl_fit_polynomial_imagelist(), hdrl_fit_polynomial_imagelist2(), hdrl_flat_compute(), hdrl_fringe_compute(), hdrl_fringe_correct(), and hdrl_imagelist_pow_scalar().
| const hdrl_image * hdrl_imagelist_get_const | ( | const hdrl_imagelist * | himlist, |
| cpl_size | inum | ||
| ) |
Get an image from a list of images.
| himlist | the image list |
| inum | the image id (from 0 to number of images-1) |
Definition at line 229 of file hdrl_imagelist_io.c.
Referenced by cr2res_detlin_correct(), hdrl_bpm_3d_compute(), hdrl_fit_polynomial_imagelist2(), hdrl_fringe_compute(), hdrl_fringe_correct(), hdrl_imagelist_dump_structure(), hdrl_imagelist_dump_window(), hdrl_imagelist_get_size_x(), hdrl_imagelist_get_size_y(), and hdrl_resample_imagelist_to_table().
| cpl_size hdrl_imagelist_get_size | ( | const hdrl_imagelist * | himlist | ) |
Get the number of images in the imagelist.
| himlist | the list of images |
Possible cpl_error_code set in this function:
Definition at line 148 of file hdrl_imagelist_io.c.
Referenced by cr2res_calib_imagelist(), cr2res_combine_nodding_split(), hdrl_bpm_3d_compute(), hdrl_bpm_fit_compute(), hdrl_fit_polynomial_imagelist(), hdrl_fit_polynomial_imagelist2(), hdrl_flat_compute(), hdrl_fringe_compute(), hdrl_fringe_correct(), hdrl_imagelist_pow_scalar(), hdrl_resample_compute(), and hdrl_resample_imagelist_to_table().
| cpl_size hdrl_imagelist_get_size_x | ( | const hdrl_imagelist * | himlist | ) |
Get number of colums of images in the imagelist.
| himlist | the list of images |
assumes the imagelist is uniform (cpl_imagelist_is_uniform)
Possible cpl_error_code set in this function:
Definition at line 168 of file hdrl_imagelist_io.c.
References hdrl_image_get_size_x(), and hdrl_imagelist_get_const().
Referenced by hdrl_fit_polynomial_imagelist(), hdrl_fit_polynomial_imagelist2(), and hdrl_resample_imagelist_to_table().
| cpl_size hdrl_imagelist_get_size_y | ( | const hdrl_imagelist * | himlist | ) |
Get number of rows of images in the imagelist.
| himlist | the list of images |
assumes the imagelist is uniform (cpl_imagelist_is_uniform)
Possible cpl_error_code set in this function:
Definition at line 188 of file hdrl_imagelist_io.c.
References hdrl_image_get_size_y(), and hdrl_imagelist_get_const().
Referenced by hdrl_fit_polynomial_imagelist(), hdrl_fit_polynomial_imagelist2(), and hdrl_resample_imagelist_to_table().
| int hdrl_imagelist_is_consistent | ( | const hdrl_imagelist * | himlist | ) |
Determine if an imagelist contains images of equal size and type.
| himlist | The imagelist to check |
The function returns 1 if the list is empty.
Possible cpl_error_code set in this function:
Definition at line 470 of file hdrl_imagelist_io.c.
| cpl_error_code hdrl_imagelist_mul_image | ( | hdrl_imagelist * | himlist, |
| const hdrl_image * | himg | ||
| ) |
Multiply an image by an image list.
| himlist | input image list (modified) |
| himg | image to multiply |
The passed image is multiplied by each image of the passed image list.
Possible cpl_error_code set in this function:
Definition at line 231 of file hdrl_imagelist_basic.c.
References hdrl_image_mul_image().
| cpl_error_code hdrl_imagelist_mul_imagelist | ( | hdrl_imagelist * | himlist1, |
| const hdrl_imagelist * | himlist2 | ||
| ) |
Multiply two image lists, the first one is replaced by the result.
| himlist1 | first input image list (modified) |
| himlist2 | image list to multiply |
Definition at line 144 of file hdrl_imagelist_basic.c.
References hdrl_image_mul_image().
| cpl_error_code hdrl_imagelist_mul_scalar | ( | hdrl_imagelist * | himlist, |
| hdrl_value | value | ||
| ) |
Elementwise multiplication of a scalar to each image in the himlist.
| himlist | Imagelist to be modified in place. |
| value | Value to multiply to the images |
Possible cpl_error_code set in this function:
Definition at line 324 of file hdrl_imagelist_basic.c.
References hdrl_image_mul_scalar().
| hdrl_imagelist * hdrl_imagelist_new | ( | void | ) |
Create an empty imagelist.
Definition at line 84 of file hdrl_imagelist_io.c.
Referenced by cr2res_calib_imagelist(), cr2res_combine_nodding_split(), hdrl_bpm_3d_compute(), hdrl_fit_polynomial_imagelist(), hdrl_fit_polynomial_imagelist2(), hdrl_imagelist_create(), hdrl_imagelist_duplicate(), and hdrl_resample_image_to_table().
| cpl_error_code hdrl_imagelist_pow_scalar | ( | hdrl_imagelist * | himlist, |
| hdrl_value | exponent | ||
| ) |
Compute the elementwise power of each image in the himlist.
| himlist | Imagelist to be modified in place. |
| exponent | Scalar exponent |
Possible cpl_error_code set in this function:
Definition at line 370 of file hdrl_imagelist_basic.c.
References hdrl_image_pow_scalar(), hdrl_imagelist_get(), and hdrl_imagelist_get_size().
| cpl_error_code hdrl_imagelist_set | ( | hdrl_imagelist * | himlist, |
| hdrl_image * | himg, | ||
| cpl_size | pos | ||
| ) |
Insert an image into an imagelist.
| himlist | The imagelist |
| himg | The image to insert |
| pos | The list position (from 0 to number of images) |
It is allowed to specify the position equal to the number of images in the list. This will increment the size of the imagelist.
No action occurs if an image is inserted more than once into the same position. It is allowed to insert the same image into two different positions in a list.
The image is inserted at the position pos in the image list. If the image already there is only present in that one location in the list, then the image is deallocated.
It is not allowed to insert images of different size into a list.
The added image is owned by the imagelist object, which deallocates it hdrl_imagelist_delete is called. Other option is to use hdrl_imagelist_unset to recover ownership of the image, in which case the hdrl_imagelist object is not longer responsible for deallocating it.
Possible cpl_error_code set in this function:
Definition at line 274 of file hdrl_imagelist_io.c.
References hdrl_image_delete(), hdrl_image_get_size_x(), and hdrl_image_get_size_y().
Referenced by cr2res_calib_imagelist(), cr2res_combine_nodding_split(), hdrl_bpm_3d_compute(), hdrl_fit_polynomial_imagelist(), hdrl_fit_polynomial_imagelist2(), hdrl_imagelist_create(), hdrl_imagelist_duplicate(), and hdrl_resample_image_to_table().
| cpl_error_code hdrl_imagelist_sub_image | ( | hdrl_imagelist * | himlist, |
| const hdrl_image * | himg | ||
| ) |
Subtract an image from an image list.
| himlist | input image list (modified) |
| himg | image to subtract |
The passed image is subtracted from each image of the passed image list.
Possible cpl_error_code set in this function:
Definition at line 208 of file hdrl_imagelist_basic.c.
References hdrl_image_sub_image().
| cpl_error_code hdrl_imagelist_sub_imagelist | ( | hdrl_imagelist * | himlist1, |
| const hdrl_imagelist * | himlist2 | ||
| ) |
Subtract two image lists, the first one is replaced by the result.
| himlist1 | first input image list (modified) |
| himlist2 | image list to subtract |
Definition at line 126 of file hdrl_imagelist_basic.c.
References hdrl_image_sub_image().
| cpl_error_code hdrl_imagelist_sub_scalar | ( | hdrl_imagelist * | himlist, |
| hdrl_value | value | ||
| ) |
Elementwise subtraction of a scalar to each image in the himlist.
| himlist | Imagelist to be modified in place. |
| value | Value to subtract to the images |
Possible cpl_error_code set in this function:
Definition at line 300 of file hdrl_imagelist_basic.c.
References hdrl_image_sub_scalar().
| hdrl_image * hdrl_imagelist_unset | ( | hdrl_imagelist * | himlist, |
| cpl_size | pos | ||
| ) |
Remove an image from an imagelist.
| himlist | The imagelist |
| pos | The list position (from 0 to number of images-1) |
The specified image is not deallocated, it is simply removed from the list. The pointer to the image is returned to let the user decide to deallocate it or not. Eventually, the image will have to be deallocated with hdrl_image_delete().
Possible cpl_error_code set in this function:
Definition at line 347 of file hdrl_imagelist_io.c.
Referenced by hdrl_bpm_3d_compute(), hdrl_imagelist_empty(), and hdrl_resample_image_to_table().