|
ifw-odp 5.0.0
|
#include "ifw/odp/clipm/clipm_priv_image_resample.h"#include "ifw/odp/clipm/clipm_math.h"#include "ifw/odp/clipm/clipm_priv_checks.h"#include "ifw/odp/clipm/clipm_priv_math.h"#include "ifw/odp/clipm/clipm_priv_matrix.h"#include "ifw/odp/clipm/clipm_priv_image.h"#include "ifw/odp/clipm/clipm_compatibility_replacements.h"#include "ifw/odp/clipm/clipm_priv_error.h"Macros | |
| #define | _clipm_priv_image_interpolate_bilinear_BODY(CTYPE) |
| #define | _clipm_priv_TRANSFORM( dimension_index, X, Y) |
| #define | clipm_priv_image_resample_bilinear_BODY(TYPE, input, result) |
Functions | |
| cpl_image * | clipm_priv_image_lineartrans_bilinear (const cpl_image *input, const cpl_matrix *transform, cpl_matrix *shift, const cpl_size window_xxyy[4], int adjust_size, int use_outside_wdw, int norm_flag, int set_bpm_flag, cpl_image **contrib_map) |
| Linearly transform a 2d-image using bilinear interpolation. | |
| cpl_image * | clipm_priv_image_resample_bilinear (const cpl_image *input, double scale) |
| Resample an image using bilinear interpolation. | |
| double | clipm_priv_image_resample_undo_position (double resampled_position, double scale) |
| Backtransform a position (x or y) from a resampled image to the original position before resampling (FITS convention). | |
| double | clipm_priv_image_resample_position (double original_position, double scale) |
| Transform a position (x or y) from an image, which is to be resampled, to the new position in the resampled image (FITS convention). | |
| #define _clipm_priv_image_interpolate_bilinear_BODY | ( | CTYPE | ) |
| #define _clipm_priv_TRANSFORM | ( | dimension_index, | |
| X, | |||
| Y ) |
| #define clipm_priv_image_resample_bilinear_BODY | ( | TYPE, | |
| input, | |||
| result ) |
| cpl_image * clipm_priv_image_lineartrans_bilinear | ( | const cpl_image * | input, |
| const cpl_matrix * | transform, | ||
| cpl_matrix * | shift, | ||
| const cpl_size | window_xxyy[4], | ||
| int | adjust_size, | ||
| int | use_outside_wdw, | ||
| int | norm_flag, | ||
| int | set_bpm_flag, | ||
| cpl_image ** | contrib_map ) |
Linearly transform a 2d-image using bilinear interpolation.
| input | Input image |
| transform | 2x2 transformation matrix |
| shift | 2x1 shift matrix, will be modified if adjust_size is true (see below) |
| window_xxyy | Coordinate buffer of the form {xa, xb, ya, yb}, can be NULL, minimum/maximum order is irrelevant |
| adjust_size | Flag to allow resizing the output |
| use_outside_wdw | Flag to use also data outside window_xxyy (if not NULL), only used if adjust_size is true (see below) |
| norm_flag | Flag whether to already normalize the output image by the contribution weight, should default to 1 if contrib_map is not used, otherwise 0 if the contrib_map will be applied individually |
| set_bpm_flag | Flag whether to mark output pixels with a contribution of 0 as bad |
| contrib_map | (Optional output) image containing the weighting of each pixel during the interpolation, the range is [0...1], reflecting the influence of bad pixels or image borders |
| cpl_image * clipm_priv_image_resample_bilinear | ( | const cpl_image * | input, |
| double | scale ) |
Resample an image using bilinear interpolation.
| input | The input image |
| scale | The scaling factor |
| double clipm_priv_image_resample_position | ( | double | original_position, |
| double | scale ) |
Transform a position (x or y) from an image, which is to be resampled, to the new position in the resampled image (FITS convention).
| original_position | The input position in the original image |
| scale | The scaling factor |
| double clipm_priv_image_resample_undo_position | ( | double | resampled_position, |
| double | scale ) |
Backtransform a position (x or y) from a resampled image to the original position before resampling (FITS convention).
| resampled_position | The position in the resampled image |
| scale | The scaling factor |