ImageD  v2_7_5 (24.06.22)
ImageD is an image processing software designed for rapid prototyping and implementing algorithms and solutions for science, research and teaching.
D_Img_Proc Class Reference

The D_Img_Proc class static 2D image processing functions. More...

#include <d_img_proc.h>

Public Member Functions

 D_Img_Proc ()
 

Static Public Member Functions

static int Load_From_Path (Mat *pMA_Out, QFileInfo FI_path)
 
static int Load_From_Path (Mat *pMA_Out, QString path)
 
static int Load_From_Path (Mat *pMA_Out, string path)
 
static int Load_From_Path_Gray (Mat *pMA_Out, QFileInfo FI_path)
 
static int Load_From_Path_Gray (Mat *pMA_Out, QString path)
 
static int Load_From_Path_Gray (Mat *pMA_Out, string path)
 
static int Load_From_Path_Text (Mat *pMA_Out, string path)
 
static int Load_From_Path_Raw (Mat *pMA_Out, string path, int width, int height, int out_type)
 
static int Load_From_Path_Multi (Mat *pMA_Out, QString path, unsigned int page)
 
static int Generate_byValueFunction (Mat *pMA_Out, int width, int height, function< double(double x, double y)> value_function)
 
static int Generate_byValueFunction_Complex (Mat *pMA_Out, int width, int height, function< complex< double >(complex< double > x, complex< double > y)> value_function)
 
static QString Type_of_QImage (QImage *pQI_In)
 
static QString Type_of_Mat (Mat *pMA_In)
 
static QString Type_of_Mat (int channels, int depth)
 
static int TypeIndex_of_Mat (int channels, int depth)
 
static int Channels_of_MatType (int type)
 
static int BitDepth_of_MatType (int type)
 
static int BitsPerPixel_of_MatType (int type)
 
static Scalar Scalar_EqualInAllChannels (int channels=1, double value=0)
 
static int Stat_ofPixelvalues (double *value, Mat *pMA_In, int stat, bool ignore_zeros)
 
static int Quantiles_ofPixelvalues (double *q_low, double *q_high, Mat *pMA_In, double low_rel, double high_rel, bool ignore_zeros)
 
static int Quantiles_ofPixelvalues (vector< double > *v_q_low, vector< double > *v_q_high, Mat *pMA_In, double low_rel, double high_rel, bool ignore_zeros)
 
static int Convert_Mat_to_QImage (QImage *pQI_Out, Mat *pMA_In, bool use_custom_range_for_spread_non_8bit=false, double in_min=0, double in_max=1)
 
static int Convert_QImage_to_Mat (Mat *pMA_Out, QImage *pQI_In)
 
static int Convert_toMat4Ch (Mat *pMA_Out, Mat *pMA_In_Value, Mat *pMA_In_Alpha, bool heat_color)
 
static int Convert_toMat4Ch_8bit (Mat *pMA_Out, Mat *pMA_In, int alpha_mode, bool heat_color=false, bool norm_alpha=true)
 
static int Convert_toMat4Ch_8bit (Mat *pMA_Out, Mat *pMA_In_Value, Mat *pMA_In_Alpha, bool heat_color=false, bool norm_alpha=true)
 
static int Convert_toQImage4Ch (QImage *pQI_Out, Mat *pMA_In_Value, Mat *pMA_In_Alpha, bool heat_color)
 
static int Convert_toQImage4Ch_8bit (QImage *pQI_Out, Mat *pMA_In_Value, Mat *pMA_In_Alpha, bool heat_color=false)
 
static int MinMax_of_Mat (Mat *pMA_In, double *min_ext, double *max_ext)
 
static int MinMax_of_Mat_1C (Mat *pMA_In, double *min_ext, double *max_ext)
 
static int ValAtPix (vector< double > *v_value, Mat *pMA_In, size_t x_pos, size_t y_pos)
 
static int ValAtPix (QString *QS_value, Mat *pMA_In, unsigned int x_pos, unsigned int y_pos)
 
static int Duplicate (Mat *pMA_Out, Mat *pMA_In)
 
static int Insert (Mat *pMA_Target, Mat *pMA_Insert, int offset_x, int offset_y)
 
static int Insert (Mat *pMA_Target, Mat *pMA_Insert, int offset_x, int offset_Y, double scale)
 
static int Invert (Mat *pMA_Out, Mat *pMA_In)
 
static int Convert_Color (Mat *pMA_Out, Mat *pMA_In, int cvt_mode)
 
static int Convert_Color_RGBA (Mat *pMA_Out, Mat *pMA_In, double r, double g, double b, double a, double range_rgba=255.0)
 
static int Convert_Color2Mono (Mat *pMA_Out, Mat *pMA_In, int col2mono_code)
 
static int Convert_Depth_NoScaling (Mat *pMA_Out, Mat *pMA_In, int depth)
 
static int Convert_Depth_NoScaling_1C (Mat *pMA_Out, Mat *pMA_In, int depth)
 
static int Convert_8UC1 (Mat *pMA_Out, Mat *pMA_In)
 
static int Convert_Complex2Real_1C (Mat *pMA_Out, Mat *pMA_InRe, Mat *pMA_InIm, int mode)
 
static int Convert_Complex2Real_1C (Mat *pMA_Out, Mat *pMA_InComplexChannels, int mode)
 
static int Convert_Angle2Color_Rad (Mat *pMA_Out, Mat *pMA_InAngleRad, uchar Saturation=255, uchar Value=255)
 
static int Normalize (Mat *pMA_Out, Mat *pMA_In, unsigned int norm, unsigned int type, double min, double max)
 
static int Spread_16_bit_to_8bit (Mat *pMA_Out, Mat *pMA_In, double in_max, double out_max)
 
static int Spread_8bit_to_float01 (Mat *pMA_Out, Mat *pMA_In)
 
static int Channel_Supression (Mat *pMA_Out, Mat *pMA_In, bool use_r=true, bool use_g=true, bool use_b=true, bool force_3ch=false)
 
static int Split (Mat *pMA_Out, Mat *pMA_In, unsigned int channel)
 
static int Merge (Mat *pMA_Out, Mat *pMA_In0, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3, unsigned int channels, bool channel_use[4])
 
static int Sign2Color (Mat *pMA_Out, Mat *pMA_In, bool norm=false)
 
static int Duplicate2Channels (Mat *pMA_Out, Mat *pMA_In, int channels)
 
static int Merge (Mat *pMA_Out, Mat *pMA_In0, Mat *pMA_In1, Mat *pMA_In2)
 
static int Merge (Mat *pMA_Out, vector< Mat > vMA_in, vector< int > v_R, vector< int > v_G, vector< int > v_B, vector< int > v_A)
 
static int Combi_8UC1_binary (Mat *pMA_Out, Mat *pMA_In)
 
static int GammaSpread_1C (Mat *pMA_Out, Mat *pMA_In, double gamma, double in_min, double in_max, double out_min=0, double out_max=255, bool force_8bit=false)
 
static int GammaSpread (Mat *pMA_Out, Mat *pMA_In, double gamma, double in_min, double in_max, double out_min=0, double out_max=255, bool force_8bit=false)
 
static int GammaSpread (Mat *pMA_Out, Mat *pMA_In, double gamma, vector< double > v_in_min, vector< double > v_in_max, double out_min=0, double out_max=255, bool force_8bit=false)
 
static int GammaSpread_Quantiles (Mat *pMA_Out, Mat *pMA_In, double gamma, double quantile_low, double quantile_high, double out_min=0, double out_max=255, bool force_8bit=false, bool ignore_zeros=true)
 
static int Visualize_to8bit (Mat *pMA_Out, Mat *pMA_In, int mode_crop, int mode_trafo, int mode_anchor, int mode_range, double val_anchor, double val_range, double val_min, double val_max, double val_gamma, double val_center, double val_scale, bool keep_min_max=false, int mode_complex=c_COMPLEX2REAL_RE_IM)
 
static int Visualize_to8bit_1C (Mat *pMA_Out, Mat *pMA_In, int mode_trafo, int mode_anchor, int mode_range, double val_anchor, double val_range, double crop_min, double crop_max, double val_gamma, double val_center, double val_scale)
 
static int Crop_Rect_Rel (Mat *pMA_Out, Mat *pMA_In, double x1_rel, double y1_rel, double x2_rel, double y2_rel)
 
static int Crop_Rect_Rel (Mat *pMA_Out, Mat *pMA_In, double x1_rel, double y1_rel, double x2_rel, double y2_rel, int *offset_x, int *offset_y, int *width, int *heigth)
 
static int Crop_Rect_Abs (Mat *pMA_Out, Mat *pMA_In, int x, int y, int width, int height)
 
static int Crop_Rect_Rot (Mat *pMA_Out, Mat *pMA_In, int x, int y, int width, int height, double angle)
 
static int Crop_Rect_Rot (Mat *pMA_Out, Mat *pMA_In, RotatedRect rrect)
 
static int Crop_Circle (Mat *pMA_Out, Mat *pMA_In, int x, int y, int r)
 
static int Zoom (Mat *pMA_Out, Mat *pMA_In, double x_rel, double y_rel, double factor)
 
static int Zoom (Mat *pMA_Out, Mat *pMA_In, double x_rel, double y_rel, double factor, int *offset_x, int *offset_y, int *width, int *heigth)
 
static int Padding (Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y, int type=BORDER_CONSTANT)
 
static int Padding (Mat *pMA_Out, Mat *pMA_In, int right, int left, int top, int bottom, int type=BORDER_CONSTANT)
 
static int Padding_1C (Mat *pMA_Out, Mat *pMA_In, int right, int left, int top, int bottom, int type=BORDER_CONSTANT)
 
static int ForceSize (Mat *pMA_Out, Mat *pMA_In, int width, int heigth, int border_type=BORDER_CONSTANT)
 
static int Stitch_Border_abs (Mat *pMA_Out, Mat *pMA_In_Main, Mat *pMA_In_R, Mat *pMA_In_B, Mat *pMA_In_BR, int border_R, int border_B, int overlap_R, int overlap_B, Stitcher::Mode mode=Stitcher::SCANS)
 
static int Stitch_Border_rel (Mat *pMA_Out, Mat *pMA_In_Main, Mat *pMA_In_R, Mat *pMA_In_B, Mat *pMA_In_BR, double border_R, double border_B, double overlap_R, double overlap_B, Stitcher::Mode mode=Stitcher::SCANS)
 
static int Stitch_Border_abs_custom (Mat *pMA_Out, Mat *pMA_In_Main, Mat *pMA_In_R, Mat *pMA_In_B, Mat *pMA_In_BR, int border_R, int border_B, int overlap_R, int overlap_B)
 
static int Stitch_Border_rel_custom (Mat *pMA_Out, Mat *pMA_In_Main, Mat *pMA_In_R, Mat *pMA_In_B, Mat *pMA_In_BR, double border_R, double border_B, double overlap_R, double overlap_B)
 
static int Scale_Factor (Mat *pMA_Out, Mat *pMA_In, double scale_x, double scale_y)
 
static int Scale_ToSize (Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y)
 
static int Threshold_Relative (Mat *pMA_Out, Mat *pMA_In, double max_val, double thres_rel)
 
static int Threshold_Relative_1C (Mat *pMA_Out, Mat *pMA_In, double max_val, double thres_rel)
 
static int Threshold_Absolute (Mat *pMA_Out, Mat *pMA_In, double thres_abs)
 
static int Threshold_Absolute_1C (Mat *pMA_Out, Mat *pMA_In, double thres_abs)
 
static int Threshold_Value (Mat *pMA_Out, Mat *pMA_In, int out_mode, double max_val, double thres)
 
static int Threshold_Auto (Mat *pMA_Out, Mat *pMA_In, int out_mode, double max_val, int auto_mode)
 
static int Threshold_Adaptive (Mat *pMA_Out, Mat *pMA_In, int out_mode, double max_val, int adapt_mode, unsigned int mask_size, double offset)
 
static int Threshold_Adaptive_Gauss (Mat *pMA_Out, Mat *pMA_In, int size, double sigma, double offset, double scale)
 
static int Threshold_Adaptive_Gauss_1C (Mat *pMA_Out, Mat *pMA_In, int size, double sigma, double offset, double scale)
 D_Img_Proc::Threshold_Adaptive_Gauss_1C lokall adaptive threshhold using comparison to gauss filtered image. More...
 
static int Threshold_RankOrderOffsetHysteresis (Mat *pMA_Out, Mat *pMA_In, double radius, double quantile, double thresh_offset_indicator, double thresh_offset_hysteresis, bool labeling=false)
 
static int Threshold_BlurThres (Mat *pMA_Out, Mat *pMA_In, int size, double sigma, double thres)
 
static int Color_Grab (Mat *pMA_Out, Mat *pMA_In, int color_space, int out_mode, vector< uchar > min, vector< uchar > max)
 
static int Morphology_Elemental (Mat *pMA_Out, Mat *pMA_In, int morph_type, int elem_type, unsigned int elem_size_X, unsigned int elem_size_Y, int border_type, unsigned int iterations)
 
static int Morphology_Skeleton (Mat *pMA_Out, Mat *pMA_In, int elem_type, unsigned int elem_size_X, unsigned int elem_size_Y, int border_type)
 
static int Morphology_Thinning (Mat *pMA_Out, Mat *pMA_In, int thinning_type)
 
static int Morphology_Thinning_Iteration (Mat img, int iter, int thinning_type)
 
static int Morphology_Erode_Rect (Mat *pMA_Out, Mat *pMA_In, int elem_size_X, int elem_size_Y)
 
static int Morphology_Dilate_Rect (Mat *pMA_Out, Mat *pMA_In, int elem_size_X, int elem_size_Y)
 
static int Morphology_LocMax_Rect (Mat *pMA_Out, Mat *pMA_In, int elem_size_X=3, int elem_size_Y=3)
 
static int Morphology_LocMax_Rect_1C (Mat *pMA_Out, Mat *pMA_In, int elem_size_X=3, int elem_size_Y=3)
 
static int Morphology_Reconstruction (Mat *pMA_Out, Mat *pMA_InSeed, Mat *pMA_InLimit, Mat *pMA_Mask, double quantil=1)
 
static int Transformation_Distance (Mat *pMA_Out, Mat *pMA_In, int metric, int precision)
 
static int Transformation_Watershed (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Marker)
 
static int Transformation_Watershed_Auto (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Marker, bool include_not_seeded, bool conv_8bit, bool exclude_border)
 
static int Transformation_Watershed_Auto (Mat *pMA_Out, Mat *pMA_In, double distance, bool include_not_seeded, bool conv_8bit, bool exclude_border)
 
static int Transformation_Watershed_Auto (Mat *pMA_Out, Mat *pMA_In, int size, double sigma, bool include_not_seeded, bool conv_8bit, bool exclude_border)
 
static int Transformation_Watershed_Custom (Mat *pMA_Out, Mat *pMA_In2Fill, Mat *pMA_InMarker, Mat *pMA_FG_Mask, int mode_flood, int mode_marker, int mode_mask, int connectivity=8, int gauss_size=5, double gauss_sigma=2, int morphgrad_elem=MORPH_ELLIPSE, int morphgrad_size=3, double thresh=127, bool exclude_border=true, bool include_non_seeded=true, bool draw_watersheds=true)
 D_Img_Proc::Transformation_Watershed_Custom WIP, don't use! More...
 
static int Transformation_Watershed_Custom (Mat *pMA_Out, Mat *pMA_In2Fill, Mat *pMA_InMarker, Mat *pMA_FG_Mask, int connectivity=8)
 
static int Transformation_Fourier (Mat *pMA_Out, Mat *pMA_In, bool invers)
 
static int Transformation_Fourier (Mat *pMA_Out, Mat *pMA_In_Re, bool invers=false, bool force_fft=true, bool out_real=false, int out_complex_mode=c_COMPLEX2REAL_ABS, bool out_scale=false, bool out_center=true, bool out_nof0=true)
 
static int Transformation_Fourier (Mat *pMA_Out, Mat *pMA_In_Re, Mat *pMA_In_Im, bool complex_input, bool invers=false, bool force_fft=true, bool out_real=false, int out_complex_mode=c_COMPLEX2REAL_ABS, bool out_scale=false, bool out_center=true, bool out_nof0=true)
 
static int Transformation_Fourier_1C (Mat *pMA_Out, Mat *pMA_In_Re, Mat *pMA_In_Im, bool invers=false, bool force_fft=true, bool out_real=false, int out_complex_mode=c_COMPLEX2REAL_ABS, bool out_scale=false, bool out_center=true, bool out_nof0=true)
 
static int Segmentation_GaussDistWater (Mat *pMA_Out, Mat *pMA_In, int size, double sigma, double thres, double distance, bool include_not_seeded, bool conv_8bit, bool exclude_border)
 
static int Filter_Box (Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y, int border, int out_depth, bool norm)
 
static int Filter_Box_RMS (Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y, int border, int out_depth, bool norm)
 
static int Filter_Gauss (Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y, int border, double sigma_x, double sigma_y)
 
static int Filter_Median (Mat *pMA_Out, Mat *pMA_In, int size)
 
static int Filter_Median (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask)
 D_Img_Proc::Filter_Median performs median filtering with huang algorithm. More...
 
static int Filter_RankOrder (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask, double quantil_relPos)
 D_Img_Proc::Filter_RankOrder performs Rank order filtering with huang algorithm for any quantile. More...
 
static int Filter_RankOrder_Circular (Mat *pMA_Out, Mat *pMA_In, double quantil_relPos, double radius)
 D_Img_Proc::Filter_RankOrder_Circular special case of Filter_RankOrder. More...
 
static int Filter_RankOrder_Rect (Mat *pMA_Out, Mat *pMA_In, double quantil_relPos, int size_x, int size_y)
 D_Img_Proc::Filter_RankOrder_Rect special case of Filter_RankOrder for rect masks. More...
 
static int Filter_RankOrder_1C (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask, double quantil_relPos)
 D_Img_Proc::Filter_RankOrder_1C performs Rank order filtering with huang algorithm for any quantile. More...
 
static int Filter_RankOrder_1C_Thread (Mat *pMA_Out, Mat *pMA_InPadded, Mat *pMA_Mask, double quantil_relPos, size_t img_in_sx, size_t y_start, size_t y_end, double val_max, size_t mask_relevant_px_count, vector< Point > *vBorderL, vector< Point > *vBorderR, vector< Point > *vBorderT, vector< Point > *vBorderB)
 D_Img_Proc::Filter_RankOrder_1C_Thread performs Rank order filtering with huang algorithm for any quantile on a region of an image. More...
 
static int Filter_Maximum_1C (Mat *pMA_Out, Mat *pMA_In, size_t mask_size_x, size_t mask_size_y)
 
static int Filter_Maximum_1C_Thread_X (Mat *pMA_Out, Mat *pMA_In, size_t mask_size_x, size_t n_in_x, size_t y_start, size_t y_end)
 
static int Filter_Maximum_1C_Thread_Y (Mat *pMA_Out, Mat *pMA_In, size_t mask_size_x, size_t mask_size_y, size_t n_in_y, size_t x_start, size_t x_end)
 
static int Filter_Laplace (Mat *pMA_Out, Mat *pMA_In, int size, int border, int out_depth, double scale, double delta)
 
static int Filter_LaplaceOfGaussian (Mat *pMA_Out, Mat *pMA_In, int size_g, double sigma_g, int size_l, int border, int out_depth, double scale, double delta)
 
static int Filter_Sobel (Mat *pMA_Out, Mat *pMA_In, int size, int border, int out_depth, double scale, double delta, int d_x, int d_y)
 
static int Filter_Scharr (Mat *pMA_Out, Mat *pMA_In, int border, int out_depth, double scale, double delta, int d_x, int d_y)
 
static int Filter_Canny (Mat *pMA_Out, Mat *pMA_In, int size, double thres_low, double thres_high, bool L2_gradient)
 
static int Filter_Bilateral (Mat *pMA_Out, Mat *pMA_In, int diameter, int border, double sigma_color, double sigma_space)
 
static int Filter_Gabor (Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y, int border, int out_depth, double sigma, double theta, double lambda, double gamma, double psi, double delta)
 
static int Filter_Eilenstein_Prototype (Mat *pMA_Out, Mat *pMA_In, bool cmp_fkt(double, double, double), unsigned int size_x, unsigned int size_y, bool normalized, double constant)
 
static int Filter_Eilenstein_1C (Mat *pMA_Out, Mat *pMA_In, int comp, unsigned int size_x, unsigned int size_y, bool normalized, double constant)
 
static int Filter_Eilenstein (Mat *pMA_Out, Mat *pMA_In, int comp, unsigned int size_x, unsigned int size_y, bool normalized, double constant)
 
static int Filter_Eilenstein (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask, function< double(double cur, double nei)> response_CurNei, function< double(double res, double wei)> weight_ResWeigth, function< double(vector< double > v_res)> combine_Responses)
 
static int Filter_Eilenstein_1C (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask, function< double(double cur, double nei)> response_CurNei, function< double(double res, double wei)> weight_ResWeigth, function< double(vector< double > v_res)> combine_Responses)
 
static int Filter_Function (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask, function< double(double cur, double nei)> F1_CenterImage, function< double(double f1r, double msk)> F2_f1mask, function< double(vector< double > vf2r)> F3_Combine, function< double(double f3r, double cen)> F4_f3center, int border_type=BORDER_CONSTANT, bool DoNonZeroMaskOnly=false)
 
static int Filter_Function_1C (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask, function< double(double cur, double nei)> F1_CenterImage, function< double(double f1r, double msk)> F2_f1mask, function< double(vector< double > vf2r)> F3_Combine, function< double(double f3r, double cen)> F4_f3center, int border_type=BORDER_CONSTANT, int thread_number=8, bool DoNonZeroMaskOnly=false)
 
static int Filter_Function_1C_Thread (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask, function< double(double cur, double nei)> F1_CenterImage, function< double(double f1r, double msk)> F2_f1mask, function< double(vector< double > vf2r)> F3_Combine, function< double(double f3r, double cen)> F4_f3center, int row_start, int row_end, int col_start, int col_end, bool DoNonZeroMaskOnly=false)
 
static int Filter_Function_8bit (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask, function< uchar(double cur, double nei)> F1_CenterImage, function< uchar(double f1r, double msk)> F2_f1mask, function< uchar(vector< double > vf2r)> F3_Combine, function< uchar(double f3r, double cen)> F4_f3center, int border_type=BORDER_CONSTANT, bool DoNonZeroMaskOnly=false)
 
static int Filter_Function_8bit_1C (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask, function< uchar(double cur, double nei)> F1_CenterImage, function< uchar(double f1r, double msk)> F2_f1mask, function< uchar(vector< double > vf2r)> F3_Combine, function< uchar(double f3r, double cen)> F4_f3center, int border_type=BORDER_CONSTANT, int thread_number=8, bool DoNonZeroMaskOnly=false)
 
static int Filter_Function_8bit_1C_Thread (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask, function< uchar(double cur, double nei)> F1_CenterImage, function< uchar(double f1r, double msk)> F2_f1mask, function< uchar(vector< double > vf2r)> F3_Combine, function< uchar(double f3r, double cen)> F4_f3center, int row_start, int row_end, int col_start, int col_end, bool DoNonZeroMaskOnly=false)
 
static int Filter_Stat (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask, int stat, int border_type=BORDER_CONSTANT)
 
static int Filter_Stat_Circular (Mat *pMA_Out, Mat *pMA_In, double radius, int stat, int border_type=BORDER_CONSTANT)
 
static int Filter_Stat_Rect (Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y, int stat, int border_type=BORDER_CONSTANT)
 
static int Fill_Holes (Mat *pMA_Out, Mat *pMA_In)
 
static int Exclude_BorderConnected (Mat *pMA_Out, Mat *pMA_In)
 
static int Labeling (Mat *pMA_Out, Mat *pMA_In, int connectivity, int out_depth)
 
static int Math_Add (Mat *pMA_Out, Mat *pMA_In1, double summand)
 
static int Math_Add (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_Add (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, double summand)
 
static int Math_Add (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3)
 
static int Math_Add (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3, double summand)
 
static int Math_Add (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3, Mat *pMA_In4)
 
static int Math_Add (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3, Mat *pMA_In4, double summand)
 
static int Math_Mult (Mat *pMA_Out, Mat *pMA_In1, double factor)
 
static int Math_Mult (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_Mult (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, double factor)
 
static int Math_Mult (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3)
 
static int Math_Mult (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3, double factor)
 
static int Math_Mult (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3, Mat *pMA_In4)
 
static int Math_Mult (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3, Mat *pMA_In4, double factor)
 
static int Math_And (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_And (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3)
 
static int Math_And (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3, Mat *pMA_In4)
 
static int Math_Or (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_Or (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3)
 
static int Math_Or (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3, Mat *pMA_In4)
 
static int Math_Magnitude (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_MagnitudeSquared (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_Phase (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_LimitTop (Mat *pMA_Out, Mat *pMA_InThresh, Mat *pMA_InToLimit)
 
static int Math_LimitTop (Mat *pMA_Target, Mat *pMA_InThresh)
 
static bool Check_IsSimilar (Mat *pMA_In1, Mat *pMA_In2)
 
static bool Check_GreaterValue (Mat *pMA_InSmaller, Mat *pMA_InGreater)
 
static int Math_ImgSelf_Not (Mat *pMA_Out, Mat *pMA_In)
 
static int Math_ImgScal_Add (Mat *pMA_Out, Mat *pMA_In, double summmand)
 
static int Math_ImgScal_Sub (Mat *pMA_Out, Mat *pMA_In, double subtrahend)
 
static int Math_ScalImg_Sub (Mat *pMA_Out, Mat *pMA_In, double minuend)
 
static int Math_ImgScal_Mult (Mat *pMA_Out, Mat *pMA_In, double factor)
 
static int Math_ImgScal_Div (Mat *pMA_Out, Mat *pMA_In, double divisor)
 
static int Math_ImgScal_Pow (Mat *pMA_Out, Mat *pMA_In, double power)
 
static int Math_ImgScal_Root (Mat *pMA_Out, Mat *pMA_In)
 
static int Math_ImgScal_Log (Mat *pMA_Out, Mat *pMA_In)
 
static int Math_ImgImg_Add (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_ImgImg_AddWeighted (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, double weight_1, double weight_2, double weight_sum)
 
static int Math_ImgImg_Diff (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_ImgImg_DiffAbs (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_ImgImg_Mult (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, double scale)
 
static int Math_ImgImg_Div (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, double scale)
 
static int Math_ImgImg_BitAnd (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_ImgImg_BitOr (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_ImgImg_BitXor (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_ImgImg_Min (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_ImgImg_Max (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_ImgImg_Comp (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, int comp)
 
static int Math_ImgImg_Function (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, function< double(double x, double y)> function_img1_img2)
 
static int Math_ImgImg_Function_8bit (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, function< uchar(double x, double y)> function_img1_img2)
 
static int Math_ImgImg_Function_Complex (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, function< complex< double >(complex< double > x, complex< double > y)> function_img1_img2)
 
static int Math_ImgStack_Project (Mat *pMA_Out, vector< Mat > *pvMA_In, int stat=c_STAT_MEAN_ARITMETIC)
 
static int Math_ImgStack_StatCombine (Mat *pMA_Out, vector< Mat > *pvMA_In0, vector< Mat > *pvMA_In1, function< double(vector< double >)> f_stat_0, function< double(vector< double >)> f_stat_1, function< double(double, double)> f_combi, bool force8bit)
 
static int Math_ImgStack_StatCombine_Thread (Mat *pMA_Out, vector< Mat > *pvMA_In0, vector< Mat > *pvMA_In1, function< double(vector< double >)> f_stat_0, function< double(vector< double >)> f_stat_1, function< double(double, double)> f_combi, bool force8bit, int row_start, int row_end)
 
static int Math_Special_Add_Color (Mat *pMA_Out, Mat *pMA_In_Color, Mat *pMA_In0, Mat *pMA_In1, Mat *pMA_In2)
 
static int Math_Special_NADH (Mat *pMA_NADH, Mat *pMA_I, Mat *pMA_A2, Mat *pMA_T1, Mat *pMA_T2, float k, bool ignore_0, float T2_Max_Thres, float T2_Max_Const)
 
static int Math_Special_NADPH (Mat *pMA_NADPH, Mat *pMA_I, Mat *pMA_A2, Mat *pMA_T1, Mat *pMA_T2, float k, bool ignore_0, float T2_Min_Thres, float T2_Min_Const)
 
static int Math_Special_NADPH_NADH (Mat *pMA_NADPH_NADH, Mat *pMA_T2, bool ignore_0, float T2_Min_Thres, float T2_Max_Thres, float T2_Min_Const, float T2_Max_Const)
 
static int Math_Special_Trans2Count (Mat *pMA_Count, Mat *pMA_Trans, float base, float scale)
 
static int Math_Special_IncreaseIfSet (Mat *pMA_Count, Mat *pMA_Check)
 
static int Matrix_Product (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
 
static int Matrix_Inversion (Mat *pMA_Out, Mat *pMA_In)
 
static int Matrix_Transpose (Mat *pMA_Out, Mat *pMA_In)
 
static int Shading_Correct (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Reference)
 
static int Mask (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask)
 
static int Mask_1C (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask)
 
static int Value_to_MinOrMax (Mat *pMA_Out, Mat *pMA_In, double val_src, bool to_min)
 
static int Value_to_Value (Mat *pMA_Out, Mat *pMA_In, double val_src, double val_dst)
 
static int Histo_Equal (Mat *pMA_Out, Mat *pMA_In)
 
static int Calc_Hist (Mat *pMA_Hist, Mat *pMA_In, bool uniform, bool accum)
 
static int Calc_Hist (vector< vector< double >> *vv_hist, Mat *pMA_In, bool uniform, bool accum)
 
static int Calc_Hist_1C (vector< double > *v_hist, Mat *pMA_In, bool uniform, bool accum, unsigned int class_count, double *min_ext, double *max_ext, double *step_ext)
 
static int Calc_Hist_Multi (vector< vector< double >> *vv_hist, Mat *pMA_In, bool uniform, bool accum, unsigned int class_count, vector< double > *v_min_ext, vector< double > *v_max_ext, vector< double > *v_step_ext)
 
static int Calc_LUT (vector< int > *vLUT, Mat *pMA_Label)
 
static int Split_img2vv_value (vector< vector< double >> *vv_data_LabPix, Mat *pMA_Value, Mat *pMA_Label, bool ignore_0)
 
static int Split_img2vv_coord (vector< vector< Point >> *vvp_data_LabCooPt, Mat *pMA_Label)
 
static int Split_img2components (D_Component_List *pCompList, Mat *pMA_In, int connectivity=8)
 
static int Split_ObjectAreas (vector< double > *v_objects, vector< double > *v_areas, Mat *pMA_Label, Mat *pMA_Objects, int connectivity)
 
static int LUT_Apply_to_Label_Int (Mat *pMA_Out, Mat *pMA_Label, vector< int > vLUT)
 
static int LUT_Apply_to_Label_Double (Mat *pMA_Out, Mat *pMA_Label, vector< double > vLUT, bool LUT_has_BG_label=true)
 
static int LUT_Apply_to_Label_Uchar (Mat *pMA_Out, Mat *pMA_Label, vector< uchar > vLUT, bool LUT_has_BG_label=true)
 
static int LUT_Apply_to_Label_Binary (Mat *pMA_Out, Mat *pMA_Label, vector< int > vLUT, bool ignore_BG=true)
 
static int LUT_Apply_to_Label_TrueFalse (Mat *pMA_Out_true, Mat *pMA_Out_false, Mat *pMA_Label, vector< int > vLUT, bool edges=true, bool ignore_BG=true)
 
static int LUT_Apply_to_Label_Color (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Label, vector< int > vLUT, int channel_true, int channel_false, bool edges=true, bool ignore_BG=true)
 
static int Feature_Value (Mat *pMA_Out, Mat *pMA_In, int feature, int connectivity=4)
 
static int FeatureContext_Value (Mat *pMA_Out, Mat *pMA_In, int pt_type1, int pt_type2, double dist_min, double dist_max, int feat, int stat, int connectivity=4)
 
static int Feature_Select (Mat *pMA_Out, Mat *pMA_In, int feature, double f_min, double f_max, int connectivity=4)
 
static int FeatureContext_Select (Mat *pMA_Out, Mat *pMA_In, int pt_type1, int pt_type2, double dist_min, double dist_max, int feat, int stat, double t_min, double t_max, int connectivity=4)
 
static int Feature_Visualize (Mat *pMA_Out, Mat *pMA_In, int feature, int connectivity=4, int thickness=1, double scale=1)
 
static int Feature_Connect (Mat *pMA_Out, Mat *pMA_In, int pt_type1, int pt_type2, double dist_min, double dist_max, int feat1, int feat2, function< bool(double, double)> comp, int connect_mode=c_CONNECT_CLOSEST, int connectivity=4, int thickness=2)
 
static int ValueStat (Mat *pMA_Out, Mat *pMA_InLabel, Mat *pMA_InValue, int stat, int connectivity=8)
 D_Img_Proc::ValueStat assigns a statistic value of all pixel values in a label to the label as gray value. More...
 
static int ValueStat_Select (Mat *pMA_Out, Mat *pMA_InLabel, Mat *pMA_InValue, int stat, double thresh_min, double thresh_max, int connectivity=8)
 
static int Detect_CornerHarris (Mat *pMA_Out, Mat *pMA_In, int blockSize, int sobelAperture, double harrisParam, double thres)
 
static int Select_Area (Mat *pMA_Out, Mat *pMA_In, unsigned int area_min, unsigned int area_max, int connectivity)
 
static int Reduce_Geometric (Mat *pMA_Out, Mat *pMA_In, int geometric, int connectivity=8, int thickness=1, uchar value=255)
 
static int Reduce_Outlines (Mat *pMA_Out, Mat *pMA_In, int neighborhood=8, int thickness=1)
 
static int Reduce_Centroid (Mat *pMA_Out, Mat *pMA_In, int thickness=1)
 
static int Reduce_Contours (Mat *pMA_Out, Mat *pMA_In, int thickness=1)
 
static int Calc_Centroids (vector< Point2f > *pvCentroids, Mat *pMA_In, int connectivity=8)
 
static int Floodfill (Mat *pMA_Out, Mat *pMA_In, unsigned int seed_x, unsigned int seed_y, double new_val)
 
static int Floodfill (Mat *pMA_Target, unsigned int seed_x, unsigned int seed_y, double new_val)
 
static int Floodfill_Boundary (Mat *pMA_Out, Mat *pMA_In, double new_val)
 
static int Floodfill_Delta (Mat *pMA_Out, Mat *pMA_In, int seed_x, int seed_y, uchar val_new, uchar val_delta)
 
static bool Floodfill_Delta_Step (Mat *pMA_Target, Mat *pMA_Check, int x, int y, int dx, int dy, int val_new, int val_delta, int val_origin)
 
static int Hysteresis (Mat *pMA_Out, Mat *pMA_In_Indicator, Mat *pMA_In_Hysteresis, bool labeling=false)
 
static int ImgStackToRow (Mat *pMA_Out, vector< Mat > *pvMA_In, vector< vector< QString >> vvQS_LabelText_Img_Line, int text_thickness=1, double text_scale=1.0, int line_height=10, int frame_thickness=2)
 
static int ImgStackToGrid (Mat *pMA_Out, vector< Mat > *pvMA_In, vector< vector< QString >> vvQS_LabelText_Img_Line, size_t maxPerRow, int text_thickness=1, double text_scale=1.0, int line_height=10, int frame_thickness=2)
 
static int Draw_Dot (Mat *pMA_Target, int x, int y, int d, uchar val)
 
static int Draw_Dots (Mat *pMA_Target, vector< Point2f > vCenters, vector< double > vDiameters, uchar val)
 
static int Draw_Dots (Mat *pMA_Target, vector< Point > vCenters, vector< double > vDiameters, uchar val)
 
static int Draw_Dot (Mat *pMA_Target, int x, int y, int r, uchar val_r, uchar val_g, uchar val_b)
 
static int Draw_Line (Mat *pMA_Target, unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, unsigned int thickness=1, double value=255)
 
static int Draw_Line (Mat *pMA_Target, unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, unsigned int thickness, double val_r, double val_g, double val_b)
 
static int Draw_Line (Mat *pMA_Target, Point P1, Point P2, unsigned int thickness, double val_r, double val_g, double val_b)
 
static int Draw_Line_Bresenham (Mat *pMA_Target, Point P1, Point P2, double val)
 D_Img_Proc::Draw_Line_Bresenham custum function to draw a line between 0° and 45° More...
 
static int Draw_Line_Angle (Mat *pMA_Target, double length, double center_x, double center_y, double angle, unsigned int thickness=1, double value=255)
 
static int Draw_Vector (Mat *pMA_Target, int offset_x, int offset_y, double length_value, double angle_value, double length_error=0, double angle_error=0, int vector_thickness=1, uchar value=255, int error_steps=360, int error_thickness=1)
 
static int Draw_Arc (Mat *pMA_Target, int offset_x, int offset_y, double arc_angle, double arc_orientation, double radius, int line_thickness=1, uchar value=255, int draw_arc_steps=360)
 
static int Draw_Arc (Mat *pMA_Target, int offset_x, int offset_y, double arc_angle_value, double arc_angle_error, double arc_orientation, double radius, int line_thickness=1, uchar value=255, int draw_arc_steps=360)
 
static int Draw_VectorField (Mat *pMA_Target, vector< vector< double >> vv_XY_length_value, vector< vector< double >> vv_XY_angle_value, vector< vector< double >> vv_XY_length_error, vector< vector< double >> vv_XY_angle_error, uchar value=255, int vector_thickness=3, int error_steps=360, int error_thickness=1, bool grid_add=true, int grid_thicknes=2, bool label_add=false, int label_thickness=2, double label_scale=1.0)
 
static int Draw_ArcField (Mat *pMA_Target, vector< vector< double >> vv_XY_arc_angle_value, vector< vector< double >> vv_XY_arc_angle_error, vector< vector< double >> vv_XY_arc_orientation_value, vector< vector< double >> vv_XY_arc_radius_value, vector< vector< size_t > > vv_XY_draw_if_non_zero, uchar value=255, int thickness=3, int arc_draw_steps=360, bool grid_add=true, int grid_thicknes=2, bool label_add=false, int label_thickness=2, double label_scale=1.0)
 
static int Draw_CircleField (Mat *pMA_Target, vector< vector< double >> vv_XY_radius_value, vector< vector< double >> vv_XY_radius_error, uchar value=255, int circle_thickness=1, bool circles_filled=true, bool grid_add=false, int grid_thicknes=2, bool label_add=false, int label_thickness=2, double label_scale=1.0)
 
static int Draw_Rect (Mat *pMA_Target, unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, unsigned int thickness=1, double val=255)
 
static int Draw_Rect_Rotate (Mat *pMA_Target, RotatedRect rrect, int thickness=1, double value=255)
 
static int Draw_GridSimple (Mat *pMA_Target, int nx, int ny, Scalar value=255, int thickness=1)
 
static int Draw_Grid (Mat *pMA_Target, int nx, int ny, bool lines_add, int grid_thickness, bool label_add, int label_thickness, double label_scale, double value)
 
static int Draw_Grid (Mat *pMA_Target, int nx, int ny, bool lines_add, int grid_thickness, bool label_add, int label_thickness, double label_scale, double value_r, double value_g, double value_b)
 
static int Draw_Grid (Mat *pMA_Target, vector< vector< double >> vvNumbers_xy, int nx, int ny, bool lines_add, int grid_thickness, bool label_add, int label_thickness, double label_scale, double value_r, double value_g, double value_b)
 
static int Draw_Grid (Mat *pMA_Target, vector< vector< vector< QString > > > vvvTexts_xyl, int nx, int ny, bool lines_add, int grid_thickness, bool label_add, int label_thickness, double label_scale, double value_r, double value_g, double value_b)
 
static int Draw_Boundaries (Mat *pMA_Target, int width=1, int val=255)
 
static int Draw_Circle (Mat *pMA_Out, Mat *pMA_In, int x, int y, int r, int val=255, int thickness=1, bool filled=false)
 
static int Draw_Circle (Mat *pMA_Target, int x, int y, int r, int val, int thickness=1, bool filled=false)
 
static int Draw_Circle (Mat *pMA_Target, int x, int y, int r, int val_r, int val_g, int val_b, int thickness=1, bool filled=false)
 
static int Draw_Ellipse (Mat *pMA_Target, RotatedRect ell, double val_r, double val_g, double val_b, int thickness=1)
 
static int Draw_MarkerSymbol (Mat *pMA_Target, int x1, int y1, int x2, int y2, int symbol_id, uchar r, uchar g, uchar b, double scale=1)
 
static int Draw_Text (QImage *pQI_Target, QString text_tl, QString text_tr, QString text_bl, QString text_br, unsigned int size, QColor color)
 
static int Draw_Text (Mat *pMA_Target, QString text, int x, int y, int thickness, double scale, double value)
 
static int Draw_Text (Mat *pMA_Target, QString text, int x, int y, int thickness, double scale, double value_r, double value_g, double value_b)
 
static int Draw_Text_ContrastColor (Mat *pMA_Target, QString text, int x=0, int y=0, int thickness=1, double scale=1.0)
 
static int Draw_Label_Numbers_LUT (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Label, vector< double > v_LUT, bool border, double scale, double thickness, bool center, int precision, uchar r=0, uchar g=0, uchar b=0)
 
static int Draw_Label_Text (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Label, QStringList QSL_LabelTexts, bool border, double scale, double thickness, bool center, uchar r=0, uchar g=0, uchar b=0, int connectivity=4)
 
static int Draw_Label_Numbers_LUT_Gray (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Label, vector< double > v_LUT, int geometric, double scale, int thickness, bool center, int precision)
 
static int Draw_Label_Numbers (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Label, double scale, double thickness, bool center)
 
static int Draw_Label_Numbers (Mat *pMA_Out, Mat *pMA_Label, double scale, double thickness, bool center)
 
static int Draw_Label_Numbers_Corner (Mat *pMA_Out, Mat *pMA_Label, double scale, double thickness)
 
static int Draw_Label_Numbers_Center (Mat *pMA_Out, Mat *pMA_Label, double scale, double thickness)
 
static int Draw_Contours (Mat *pMA_Target, vector< vector< Point >> vContours, int line_thickness, double value)
 D_Img_Proc::Draw_Contours draws a list of constours to an image. More...
 
static int Draw_Contour (Mat *pMA_Target, vector< Point > vContour, int line_thickness, double value)
 
static int Draw_Contour (Mat *pMA_Target, vector< Point > vContour, int line_thickness, double R, double G, double B)
 
static int Draw_ContourCrop (Mat *pMA_Out, Mat *pMA_In_R, Mat *pMA_In_G, Mat *pMA_In_B, vector< Point > vContour, int line_thickness, double R, double G, double B, bool draw_contour=true)
 
static int Draw_ContourCrop (Mat *pMA_Out, Mat *pMA_In, vector< Point > vContour, int line_thickness, double value, bool draw_contour=true)
 
static int Draw_ContourText (Mat *pMA_Target, vector< vector< Point >> vContours, QStringList QSL_Texts, vector< Point2f > vTextOrigins, int line_thickness, int text_thickness, double text_scale, double value)
 D_Img_Proc::Draw_ContourText draw contours in an image with added text at contours centers. More...
 
static int Draw_ContourText (Mat *pMA_Out, Mat *pMA_In, vector< vector< Point >> vContours, QStringList QSL_Texts, vector< Point2f > vTextOrigins, int line_thickness, int text_thickness, double text_scale, double value)
 
static QColor Contrast_Color (QColor col_in, bool force_black_and_white=true, bool mirror_hue=true, bool force_light2blue=true)
 
static Scalar Contrast_Color (Vec3d val_BGR, bool force_black_and_white=true, bool mirror_hue=true, bool force_light2blue=true)
 
static QString Color2Text4StyleSheet (QColor col_in)
 
static int Highlight_NumericalProblems (Mat *pMA_Out, Mat *pMA_In)
 
static int OverlayImage (Mat *pMA_Out, Mat *pMA_BaseR, Mat *pMA_BaseG, Mat *pMA_BaseB, Mat *pMA_OverR, Mat *pMA_OverG, Mat *pMA_OverB, uchar thresh_overlay=0)
 
static int OverlayOverwrite (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Overlay, double intensity_overlay=1.0, double intensity_backgr=1.0)
 
static int OverlayOverwrite (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Overlay, QColor color, double intensity_overlay=1.0, double intensity_backgr=1.0)
 
static int OverlayOverwrite (Mat *pMA_Target, Mat *pMA_Overlay, uchar r, uchar g, uchar b, double intensity_overlay=1.0)
 
static int OverlayOverwrite (Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Overlay, uchar r, uchar g, uchar b, double intensity_overlay=1.0, double intensity_backgr=1.0)
 
static int ExtremeValuesColor (Mat *pMA_Out, Mat *pMA_In, double rel_low=0.1, double rel_high=0.9, double gamma=1.0, bool color_low=false, bool color_high=true, bool zero_as_lowest=true)
 
static int Legend_HSV (Mat *pMA_Out, int width, int height, QStringList QSL_H, QStringList QSL_S, QStringList QSL_V, QString QS_H, QString QS_S, QString QS_V, double H_angle_min, double H_angle_range, double scale=1, double thickness=1)
 
static int ClassBorder_kNN (Mat *pMA_Out, Mat *pMA_Class0, Mat *pMA_Class1, int n)
 
static int ObjectsMovement (vector< double > *pvShift_PxPerFrame, vector< double > *pvDirection_Rad, vector< Point2f > *pvPositions, vector< Mat > *pvMA_In, vector< vector< Point2f >> *pvvCentroids, double max_Shift_PxPerFrame=INFINITY, size_t index_NewImg=0, int connectivity=8)
 
static int ObjectsMovement_Heatmap (Mat *pMA_OutHeatmap, Mat *pMA_OutLegend, Mat *pMA_InValue, vector< vector< Point2f >> vv_FrmObjPositions, vector< vector< double >> vv_FrmObjShifts, vector< vector< double >> vv_FrmObjAngles, Point2f P_VortexCenter, double shift_scale, double value_scale, int blur_size_x, int blur_size_y, int mode, int legend_width, int legend_height, double legend_scale, double legend_thickness, int legend_examples=5, double min_rel=0.1, double max_rel=0.9, double frame2time=0.0417)
 
static int DistancesStat (Mat *pMA_Out, Mat *pMA_In, function< double(vector< double >)> F_Stat)
 
static int RadiometricStereo (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3, double S1X, double S1Y, double S1Z, double S2X, double S2Y, double S2Z, double S3X, double S3Y, double S3Z, int out_mode)
 
static int RadiometricStereo (Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, Mat *pMA_In3, Mat S, int out_mode)
 
static int InterferometerMichelson (Mat *pMA_Out, int scene_size_x_px, int scene_size_y_px, int scale_px, double scale_m, double wavelength_m, double dist_source_m, double dist_detector_m, double dist_mirror1_m, double dist_mirror2_m, double angle_mirror1_x, double angle_mirror1_y, double angle_mirror2_x, double angle_mirror2_y)
 

Detailed Description

The D_Img_Proc class static 2D image processing functions.

Most methods take pointers to input and/or ouput Mat plus additional parameters. This class is where you find most of the image processing functions in ImageD. Some are just wrapped from OpenCV others are selfmade.

Constructor & Destructor Documentation

◆ D_Img_Proc()

D_Img_Proc::D_Img_Proc ( )

Member Function Documentation

◆ BitDepth_of_MatType()

int D_Img_Proc::BitDepth_of_MatType ( int  type)
static

◆ BitsPerPixel_of_MatType()

int D_Img_Proc::BitsPerPixel_of_MatType ( int  type)
static

◆ Calc_Centroids()

int D_Img_Proc::Calc_Centroids ( vector< Point2f > *  pvCentroids,
Mat pMA_In,
int  connectivity = 8 
)
static

◆ Calc_Hist() [1/2]

int D_Img_Proc::Calc_Hist ( Mat pMA_Hist,
Mat pMA_In,
bool  uniform,
bool  accum 
)
static

◆ Calc_Hist() [2/2]

static int D_Img_Proc::Calc_Hist ( vector< vector< double >> *  vv_hist,
Mat pMA_In,
bool  uniform,
bool  accum 
)
static

◆ Calc_Hist_1C()

int D_Img_Proc::Calc_Hist_1C ( vector< double > *  v_hist,
Mat pMA_In,
bool  uniform,
bool  accum,
unsigned int  class_count,
double *  min_ext,
double *  max_ext,
double *  step_ext 
)
static

◆ Calc_Hist_Multi()

int D_Img_Proc::Calc_Hist_Multi ( vector< vector< double >> *  vv_hist,
Mat pMA_In,
bool  uniform,
bool  accum,
unsigned int  class_count,
vector< double > *  v_min_ext,
vector< double > *  v_max_ext,
vector< double > *  v_step_ext 
)
static

◆ Calc_LUT()

int D_Img_Proc::Calc_LUT ( vector< int > *  vLUT,
Mat pMA_Label 
)
static

◆ Channel_Supression()

int D_Img_Proc::Channel_Supression ( Mat pMA_Out,
Mat pMA_In,
bool  use_r = true,
bool  use_g = true,
bool  use_b = true,
bool  force_3ch = false 
)
static

◆ Channels_of_MatType()

int D_Img_Proc::Channels_of_MatType ( int  type)
static

◆ Check_GreaterValue()

bool D_Img_Proc::Check_GreaterValue ( Mat pMA_InSmaller,
Mat pMA_InGreater 
)
static

◆ Check_IsSimilar()

bool D_Img_Proc::Check_IsSimilar ( Mat pMA_In1,
Mat pMA_In2 
)
static

◆ ClassBorder_kNN()

int D_Img_Proc::ClassBorder_kNN ( Mat pMA_Out,
Mat pMA_Class0,
Mat pMA_Class1,
int  n 
)
static

◆ Color2Text4StyleSheet()

QString D_Img_Proc::Color2Text4StyleSheet ( QColor  col_in)
static

◆ Color_Grab()

int D_Img_Proc::Color_Grab ( Mat pMA_Out,
Mat pMA_In,
int  color_space,
int  out_mode,
vector< uchar >  min,
vector< uchar >  max 
)
static

◆ Combi_8UC1_binary()

int D_Img_Proc::Combi_8UC1_binary ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Contrast_Color() [1/2]

QColor D_Img_Proc::Contrast_Color ( QColor  col_in,
bool  force_black_and_white = true,
bool  mirror_hue = true,
bool  force_light2blue = true 
)
static

◆ Contrast_Color() [2/2]

Scalar D_Img_Proc::Contrast_Color ( Vec3d  val_BGR,
bool  force_black_and_white = true,
bool  mirror_hue = true,
bool  force_light2blue = true 
)
static

◆ Convert_8UC1()

int D_Img_Proc::Convert_8UC1 ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Convert_Angle2Color_Rad()

int D_Img_Proc::Convert_Angle2Color_Rad ( Mat pMA_Out,
Mat pMA_InAngleRad,
uchar  Saturation = 255,
uchar  Value = 255 
)
static

◆ Convert_Color()

int D_Img_Proc::Convert_Color ( Mat pMA_Out,
Mat pMA_In,
int  cvt_mode 
)
static

◆ Convert_Color2Mono()

int D_Img_Proc::Convert_Color2Mono ( Mat pMA_Out,
Mat pMA_In,
int  col2mono_code 
)
static

◆ Convert_Color_RGBA()

int D_Img_Proc::Convert_Color_RGBA ( Mat pMA_Out,
Mat pMA_In,
double  r,
double  g,
double  b,
double  a,
double  range_rgba = 255.0 
)
static

◆ Convert_Complex2Real_1C() [1/2]

int D_Img_Proc::Convert_Complex2Real_1C ( Mat pMA_Out,
Mat pMA_InComplexChannels,
int  mode 
)
static

◆ Convert_Complex2Real_1C() [2/2]

int D_Img_Proc::Convert_Complex2Real_1C ( Mat pMA_Out,
Mat pMA_InRe,
Mat pMA_InIm,
int  mode 
)
static

◆ Convert_Depth_NoScaling()

int D_Img_Proc::Convert_Depth_NoScaling ( Mat pMA_Out,
Mat pMA_In,
int  depth 
)
static

◆ Convert_Depth_NoScaling_1C()

int D_Img_Proc::Convert_Depth_NoScaling_1C ( Mat pMA_Out,
Mat pMA_In,
int  depth 
)
static

◆ Convert_Mat_to_QImage()

int D_Img_Proc::Convert_Mat_to_QImage ( QImage *  pQI_Out,
Mat pMA_In,
bool  use_custom_range_for_spread_non_8bit = false,
double  in_min = 0,
double  in_max = 1 
)
static

◆ Convert_QImage_to_Mat()

int D_Img_Proc::Convert_QImage_to_Mat ( Mat pMA_Out,
QImage *  pQI_In 
)
static

◆ Convert_toMat4Ch()

int D_Img_Proc::Convert_toMat4Ch ( Mat pMA_Out,
Mat pMA_In_Value,
Mat pMA_In_Alpha,
bool  heat_color 
)
static

◆ Convert_toMat4Ch_8bit() [1/2]

int D_Img_Proc::Convert_toMat4Ch_8bit ( Mat pMA_Out,
Mat pMA_In,
int  alpha_mode,
bool  heat_color = false,
bool  norm_alpha = true 
)
static

◆ Convert_toMat4Ch_8bit() [2/2]

int D_Img_Proc::Convert_toMat4Ch_8bit ( Mat pMA_Out,
Mat pMA_In_Value,
Mat pMA_In_Alpha,
bool  heat_color = false,
bool  norm_alpha = true 
)
static

◆ Convert_toQImage4Ch()

int D_Img_Proc::Convert_toQImage4Ch ( QImage *  pQI_Out,
Mat pMA_In_Value,
Mat pMA_In_Alpha,
bool  heat_color 
)
static

◆ Convert_toQImage4Ch_8bit()

int D_Img_Proc::Convert_toQImage4Ch_8bit ( QImage *  pQI_Out,
Mat pMA_In_Value,
Mat pMA_In_Alpha,
bool  heat_color = false 
)
static

◆ Crop_Circle()

int D_Img_Proc::Crop_Circle ( Mat pMA_Out,
Mat pMA_In,
int  x,
int  y,
int  r 
)
static

◆ Crop_Rect_Abs()

int D_Img_Proc::Crop_Rect_Abs ( Mat pMA_Out,
Mat pMA_In,
int  x,
int  y,
int  width,
int  height 
)
static

◆ Crop_Rect_Rel() [1/2]

int D_Img_Proc::Crop_Rect_Rel ( Mat pMA_Out,
Mat pMA_In,
double  x1_rel,
double  y1_rel,
double  x2_rel,
double  y2_rel 
)
static

◆ Crop_Rect_Rel() [2/2]

int D_Img_Proc::Crop_Rect_Rel ( Mat pMA_Out,
Mat pMA_In,
double  x1_rel,
double  y1_rel,
double  x2_rel,
double  y2_rel,
int *  offset_x,
int *  offset_y,
int *  width,
int *  heigth 
)
static

◆ Crop_Rect_Rot() [1/2]

int D_Img_Proc::Crop_Rect_Rot ( Mat pMA_Out,
Mat pMA_In,
int  x,
int  y,
int  width,
int  height,
double  angle 
)
static

◆ Crop_Rect_Rot() [2/2]

int D_Img_Proc::Crop_Rect_Rot ( Mat pMA_Out,
Mat pMA_In,
RotatedRect  rrect 
)
static

◆ Detect_CornerHarris()

int D_Img_Proc::Detect_CornerHarris ( Mat pMA_Out,
Mat pMA_In,
int  blockSize,
int  sobelAperture,
double  harrisParam,
double  thres 
)
static

◆ DistancesStat()

int D_Img_Proc::DistancesStat ( Mat pMA_Out,
Mat pMA_In,
function< double(vector< double >)>  F_Stat 
)
static

◆ Draw_Arc() [1/2]

int D_Img_Proc::Draw_Arc ( Mat pMA_Target,
int  offset_x,
int  offset_y,
double  arc_angle,
double  arc_orientation,
double  radius,
int  line_thickness = 1,
uchar  value = 255,
int  draw_arc_steps = 360 
)
static

◆ Draw_Arc() [2/2]

int D_Img_Proc::Draw_Arc ( Mat pMA_Target,
int  offset_x,
int  offset_y,
double  arc_angle_value,
double  arc_angle_error,
double  arc_orientation,
double  radius,
int  line_thickness = 1,
uchar  value = 255,
int  draw_arc_steps = 360 
)
static

◆ Draw_ArcField()

int D_Img_Proc::Draw_ArcField ( Mat pMA_Target,
vector< vector< double >>  vv_XY_arc_angle_value,
vector< vector< double >>  vv_XY_arc_angle_error,
vector< vector< double >>  vv_XY_arc_orientation_value,
vector< vector< double >>  vv_XY_arc_radius_value,
vector< vector< size_t > >  vv_XY_draw_if_non_zero,
uchar  value = 255,
int  thickness = 3,
int  arc_draw_steps = 360,
bool  grid_add = true,
int  grid_thicknes = 2,
bool  label_add = false,
int  label_thickness = 2,
double  label_scale = 1.0 
)
static

◆ Draw_Boundaries()

int D_Img_Proc::Draw_Boundaries ( Mat pMA_Target,
int  width = 1,
int  val = 255 
)
static

◆ Draw_Circle() [1/3]

int D_Img_Proc::Draw_Circle ( Mat pMA_Out,
Mat pMA_In,
int  x,
int  y,
int  r,
int  val = 255,
int  thickness = 1,
bool  filled = false 
)
static

◆ Draw_Circle() [2/3]

int D_Img_Proc::Draw_Circle ( Mat pMA_Target,
int  x,
int  y,
int  r,
int  val,
int  thickness = 1,
bool  filled = false 
)
static

◆ Draw_Circle() [3/3]

int D_Img_Proc::Draw_Circle ( Mat pMA_Target,
int  x,
int  y,
int  r,
int  val_r,
int  val_g,
int  val_b,
int  thickness = 1,
bool  filled = false 
)
static

◆ Draw_CircleField()

int D_Img_Proc::Draw_CircleField ( Mat pMA_Target,
vector< vector< double >>  vv_XY_radius_value,
vector< vector< double >>  vv_XY_radius_error,
uchar  value = 255,
int  circle_thickness = 1,
bool  circles_filled = true,
bool  grid_add = false,
int  grid_thicknes = 2,
bool  label_add = false,
int  label_thickness = 2,
double  label_scale = 1.0 
)
static

◆ Draw_Contour() [1/2]

int D_Img_Proc::Draw_Contour ( Mat pMA_Target,
vector< Point vContour,
int  line_thickness,
double  R,
double  G,
double  B 
)
static

error checks

make sure variables make sense

contour to vector of contours

color

draw contour

◆ Draw_Contour() [2/2]

int D_Img_Proc::Draw_Contour ( Mat pMA_Target,
vector< Point vContour,
int  line_thickness,
double  value 
)
static

◆ Draw_ContourCrop() [1/2]

int D_Img_Proc::Draw_ContourCrop ( Mat pMA_Out,
Mat pMA_In,
vector< Point vContour,
int  line_thickness,
double  value,
bool  draw_contour = true 
)
static

◆ Draw_ContourCrop() [2/2]

int D_Img_Proc::Draw_ContourCrop ( Mat pMA_Out,
Mat pMA_In_R,
Mat pMA_In_G,
Mat pMA_In_B,
vector< Point vContour,
int  line_thickness,
double  R,
double  G,
double  B,
bool  draw_contour = true 
)
static

◆ Draw_Contours()

int D_Img_Proc::Draw_Contours ( Mat pMA_Target,
vector< vector< Point >>  vContours,
int  line_thickness,
double  value 
)
static

D_Img_Proc::Draw_Contours draws a list of constours to an image.

Parameters
pMA_Targettarget image
vContourscontours to draw
line_thicknessthickness of countour line or -1 for a filled contour
valueintensity of contours in image
Returns
error code

error checks

make sure variables make sense

calc draw color with fitting channel count

draw contours

◆ Draw_ContourText() [1/2]

static int D_Img_Proc::Draw_ContourText ( Mat pMA_Out,
Mat pMA_In,
vector< vector< Point >>  vContours,
QStringList  QSL_Texts,
vector< Point2f vTextOrigins,
int  line_thickness,
int  text_thickness,
double  text_scale,
double  value 
)
static

◆ Draw_ContourText() [2/2]

int D_Img_Proc::Draw_ContourText ( Mat pMA_Target,
vector< vector< Point >>  vContours,
QStringList  QSL_Texts,
vector< Point2f vTextOrigins,
int  line_thickness,
int  text_thickness,
double  text_scale,
double  value 
)
static

D_Img_Proc::Draw_ContourText draw contours in an image with added text at contours centers.

Parameters
pMA_Targetimage to draw in
vContourscontours
QSL_Textstexts
line_thicknessthickness of contours
text_thicknessthickness of text
text_scalescale of text
Returns
error code

error checks

calc draw color with fitting channel count

draw contours

loop and draw texts

◆ Draw_Dot() [1/2]

int D_Img_Proc::Draw_Dot ( Mat pMA_Target,
int  x,
int  y,
int  d,
uchar  val 
)
static

◆ Draw_Dot() [2/2]

int D_Img_Proc::Draw_Dot ( Mat pMA_Target,
int  x,
int  y,
int  r,
uchar  val_r,
uchar  val_g,
uchar  val_b 
)
static

◆ Draw_Dots() [1/2]

int D_Img_Proc::Draw_Dots ( Mat pMA_Target,
vector< Point vCenters,
vector< double >  vDiameters,
uchar  val 
)
static

◆ Draw_Dots() [2/2]

int D_Img_Proc::Draw_Dots ( Mat pMA_Target,
vector< Point2f vCenters,
vector< double >  vDiameters,
uchar  val 
)
static

◆ Draw_Ellipse()

int D_Img_Proc::Draw_Ellipse ( Mat pMA_Target,
RotatedRect  ell,
double  val_r,
double  val_g,
double  val_b,
int  thickness = 1 
)
static

◆ Draw_Grid() [1/4]

int D_Img_Proc::Draw_Grid ( Mat pMA_Target,
int  nx,
int  ny,
bool  lines_add,
int  grid_thickness,
bool  label_add,
int  label_thickness,
double  label_scale,
double  value 
)
static

◆ Draw_Grid() [2/4]

int D_Img_Proc::Draw_Grid ( Mat pMA_Target,
int  nx,
int  ny,
bool  lines_add,
int  grid_thickness,
bool  label_add,
int  label_thickness,
double  label_scale,
double  value_r,
double  value_g,
double  value_b 
)
static

◆ Draw_Grid() [3/4]

static int D_Img_Proc::Draw_Grid ( Mat pMA_Target,
vector< vector< double >>  vvNumbers_xy,
int  nx,
int  ny,
bool  lines_add,
int  grid_thickness,
bool  label_add,
int  label_thickness,
double  label_scale,
double  value_r,
double  value_g,
double  value_b 
)
static

◆ Draw_Grid() [4/4]

static int D_Img_Proc::Draw_Grid ( Mat pMA_Target,
vector< vector< vector< QString > > >  vvvTexts_xyl,
int  nx,
int  ny,
bool  lines_add,
int  grid_thickness,
bool  label_add,
int  label_thickness,
double  label_scale,
double  value_r,
double  value_g,
double  value_b 
)
static

◆ Draw_GridSimple()

int D_Img_Proc::Draw_GridSimple ( Mat pMA_Target,
int  nx,
int  ny,
Scalar  value = 255,
int  thickness = 1 
)
static

◆ Draw_Label_Numbers() [1/2]

int D_Img_Proc::Draw_Label_Numbers ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Label,
double  scale,
double  thickness,
bool  center 
)
static

◆ Draw_Label_Numbers() [2/2]

int D_Img_Proc::Draw_Label_Numbers ( Mat pMA_Out,
Mat pMA_Label,
double  scale,
double  thickness,
bool  center 
)
static

◆ Draw_Label_Numbers_Center()

int D_Img_Proc::Draw_Label_Numbers_Center ( Mat pMA_Out,
Mat pMA_Label,
double  scale,
double  thickness 
)
static

◆ Draw_Label_Numbers_Corner()

int D_Img_Proc::Draw_Label_Numbers_Corner ( Mat pMA_Out,
Mat pMA_Label,
double  scale,
double  thickness 
)
static

◆ Draw_Label_Numbers_LUT()

int D_Img_Proc::Draw_Label_Numbers_LUT ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Label,
vector< double >  v_LUT,
bool  border,
double  scale,
double  thickness,
bool  center,
int  precision,
uchar  r = 0,
uchar  g = 0,
uchar  b = 0 
)
static

◆ Draw_Label_Numbers_LUT_Gray()

int D_Img_Proc::Draw_Label_Numbers_LUT_Gray ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Label,
vector< double >  v_LUT,
int  geometric,
double  scale,
int  thickness,
bool  center,
int  precision 
)
static

◆ Draw_Label_Text()

int D_Img_Proc::Draw_Label_Text ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Label,
QStringList  QSL_LabelTexts,
bool  border,
double  scale,
double  thickness,
bool  center,
uchar  r = 0,
uchar  g = 0,
uchar  b = 0,
int  connectivity = 4 
)
static

◆ Draw_Line() [1/3]

int D_Img_Proc::Draw_Line ( Mat pMA_Target,
Point  P1,
Point  P2,
unsigned int  thickness,
double  val_r,
double  val_g,
double  val_b 
)
static

◆ Draw_Line() [2/3]

int D_Img_Proc::Draw_Line ( Mat pMA_Target,
unsigned int  x1,
unsigned int  y1,
unsigned int  x2,
unsigned int  y2,
unsigned int  thickness,
double  val_r,
double  val_g,
double  val_b 
)
static

◆ Draw_Line() [3/3]

int D_Img_Proc::Draw_Line ( Mat pMA_Target,
unsigned int  x1,
unsigned int  y1,
unsigned int  x2,
unsigned int  y2,
unsigned int  thickness = 1,
double  value = 255 
)
static

◆ Draw_Line_Angle()

int D_Img_Proc::Draw_Line_Angle ( Mat pMA_Target,
double  length,
double  center_x,
double  center_y,
double  angle,
unsigned int  thickness = 1,
double  value = 255 
)
static

◆ Draw_Line_Bresenham()

int D_Img_Proc::Draw_Line_Bresenham ( Mat pMA_Target,
Point  P1,
Point  P2,
double  val 
)
static

D_Img_Proc::Draw_Line_Bresenham custum function to draw a line between 0° and 45°

recommended to use cv's draw line function instead. This code is limited in fuction and is not tested properly!

Parameters
pMA_Targetimage to draw to
P1start point
P2end point
Returns
error code

◆ Draw_MarkerSymbol()

int D_Img_Proc::Draw_MarkerSymbol ( Mat pMA_Target,
int  x1,
int  y1,
int  x2,
int  y2,
int  symbol_id,
uchar  r,
uchar  g,
uchar  b,
double  scale = 1 
)
static

◆ Draw_Rect()

int D_Img_Proc::Draw_Rect ( Mat pMA_Target,
unsigned int  x1,
unsigned int  y1,
unsigned int  x2,
unsigned int  y2,
unsigned int  thickness = 1,
double  val = 255 
)
static

◆ Draw_Rect_Rotate()

int D_Img_Proc::Draw_Rect_Rotate ( Mat pMA_Target,
RotatedRect  rrect,
int  thickness = 1,
double  value = 255 
)
static

◆ Draw_Text() [1/3]

int D_Img_Proc::Draw_Text ( Mat pMA_Target,
QString  text,
int  x,
int  y,
int  thickness,
double  scale,
double  value 
)
static

◆ Draw_Text() [2/3]

int D_Img_Proc::Draw_Text ( Mat pMA_Target,
QString  text,
int  x,
int  y,
int  thickness,
double  scale,
double  value_r,
double  value_g,
double  value_b 
)
static

◆ Draw_Text() [3/3]

int D_Img_Proc::Draw_Text ( QImage *  pQI_Target,
QString  text_tl,
QString  text_tr,
QString  text_bl,
QString  text_br,
unsigned int  size,
QColor  color 
)
static

◆ Draw_Text_ContrastColor()

int D_Img_Proc::Draw_Text_ContrastColor ( Mat pMA_Target,
QString  text,
int  x = 0,
int  y = 0,
int  thickness = 1,
double  scale = 1.0 
)
static

◆ Draw_Vector()

int D_Img_Proc::Draw_Vector ( Mat pMA_Target,
int  offset_x,
int  offset_y,
double  length_value,
double  angle_value,
double  length_error = 0,
double  angle_error = 0,
int  vector_thickness = 1,
uchar  value = 255,
int  error_steps = 360,
int  error_thickness = 1 
)
static

◆ Draw_VectorField()

int D_Img_Proc::Draw_VectorField ( Mat pMA_Target,
vector< vector< double >>  vv_XY_length_value,
vector< vector< double >>  vv_XY_angle_value,
vector< vector< double >>  vv_XY_length_error,
vector< vector< double >>  vv_XY_angle_error,
uchar  value = 255,
int  vector_thickness = 3,
int  error_steps = 360,
int  error_thickness = 1,
bool  grid_add = true,
int  grid_thicknes = 2,
bool  label_add = false,
int  label_thickness = 2,
double  label_scale = 1.0 
)
static

◆ Duplicate()

int D_Img_Proc::Duplicate ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Duplicate2Channels()

int D_Img_Proc::Duplicate2Channels ( Mat pMA_Out,
Mat pMA_In,
int  channels 
)
static

◆ Exclude_BorderConnected()

int D_Img_Proc::Exclude_BorderConnected ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ ExtremeValuesColor()

int D_Img_Proc::ExtremeValuesColor ( Mat pMA_Out,
Mat pMA_In,
double  rel_low = 0.1,
double  rel_high = 0.9,
double  gamma = 1.0,
bool  color_low = false,
bool  color_high = true,
bool  zero_as_lowest = true 
)
static

◆ Feature_Connect()

int D_Img_Proc::Feature_Connect ( Mat pMA_Out,
Mat pMA_In,
int  pt_type1,
int  pt_type2,
double  dist_min,
double  dist_max,
int  feat1,
int  feat2,
function< bool(double, double)>  comp,
int  connect_mode = c_CONNECT_CLOSEST,
int  connectivity = 4,
int  thickness = 2 
)
static

◆ Feature_Select()

int D_Img_Proc::Feature_Select ( Mat pMA_Out,
Mat pMA_In,
int  feature,
double  f_min,
double  f_max,
int  connectivity = 4 
)
static

◆ Feature_Value()

int D_Img_Proc::Feature_Value ( Mat pMA_Out,
Mat pMA_In,
int  feature,
int  connectivity = 4 
)
static

◆ Feature_Visualize()

int D_Img_Proc::Feature_Visualize ( Mat pMA_Out,
Mat pMA_In,
int  feature,
int  connectivity = 4,
int  thickness = 1,
double  scale = 1 
)
static

◆ FeatureContext_Select()

int D_Img_Proc::FeatureContext_Select ( Mat pMA_Out,
Mat pMA_In,
int  pt_type1,
int  pt_type2,
double  dist_min,
double  dist_max,
int  feat,
int  stat,
double  t_min,
double  t_max,
int  connectivity = 4 
)
static

◆ FeatureContext_Value()

int D_Img_Proc::FeatureContext_Value ( Mat pMA_Out,
Mat pMA_In,
int  pt_type1,
int  pt_type2,
double  dist_min,
double  dist_max,
int  feat,
int  stat,
int  connectivity = 4 
)
static

◆ Fill_Holes()

int D_Img_Proc::Fill_Holes ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Filter_Bilateral()

int D_Img_Proc::Filter_Bilateral ( Mat pMA_Out,
Mat pMA_In,
int  diameter,
int  border,
double  sigma_color,
double  sigma_space 
)
static

◆ Filter_Box()

int D_Img_Proc::Filter_Box ( Mat pMA_Out,
Mat pMA_In,
int  size_x,
int  size_y,
int  border,
int  out_depth,
bool  norm 
)
static

◆ Filter_Box_RMS()

int D_Img_Proc::Filter_Box_RMS ( Mat pMA_Out,
Mat pMA_In,
int  size_x,
int  size_y,
int  border,
int  out_depth,
bool  norm 
)
static

◆ Filter_Canny()

int D_Img_Proc::Filter_Canny ( Mat pMA_Out,
Mat pMA_In,
int  size,
double  thres_low,
double  thres_high,
bool  L2_gradient 
)
static

◆ Filter_Eilenstein() [1/2]

int D_Img_Proc::Filter_Eilenstein ( Mat pMA_Out,
Mat pMA_In,
int  comp,
unsigned int  size_x,
unsigned int  size_y,
bool  normalized,
double  constant 
)
static

◆ Filter_Eilenstein() [2/2]

int D_Img_Proc::Filter_Eilenstein ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask,
function< double(double cur, double nei)>  response_CurNei,
function< double(double res, double wei)>  weight_ResWeigth,
function< double(vector< double > v_res)>  combine_Responses 
)
static

◆ Filter_Eilenstein_1C() [1/2]

int D_Img_Proc::Filter_Eilenstein_1C ( Mat pMA_Out,
Mat pMA_In,
int  comp,
unsigned int  size_x,
unsigned int  size_y,
bool  normalized,
double  constant 
)
static

◆ Filter_Eilenstein_1C() [2/2]

int D_Img_Proc::Filter_Eilenstein_1C ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask,
function< double(double cur, double nei)>  response_CurNei,
function< double(double res, double wei)>  weight_ResWeigth,
function< double(vector< double > v_res)>  combine_Responses 
)
static

◆ Filter_Eilenstein_Prototype()

int D_Img_Proc::Filter_Eilenstein_Prototype ( Mat pMA_Out,
Mat pMA_In,
bool   cmp_fktdouble, double, double,
unsigned int  size_x,
unsigned int  size_y,
bool  normalized,
double  constant 
)
static

◆ Filter_Function()

int D_Img_Proc::Filter_Function ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask,
function< double(double cur, double nei)>  F1_CenterImage,
function< double(double f1r, double msk)>  F2_f1mask,
function< double(vector< double > vf2r)>  F3_Combine,
function< double(double f3r, double cen)>  F4_f3center,
int  border_type = BORDER_CONSTANT,
bool  DoNonZeroMaskOnly = false 
)
static

◆ Filter_Function_1C()

int D_Img_Proc::Filter_Function_1C ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask,
function< double(double cur, double nei)>  F1_CenterImage,
function< double(double f1r, double msk)>  F2_f1mask,
function< double(vector< double > vf2r)>  F3_Combine,
function< double(double f3r, double cen)>  F4_f3center,
int  border_type = BORDER_CONSTANT,
int  thread_number = 8,
bool  DoNonZeroMaskOnly = false 
)
static

◆ Filter_Function_1C_Thread()

int D_Img_Proc::Filter_Function_1C_Thread ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask,
function< double(double cur, double nei)>  F1_CenterImage,
function< double(double f1r, double msk)>  F2_f1mask,
function< double(vector< double > vf2r)>  F3_Combine,
function< double(double f3r, double cen)>  F4_f3center,
int  row_start,
int  row_end,
int  col_start,
int  col_end,
bool  DoNonZeroMaskOnly = false 
)
static

◆ Filter_Function_8bit()

int D_Img_Proc::Filter_Function_8bit ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask,
function< uchar(double cur, double nei)>  F1_CenterImage,
function< uchar(double f1r, double msk)>  F2_f1mask,
function< uchar(vector< double > vf2r)>  F3_Combine,
function< uchar(double f3r, double cen)>  F4_f3center,
int  border_type = BORDER_CONSTANT,
bool  DoNonZeroMaskOnly = false 
)
static

◆ Filter_Function_8bit_1C()

int D_Img_Proc::Filter_Function_8bit_1C ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask,
function< uchar(double cur, double nei)>  F1_CenterImage,
function< uchar(double f1r, double msk)>  F2_f1mask,
function< uchar(vector< double > vf2r)>  F3_Combine,
function< uchar(double f3r, double cen)>  F4_f3center,
int  border_type = BORDER_CONSTANT,
int  thread_number = 8,
bool  DoNonZeroMaskOnly = false 
)
static

◆ Filter_Function_8bit_1C_Thread()

int D_Img_Proc::Filter_Function_8bit_1C_Thread ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask,
function< uchar(double cur, double nei)>  F1_CenterImage,
function< uchar(double f1r, double msk)>  F2_f1mask,
function< uchar(vector< double > vf2r)>  F3_Combine,
function< uchar(double f3r, double cen)>  F4_f3center,
int  row_start,
int  row_end,
int  col_start,
int  col_end,
bool  DoNonZeroMaskOnly = false 
)
static

◆ Filter_Gabor()

int D_Img_Proc::Filter_Gabor ( Mat pMA_Out,
Mat pMA_In,
int  size_x,
int  size_y,
int  border,
int  out_depth,
double  sigma,
double  theta,
double  lambda,
double  gamma,
double  psi,
double  delta 
)
static

◆ Filter_Gauss()

int D_Img_Proc::Filter_Gauss ( Mat pMA_Out,
Mat pMA_In,
int  size_x,
int  size_y,
int  border,
double  sigma_x,
double  sigma_y 
)
static

◆ Filter_Laplace()

int D_Img_Proc::Filter_Laplace ( Mat pMA_Out,
Mat pMA_In,
int  size,
int  border,
int  out_depth,
double  scale,
double  delta 
)
static

◆ Filter_LaplaceOfGaussian()

int D_Img_Proc::Filter_LaplaceOfGaussian ( Mat pMA_Out,
Mat pMA_In,
int  size_g,
double  sigma_g,
int  size_l,
int  border,
int  out_depth,
double  scale,
double  delta 
)
static

◆ Filter_Maximum_1C()

int D_Img_Proc::Filter_Maximum_1C ( Mat pMA_Out,
Mat pMA_In,
size_t  mask_size_x,
size_t  mask_size_y 
)
static

◆ Filter_Maximum_1C_Thread_X()

int D_Img_Proc::Filter_Maximum_1C_Thread_X ( Mat pMA_Out,
Mat pMA_In,
size_t  mask_size_x,
size_t  n_in_x,
size_t  y_start,
size_t  y_end 
)
static

◆ Filter_Maximum_1C_Thread_Y()

int D_Img_Proc::Filter_Maximum_1C_Thread_Y ( Mat pMA_Out,
Mat pMA_In,
size_t  mask_size_x,
size_t  mask_size_y,
size_t  n_in_y,
size_t  x_start,
size_t  x_end 
)
static

◆ Filter_Median() [1/2]

int D_Img_Proc::Filter_Median ( Mat pMA_Out,
Mat pMA_In,
int  size 
)
static

◆ Filter_Median() [2/2]

int D_Img_Proc::Filter_Median ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask 
)
static

D_Img_Proc::Filter_Median performs median filtering with huang algorithm.

Any binary mask can be used. Non binary masks will be binarized automatically. Unsigned 8bit and 16bit images are supported. Multichanneled images are treated channel by channel. Calls Filter_RankOrder with quantil_relPos=0.5.

Parameters
pMA_Outpointer to output image
pMA_Inpointer to input image (CV_8U or CV_16U)
pMA_Maskpointer to mask image (binary)
Returns
error code

◆ Filter_RankOrder()

int D_Img_Proc::Filter_RankOrder ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask,
double  quantil_relPos 
)
static

D_Img_Proc::Filter_RankOrder performs Rank order filtering with huang algorithm for any quantile.

Parallelized implementation of Huang's local histogram based rank oder filterig for any quantile. Any binary mask can be used. Non binary masks will be binarized automatically. Any quantile (0.0 to 1.0) is supported. Special cases for min and max filtering are implemented. Unsigned 8bit and 16bit images are supported. Multichanneled images are treated channel by channel.

Parameters
pMA_Outpointer to output image
pMA_Inpointer to input image (CV_8U or CV_16U)
pMA_Maskpointer to mask image (binary)
quantil_relPosqunatile value from 0.0 to 1.0. Speical cases: 0.0->min, 0.5->median, 1.0-> max
Returns
error code

◆ Filter_RankOrder_1C()

int D_Img_Proc::Filter_RankOrder_1C ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask,
double  quantil_relPos 
)
static

D_Img_Proc::Filter_RankOrder_1C performs Rank order filtering with huang algorithm for any quantile.

Parallelized implementation of Huang's local histogram based rank oder filterig for any quantile. Any binary mask can be used. Non binary masks will be binarized automatically. Any quantile (0.0 to 1.0) is supported. Special cases for min and max filtering are implemented. Unsigned 8bit and 16bit single channel images are supported.

Parameters
pMA_Outpointer to output image
pMA_Inpointer to input image (CV_8UC1 or CV_16UC1)
pMA_Maskpointer to mask image (binary)
quantil_relPosqunatile value from 0.0 to 1.0. Speical cases: 0.0->min, 0.5->median, 1.0-> max
Returns
error code

◆ Filter_RankOrder_1C_Thread()

int D_Img_Proc::Filter_RankOrder_1C_Thread ( Mat pMA_Out,
Mat pMA_InPadded,
Mat pMA_Mask,
double  quantil_relPos,
size_t  img_in_sx,
size_t  y_start,
size_t  y_end,
double  val_max,
size_t  mask_relevant_px_count,
vector< Point > *  vBorderL,
vector< Point > *  vBorderR,
vector< Point > *  vBorderT,
vector< Point > *  vBorderB 
)
static

D_Img_Proc::Filter_RankOrder_1C_Thread performs Rank order filtering with huang algorithm for any quantile on a region of an image.

Used as in separte threads in Filter_RankOrder_1C Parallelized implementation of Huang's local histogram based rank oder filterig for any quantile. Any binary mask can be used. Non binary masks will be binarized automatically. Any quantile (0.0 to 1.0) is supported. Special cases for min and max filtering are implemented. Unsigned 8bit and 16bit single channel images are supported.

Parameters
pMA_Outpointer to output image
pMA_Inpointer to padded input image (CV_8UC1 or CV_16UC1)
pMA_Maskpointer to mask image (binary)
quantil_relPosqunatile value from 0.0 to 1.0. Speical cases: 0.0->min, 0.5->median, 1.0-> max
y_startstart line of ROI
y_endend line of ROI
val_maxsize of local histogram (max value in image)
mask_relevant_px_countcount of mask foreground pixels
vBorderLlist of relative coordinates of pixels to add when moving left / removing when moving right
vBorderRlist of relative coordinates of pixels to add when moving right / removing when moving left
vBorderTlist of relative coordinates of pixels to add when moving up / removing when moving down
vBorderBlist of relative coordinates of pixels to add when moving down / removing when moving up
Returns
error code

◆ Filter_RankOrder_Circular()

int D_Img_Proc::Filter_RankOrder_Circular ( Mat pMA_Out,
Mat pMA_In,
double  quantil_relPos,
double  radius 
)
static

D_Img_Proc::Filter_RankOrder_Circular special case of Filter_RankOrder.

Parameters
pMA_Outpointer to output image
pMA_Inpointer to input image (CV_8U or CV_16U)
pMA_Maskpointer to mask image (binary)
quantil_relPosqunatile value from 0.0 to 1.0. Speical cases: 0.0->min, 0.5->median, 1.0-> max
radiusmask radius
Returns
error code

◆ Filter_RankOrder_Rect()

int D_Img_Proc::Filter_RankOrder_Rect ( Mat pMA_Out,
Mat pMA_In,
double  quantil_relPos,
int  size_x,
int  size_y 
)
static

D_Img_Proc::Filter_RankOrder_Rect special case of Filter_RankOrder for rect masks.

Parameters
pMA_Outpointer to output image
pMA_Inpointer to input image (CV_8U or CV_16U)
pMA_Maskpointer to mask image (binary)
quantil_relPosqunatile value from 0.0 to 1.0. Speical cases: 0.0->min, 0.5->median, 1.0-> max
size_xmask size x
size_ymask size y
Returns
error code

◆ Filter_Scharr()

int D_Img_Proc::Filter_Scharr ( Mat pMA_Out,
Mat pMA_In,
int  border,
int  out_depth,
double  scale,
double  delta,
int  d_x,
int  d_y 
)
static

◆ Filter_Sobel()

int D_Img_Proc::Filter_Sobel ( Mat pMA_Out,
Mat pMA_In,
int  size,
int  border,
int  out_depth,
double  scale,
double  delta,
int  d_x,
int  d_y 
)
static

◆ Filter_Stat()

int D_Img_Proc::Filter_Stat ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask,
int  stat,
int  border_type = BORDER_CONSTANT 
)
static

◆ Filter_Stat_Circular()

int D_Img_Proc::Filter_Stat_Circular ( Mat pMA_Out,
Mat pMA_In,
double  radius,
int  stat,
int  border_type = BORDER_CONSTANT 
)
static

◆ Filter_Stat_Rect()

int D_Img_Proc::Filter_Stat_Rect ( Mat pMA_Out,
Mat pMA_In,
int  size_x,
int  size_y,
int  stat,
int  border_type = BORDER_CONSTANT 
)
static

◆ Floodfill() [1/2]

int D_Img_Proc::Floodfill ( Mat pMA_Out,
Mat pMA_In,
unsigned int  seed_x,
unsigned int  seed_y,
double  new_val 
)
static

◆ Floodfill() [2/2]

int D_Img_Proc::Floodfill ( Mat pMA_Target,
unsigned int  seed_x,
unsigned int  seed_y,
double  new_val 
)
static

◆ Floodfill_Boundary()

int D_Img_Proc::Floodfill_Boundary ( Mat pMA_Out,
Mat pMA_In,
double  new_val 
)
static

◆ Floodfill_Delta()

int D_Img_Proc::Floodfill_Delta ( Mat pMA_Out,
Mat pMA_In,
int  seed_x,
int  seed_y,
uchar  val_new,
uchar  val_delta 
)
static

◆ Floodfill_Delta_Step()

bool D_Img_Proc::Floodfill_Delta_Step ( Mat pMA_Target,
Mat pMA_Check,
int  x,
int  y,
int  dx,
int  dy,
int  val_new,
int  val_delta,
int  val_origin 
)
static

◆ ForceSize()

int D_Img_Proc::ForceSize ( Mat pMA_Out,
Mat pMA_In,
int  width,
int  heigth,
int  border_type = BORDER_CONSTANT 
)
static

◆ GammaSpread() [1/2]

int D_Img_Proc::GammaSpread ( Mat pMA_Out,
Mat pMA_In,
double  gamma,
double  in_min,
double  in_max,
double  out_min = 0,
double  out_max = 255,
bool  force_8bit = false 
)
static

◆ GammaSpread() [2/2]

int D_Img_Proc::GammaSpread ( Mat pMA_Out,
Mat pMA_In,
double  gamma,
vector< double >  v_in_min,
vector< double >  v_in_max,
double  out_min = 0,
double  out_max = 255,
bool  force_8bit = false 
)
static

◆ GammaSpread_1C()

int D_Img_Proc::GammaSpread_1C ( Mat pMA_Out,
Mat pMA_In,
double  gamma,
double  in_min,
double  in_max,
double  out_min = 0,
double  out_max = 255,
bool  force_8bit = false 
)
static

◆ GammaSpread_Quantiles()

int D_Img_Proc::GammaSpread_Quantiles ( Mat pMA_Out,
Mat pMA_In,
double  gamma,
double  quantile_low,
double  quantile_high,
double  out_min = 0,
double  out_max = 255,
bool  force_8bit = false,
bool  ignore_zeros = true 
)
static

◆ Generate_byValueFunction()

int D_Img_Proc::Generate_byValueFunction ( Mat pMA_Out,
int  width,
int  height,
function< double(double x, double y)>  value_function 
)
static

◆ Generate_byValueFunction_Complex()

int D_Img_Proc::Generate_byValueFunction_Complex ( Mat pMA_Out,
int  width,
int  height,
function< complex< double >(complex< double > x, complex< double > y)>  value_function 
)
static

◆ Highlight_NumericalProblems()

int D_Img_Proc::Highlight_NumericalProblems ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Histo_Equal()

int D_Img_Proc::Histo_Equal ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Hysteresis()

int D_Img_Proc::Hysteresis ( Mat pMA_Out,
Mat pMA_In_Indicator,
Mat pMA_In_Hysteresis,
bool  labeling = false 
)
static

◆ ImgStackToGrid()

int D_Img_Proc::ImgStackToGrid ( Mat pMA_Out,
vector< Mat > *  pvMA_In,
vector< vector< QString >>  vvQS_LabelText_Img_Line,
size_t  maxPerRow,
int  text_thickness = 1,
double  text_scale = 1.0,
int  line_height = 10,
int  frame_thickness = 2 
)
static

◆ ImgStackToRow()

int D_Img_Proc::ImgStackToRow ( Mat pMA_Out,
vector< Mat > *  pvMA_In,
vector< vector< QString >>  vvQS_LabelText_Img_Line,
int  text_thickness = 1,
double  text_scale = 1.0,
int  line_height = 10,
int  frame_thickness = 2 
)
static

◆ Insert() [1/2]

int D_Img_Proc::Insert ( Mat pMA_Target,
Mat pMA_Insert,
int  offset_x,
int  offset_y 
)
static

◆ Insert() [2/2]

int D_Img_Proc::Insert ( Mat pMA_Target,
Mat pMA_Insert,
int  offset_x,
int  offset_Y,
double  scale 
)
static

◆ InterferometerMichelson()

int D_Img_Proc::InterferometerMichelson ( Mat pMA_Out,
int  scene_size_x_px,
int  scene_size_y_px,
int  scale_px,
double  scale_m,
double  wavelength_m,
double  dist_source_m,
double  dist_detector_m,
double  dist_mirror1_m,
double  dist_mirror2_m,
double  angle_mirror1_x,
double  angle_mirror1_y,
double  angle_mirror2_x,
double  angle_mirror2_y 
)
static

◆ Invert()

int D_Img_Proc::Invert ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Labeling()

int D_Img_Proc::Labeling ( Mat pMA_Out,
Mat pMA_In,
int  connectivity,
int  out_depth 
)
static

◆ Legend_HSV()

int D_Img_Proc::Legend_HSV ( Mat pMA_Out,
int  width,
int  height,
QStringList  QSL_H,
QStringList  QSL_S,
QStringList  QSL_V,
QString  QS_H,
QString  QS_S,
QString  QS_V,
double  H_angle_min,
double  H_angle_range,
double  scale = 1,
double  thickness = 1 
)
static

◆ Load_From_Path() [1/3]

int D_Img_Proc::Load_From_Path ( Mat pMA_Out,
QFileInfo  FI_path 
)
static

◆ Load_From_Path() [2/3]

int D_Img_Proc::Load_From_Path ( Mat pMA_Out,
QString  path 
)
static

◆ Load_From_Path() [3/3]

int D_Img_Proc::Load_From_Path ( Mat pMA_Out,
string  path 
)
static

◆ Load_From_Path_Gray() [1/3]

int D_Img_Proc::Load_From_Path_Gray ( Mat pMA_Out,
QFileInfo  FI_path 
)
static

◆ Load_From_Path_Gray() [2/3]

int D_Img_Proc::Load_From_Path_Gray ( Mat pMA_Out,
QString  path 
)
static

◆ Load_From_Path_Gray() [3/3]

int D_Img_Proc::Load_From_Path_Gray ( Mat pMA_Out,
string  path 
)
static

◆ Load_From_Path_Multi()

int D_Img_Proc::Load_From_Path_Multi ( Mat pMA_Out,
QString  path,
unsigned int  page 
)
static

◆ Load_From_Path_Raw()

int D_Img_Proc::Load_From_Path_Raw ( Mat pMA_Out,
string  path,
int  width,
int  height,
int  out_type 
)
static

◆ Load_From_Path_Text()

int D_Img_Proc::Load_From_Path_Text ( Mat pMA_Out,
string  path 
)
static

◆ LUT_Apply_to_Label_Binary()

int D_Img_Proc::LUT_Apply_to_Label_Binary ( Mat pMA_Out,
Mat pMA_Label,
vector< int >  vLUT,
bool  ignore_BG = true 
)
static

◆ LUT_Apply_to_Label_Color()

int D_Img_Proc::LUT_Apply_to_Label_Color ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Label,
vector< int >  vLUT,
int  channel_true,
int  channel_false,
bool  edges = true,
bool  ignore_BG = true 
)
static

◆ LUT_Apply_to_Label_Double()

int D_Img_Proc::LUT_Apply_to_Label_Double ( Mat pMA_Out,
Mat pMA_Label,
vector< double >  vLUT,
bool  LUT_has_BG_label = true 
)
static

◆ LUT_Apply_to_Label_Int()

int D_Img_Proc::LUT_Apply_to_Label_Int ( Mat pMA_Out,
Mat pMA_Label,
vector< int >  vLUT 
)
static

◆ LUT_Apply_to_Label_TrueFalse()

int D_Img_Proc::LUT_Apply_to_Label_TrueFalse ( Mat pMA_Out_true,
Mat pMA_Out_false,
Mat pMA_Label,
vector< int >  vLUT,
bool  edges = true,
bool  ignore_BG = true 
)
static

◆ LUT_Apply_to_Label_Uchar()

int D_Img_Proc::LUT_Apply_to_Label_Uchar ( Mat pMA_Out,
Mat pMA_Label,
vector< uchar >  vLUT,
bool  LUT_has_BG_label = true 
)
static

◆ Mask()

int D_Img_Proc::Mask ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask 
)
static

◆ Mask_1C()

int D_Img_Proc::Mask_1C ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Mask 
)
static

◆ Math_Add() [1/7]

int D_Img_Proc::Math_Add ( Mat pMA_Out,
Mat pMA_In1,
double  summand 
)
static

◆ Math_Add() [2/7]

int D_Img_Proc::Math_Add ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_Add() [3/7]

int D_Img_Proc::Math_Add ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
double  summand 
)
static

◆ Math_Add() [4/7]

int D_Img_Proc::Math_Add ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3 
)
static

◆ Math_Add() [5/7]

int D_Img_Proc::Math_Add ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3,
double  summand 
)
static

◆ Math_Add() [6/7]

int D_Img_Proc::Math_Add ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3,
Mat pMA_In4 
)
static

◆ Math_Add() [7/7]

int D_Img_Proc::Math_Add ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3,
Mat pMA_In4,
double  summand 
)
static

◆ Math_And() [1/3]

int D_Img_Proc::Math_And ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_And() [2/3]

int D_Img_Proc::Math_And ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3 
)
static

◆ Math_And() [3/3]

int D_Img_Proc::Math_And ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3,
Mat pMA_In4 
)
static

◆ Math_ImgImg_Add()

int D_Img_Proc::Math_ImgImg_Add ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_ImgImg_AddWeighted()

int D_Img_Proc::Math_ImgImg_AddWeighted ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
double  weight_1,
double  weight_2,
double  weight_sum 
)
static

◆ Math_ImgImg_BitAnd()

int D_Img_Proc::Math_ImgImg_BitAnd ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_ImgImg_BitOr()

int D_Img_Proc::Math_ImgImg_BitOr ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_ImgImg_BitXor()

int D_Img_Proc::Math_ImgImg_BitXor ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_ImgImg_Comp()

int D_Img_Proc::Math_ImgImg_Comp ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
int  comp 
)
static

◆ Math_ImgImg_Diff()

int D_Img_Proc::Math_ImgImg_Diff ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_ImgImg_DiffAbs()

int D_Img_Proc::Math_ImgImg_DiffAbs ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_ImgImg_Div()

int D_Img_Proc::Math_ImgImg_Div ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
double  scale 
)
static

◆ Math_ImgImg_Function()

int D_Img_Proc::Math_ImgImg_Function ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
function< double(double x, double y)>  function_img1_img2 
)
static

◆ Math_ImgImg_Function_8bit()

int D_Img_Proc::Math_ImgImg_Function_8bit ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
function< uchar(double x, double y)>  function_img1_img2 
)
static

◆ Math_ImgImg_Function_Complex()

int D_Img_Proc::Math_ImgImg_Function_Complex ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
function< complex< double >(complex< double > x, complex< double > y)>  function_img1_img2 
)
static

◆ Math_ImgImg_Max()

int D_Img_Proc::Math_ImgImg_Max ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_ImgImg_Min()

int D_Img_Proc::Math_ImgImg_Min ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_ImgImg_Mult()

int D_Img_Proc::Math_ImgImg_Mult ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
double  scale 
)
static

◆ Math_ImgScal_Add()

int D_Img_Proc::Math_ImgScal_Add ( Mat pMA_Out,
Mat pMA_In,
double  summmand 
)
static

◆ Math_ImgScal_Div()

int D_Img_Proc::Math_ImgScal_Div ( Mat pMA_Out,
Mat pMA_In,
double  divisor 
)
static

◆ Math_ImgScal_Log()

int D_Img_Proc::Math_ImgScal_Log ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Math_ImgScal_Mult()

int D_Img_Proc::Math_ImgScal_Mult ( Mat pMA_Out,
Mat pMA_In,
double  factor 
)
static

◆ Math_ImgScal_Pow()

int D_Img_Proc::Math_ImgScal_Pow ( Mat pMA_Out,
Mat pMA_In,
double  power 
)
static

◆ Math_ImgScal_Root()

int D_Img_Proc::Math_ImgScal_Root ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Math_ImgScal_Sub()

int D_Img_Proc::Math_ImgScal_Sub ( Mat pMA_Out,
Mat pMA_In,
double  subtrahend 
)
static

◆ Math_ImgSelf_Not()

int D_Img_Proc::Math_ImgSelf_Not ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Math_ImgStack_Project()

int D_Img_Proc::Math_ImgStack_Project ( Mat pMA_Out,
vector< Mat > *  pvMA_In,
int  stat = c_STAT_MEAN_ARITMETIC 
)
static

◆ Math_ImgStack_StatCombine()

int D_Img_Proc::Math_ImgStack_StatCombine ( Mat pMA_Out,
vector< Mat > *  pvMA_In0,
vector< Mat > *  pvMA_In1,
function< double(vector< double >)>  f_stat_0,
function< double(vector< double >)>  f_stat_1,
function< double(double, double)>  f_combi,
bool  force8bit 
)
static

◆ Math_ImgStack_StatCombine_Thread()

int D_Img_Proc::Math_ImgStack_StatCombine_Thread ( Mat pMA_Out,
vector< Mat > *  pvMA_In0,
vector< Mat > *  pvMA_In1,
function< double(vector< double >)>  f_stat_0,
function< double(vector< double >)>  f_stat_1,
function< double(double, double)>  f_combi,
bool  force8bit,
int  row_start,
int  row_end 
)
static

◆ Math_LimitTop() [1/2]

int D_Img_Proc::Math_LimitTop ( Mat pMA_Out,
Mat pMA_InThresh,
Mat pMA_InToLimit 
)
static

◆ Math_LimitTop() [2/2]

int D_Img_Proc::Math_LimitTop ( Mat pMA_Target,
Mat pMA_InThresh 
)
static

◆ Math_Magnitude()

int D_Img_Proc::Math_Magnitude ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_MagnitudeSquared()

int D_Img_Proc::Math_MagnitudeSquared ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_Mult() [1/7]

int D_Img_Proc::Math_Mult ( Mat pMA_Out,
Mat pMA_In1,
double  factor 
)
static

◆ Math_Mult() [2/7]

int D_Img_Proc::Math_Mult ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_Mult() [3/7]

int D_Img_Proc::Math_Mult ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
double  factor 
)
static

◆ Math_Mult() [4/7]

int D_Img_Proc::Math_Mult ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3 
)
static

◆ Math_Mult() [5/7]

int D_Img_Proc::Math_Mult ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3,
double  factor 
)
static

◆ Math_Mult() [6/7]

int D_Img_Proc::Math_Mult ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3,
Mat pMA_In4 
)
static

◆ Math_Mult() [7/7]

int D_Img_Proc::Math_Mult ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3,
Mat pMA_In4,
double  factor 
)
static

◆ Math_Or() [1/3]

int D_Img_Proc::Math_Or ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_Or() [2/3]

int D_Img_Proc::Math_Or ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3 
)
static

◆ Math_Or() [3/3]

int D_Img_Proc::Math_Or ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3,
Mat pMA_In4 
)
static

◆ Math_Phase()

int D_Img_Proc::Math_Phase ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_ScalImg_Sub()

int D_Img_Proc::Math_ScalImg_Sub ( Mat pMA_Out,
Mat pMA_In,
double  minuend 
)
static

◆ Math_Special_Add_Color()

int D_Img_Proc::Math_Special_Add_Color ( Mat pMA_Out,
Mat pMA_In_Color,
Mat pMA_In0,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Math_Special_IncreaseIfSet()

int D_Img_Proc::Math_Special_IncreaseIfSet ( Mat pMA_Count,
Mat pMA_Check 
)
static

◆ Math_Special_NADH()

int D_Img_Proc::Math_Special_NADH ( Mat pMA_NADH,
Mat pMA_I,
Mat pMA_A2,
Mat pMA_T1,
Mat pMA_T2,
float  k,
bool  ignore_0,
float  T2_Max_Thres,
float  T2_Max_Const 
)
static

◆ Math_Special_NADPH()

int D_Img_Proc::Math_Special_NADPH ( Mat pMA_NADPH,
Mat pMA_I,
Mat pMA_A2,
Mat pMA_T1,
Mat pMA_T2,
float  k,
bool  ignore_0,
float  T2_Min_Thres,
float  T2_Min_Const 
)
static

◆ Math_Special_NADPH_NADH()

int D_Img_Proc::Math_Special_NADPH_NADH ( Mat pMA_NADPH_NADH,
Mat pMA_T2,
bool  ignore_0,
float  T2_Min_Thres,
float  T2_Max_Thres,
float  T2_Min_Const,
float  T2_Max_Const 
)
static

◆ Math_Special_Trans2Count()

int D_Img_Proc::Math_Special_Trans2Count ( Mat pMA_Count,
Mat pMA_Trans,
float  base,
float  scale 
)
static

◆ Matrix_Inversion()

int D_Img_Proc::Matrix_Inversion ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Matrix_Product()

int D_Img_Proc::Matrix_Product ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Matrix_Transpose()

int D_Img_Proc::Matrix_Transpose ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Merge() [1/3]

int D_Img_Proc::Merge ( Mat pMA_Out,
Mat pMA_In0,
Mat pMA_In1,
Mat pMA_In2 
)
static

◆ Merge() [2/3]

int D_Img_Proc::Merge ( Mat pMA_Out,
Mat pMA_In0,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3,
unsigned int  channels,
bool  channel_use[4] 
)
static

◆ Merge() [3/3]

int D_Img_Proc::Merge ( Mat pMA_Out,
vector< Mat vMA_in,
vector< int >  v_R,
vector< int >  v_G,
vector< int >  v_B,
vector< int >  v_A 
)
static

◆ MinMax_of_Mat()

int D_Img_Proc::MinMax_of_Mat ( Mat pMA_In,
double *  min_ext,
double *  max_ext 
)
static

◆ MinMax_of_Mat_1C()

int D_Img_Proc::MinMax_of_Mat_1C ( Mat pMA_In,
double *  min_ext,
double *  max_ext 
)
static

◆ Morphology_Dilate_Rect()

int D_Img_Proc::Morphology_Dilate_Rect ( Mat pMA_Out,
Mat pMA_In,
int  elem_size_X,
int  elem_size_Y 
)
static

◆ Morphology_Elemental()

int D_Img_Proc::Morphology_Elemental ( Mat pMA_Out,
Mat pMA_In,
int  morph_type,
int  elem_type,
unsigned int  elem_size_X,
unsigned int  elem_size_Y,
int  border_type,
unsigned int  iterations 
)
static

◆ Morphology_Erode_Rect()

int D_Img_Proc::Morphology_Erode_Rect ( Mat pMA_Out,
Mat pMA_In,
int  elem_size_X,
int  elem_size_Y 
)
static

◆ Morphology_LocMax_Rect()

int D_Img_Proc::Morphology_LocMax_Rect ( Mat pMA_Out,
Mat pMA_In,
int  elem_size_X = 3,
int  elem_size_Y = 3 
)
static

◆ Morphology_LocMax_Rect_1C()

static int D_Img_Proc::Morphology_LocMax_Rect_1C ( Mat pMA_Out,
Mat pMA_In,
int  elem_size_X = 3,
int  elem_size_Y = 3 
)
static

◆ Morphology_Reconstruction()

int D_Img_Proc::Morphology_Reconstruction ( Mat pMA_Out,
Mat pMA_InSeed,
Mat pMA_InLimit,
Mat pMA_Mask,
double  quantil = 1 
)
static

◆ Morphology_Skeleton()

int D_Img_Proc::Morphology_Skeleton ( Mat pMA_Out,
Mat pMA_In,
int  elem_type,
unsigned int  elem_size_X,
unsigned int  elem_size_Y,
int  border_type 
)
static

◆ Morphology_Thinning()

int D_Img_Proc::Morphology_Thinning ( Mat pMA_Out,
Mat pMA_In,
int  thinning_type 
)
static

◆ Morphology_Thinning_Iteration()

int D_Img_Proc::Morphology_Thinning_Iteration ( Mat  img,
int  iter,
int  thinning_type 
)
static

◆ Normalize()

int D_Img_Proc::Normalize ( Mat pMA_Out,
Mat pMA_In,
unsigned int  norm,
unsigned int  type,
double  min,
double  max 
)
static

◆ ObjectsMovement()

int D_Img_Proc::ObjectsMovement ( vector< double > *  pvShift_PxPerFrame,
vector< double > *  pvDirection_Rad,
vector< Point2f > *  pvPositions,
vector< Mat > *  pvMA_In,
vector< vector< Point2f >> *  pvvCentroids,
double  max_Shift_PxPerFrame = INFINITY,
size_t  index_NewImg = 0,
int  connectivity = 8 
)
static

◆ ObjectsMovement_Heatmap()

int D_Img_Proc::ObjectsMovement_Heatmap ( Mat pMA_OutHeatmap,
Mat pMA_OutLegend,
Mat pMA_InValue,
vector< vector< Point2f >>  vv_FrmObjPositions,
vector< vector< double >>  vv_FrmObjShifts,
vector< vector< double >>  vv_FrmObjAngles,
Point2f  P_VortexCenter,
double  shift_scale,
double  value_scale,
int  blur_size_x,
int  blur_size_y,
int  mode,
int  legend_width,
int  legend_height,
double  legend_scale,
double  legend_thickness,
int  legend_examples = 5,
double  min_rel = 0.1,
double  max_rel = 0.9,
double  frame2time = 0.0417 
)
static

◆ OverlayImage()

int D_Img_Proc::OverlayImage ( Mat pMA_Out,
Mat pMA_BaseR,
Mat pMA_BaseG,
Mat pMA_BaseB,
Mat pMA_OverR,
Mat pMA_OverG,
Mat pMA_OverB,
uchar  thresh_overlay = 0 
)
static

◆ OverlayOverwrite() [1/4]

int D_Img_Proc::OverlayOverwrite ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Overlay,
double  intensity_overlay = 1.0,
double  intensity_backgr = 1.0 
)
static

◆ OverlayOverwrite() [2/4]

int D_Img_Proc::OverlayOverwrite ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Overlay,
QColor  color,
double  intensity_overlay = 1.0,
double  intensity_backgr = 1.0 
)
static

◆ OverlayOverwrite() [3/4]

int D_Img_Proc::OverlayOverwrite ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Overlay,
uchar  r,
uchar  g,
uchar  b,
double  intensity_overlay = 1.0,
double  intensity_backgr = 1.0 
)
static

◆ OverlayOverwrite() [4/4]

int D_Img_Proc::OverlayOverwrite ( Mat pMA_Target,
Mat pMA_Overlay,
uchar  r,
uchar  g,
uchar  b,
double  intensity_overlay = 1.0 
)
static

◆ Padding() [1/2]

int D_Img_Proc::Padding ( Mat pMA_Out,
Mat pMA_In,
int  right,
int  left,
int  top,
int  bottom,
int  type = BORDER_CONSTANT 
)
static

◆ Padding() [2/2]

int D_Img_Proc::Padding ( Mat pMA_Out,
Mat pMA_In,
int  size_x,
int  size_y,
int  type = BORDER_CONSTANT 
)
static

◆ Padding_1C()

int D_Img_Proc::Padding_1C ( Mat pMA_Out,
Mat pMA_In,
int  right,
int  left,
int  top,
int  bottom,
int  type = BORDER_CONSTANT 
)
static

◆ Quantiles_ofPixelvalues() [1/2]

int D_Img_Proc::Quantiles_ofPixelvalues ( double *  q_low,
double *  q_high,
Mat pMA_In,
double  low_rel,
double  high_rel,
bool  ignore_zeros 
)
static

◆ Quantiles_ofPixelvalues() [2/2]

int D_Img_Proc::Quantiles_ofPixelvalues ( vector< double > *  v_q_low,
vector< double > *  v_q_high,
Mat pMA_In,
double  low_rel,
double  high_rel,
bool  ignore_zeros 
)
static

◆ RadiometricStereo() [1/2]

int D_Img_Proc::RadiometricStereo ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3,
double  S1X,
double  S1Y,
double  S1Z,
double  S2X,
double  S2Y,
double  S2Z,
double  S3X,
double  S3Y,
double  S3Z,
int  out_mode 
)
static

◆ RadiometricStereo() [2/2]

int D_Img_Proc::RadiometricStereo ( Mat pMA_Out,
Mat pMA_In1,
Mat pMA_In2,
Mat pMA_In3,
Mat  S,
int  out_mode 
)
static

◆ Reduce_Centroid()

int D_Img_Proc::Reduce_Centroid ( Mat pMA_Out,
Mat pMA_In,
int  thickness = 1 
)
static

◆ Reduce_Contours()

int D_Img_Proc::Reduce_Contours ( Mat pMA_Out,
Mat pMA_In,
int  thickness = 1 
)
static

◆ Reduce_Geometric()

int D_Img_Proc::Reduce_Geometric ( Mat pMA_Out,
Mat pMA_In,
int  geometric,
int  connectivity = 8,
int  thickness = 1,
uchar  value = 255 
)
static

◆ Reduce_Outlines()

int D_Img_Proc::Reduce_Outlines ( Mat pMA_Out,
Mat pMA_In,
int  neighborhood = 8,
int  thickness = 1 
)
static

◆ Scalar_EqualInAllChannels()

Scalar D_Img_Proc::Scalar_EqualInAllChannels ( int  channels = 1,
double  value = 0 
)
static

◆ Scale_Factor()

int D_Img_Proc::Scale_Factor ( Mat pMA_Out,
Mat pMA_In,
double  scale_x,
double  scale_y 
)
static

◆ Scale_ToSize()

int D_Img_Proc::Scale_ToSize ( Mat pMA_Out,
Mat pMA_In,
int  size_x,
int  size_y 
)
static

◆ Segmentation_GaussDistWater()

int D_Img_Proc::Segmentation_GaussDistWater ( Mat pMA_Out,
Mat pMA_In,
int  size,
double  sigma,
double  thres,
double  distance,
bool  include_not_seeded,
bool  conv_8bit,
bool  exclude_border 
)
static

◆ Select_Area()

int D_Img_Proc::Select_Area ( Mat pMA_Out,
Mat pMA_In,
unsigned int  area_min,
unsigned int  area_max,
int  connectivity 
)
static

◆ Shading_Correct()

int D_Img_Proc::Shading_Correct ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Reference 
)
static

◆ Sign2Color()

int D_Img_Proc::Sign2Color ( Mat pMA_Out,
Mat pMA_In,
bool  norm = false 
)
static

◆ Split()

int D_Img_Proc::Split ( Mat pMA_Out,
Mat pMA_In,
unsigned int  channel 
)
static

◆ Split_img2components()

int D_Img_Proc::Split_img2components ( D_Component_List pCompList,
Mat pMA_In,
int  connectivity = 8 
)
static

◆ Split_img2vv_coord()

int D_Img_Proc::Split_img2vv_coord ( vector< vector< Point >> *  vvp_data_LabCooPt,
Mat pMA_Label 
)
static

◆ Split_img2vv_value()

int D_Img_Proc::Split_img2vv_value ( vector< vector< double >> *  vv_data_LabPix,
Mat pMA_Value,
Mat pMA_Label,
bool  ignore_0 
)
static

◆ Split_ObjectAreas()

int D_Img_Proc::Split_ObjectAreas ( vector< double > *  v_objects,
vector< double > *  v_areas,
Mat pMA_Label,
Mat pMA_Objects,
int  connectivity 
)
static

◆ Spread_16_bit_to_8bit()

int D_Img_Proc::Spread_16_bit_to_8bit ( Mat pMA_Out,
Mat pMA_In,
double  in_max,
double  out_max 
)
static

◆ Spread_8bit_to_float01()

int D_Img_Proc::Spread_8bit_to_float01 ( Mat pMA_Out,
Mat pMA_In 
)
static

◆ Stat_ofPixelvalues()

int D_Img_Proc::Stat_ofPixelvalues ( double *  value,
Mat pMA_In,
int  stat,
bool  ignore_zeros 
)
static

◆ Stitch_Border_abs()

int D_Img_Proc::Stitch_Border_abs ( Mat pMA_Out,
Mat pMA_In_Main,
Mat pMA_In_R,
Mat pMA_In_B,
Mat pMA_In_BR,
int  border_R,
int  border_B,
int  overlap_R,
int  overlap_B,
Stitcher::Mode  mode = Stitcher::SCANS 
)
static

◆ Stitch_Border_abs_custom()

int D_Img_Proc::Stitch_Border_abs_custom ( Mat pMA_Out,
Mat pMA_In_Main,
Mat pMA_In_R,
Mat pMA_In_B,
Mat pMA_In_BR,
int  border_R,
int  border_B,
int  overlap_R,
int  overlap_B 
)
static

◆ Stitch_Border_rel()

int D_Img_Proc::Stitch_Border_rel ( Mat pMA_Out,
Mat pMA_In_Main,
Mat pMA_In_R,
Mat pMA_In_B,
Mat pMA_In_BR,
double  border_R,
double  border_B,
double  overlap_R,
double  overlap_B,
Stitcher::Mode  mode = Stitcher::SCANS 
)
static

◆ Stitch_Border_rel_custom()

int D_Img_Proc::Stitch_Border_rel_custom ( Mat pMA_Out,
Mat pMA_In_Main,
Mat pMA_In_R,
Mat pMA_In_B,
Mat pMA_In_BR,
double  border_R,
double  border_B,
double  overlap_R,
double  overlap_B 
)
static

◆ Threshold_Absolute()

int D_Img_Proc::Threshold_Absolute ( Mat pMA_Out,
Mat pMA_In,
double  thres_abs 
)
static

◆ Threshold_Absolute_1C()

int D_Img_Proc::Threshold_Absolute_1C ( Mat pMA_Out,
Mat pMA_In,
double  thres_abs 
)
static

◆ Threshold_Adaptive()

int D_Img_Proc::Threshold_Adaptive ( Mat pMA_Out,
Mat pMA_In,
int  out_mode,
double  max_val,
int  adapt_mode,
unsigned int  mask_size,
double  offset 
)
static

◆ Threshold_Adaptive_Gauss()

int D_Img_Proc::Threshold_Adaptive_Gauss ( Mat pMA_Out,
Mat pMA_In,
int  size,
double  sigma,
double  offset,
double  scale 
)
static

◆ Threshold_Adaptive_Gauss_1C()

int D_Img_Proc::Threshold_Adaptive_Gauss_1C ( Mat pMA_Out,
Mat pMA_In,
int  size,
double  sigma,
double  offset,
double  scale 
)
static

D_Img_Proc::Threshold_Adaptive_Gauss_1C lokall adaptive threshhold using comparison to gauss filtered image.

Per pixel: (in + offset > blur(in, size, sigma)) ? 255 : 0

Parameters
pMA_Outbinary CV_8UC1 image
pMA_In1C gray value image
sizegauss filter size (must be odd)
sigmagauss filter sigma (>= 0)
offsetcomparision needed offset
Returns
error code

◆ Threshold_Auto()

int D_Img_Proc::Threshold_Auto ( Mat pMA_Out,
Mat pMA_In,
int  out_mode,
double  max_val,
int  auto_mode 
)
static

◆ Threshold_BlurThres()

int D_Img_Proc::Threshold_BlurThres ( Mat pMA_Out,
Mat pMA_In,
int  size,
double  sigma,
double  thres 
)
static

◆ Threshold_RankOrderOffsetHysteresis()

int D_Img_Proc::Threshold_RankOrderOffsetHysteresis ( Mat pMA_Out,
Mat pMA_In,
double  radius,
double  quantile,
double  thresh_offset_indicator,
double  thresh_offset_hysteresis,
bool  labeling = false 
)
static

◆ Threshold_Relative()

int D_Img_Proc::Threshold_Relative ( Mat pMA_Out,
Mat pMA_In,
double  max_val,
double  thres_rel 
)
static

◆ Threshold_Relative_1C()

int D_Img_Proc::Threshold_Relative_1C ( Mat pMA_Out,
Mat pMA_In,
double  max_val,
double  thres_rel 
)
static

◆ Threshold_Value()

int D_Img_Proc::Threshold_Value ( Mat pMA_Out,
Mat pMA_In,
int  out_mode,
double  max_val,
double  thres 
)
static

◆ Transformation_Distance()

int D_Img_Proc::Transformation_Distance ( Mat pMA_Out,
Mat pMA_In,
int  metric,
int  precision 
)
static

◆ Transformation_Fourier() [1/3]

int D_Img_Proc::Transformation_Fourier ( Mat pMA_Out,
Mat pMA_In,
bool  invers 
)
static

◆ Transformation_Fourier() [2/3]

int D_Img_Proc::Transformation_Fourier ( Mat pMA_Out,
Mat pMA_In_Re,
bool  invers = false,
bool  force_fft = true,
bool  out_real = false,
int  out_complex_mode = c_COMPLEX2REAL_ABS,
bool  out_scale = false,
bool  out_center = true,
bool  out_nof0 = true 
)
static

◆ Transformation_Fourier() [3/3]

int D_Img_Proc::Transformation_Fourier ( Mat pMA_Out,
Mat pMA_In_Re,
Mat pMA_In_Im,
bool  complex_input,
bool  invers = false,
bool  force_fft = true,
bool  out_real = false,
int  out_complex_mode = c_COMPLEX2REAL_ABS,
bool  out_scale = false,
bool  out_center = true,
bool  out_nof0 = true 
)
static

◆ Transformation_Fourier_1C()

int D_Img_Proc::Transformation_Fourier_1C ( Mat pMA_Out,
Mat pMA_In_Re,
Mat pMA_In_Im,
bool  invers = false,
bool  force_fft = true,
bool  out_real = false,
int  out_complex_mode = c_COMPLEX2REAL_ABS,
bool  out_scale = false,
bool  out_center = true,
bool  out_nof0 = true 
)
static

◆ Transformation_Watershed()

int D_Img_Proc::Transformation_Watershed ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Marker 
)
static

◆ Transformation_Watershed_Auto() [1/3]

int D_Img_Proc::Transformation_Watershed_Auto ( Mat pMA_Out,
Mat pMA_In,
double  distance,
bool  include_not_seeded,
bool  conv_8bit,
bool  exclude_border 
)
static

◆ Transformation_Watershed_Auto() [2/3]

int D_Img_Proc::Transformation_Watershed_Auto ( Mat pMA_Out,
Mat pMA_In,
int  size,
double  sigma,
bool  include_not_seeded,
bool  conv_8bit,
bool  exclude_border 
)
static

◆ Transformation_Watershed_Auto() [3/3]

int D_Img_Proc::Transformation_Watershed_Auto ( Mat pMA_Out,
Mat pMA_In,
Mat pMA_Marker,
bool  include_not_seeded,
bool  conv_8bit,
bool  exclude_border 
)
static

◆ Transformation_Watershed_Custom() [1/2]

int D_Img_Proc::Transformation_Watershed_Custom ( Mat pMA_Out,
Mat pMA_In2Fill,
Mat pMA_InMarker,
Mat pMA_FG_Mask,
int  connectivity = 8 
)
static

◆ Transformation_Watershed_Custom() [2/2]

int D_Img_Proc::Transformation_Watershed_Custom ( Mat pMA_Out,
Mat pMA_In2Fill,
Mat pMA_InMarker,
Mat pMA_FG_Mask,
int  mode_flood,
int  mode_marker,
int  mode_mask,
int  connectivity = 8,
int  gauss_size = 5,
double  gauss_sigma = 2,
int  morphgrad_elem = MORPH_ELLIPSE,
int  morphgrad_size = 3,
double  thresh = 127,
bool  exclude_border = true,
bool  include_non_seeded = true,
bool  draw_watersheds = true 
)
static

D_Img_Proc::Transformation_Watershed_Custom WIP, don't use!

Parameters
pMA_Out
pMA_In2Fill
pMA_InMarker
pMA_FG_Mask
mode_flood
mode_marker
mode_mask
connectivity
gauss_size
gauss_sigma
morphgrad_elem
morphgrad_size
thresh
exclude_border
include_non_seeded
draw_watersheds
Returns

◆ Type_of_Mat() [1/2]

QString D_Img_Proc::Type_of_Mat ( int  channels,
int  depth 
)
static

◆ Type_of_Mat() [2/2]

QString D_Img_Proc::Type_of_Mat ( Mat pMA_In)
static

◆ Type_of_QImage()

QString D_Img_Proc::Type_of_QImage ( QImage *  pQI_In)
static

◆ TypeIndex_of_Mat()

int D_Img_Proc::TypeIndex_of_Mat ( int  channels,
int  depth 
)
static

◆ ValAtPix() [1/2]

int D_Img_Proc::ValAtPix ( QString *  QS_value,
Mat pMA_In,
unsigned int  x_pos,
unsigned int  y_pos 
)
static

◆ ValAtPix() [2/2]

int D_Img_Proc::ValAtPix ( vector< double > *  v_value,
Mat pMA_In,
size_t  x_pos,
size_t  y_pos 
)
static

◆ Value_to_MinOrMax()

int D_Img_Proc::Value_to_MinOrMax ( Mat pMA_Out,
Mat pMA_In,
double  val_src,
bool  to_min 
)
static

◆ Value_to_Value()

int D_Img_Proc::Value_to_Value ( Mat pMA_Out,
Mat pMA_In,
double  val_src,
double  val_dst 
)
static

◆ ValueStat()

int D_Img_Proc::ValueStat ( Mat pMA_Out,
Mat pMA_InLabel,
Mat pMA_InValue,
int  stat,
int  connectivity = 8 
)
static

D_Img_Proc::ValueStat assigns a statistic value of all pixel values in a label to the label as gray value.

Parameters
pMA_Outoutput img (64FC1)
pMA_InLabelInput label img (8UC1 binary, 16UC1 labels or 32SC1 labels)
pMA_InValueInput value img (any depth, C1)
statindex of statistic to be calced
connectivityconnectivity to be used for labeling in case pMA_InLabel is binary
Returns
error code

errors

labeling, if needed (make sure label img type is 32SC1)

split values to label pixel value lists

stat function

calc value stats

write stats as values to labels

◆ ValueStat_Select()

int D_Img_Proc::ValueStat_Select ( Mat pMA_Out,
Mat pMA_InLabel,
Mat pMA_InValue,
int  stat,
double  thresh_min,
double  thresh_max,
int  connectivity = 8 
)
static

errors

labeling, if needed (make sure label img type is 32SC1)

split values to label pixel value lists

stat function

calc value stats

generate binarty lut by appliing threshold to gray value lut

write stats as values to labels

◆ Visualize_to8bit()

int D_Img_Proc::Visualize_to8bit ( Mat pMA_Out,
Mat pMA_In,
int  mode_crop,
int  mode_trafo,
int  mode_anchor,
int  mode_range,
double  val_anchor,
double  val_range,
double  val_min,
double  val_max,
double  val_gamma,
double  val_center,
double  val_scale,
bool  keep_min_max = false,
int  mode_complex = c_COMPLEX2REAL_RE_IM 
)
static

◆ Visualize_to8bit_1C()

int D_Img_Proc::Visualize_to8bit_1C ( Mat pMA_Out,
Mat pMA_In,
int  mode_trafo,
int  mode_anchor,
int  mode_range,
double  val_anchor,
double  val_range,
double  crop_min,
double  crop_max,
double  val_gamma,
double  val_center,
double  val_scale 
)
static

◆ Zoom() [1/2]

int D_Img_Proc::Zoom ( Mat pMA_Out,
Mat pMA_In,
double  x_rel,
double  y_rel,
double  factor 
)
static

◆ Zoom() [2/2]

int D_Img_Proc::Zoom ( Mat pMA_Out,
Mat pMA_In,
double  x_rel,
double  y_rel,
double  factor,
int *  offset_x,
int *  offset_y,
int *  width,
int *  heigth 
)
static

The documentation for this class was generated from the following files: