Advanced morphology Transformations sample code. More...
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <stdlib.h>
#include <stdio.h>
Go to the source code of this file.
Functions | |
int | main (int, char **argv) |
void | Morphology_Operations (int, void *) |
Variables | |
Mat | dst |
int const | max_elem = 2 |
int const | max_kernel_size = 21 |
int const | max_operator = 4 |
int | morph_elem = 0 |
int | morph_operator = 0 |
int | morph_size = 0 |
Mat | src |
Global variables. | |
const char * | window_name = "Morphology Transformations Demo" |
Advanced morphology Transformations sample code.
Definition in file Morphology_2.cpp.
int main | ( | int | , | |
char ** | argv | |||
) |
main
Load an image
Create window
Create Trackbar to select Morphology operation
Create Trackbar to select kernel type
Create Trackbar to choose kernel size
Default start
Definition at line 59 of file Morphology_2.cpp.
void Morphology_Operations | ( | int | , | |
void * | ||||
) |
Function Headers
Morphology_Operations
Apply the specified morphology operation
Definition at line 93 of file Morphology_2.cpp.
Mat dst |
Definition at line 41 of file Morphology_2.cpp.
int const max_elem = 2 |
Definition at line 47 of file Morphology_2.cpp.
int const max_kernel_size = 21 |
Definition at line 48 of file Morphology_2.cpp.
int const max_operator = 4 |
Definition at line 46 of file Morphology_2.cpp.
int morph_elem = 0 |
Definition at line 43 of file Morphology_2.cpp.
int morph_operator = 0 |
Definition at line 45 of file Morphology_2.cpp.
int morph_size = 0 |
Definition at line 44 of file Morphology_2.cpp.
Mat src |
Global variables.
Definition at line 41 of file Morphology_2.cpp.
const char* window_name = "Morphology Transformations Demo" |
Definition at line 50 of file Morphology_2.cpp.