64 #ifndef __LIBGPIV_IMGPROC_H__ 65 #define __LIBGPIV_IMGPROC_H__ 67 #define GPIV_IMGPROCPAR_MAX__THRESHOLD 255 68 #define GPIV_IMGPROCPAR_MAX__WINDOW 50 70 #define GPIV_IMGPROCPAR_KEY "IMGPROC" 176 const gboolean print_par
gchar * gpiv_imgproc_subtractimg(const GpivImage *image_in, GpivImage *image_out)
Subtracts image intensities of img_in from img_out.
enum GpivImgFilter filter
Filter type.
gchar * gpiv_imgproc_getbit(GpivImage *image, const GpivImageProcPar *image_proc_par)
Pointer operation to get the N least significant bits and moves them to most the significant bits...
gboolean filter__set
flag if filter has been defined
gboolean window__set
flag if window has been defined
gchar * gpiv_imgproc_highlow(GpivImage *image, const GpivImageProcPar *image_proc_par)
High-low filter to maximize contrast by stretching pixel values to local max and min within window x ...
enum GpivImgSmoothOperator smooth_operator
Type of sooting operaor.
gchar * gpiv_imgproc_smooth(GpivImage *image, const GpivImageProcPar *image_proc_par)
Smoothing filter by taking mean value of surrounding window x window pixels.
gchar * gpiv_imgproc_clip(GpivImage *image, const GpivImageProcPar *image_proc_par)
Sets all pixel values lower than threshold to zero.
gchar * gpiv_imgproc_highpass(GpivImage *image, const GpivImageProcPar *image_proc_par)
Highpass filter on an image passing data from M - window,..,M/2, N - window,..,N/2.
gchar * gpiv_imgproc_test_parameters(const GpivImageProcPar *image_proc_par)
Tests image processing parameters on validity.
Piv image header and data.
Image processing parameters.
guint threshold
minimum or maximum (intensity) value
gchar * gpiv_imgproc_deform(GpivImage *image, const GpivPivData *piv_data)
Image shifting and deformation routine for a single exposed, double frame PIV image pair with magnitu...
gboolean smooth_operator__set
flag smooth_operator if has been defined
Holds the variables of PIV data.
Subtract background image.
void gpiv_imgproc_read_parameters(FILE *fp_h, GpivImageProcPar *image_proc_par, const gboolean print_par)
Reads image processing parameters.
gchar * gpiv_imgproc_convolve(GpivImagePar image_par, GpivImageProcPar image_proc_par, guint16 **img1_in, guint16 **img2_in, guint16 ***img_out)
Convolves two images.
void gpiv_imgproc_print_parameters(FILE *fp, const GpivImageProcPar *image_proc_par)
Prints image processing parameters to file.
Image parameters or header info.
void gpiv_imgproc_parameters_set(GpivImageProcPar *image_proc_par, const gboolean flag)
Sets flag for image_proc_par__set.
GpivImage * gpiv_imgproc_mktestimg(const GpivImagePar *image_par, const GpivImageProcPar *image_proc_par)
Genarates test image for image processing.
gchar * gpiv_imgproc_correlate(GpivImagePar image_par, GpivImageProcPar image_proc_par, guint16 **img1_in, guint16 **img2_in, guint16 ***img_out)
Correlates two images.
guint window
geographic window in pixels
gchar * gpiv_imgproc_check_parameters_read(GpivImageProcPar *image_proc_par, const GpivImageProcPar *image_proc_par_default)
Checks if all necessary image processing parameters have been read.
gboolean threshold__set
flag if threshold has been defined
Pointer operation to get the N least significant bits.
gchar * gpiv_imgproc_lowpass(GpivImagePar image_par, GpivImageProcPar image_proc_par, guint16 **img)
Lowpass filter on an image.
GpivImgFilter
Image filter type.
void gpiv_imgproc_default_parameters(GpivImageProcPar *imgproc_par_default, const gboolean force)
Sets default parameter values.
GpivImgSmoothOperator
Operator type when smoothing is performed.
gboolean bit__set
flag if has bit been defined
GpivImageProcPar * gpiv_imgproc_cp_parameters(const GpivImageProcPar *imgproc_par)
Copies image processing parameters.
gchar * gpiv_imgproc_fft(GpivImage *image, const GpivImageProcPar *image_proc_par)
Fast Fourier Transformation of image.