piv API documentation
SOURCE: lib/imgproc.c
LAST MODIFICATION DATE:
| #define GPIV_IMGPROCPAR_DEFAULT__BIT 8 |
Default parameter for bit of __GpivImageProcPar
| #define GPIV_IMGPROCPAR_DEFAULT__DIR_PREFIX 0 |
Default parameter for dir_prefix of __GpivImageProcPar
| #define GPIV_IMGPROCPAR_DEFAULT__FILE_PREFIX 0 |
Default parameter for file_prefix of __GpivImageProcPar
| #define GPIV_IMGPROCPAR_DEFAULT__FILTER 0 |
Default parameter for filter of __GpivImageProcPar
| #define GPIV_IMGPROCPAR_DEFAULT__FIRST_DIR 0 |
Default parameter for first_dir of __GpivImageProcPar
| #define GPIV_IMGPROCPAR_DEFAULT__FIRST_FILE 0 |
Default parameter for first_file of __GpivImageProcPar
| #define GPIV_IMGPROCPAR_DEFAULT__LAST_DIR 0 |
Default parameter for last_dir of __GpivImageProcPar
| #define GPIV_IMGPROCPAR_DEFAULT__LAST_FILE 0 |
Default parameter for last_file of __GpivImageProcPar
| #define GPIV_IMGPROCPAR_DEFAULT__SMOOTH_OPERATOR 0 |
Default parameter for smooth_operator of __GpivImageProcPar
| #define GPIV_IMGPROCPAR_DEFAULT__THRESHOLD 30 |
Default parameter for threshold of __GpivImageProcPar
| #define GPIV_IMGPROCPAR_DEFAULT__WINDOW 10 |
Default parameter for window of __GpivImageProcPar
| enum GpivImgFilter |
Image filter type
| gchar* gpiv_imgproc_check_parameters_read | ( | GpivImageProcPar * | image_proc_par, | |
| GpivImageProcPar | image_proc_par_default | |||
| ) |
Checks if all necessary image processing parameters have been read
| [in] | image_proc_par | structure of image processing parameters |
| [in] | image_proc_par_default | image processing parameters containing default values |
| gchar* gpiv_imgproc_clip | ( | GpivImagePar | image_par, | |
| GpivImageProcPar | image_proc_par, | |||
| guint16 ** | img | |||
| ) |
Sets all pixel values lower than threshold to zero
| [in] | image_par | structure of image parameters |
| [in] | image_proc_par | structure of image processing parameters |
| [in] | img | input image. Needs to be allocated |
| [out] | img | modified input image |
| gchar* gpiv_imgproc_convolve | ( | GpivImagePar | image_par, | |
| GpivImageProcPar | image_proc_par, | |||
| guint16 ** | img1_in, | |||
| guint16 ** | img2_in, | |||
| guint16 *** | img_out | |||
| ) |
Convolves two images
| [in] | image_par | structure of image parameters |
| [in] | image_proc_par | structure of image processing parameters |
| [in] | img1_in | first input image. Needs to be allocated |
| [in] | img2_in | second input image. Needs to be allocated |
| [out] | img_out | pointer to output image. Not necessarily allocated |
| gchar* gpiv_imgproc_correlate | ( | GpivImagePar | image_par, | |
| GpivImageProcPar | image_proc_par, | |||
| guint16 ** | img1_in, | |||
| guint16 ** | img2_in, | |||
| guint16 *** | img_out | |||
| ) |
Correlates two images
| [in] | image_par | structure of image parameters |
| [in] | image_proc_par | structure of image processing parameters |
| [in] | img1_in | first input image. Needs to be allocated |
| [in] | img2_in | second input image. Needs to be allocated |
| [out] | img_out | pointer to output image. Not necessarily allocated |
| void gpiv_imgproc_default_parameters | ( | GpivImageProcPar * | imgproc_par_default, | |
| gboolean | force | |||
| ) |
Sets default parameter values
| [in] | force | flag to enforce parameters set to defaults |
| [out] | imgproc_par_default | structure of image processing parameters |
| gchar* gpiv_imgproc_deform | ( | GpivPivData * | piv_data, | |
| GpivImagePar * | image_par, | |||
| guint16 ** | img1_src, | |||
| guint16 ** | img2_src, | |||
| guint16 *** | img1_dest, | |||
| guint16 *** | img2_dest | |||
| ) |
Image shifting and deformation routine for a single exposed, double frame PIV image pair with magnitude of PIV estimations at each pixel
| [in] | piv_data | Input PIV data structure |
| [in] | image_par | image parameters |
| [in] | img1_src | first input image frame. Needs to be allocated |
| [in] | img2_src | second input image frame. Needs to be allocated |
| [out] | img1_dest | first deformed image frame. May be allocated or not |
| [out] | img2_dest | second deformed image frame. May be allocated or not |
| gchar* gpiv_imgproc_fft | ( | GpivImagePar | image_par, | |
| GpivImageProcPar | image_proc_par, | |||
| guint16 ** | img | |||
| ) |
Fast Fourier Transformation
| [in] | image_par | structure of image parameters |
| [in] | image_proc_par | structure of image processing parameters |
| [in] | img | input image. Needs to be allocated |
| [out] | img | modified input image |
| void gpiv_imgproc_fprint_parameters | ( | FILE * | fp_par_out, | |
| GpivImageProcPar | image_proc_par | |||
| ) |
Prints image processing parameters to file
| [in] | fp_par_out | file pointer to which paraeters will be printed |
| [in] | image_proc_par | structure of image processing parameters |
| gchar* gpiv_imgproc_getbit | ( | GpivImagePar | image_par, | |
| GpivImageProcPar | image_proc_par, | |||
| guint16 ** | img | |||
| ) |
Pointer operation to get the N least significant bits and moves them to most the significant bits
| [in] | image_par | structure of image parameters |
| [in] | image_proc_par | structure of image processing parameters |
| [in] | img | input image. Needs to be allocated |
| [out] | img | modified input image |
| gchar* gpiv_imgproc_highlow | ( | GpivImagePar | image_par, | |
| GpivImageProcPar | image_proc_par, | |||
| guint16 ** | img | |||
| ) |
High-low filter to maximize contrast by stretching pixel values to local max and min within window x window area
| [in] | image_par | structure of image parameters |
| [in] | image_proc_par | structure of image processing parameters |
| [in] | img | input image. Needs to be allocated |
| [out] | img | modified input image |
| gchar* gpiv_imgproc_highpass | ( | GpivImagePar | image_par, | |
| GpivImageProcPar | image_proc_par, | |||
| guint16 ** | img | |||
| ) |
Highpass filter on an image passing data from M - window,..,M/2, N - window,..,N/2
| [in] | image_par | structure of image parameters |
| [in] | image_proc_par | structure of image processing parameters |
| [in] | img | input image. Needs to be allocated |
| [out] | img | modified input image |
| gchar* gpiv_imgproc_lowpass | ( | GpivImagePar | image_par, | |
| GpivImageProcPar | image_proc_par, | |||
| guint16 ** | img | |||
| ) |
Lowpass filter on an image
| [in] | image_par | structure of image parameters |
| [in] | image_proc_par | structure of image processing parameters |
| [in] | img | input image. Needs to be allocated |
| [out] | img | modified input image |
| gchar* gpiv_imgproc_mktestimg | ( | GpivImagePar | image_par, | |
| GpivImageProcPar | image_proc_par, | |||
| guint16 *** | img_out | |||
| ) |
Genarates test image for image processing
| [in] | image_par | structure of image parameters |
| [in] | image_proc_par | structure of image processing parameters |
| [out] | img_out | pointer to output image. Not necessarily allocated |
| void gpiv_imgproc_print_parameters | ( | GpivImageProcPar | image_proc_par | ) |
Prints image processing parameters to stdout
| [in] | image_proc_par | structure of image processing parameters |
| void gpiv_imgproc_read_parameters | ( | FILE * | fp_h, | |
| GpivImageProcPar * | image_proc_par, | |||
| gboolean | print_par | |||
| ) |
Reads image processing parameters
| [in] | fp_h | file to be read |
| [in] | image_proc_par | pointer to structure of image processing parameters |
| [in] | print_par | prints parameters to stdout during reading |
| [out] | image_proc_par | pointer to structure of image processing parameters |
| gchar* gpiv_imgproc_smooth | ( | GpivImagePar | image_par, | |
| GpivImageProcPar | image_proc_par, | |||
| guint16 ** | img | |||
| ) |
Smoothing filter by taking mean value of surrounding window x window pixels
| [in] | image_par | structure of image parameters |
| [in] | image_proc_par | structure of image processing parameters |
| [in] | img | input image. Needs to be allocated |
| [out] | img | modified input image |
| gchar* gpiv_imgproc_subtractimg | ( | GpivImagePar | image_par_in, | |
| guint16 ** | img_in, | |||
| GpivImagePar | image_par_out, | |||
| guint16 ** | img_out | |||
| ) |
Subtracts image intensities of img_in from img_out. To avoid swapping of intensities, output values are set to zero if img_in is larger than img_out. Images will have to be of identic dimensions.
| [in] | image_par_in | structure of image parameters of img_in |
| [in] | image_par_out | image parameters of img_out |
| [in] | img_in | image containing the intensities to be subtracted |
| [out] | img_out | modified image. will have to exist and allocated |
| gchar* gpiv_imgproc_test_parameters | ( | GpivImageProcPar | image_proc_par | ) |
Tests on validity and adapt image processing parameters
| [in] | image_proc_par | structure of image processing parameters |
1.5.1