 |
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.
|
Go to the documentation of this file.
9 #ifndef D_IMG_PROC_2DFACTORY_H
10 #define D_IMG_PROC_2DFACTORY_H
28 #include <QMainWindow>
39 #include <opencv2/core/core.hpp>
40 #include <opencv2/highgui/highgui.hpp>
41 #include <opencv2/imgproc/imgproc.hpp>
59 static function<int (
Mat *)> Generate_byValueFunction (
int width,
int height,
function<
double (
double x,
double y)> value_function);
60 static function<int (
Mat *)> Generate_byValueFunction_Complex (
int width,
int height,
function<complex<double> (complex<double> x, complex<double> y)> value_function);
61 static function<int (
Mat *)> Load_From_Path_Raw (
string path,
int width,
int height,
int out_type);
62 static function<int (
Mat *)> Draw_Contours (vector<vector<Point>> vContours,
int line_thickness,
double value);
63 static function<int (
Mat *)> Draw_ContourText_InPlace (vector<vector<Point>> vContours, QStringList QSL_Texts, vector<Point2f> vTextOrigins,
int line_thickness,
int text_thickness,
double text_scale,
double value);
67 static function<int (
Mat *,
Mat *)> Convert_Color (
int cvt_mode);
68 static function<int (
Mat *,
Mat *)> Convert_Color2Mono (
int col2mono_code);
69 static function<int (
Mat *,
Mat *)> Normalize (
int norm,
int type,
double min,
double max);
70 static function<int (
Mat *,
Mat *)> Convert_Depth_NoScaling (
int depth);
71 static function<int (
Mat *,
Mat *)> Channel_Split (
int channel);
72 static function<int (
Mat *,
Mat *)> Channel_Supression (
bool use_r =
true,
bool use_g =
true,
bool use_b =
true,
bool force_3ch =
false);
73 static function<int (
Mat *,
Mat *)> Convert_8UC1_binary ();
74 static function<int (
Mat *,
Mat *)> Visualize_to8bit (
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);
75 static function<int (
Mat *,
Mat *)> Sign2Color (
bool norm =
false);
77 static function<int (
Mat *,
Mat *)> Threshold_Auto (
int mode,
int max,
int auto_type);
78 static function<int (
Mat *,
Mat *)> Threshold_Value (
int mode,
int max,
int thresh);
79 static function<int (
Mat *,
Mat *)> Threshold_Absolute (
double thresh);
80 static function<int (
Mat *,
Mat *)> Threshold_Realtive (
double base,
double thresh_rel);
81 static function<int (
Mat *,
Mat *)> Threshold_Adaptive (
int mode,
int max,
int mask_type,
int mask_size,
double offset);
82 static function<int (
Mat *,
Mat *)> Threshold_Adaptive_Gauss (
int size,
double sigma,
double offset,
double scale);
83 static function<int (
Mat *,
Mat *)> Threshold_RankOrderOffsetHysteresis (
double radius,
double quantile,
double thresh_offset_indicator,
double thresh_offset_hysteresis,
bool labeling =
false);
85 static function<int (
Mat *,
Mat *)> Labeling (
int connectivity,
int out_depth);
86 static function<int (
Mat *,
Mat *)> Grab_Color (
int color_space,
int out_mode, vector<uchar> min, vector<uchar> max);
87 static function<int (
Mat *,
Mat *)> Fill_Holes ();
89 static function<int (
Mat *,
Mat *)> Crop_Rect_Rel (
double x1_rel,
double y1_rel,
double x2_rel,
double y2_rel);
90 static function<int (
Mat *,
Mat *)> Crop_Rect_Abs (
int x,
int y,
int width,
int height);
91 static function<int (
Mat *,
Mat *)> Crop_Rect_Rot (
int x,
int y,
int width,
int height,
double angle);
92 static function<int (
Mat *,
Mat *)> Crop_Circle (
int x,
int y,
int r);
93 static function<int (
Mat *,
Mat *)> Scale_Factor (
double scale_x,
double scale_y);
94 static function<int (
Mat *,
Mat *)> Scale_ToSize (
int size_x,
int size_y);
96 static function<int (
Mat *,
Mat *)> ForceSize (
int width,
int heigth,
int border_type =
BORDER_CONSTANT);
97 static function<int (
Mat *,
Mat *)> Floodfill_Border (
double new_val);
98 static function<int (
Mat *,
Mat *)> Floodfill_Delta (
int seed_x,
int seed_y, uchar val_new, uchar val_delta);
100 static function<int (
Mat *,
Mat *)> Morphology_Elemental (
int morph_type,
int elem_type,
int elem_size_X,
int elem_size_Y,
int border_type,
int iterations);
101 static function<int (
Mat *,
Mat *)> Morphology_Skeleton (
int elem_type,
int elem_size_X,
int elem_size_Y,
int border_type);
102 static function<int (
Mat *,
Mat *)> Morphology_LocMax_Rect (
int elem_size_X = 3,
int elem_size_Y = 3);
103 static function<int (
Mat *,
Mat *)> Filter_Maximum_1C (
size_t mask_size_x,
size_t mask_size_y);
106 static function<int (
Mat *,
Mat *)> Filter_Mean (
int size_x,
int size_y,
int border,
int out_depth,
bool norm);
107 static function<int (
Mat *,
Mat *)> Filter_RootMeanSquare (
int size_x,
int size_y,
int border,
int out_depth,
bool norm);
108 static function<int (
Mat *,
Mat *)> Filter_Gauss (
int size_x,
int size_y,
int border,
double sigma_x,
double sigma_y);
109 static function<int (
Mat *,
Mat *)> Filter_Median (
int size);
110 static function<int (
Mat *,
Mat *)> Filter_Laplace (
int size,
int border,
int out_depth,
double scale,
double delta);
111 static function<int (
Mat *,
Mat *)> Filter_Sobel (
int size,
int border,
int out_depth,
double scale,
double delta,
int d_x,
int d_y);
112 static function<int (
Mat *,
Mat *)> Filter_Canny (
int size,
double thres_low,
double thres_high,
bool L2_gradient);
113 static function<int (
Mat *,
Mat *)> Filter_Bilateral (
int diameter,
int border,
double sigma_color,
double sigma_space);
114 static function<int (
Mat *,
Mat *)> Filter_Gabor (
int size_x,
int size_y,
int border,
int out_depth,
double sigma,
double theta,
double lambda,
double gamma,
double psi,
double delta);
115 static function<int (
Mat *,
Mat *)> Filter_Eilenstein (
int comp,
int size_x,
int size_y,
bool normalized,
double constant);
116 static function<int (
Mat *,
Mat *)> Filter_Stat_Circular (
double radius,
int stat,
int border_type =
BORDER_CONSTANT);
117 static function<int (
Mat *,
Mat *)> Filter_Stat_Rect (
int size_x,
int size_y,
int stat,
int border_type =
BORDER_CONSTANT);
119 static function<int (
Mat *,
Mat *)> Filter_RankOrder_Circular (
double quantil,
double radius);
120 static function<int (
Mat *,
Mat *)> Filter_RankOrder_Rect (
double quantil,
int size_x,
int size_y);
122 static function<int (
Mat *,
Mat *)> Math_1img_Inversion ();
123 static function<int (
Mat *,
Mat *)> Math_1img_Addition (
double summmand);
124 static function<int (
Mat *,
Mat *)> Math_1img_Subtraction (
double subtrahend);
125 static function<int (
Mat *,
Mat *)> Math_1img_Multiplication (
double factor);
126 static function<int (
Mat *,
Mat *)> Math_1img_Division (
double divisor);
127 static function<int (
Mat *,
Mat *)> Math_1img_Power (
double power);
128 static function<int (
Mat *,
Mat *)> Math_1img_Root ();
129 static function<int (
Mat *,
Mat *)> Math_1img_Log ();
131 static function<int (
Mat *,
Mat *)> Transformation_Distance (
int metric,
int precision);
133 static function<int (
Mat *,
Mat *)> Transformation_Watershed_Auto (
double distance,
bool include_not_seeded,
bool conv_8bit,
bool exclude_border);
134 static function<int (
Mat *,
Mat *)> Transformation_Watershed_Auto (
int size,
double sigma,
bool include_not_seeded,
bool conv_8bit,
bool exclude_border);
136 static function<int (
Mat *,
Mat *)> Feature_Value (
int feature,
int connectivity);
137 static function<int (
Mat *,
Mat *)> FeatureContext_Value (
int pt_type1,
int pt_type2,
double dist_min,
double dist_max,
int feat,
int stat,
int connectivity = 4);
138 static function<int (
Mat *,
Mat *)> Feature_Select (
int feature,
double f_min,
double f_max,
int connectivity);
139 static function<int (
Mat *,
Mat *)> FeatureContext_Select (
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);
140 static function<int (
Mat *,
Mat *)> Feature_Visualize (
int feature,
int connectivity,
int thickness,
double scale);
141 static function<int (
Mat *,
Mat *)> Feature_Connect (
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);
143 static function<int (
Mat *,
Mat *)> Geometric_Reduce (
int geometric,
int connectivity,
int thickness, uchar value);
145 static function<int (
Mat *,
Mat *)> Histogram_Equalize ();
146 static function<int (
Mat *,
Mat *)> GammaSpread (
double gamma,
double in_min,
double in_max,
double out_min,
double out_max,
bool force_8bit);
147 static function<int (
Mat *,
Mat *)> GammaSpread_Quantiles (
double gamma,
double quantile_low,
double quantile_high,
double out_min = 0,
double out_max = 255,
bool force_8bit =
false,
bool ignore_zeros =
true);
148 static function<int (
Mat *,
Mat *)> DistancesStat (
function<
double (vector<double>)> F_Stat);
149 static function<int (
Mat *,
Mat *)> Convert_Angle2Color_Rad (uchar Saturation = 255, uchar Value = 255);
151 static function<int (
Mat *,
Mat *)> OverlayOverwrite (uchar r, uchar g, uchar b,
double intensity_overlay);
152 static function<int (
Mat *,
Mat *)> Draw_ContourText (vector<vector<Point>> vContours, QStringList QSL_Texts, vector<Point2f> vTextOrigins,
int line_thickness,
int text_thickness,
double text_scale,
double value);
155 static function<int (
Mat *,
Mat *,
Mat *)> Shading_Correct ();
157 static function<int (
Mat *,
Mat *,
Mat *)> Hysteresis (
bool labeling =
false);
159 static function<int (
Mat *,
Mat *,
Mat *)> Filter_RankOrder (
double quantil);
160 static function<int (
Mat *,
Mat *,
Mat *)> Filter_Median ();
161 static function<int (
Mat *,
Mat *,
Mat *)>
Filter_Eilenstein (
function<
double (
double cur,
double nei)> response_CurNei,
function<
double (
double res,
double wei)> weight_ResWeigth,
function<
double (vector<double> v_res)> combine_Responses);
162 static function<int (
Mat *,
Mat *,
Mat *)> Filter_Function (
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);
163 static function<int (
Mat *,
Mat *,
Mat *)> Filter_Function_8bit (
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);
166 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_Addition ();
167 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_AdditionWeighted (
double weight_1,
double weight_2,
double weight_sum);
168 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_Subtraction ();
169 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_SubtractionAbsolute ();
170 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_Multiplication (
double scale);
171 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_Division (
double scale);
172 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_BitwiseAnd ();
173 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_BitwiseOr ();
174 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_BitwiseXor ();
175 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_Minimum ();
176 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_Maximum ();
177 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_Compare (
int comp);
178 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_Function (
function<
double (
double x,
double y)> function_img1_img2);
179 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_Function_8bit (
function<uchar (
double x,
double y)> function_img1_img2);
180 static function<int (
Mat *,
Mat *,
Mat *)> Math_2img_Function_Complex (
function<complex<double> (complex<double> x, complex<double> y)> function_img1_img2);
181 static function<int (
Mat *,
Mat *,
Mat *)> Matrix_Product ();
183 static function<int (
Mat *,
Mat *,
Mat *)> Transformation_Fourier (
bool complex_input =
true,
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);
184 static function<int (
Mat *,
Mat *,
Mat *)> Transformation_Watershed ();
185 static function<int (
Mat *,
Mat *,
Mat *)> Transformation_Watershed_Auto (
bool include_not_seeded,
bool conv_8bit,
bool exclude_border);
187 static function<int (
Mat *,
Mat *,
Mat *)> Draw_Label_Numbers (
double scale,
double thickness,
bool center);
188 static function<int (
Mat *,
Mat *,
Mat *)> Draw_Label_Numbers_LUT (vector<double> v_LUT,
bool border,
double scale,
double thickness,
bool center,
int precision, uchar r = 0, uchar g = 0, uchar b = 0);
189 static function<int (
Mat *,
Mat *,
Mat *)> Draw_Label_Text (QStringList QSL_LabelTexts,
bool border,
double scale,
double thickness,
bool center, uchar r = 0, uchar g = 0, uchar b = 0,
int connectivity = 4);
190 static function<int (
Mat *,
Mat *,
Mat *)> ClassBorder_kNN (
int n);
192 static function<int (
Mat *,
Mat *,
Mat *)> OverlayOverwrite (
double intensity_overlay,
double intensity_backg);
193 static function<int (
Mat *,
Mat *,
Mat *)> OverlayOverwrite (uchar r, uchar g, uchar b,
double intensity_overlay,
double intensity_backgr);
195 static function<int (
Mat *,
Mat *,
Mat *)> ValueStat (
int stat,
int connectivity = 8);
196 static function<int (
Mat *,
Mat *,
Mat *)> ValueStat_Select (
int stat,
double thresh_min,
double thresh_max,
int connectivity = 8);
200 static function<int (
Mat *,
Mat *,
Mat *,
Mat*)> Transformation_Watershed_Custom (
int connectivity = 8);
202 static function<int (
Mat *,
Mat *,
Mat *,
Mat*)> Math_3img_Addition ();
203 static function<int (
Mat *,
Mat *,
Mat *,
Mat*)> Math_3img_Addition (
double summand);
204 static function<int (
Mat *,
Mat *,
Mat *,
Mat*)> Math_3img_Multiplication ();
205 static function<int (
Mat *,
Mat *,
Mat *,
Mat*)> Math_3img_Multiplication (
double factor);
206 static function<int (
Mat *,
Mat *,
Mat *,
Mat*)> Math_3img_BitwiseAnd ();
207 static function<int (
Mat *,
Mat *,
Mat *,
Mat*)> Math_3img_BitwiseOr ();
209 static function<int (
Mat *,
Mat *,
Mat *,
Mat *)> Channel_Merge ();
210 static function<int (
Mat *,
Mat *,
Mat *,
Mat *)> RadiometricStereo (
double S1X,
double S1Y,
double S1Z,
double S2X,
double S2Y,
double S2Z,
double S3X,
double S3Y,
double S3Z,
int out_mode);
212 static function<int (
Mat *,
Mat *,
Mat *,
Mat *)> Morphology_Reconstruction (
double quantil = 1);
217 static function<int (
Mat *,
Mat *,
Mat *,
Mat *,
Mat *)> Math_4img_Addition ();
218 static function<int (
Mat *,
Mat *,
Mat *,
Mat *,
Mat *)> Math_4img_Addition (
double summand);
219 static function<int (
Mat *,
Mat *,
Mat *,
Mat *,
Mat *)> Math_4img_Multiplication ();
220 static function<int (
Mat *,
Mat *,
Mat *,
Mat *,
Mat *)> Math_4img_Multiplication (
double factor);
221 static function<int (
Mat *,
Mat *,
Mat *,
Mat *,
Mat *)> Math_4img_BitwiseAnd ();
222 static function<int (
Mat *,
Mat *,
Mat *,
Mat *,
Mat *)> Math_4img_BitwiseOr ();
224 static function<int (
Mat *,
Mat *,
Mat *,
Mat *,
Mat *)> Stitch_Border_abs (
int border_R,
int border_B,
int overlap_R,
int overlap_B, Stitcher::Mode mode = Stitcher::SCANS);
225 static function<int (
Mat *,
Mat *,
Mat *,
Mat *,
Mat *)> Stitch_Border_rel (
double border_R,
double border_B,
double overlap_R,
double overlap_B, Stitcher::Mode mode = Stitcher::SCANS);
226 static function<int (
Mat *,
Mat *,
Mat *,
Mat *,
Mat *)> Stitch_Border_abs_custom (
int border_R,
int border_B,
int overlap_R,
int overlap_B);
227 static function<int (
Mat *,
Mat *,
Mat *,
Mat *,
Mat *)> Stitch_Border_rel_custom (
double border_R,
double border_B,
double overlap_R,
double overlap_B);
231 #endif // D_IMG_PROC_2DFACTORY_H
static function< int(Mat *, Mat *, Mat *)> Math_2img_Minimum()
Definition: d_img_proc_2dfactory.cpp:1347
cv::Mat Mat
Definition: d_opencv_typedefs.h:28
static function< int(Mat *)> Draw_Contours(vector< vector< Point >> vContours, int line_thickness, double value)
Definition: d_img_proc_2dfactory.cpp:48
static int Fill_Holes(Mat *pMA_Out, Mat *pMA_In)
Definition: d_img_proc.cpp:12257
static function< int(Mat *, Mat *)> FeatureContext_Select(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)
Definition: d_img_proc_2dfactory.cpp:744
static function< int(Mat *, Mat *, Mat *)> ValueStat_Select(int stat, double thresh_min, double thresh_max, int connectivity=8)
Definition: d_img_proc_2dfactory.cpp:1597
static int Crop_Rect_Abs(Mat *pMA_Out, Mat *pMA_In, int x, int y, int width, int height)
Definition: d_img_proc.cpp:5514
static function< int(Mat *, Mat *)> Fill_Holes()
Definition: d_img_proc_2dfactory.cpp:332
static function< int(Mat *, Mat *, Mat *, Mat *)> Math_3img_BitwiseAnd()
Definition: d_img_proc_2dfactory.cpp:1681
static function< int(Mat *, Mat *)> Convert_Color(int cvt_mode)
Definition: d_img_proc_2dfactory.cpp:80
const int BORDER_CONSTANT
Definition: d_opencv_typedefs.h:77
static function< int(Mat *, Mat *)> Geometric_Reduce(int geometric, int connectivity, int thickness, uchar value)
Definition: d_img_proc_2dfactory.cpp:800
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)
Definition: d_img_proc.cpp:5082
static int Math_Or(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
Definition: d_img_proc.cpp:12702
static int Math_And(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
Definition: d_img_proc.cpp:12645
static int Math_ImgScal_Pow(Mat *pMA_Out, Mat *pMA_In, double power)
Definition: d_img_proc.cpp:13056
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.
Definition: d_img_proc.cpp:9143
static function< int(Mat *, Mat *)> Sign2Color(bool norm=false)
Definition: d_img_proc_2dfactory.cpp:192
static int Math_ImgImg_Diff(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
Definition: d_img_proc.cpp:13125
static function< int(Mat *, Mat *)> Filter_Laplace(int size, int border, int out_depth, double scale, double delta)
Definition: d_img_proc_2dfactory.cpp:403
static function< int(Mat *, Mat *)> Crop_Rect_Rot(int x, int y, int width, int height, double angle)
Definition: d_img_proc_2dfactory.cpp:950
static function< int(Mat *, Mat *)> Convert_Angle2Color_Rad(uchar Saturation=255, uchar Value=255)
Definition: d_img_proc_2dfactory.cpp:873
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)
Definition: d_img_proc.cpp:4903
static int Filter_Median(Mat *pMA_Out, Mat *pMA_In, int size)
Definition: d_img_proc.cpp:9097
@ c_COMPLEX2REAL_ABS
Definition: d_enum.h:976
static function< int(Mat *, Mat *)> Pad_Border(int size_x, int size_y, int type=BORDER_CONSTANT)
Definition: d_img_proc_2dfactory.cpp:1006
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)
Definition: d_img_proc.cpp:7064
static function< int(Mat *, Mat *)> Visualize_to8bit(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)
Definition: d_img_proc_2dfactory.cpp:169
static function< int(Mat *, Mat *)> Feature_Connect(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)
Definition: d_img_proc_2dfactory.cpp:779
static function< int(Mat *, Mat *)> Filter_Eilenstein(int comp, int size_x, int size_y, bool normalized, double constant)
Definition: d_img_proc_2dfactory.cpp:489
static function< int(Mat *, Mat *)> Labeling(int connectivity, int out_depth)
Definition: d_img_proc_2dfactory.cpp:304
static function< int(Mat *, Mat *, Mat *)> Math_2img_BitwiseAnd()
Definition: d_img_proc_2dfactory.cpp:1311
static function< int(Mat *, Mat *, Mat *, Mat *, Mat *)> Stitch_Border_abs(int border_R, int border_B, int overlap_R, int overlap_B, Stitcher::Mode mode=Stitcher::SCANS)
Definition: d_img_proc_2dfactory.cpp:1853
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)
Definition: d_img_proc.cpp:6669
static function< int(Mat *, Mat *)> Draw_ContourText(vector< vector< Point >> vContours, QStringList QSL_Texts, vector< Point2f > vTextOrigins, int line_thickness, int text_thickness, double text_scale, double value)
Definition: d_img_proc_2dfactory.cpp:902
static int Math_ImgImg_Min(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
Definition: d_img_proc.cpp:13232
static int Floodfill_Delta(Mat *pMA_Out, Mat *pMA_In, int seed_x, int seed_y, uchar val_new, uchar val_delta)
Definition: d_img_proc.cpp:16775
static int Histo_Equal(Mat *pMA_Out, Mat *pMA_In)
Definition: d_img_proc.cpp:14397
static int Math_ImgImg_BitXor(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
Definition: d_img_proc.cpp:13217
static function< int(Mat *, Mat *)> FeatureContext_Value(int pt_type1, int pt_type2, double dist_min, double dist_max, int feat, int stat, int connectivity=4)
Definition: d_img_proc_2dfactory.cpp:711
static int Math_ImgImg_AddWeighted(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, double weight_1, double weight_2, double weight_sum)
Definition: d_img_proc.cpp:13107
static int Feature_Select(Mat *pMA_Out, Mat *pMA_In, int feature, double f_min, double f_max, int connectivity=4)
Definition: d_img_proc.cpp:15710
static function< int(Mat *, Mat *, Mat *, Mat *, Mat *)> Stitch_Border_abs_custom(int border_R, int border_B, int overlap_R, int overlap_B)
Definition: d_img_proc_2dfactory.cpp:1891
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.
Definition: d_img_proc.cpp:19134
static function< int(Mat *, Mat *, Mat *, Mat *, Mat *)> Math_4img_BitwiseOr()
Definition: d_img_proc_2dfactory.cpp:1839
static int Math_ImgImg_Max(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
Definition: d_img_proc.cpp:13247
static int Filter_Stat_Circular(Mat *pMA_Out, Mat *pMA_In, double radius, int stat, int border_type=BORDER_CONSTANT)
Definition: d_img_proc.cpp:12170
static function< int(Mat *, Mat *, Mat *)> Filter_Median()
Definition: d_img_proc_2dfactory.cpp:1157
static int Math_ImgScal_Sub(Mat *pMA_Out, Mat *pMA_In, double subtrahend)
Definition: d_img_proc.cpp:13019
static function< int(Mat *)> Generate_byValueFunction_Complex(int width, int height, function< complex< double >(complex< double > x, complex< double > y)> value_function)
Definition: d_img_proc_2dfactory.cpp:21
static int Math_ImgImg_Comp(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, int comp)
Definition: d_img_proc.cpp:13262
static int Normalize(Mat *pMA_Out, Mat *pMA_In, unsigned int norm, unsigned int type, double min, double max)
Definition: d_img_proc.cpp:3814
static function< int(Mat *, Mat *, Mat *)> ClassBorder_kNN(int n)
Definition: d_img_proc_2dfactory.cpp:1539
static function< int(Mat *, Mat *, Mat *, Mat *, Mat *)> Math_4img_Addition()
Definition: d_img_proc_2dfactory.cpp:1767
static int Math_Mult(Mat *pMA_Out, Mat *pMA_In1, double factor)
Definition: d_img_proc.cpp:12504
static function< int(Mat *, Mat *, Mat *)> Math_2img_BitwiseOr()
Definition: d_img_proc_2dfactory.cpp:1323
static function< int(Mat *, Mat *, Mat *)> ValueStat(int stat, int connectivity=8)
Definition: d_img_proc_2dfactory.cpp:1583
static int Filter_Eilenstein(Mat *pMA_Out, Mat *pMA_In, int comp, unsigned int size_x, unsigned int size_y, bool normalized, double constant)
Definition: d_img_proc.cpp:10982
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)
Definition: d_img_proc.cpp:6189
static function< int(Mat *, Mat *, Mat *)> Filter_Function(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)
Definition: d_img_proc_2dfactory.cpp:1184
static function< int(Mat *, Mat *)> Crop_Rect_Rel(double x1_rel, double y1_rel, double x2_rel, double y2_rel)
Definition: d_img_proc_2dfactory.cpp:920
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)
Definition: d_img_proc.cpp:5057
static function< int(Mat *, Mat *)> Math_1img_Multiplication(double factor)
Definition: d_img_proc_2dfactory.cpp:596
static function< int(Mat *, Mat *, Mat *)> Hysteresis(bool labeling=false)
Definition: d_img_proc_2dfactory.cpp:1131
static function< int(Mat *, Mat *)> Math_1img_Log()
Definition: d_img_proc_2dfactory.cpp:643
static function< int(Mat *, Mat *)> Filter_Canny(int size, double thres_low, double thres_high, bool L2_gradient)
Definition: d_img_proc_2dfactory.cpp:437
static int Labeling(Mat *pMA_Out, Mat *pMA_In, int connectivity, int out_depth)
Definition: d_img_proc.cpp:12350
static function< int(Mat *, Mat *, Mat *)> Math_2img_Addition()
Definition: d_img_proc_2dfactory.cpp:1234
static int Load_From_Path_Raw(Mat *pMA_Out, string path, int width, int height, int out_type)
Definition: d_img_proc.cpp:137
static function< int(Mat *, Mat *, Mat *, Mat *, Mat *)> Stitch_Border_rel_custom(double border_R, double border_B, double overlap_R, double overlap_B)
Definition: d_img_proc_2dfactory.cpp:1909
static int Math_ImgScal_Mult(Mat *pMA_Out, Mat *pMA_In, double factor)
Definition: d_img_proc.cpp:13037
static int Transformation_Distance(Mat *pMA_Out, Mat *pMA_In, int metric, int precision)
Definition: d_img_proc.cpp:7486
static function< int(Mat *, Mat *)> Threshold_Adaptive(int mode, int max, int mask_type, int mask_size, double offset)
Definition: d_img_proc_2dfactory.cpp:257
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)
Definition: d_img_proc.cpp:10811
static int Matrix_Product(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
Definition: d_img_proc.cpp:14057
static function< int(Mat *)> Draw_ContourText_InPlace(vector< vector< Point >> vContours, QStringList QSL_Texts, vector< Point2f > vTextOrigins, int line_thickness, int text_thickness, double text_scale, double value)
Definition: d_img_proc_2dfactory.cpp:61
static function< int(Mat *, Mat *)> Crop_Circle(int x, int y, int r)
Definition: d_img_proc_2dfactory.cpp:966
static function< int(Mat *, Mat *)> Filter_RankOrder_Circular(double quantil, double radius)
Definition: d_img_proc_2dfactory.cpp:534
static int Scale_Factor(Mat *pMA_Out, Mat *pMA_In, double scale_x, double scale_y)
Definition: d_img_proc.cpp:6208
static function< int(Mat *, Mat *, Mat *)> Math_2img_Compare(int comp)
Definition: d_img_proc_2dfactory.cpp:1371
static int Filter_Stat(Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Mask, int stat, int border_type=BORDER_CONSTANT)
Definition: d_img_proc.cpp:12156
static int Math_ImgImg_Div(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, double scale)
Definition: d_img_proc.cpp:13171
static function< int(Mat *, Mat *)> Convert_Depth_NoScaling(int depth)
Definition: d_img_proc_2dfactory.cpp:119
static function< int(Mat *, Mat *, Mat *)> Math_2img_AdditionWeighted(double weight_1, double weight_2, double weight_sum)
Definition: d_img_proc_2dfactory.cpp:1246
static function< int(Mat *, Mat *, Mat *)> Draw_Label_Numbers_LUT(vector< double > v_LUT, bool border, double scale, double thickness, bool center, int precision, uchar r=0, uchar g=0, uchar b=0)
Definition: d_img_proc_2dfactory.cpp:1497
static int Filter_Maximum_1C(Mat *pMA_Out, Mat *pMA_In, size_t mask_size_x, size_t mask_size_y)
Definition: d_img_proc.cpp:9999
static function< int(Mat *, Mat *)> Scale_Factor(double scale_x, double scale_y)
Definition: d_img_proc_2dfactory.cpp:980
static function< int(Mat *, Mat *)> Scale_ToSize(int size_x, int size_y)
Definition: d_img_proc_2dfactory.cpp:993
static function< int(Mat *, Mat *, Mat *)> Math_2img_Maximum()
Definition: d_img_proc_2dfactory.cpp:1359
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)
Definition: d_img_proc.cpp:11397
static function< int(Mat *, Mat *)> Convert_8UC1_binary()
Definition: d_img_proc_2dfactory.cpp:158
static int Combi_8UC1_binary(Mat *pMA_Out, Mat *pMA_In)
Definition: d_img_proc.cpp:4592
static function< int(Mat *, Mat *)> Filter_Maximum_1C(size_t mask_size_x, size_t mask_size_y)
Definition: d_img_proc_2dfactory.cpp:1106
static function< int(Mat *, Mat *, Mat *, Mat *)> Math_3img_Multiplication()
Definition: d_img_proc_2dfactory.cpp:1654
static function< int(Mat *, Mat *, Mat *, Mat *, Mat *)> Channel_Merge(int channel_count, bool channels_use[4])
static function< int(Mat *, Mat *)> Filter_Sobel(int size, int border, int out_depth, double scale, double delta, int d_x, int d_y)
Definition: d_img_proc_2dfactory.cpp:419
static function< int(Mat *, Mat *)> Feature_Value(int feature, int connectivity)
Definition: d_img_proc_2dfactory.cpp:698
static function< int(Mat *, Mat *)> GammaSpread_Quantiles(double gamma, double quantile_low, double quantile_high, double out_min=0, double out_max=255, bool force_8bit=false, bool ignore_zeros=true)
Definition: d_img_proc_2dfactory.cpp:843
static function< int(Mat *, Mat *)> Filter_Gauss(int size_x, int size_y, int border, double sigma_x, double sigma_y)
Definition: d_img_proc_2dfactory.cpp:375
static int Threshold_Auto(Mat *pMA_Out, Mat *pMA_In, int out_mode, double max_val, int auto_mode)
Definition: d_img_proc.cpp:6653
static int Draw_Label_Numbers(Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Label, double scale, double thickness, bool center)
Definition: d_img_proc.cpp:19012
static function< int(Mat *, Mat *)> Math_1img_Subtraction(double subtrahend)
Definition: d_img_proc_2dfactory.cpp:584
static int Math_ImgScal_Add(Mat *pMA_Out, Mat *pMA_In, double summmand)
Definition: d_img_proc.cpp:13010
static function< int(Mat *, Mat *)> Math_1img_Power(double power)
Definition: d_img_proc_2dfactory.cpp:620
static function< int(Mat *, Mat *)> Feature_Visualize(int feature, int connectivity, int thickness, double scale)
Definition: d_img_proc_2dfactory.cpp:764
static function< int(Mat *, Mat *)> Threshold_Adaptive_Gauss(int size, double sigma, double offset, double scale)
Definition: d_img_proc_2dfactory.cpp:273
static function< int(Mat *, Mat *, Mat *)> Math_2img_Division(double scale)
Definition: d_img_proc_2dfactory.cpp:1298
static int OverlayOverwrite(Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Overlay, double intensity_overlay=1.0, double intensity_backgr=1.0)
Definition: d_img_proc.cpp:19556
static function< int(Mat *, Mat *, Mat *, Mat *)> Transformation_Watershed_Custom(int connectivity=8)
Definition: d_img_proc_2dfactory.cpp:1613
static function< int(Mat *, Mat *)> Filter_RootMeanSquare(int size_x, int size_y, int border, int out_depth, bool norm)
Definition: d_img_proc_2dfactory.cpp:359
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!
Definition: d_img_proc.cpp:7909
static function< int(Mat *, Mat *)> Filter_Stat_Rect(int size_x, int size_y, int stat, int border_type=BORDER_CONSTANT)
Definition: d_img_proc_2dfactory.cpp:519
static function< int(Mat *, Mat *, Mat *, Mat *, Mat *)> Math_4img_Multiplication()
Definition: d_img_proc_2dfactory.cpp:1796
static function< int(Mat *, Mat *)> GammaSpread(double gamma, double in_min, double in_max, double out_min, double out_max, bool force_8bit)
Definition: d_img_proc_2dfactory.cpp:826
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.
Definition: d_img_proc.cpp:19332
static int Padding(Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y, int type=BORDER_CONSTANT)
Definition: d_img_proc.cpp:5708
static function< int(Mat *, Mat *, Mat *)> Draw_Label_Numbers(double scale, double thickness, bool center)
Definition: d_img_proc_2dfactory.cpp:1482
static int Filter_Stat_Rect(Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y, int stat, int border_type=BORDER_CONSTANT)
Definition: d_img_proc.cpp:12221
static function< int(Mat *, Mat *)> Threshold_Realtive(double base, double thresh_rel)
Definition: d_img_proc_2dfactory.cpp:244
static int Transformation_Fourier(Mat *pMA_Out, Mat *pMA_In, bool invers)
Definition: d_img_proc.cpp:8532
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)
Definition: d_img_proc.cpp:18727
static function< int(Mat *, Mat *)> Math_1img_Division(double divisor)
Definition: d_img_proc_2dfactory.cpp:608
static int Split(Mat *pMA_Out, Mat *pMA_In, unsigned int channel)
Definition: d_img_proc.cpp:4007
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)
Definition: d_img_proc.cpp:18825
static function< int(Mat *, Mat *)> Normalize(int norm, int type, double min, double max)
Definition: d_img_proc_2dfactory.cpp:104
static int Feature_Visualize(Mat *pMA_Out, Mat *pMA_In, int feature, int connectivity=4, int thickness=1, double scale=1)
Definition: d_img_proc.cpp:15810
static function< int(Mat *, Mat *, Mat *, Mat *)> Channel_Merge()
Definition: d_img_proc_2dfactory.cpp:1707
static int Shading_Correct(Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Reference)
Definition: d_img_proc.cpp:14089
static int Filter_Box(Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y, int border, int out_depth, bool norm)
Definition: d_img_proc.cpp:9052
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 v...
Definition: d_img_proc.cpp:15977
static int Math_ImgScal_Root(Mat *pMA_Out, Mat *pMA_In)
Definition: d_img_proc.cpp:13068
static function< int(Mat *, Mat *, Mat *)> Math_2img_Subtraction()
Definition: d_img_proc_2dfactory.cpp:1261
static function< int(Mat *, Mat *)> Filter_Mean(int size_x, int size_y, int border, int out_depth, bool norm)
Definition: d_img_proc_2dfactory.cpp:343
D_Img_Proc_2dFactory()
Definition: d_img_proc_2dfactory.cpp:3
static int Hysteresis(Mat *pMA_Out, Mat *pMA_In_Indicator, Mat *pMA_In_Hysteresis, bool labeling=false)
Definition: d_img_proc.cpp:16857
static function< int(Mat *, Mat *)> Floodfill_Delta(int seed_x, int seed_y, uchar val_new, uchar val_delta)
Definition: d_img_proc_2dfactory.cpp:1046
static function< int(Mat *, Mat *)> Threshold_Auto(int mode, int max, int auto_type)
Definition: d_img_proc_2dfactory.cpp:204
static int Crop_Rect_Rel(Mat *pMA_Out, Mat *pMA_In, double x1_rel, double y1_rel, double x2_rel, double y2_rel)
Definition: d_img_proc.cpp:5467
static function< int(Mat *, Mat *)> Threshold_Value(int mode, int max, int thresh)
Definition: d_img_proc_2dfactory.cpp:218
static function< int(Mat *, Mat *, Mat *)> Math_2img_SubtractionAbsolute()
Definition: d_img_proc_2dfactory.cpp:1273
static int Transformation_Watershed(Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Marker)
Definition: d_img_proc.cpp:7557
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)
Definition: d_img_proc.cpp:6011
static int ValueStat_Select(Mat *pMA_Out, Mat *pMA_InLabel, Mat *pMA_InValue, int stat, double thresh_min, double thresh_max, int connectivity=8)
Definition: d_img_proc.cpp:16060
static int Transformation_Watershed_Auto(Mat *pMA_Out, Mat *pMA_In, Mat *pMA_Marker, bool include_not_seeded, bool conv_8bit, bool exclude_border)
Definition: d_img_proc.cpp:7573
static function< int(Mat *, Mat *)> ForceSize(int width, int heigth, int border_type=BORDER_CONSTANT)
Definition: d_img_proc_2dfactory.cpp:1020
static function< int(Mat *, Mat *)> Transformation_Watershed_Auto(double distance, bool include_not_seeded, bool conv_8bit, bool exclude_border)
Definition: d_img_proc_2dfactory.cpp:667
static int Color_Grab(Mat *pMA_Out, Mat *pMA_In, int color_space, int out_mode, vector< uchar > min, vector< uchar > max)
Definition: d_img_proc.cpp:6950
static function< int(Mat *, Mat *, Mat *, Mat *)> RadiometricStereo(double S1X, double S1Y, double S1Z, double S2X, double S2Y, double S2Z, double S3X, double S3Y, double S3Z, int out_mode)
Definition: d_img_proc_2dfactory.cpp:1720
static function< int(Mat *, Mat *, Mat *)> Filter_Eilenstein(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_Box_RMS(Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y, int border, int out_depth, bool norm)
Definition: d_img_proc.cpp:9067
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)
Definition: d_img_proc.cpp:20887
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)
Definition: d_img_proc.cpp:5927
static function< int(Mat *, Mat *, Mat *)> Math_2img_Function_Complex(function< complex< double >(complex< double > x, complex< double > y)> function_img1_img2)
Definition: d_img_proc_2dfactory.cpp:1410
static function< int(Mat *, Mat *)> Histogram_Equalize()
Definition: d_img_proc_2dfactory.cpp:815
static int Convert_Angle2Color_Rad(Mat *pMA_Out, Mat *pMA_InAngleRad, uchar Saturation=255, uchar Value=255)
Definition: d_img_proc.cpp:3774
static int Feature_Value(Mat *pMA_Out, Mat *pMA_In, int feature, int connectivity=4)
Definition: d_img_proc.cpp:15646
static function< int(Mat *, Mat *, Mat *, Mat *)> Math_3img_Addition()
Definition: d_img_proc_2dfactory.cpp:1627
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)
Definition: d_img_proc.cpp:10742
static function< int(Mat *, Mat *)> Channel_Supression(bool use_r=true, bool use_g=true, bool use_b=true, bool force_3ch=false)
Definition: d_img_proc_2dfactory.cpp:143
static function< int(Mat *)> Load_From_Path_Raw(string path, int width, int height, int out_type)
Definition: d_img_proc_2dfactory.cpp:34
static int Filter_Canny(Mat *pMA_Out, Mat *pMA_In, int size, double thres_low, double thres_high, bool L2_gradient)
Definition: d_img_proc.cpp:10778
static int Scale_ToSize(Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y)
Definition: d_img_proc.cpp:6219
static int Math_ImgImg_Function(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, function< double(double x, double y)> function_img1_img2)
Definition: d_img_proc.cpp:13278
static int Filter_Bilateral(Mat *pMA_Out, Mat *pMA_In, int diameter, int border, double sigma_color, double sigma_space)
Definition: d_img_proc.cpp:10796
static int Threshold_Adaptive_Gauss(Mat *pMA_Out, Mat *pMA_In, int size, double sigma, double offset, double scale)
Definition: d_img_proc.cpp:6689
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)
Definition: d_img_proc.cpp:7041
static function< int(Mat *, Mat *, Mat *)> Draw_Label_Text(QStringList QSL_LabelTexts, bool border, double scale, double thickness, bool center, uchar r=0, uchar g=0, uchar b=0, int connectivity=4)
Definition: d_img_proc_2dfactory.cpp:1518
static function< int(Mat *, Mat *)> Filter_Bilateral(int diameter, int border, double sigma_color, double sigma_space)
Definition: d_img_proc_2dfactory.cpp:453
static int Math_ImgSelf_Not(Mat *pMA_Out, Mat *pMA_In)
Definition: d_img_proc.cpp:12999
static function< int(Mat *, Mat *, Mat *)> Math_2img_Multiplication(double scale)
Definition: d_img_proc_2dfactory.cpp:1285
static function< int(Mat *, Mat *, Mat *, Mat *, Mat *)> Math_4img_BitwiseAnd()
Definition: d_img_proc_2dfactory.cpp:1825
static function< int(Mat *, Mat *)> DistancesStat(function< double(vector< double >)> F_Stat)
Definition: d_img_proc_2dfactory.cpp:861
static function< int(Mat *, Mat *)> Math_1img_Root()
Definition: d_img_proc_2dfactory.cpp:632
static function< int(Mat *, Mat *)> Floodfill_Border(double new_val)
Definition: d_img_proc_2dfactory.cpp:1034
static function< int(Mat *, Mat *, Mat *)> Matrix_Product()
Definition: d_img_proc_2dfactory.cpp:1423
static function< int(Mat *, Mat *)> Channel_Split(int channel)
Definition: d_img_proc_2dfactory.cpp:131
static function< int(Mat *, Mat *)> Morphology_LocMax_Rect(int elem_size_X=3, int elem_size_Y=3)
Definition: d_img_proc_2dfactory.cpp:1093
static int Math_ImgImg_Function_8bit(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, function< uchar(double x, double y)> function_img1_img2)
Definition: d_img_proc.cpp:13329
static int DistancesStat(Mat *pMA_Out, Mat *pMA_In, function< double(vector< double >)> F_Stat)
Definition: d_img_proc.cpp:20854
static function< int(Mat *, Mat *)> OverlayOverwrite(uchar r, uchar g, uchar b, double intensity_overlay)
Definition: d_img_proc_2dfactory.cpp:886
static function< int(Mat *, Mat *, Mat *)> Shading_Correct()
Definition: d_img_proc_2dfactory.cpp:1119
static function< int(Mat *, Mat *)> Transformation_Distance(int metric, int precision)
Definition: d_img_proc_2dfactory.cpp:654
static function< int(Mat *)> Generate_byValueFunction(int width, int height, function< double(double x, double y)> value_function)
Definition: d_img_proc_2dfactory.cpp:8
static function< int(Mat *, Mat *, Mat *)> Transformation_Fourier(bool complex_input=true, 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)
Definition: d_img_proc_2dfactory.cpp:1435
static int Crop_Rect_Rot(Mat *pMA_Out, Mat *pMA_In, int x, int y, int width, int height, double angle)
Definition: d_img_proc.cpp:5530
static function< int(Mat *, Mat *)> Math_1img_Addition(double summmand)
Definition: d_img_proc_2dfactory.cpp:572
static int Math_ImgImg_BitOr(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
Definition: d_img_proc.cpp:13202
static function< int(Mat *, Mat *)> Convert_Color2Mono(int col2mono_code)
Definition: d_img_proc_2dfactory.cpp:92
static int Crop_Circle(Mat *pMA_Out, Mat *pMA_In, int x, int y, int r)
Definition: d_img_proc.cpp:5586
static int ForceSize(Mat *pMA_Out, Mat *pMA_In, int width, int heigth, int border_type=BORDER_CONSTANT)
Definition: d_img_proc.cpp:5870
static function< int(Mat *, Mat *)> Threshold_RankOrderOffsetHysteresis(double radius, double quantile, double thresh_offset_indicator, double thresh_offset_hysteresis, bool labeling=false)
Definition: d_img_proc_2dfactory.cpp:288
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.
Definition: d_img_proc.cpp:9317
@ c_CONNECT_CLOSEST
Definition: d_enum.h:1266
static int Convert_Color(Mat *pMA_Out, Mat *pMA_In, int cvt_mode)
Definition: d_img_proc.cpp:2524
static function< int(Mat *, Mat *, Mat *)> Filter_Stat(int stat, int border_type=BORDER_CONSTANT)
Definition: d_img_proc_2dfactory.cpp:1220
static function< int(Mat *, Mat *)> Crop_Rect_Abs(int x, int y, int width, int height)
Definition: d_img_proc_2dfactory.cpp:935
static int Sign2Color(Mat *pMA_Out, Mat *pMA_In, bool norm=false)
Definition: d_img_proc.cpp:4191
static function< int(Mat *, Mat *, Mat *, Mat *)> Morphology_Reconstruction(double quantil=1)
Definition: d_img_proc_2dfactory.cpp:1735
static int Morphology_Reconstruction(Mat *pMA_Out, Mat *pMA_InSeed, Mat *pMA_InLimit, Mat *pMA_Mask, double quantil=1)
Definition: d_img_proc.cpp:7437
static int Math_ImgImg_DiffAbs(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
Definition: d_img_proc.cpp:13140
The D_Img_Proc_2dFactory class Factory that turns methods from D_Img_Proc into function objects.
Definition: d_img_proc_2dfactory.h:53
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)
Definition: d_img_proc.cpp:6032
static int Reduce_Geometric(Mat *pMA_Out, Mat *pMA_In, int geometric, int connectivity=8, int thickness=1, uchar value=255)
Definition: d_img_proc.cpp:16215
static int Math_ImgImg_BitAnd(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
Definition: d_img_proc.cpp:13187
static int ClassBorder_kNN(Mat *pMA_Out, Mat *pMA_Class0, Mat *pMA_Class1, int n)
Definition: d_img_proc.cpp:20100
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)
Definition: d_img_proc.cpp:15758
static int Math_Add(Mat *pMA_Out, Mat *pMA_In1, double summand)
Definition: d_img_proc.cpp:12364
static int Math_ImgImg_Add(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2)
Definition: d_img_proc.cpp:13092
static function< int(Mat *, Mat *)> Filter_Stat_Circular(double radius, int stat, int border_type=BORDER_CONSTANT)
Definition: d_img_proc_2dfactory.cpp:505
static int Math_ImgScal_Div(Mat *pMA_Out, Mat *pMA_In, double divisor)
Definition: d_img_proc.cpp:13046
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])
Definition: d_img_proc.cpp:4060
static int Floodfill_Boundary(Mat *pMA_Out, Mat *pMA_In, double new_val)
Definition: d_img_proc.cpp:16722
static function< int(Mat *, Mat *)> Grab_Color(int color_space, int out_mode, vector< uchar > min, vector< uchar > max)
Definition: d_img_proc_2dfactory.cpp:317
static int Convert_Depth_NoScaling(Mat *pMA_Out, Mat *pMA_In, int depth)
Definition: d_img_proc.cpp:2777
static function< int(Mat *, Mat *)> Morphology_Skeleton(int elem_type, int elem_size_X, int elem_size_Y, int border_type)
Definition: d_img_proc_2dfactory.cpp:1078
static int Filter_Gauss(Mat *pMA_Out, Mat *pMA_In, int size_x, int size_y, int border, double sigma_x, double sigma_y)
Definition: d_img_proc.cpp:9083
static int Math_ImgImg_Mult(Mat *pMA_Out, Mat *pMA_In1, Mat *pMA_In2, double scale)
Definition: d_img_proc.cpp:13155
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.
Definition: d_img_proc.cpp:9271
static int Morphology_LocMax_Rect(Mat *pMA_Out, Mat *pMA_In, int elem_size_X=3, int elem_size_Y=3)
Definition: d_img_proc.cpp:7397
static function< int(Mat *, Mat *)> Feature_Select(int feature, double f_min, double f_max, int connectivity)
Definition: d_img_proc_2dfactory.cpp:729
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)
Definition: d_img_proc.cpp:15679
static function< int(Mat *, Mat *, Mat *)> Math_2img_Function_8bit(function< uchar(double x, double y)> function_img1_img2)
Definition: d_img_proc_2dfactory.cpp:1397
static function< int(Mat *, Mat *, Mat *, Mat *)> Math_3img_BitwiseOr()
Definition: d_img_proc_2dfactory.cpp:1694
static int Convert_Color2Mono(Mat *pMA_Out, Mat *pMA_In, int col2mono_code)
Definition: d_img_proc.cpp:2662
static function< int(Mat *, Mat *, Mat *)> Math_2img_BitwiseXor()
Definition: d_img_proc_2dfactory.cpp:1335
static function< int(Mat *, Mat *, Mat *)> Filter_RankOrder(double quantil)
Definition: d_img_proc_2dfactory.cpp:1144
static int Generate_byValueFunction_Complex(Mat *pMA_Out, int width, int height, function< complex< double >(complex< double > x, complex< double > y)> value_function)
Definition: d_img_proc.cpp:346
static function< int(Mat *, Mat *, Mat *, Mat *, Mat *)> Stitch_Border_rel(double border_R, double border_B, double overlap_R, double overlap_B, Stitcher::Mode mode=Stitcher::SCANS)
Definition: d_img_proc_2dfactory.cpp:1872
static function< int(Mat *, Mat *)> Morphology_Elemental(int morph_type, int elem_type, int elem_size_X, int elem_size_Y, int border_type, int iterations)
Definition: d_img_proc_2dfactory.cpp:1061
static int Threshold_Value(Mat *pMA_Out, Mat *pMA_In, int out_mode, double max_val, double thres)
Definition: d_img_proc.cpp:6638
static int Threshold_Relative(Mat *pMA_Out, Mat *pMA_In, double max_val, double thres_rel)
Definition: d_img_proc.cpp:6235
static function< int(Mat *, Mat *)> Threshold_Absolute(double thresh)
Definition: d_img_proc_2dfactory.cpp:232
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)
Definition: d_img_proc.cpp:11786
static function< int(Mat *, Mat *, Mat *)> Transformation_Watershed()
Definition: d_img_proc_2dfactory.cpp:1455
static function< int(Mat *, Mat *)> Math_1img_Inversion()
Definition: d_img_proc_2dfactory.cpp:561
static function< int(Mat *, Mat *, Mat *)> Math_2img_Function(function< double(double x, double y)> function_img1_img2)
Definition: d_img_proc_2dfactory.cpp:1384
static int Threshold_Absolute(Mat *pMA_Out, Mat *pMA_In, double thres_abs)
Definition: d_img_proc.cpp:6440
static function< int(Mat *, Mat *)> Filter_Gabor(int size_x, int size_y, int border, int out_depth, double sigma, double theta, double lambda, double gamma, double psi, double delta)
Definition: d_img_proc_2dfactory.cpp:468
static function< int(Mat *, Mat *)> Filter_RankOrder_Rect(double quantil, int size_x, int size_y)
Definition: d_img_proc_2dfactory.cpp:547
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)
Definition: d_img_proc.cpp:15901
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)
Definition: d_img_proc.cpp:13380
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)
Definition: d_img_proc.cpp:3953
static function< int(Mat *, Mat *, Mat *)> Filter_Function_8bit(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)
Definition: d_img_proc_2dfactory.cpp:1202
static int Math_ImgScal_Log(Mat *pMA_Out, Mat *pMA_In)
Definition: d_img_proc.cpp:13080
static int Generate_byValueFunction(Mat *pMA_Out, int width, int height, function< double(double x, double y)> value_function)
Definition: d_img_proc.cpp:332
static int Filter_Laplace(Mat *pMA_Out, Mat *pMA_In, int size, int border, int out_depth, double scale, double delta)
Definition: d_img_proc.cpp:10694
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)
Definition: d_img_proc.cpp:6830