This module defines two classes: JumpScale which is a subclass of Tkinter.Scale but jumps to the position where it is clicked instead of moving a fixed amount. More...
Classes | |
class | ImageSettingsFrame |
Frame to modify filter parameters. More... | |
class | JumpScale |
A class that behaves like the Tkinter Scale widget but if you click on it the slider jumps to the clicked position. More... | |
Functions | |
def | _slider_tickinterval |
Calculate appropriate interval for the sliders. | |
def | imgmsg_to_photo_image |
Transform a sensor_msgs/Image to a ImageTk.PhotoImage. | |
Variables | |
int | BLUR_HEIGHT_MAX = 50 |
constant defining the maximum value for blur height | |
int | BLUR_HEIGHT_MIN = 1 |
constant defining the minimum value for blur height | |
int | BLUR_WIDTH_MAX = 50 |
constant defining the maximum value for blur width | |
int | BLUR_WIDTH_MIN = 1 |
constant defining the minimum value for blur width | |
int | CANNY_THRESHOLD1_MAX = 30000 |
constant defining the maximum value for canny threshold1 | |
int | CANNY_THRESHOLD1_MIN = 1 |
constant defining the minimum value for canny threshold1 | |
int | CANNY_THRESHOLD2_MAX = 30000 |
constant defining the maximum value for canny threshold2 | |
int | CANNY_THRESHOLD2_MIN = 1 |
constant defining the minimum value for canny threshold2 | |
current_image = None | |
This field saves the original with all filters applied according to the current settings as sensor_msgs/Image. | |
int | PIXEL_NUM_MAX = 20 |
constant defining the maximal amount of pixels that can be passed as argument to the short line deletion filter | |
int | PIXEL_NUM_MIN = 1 |
constant defining the minimal amount of pixels that can be passed as argument to the short line deletion filter | |
int | SEARCH_RADIUS_MAX = 20 |
constant defining the maximum search radius for edge connection | |
int | SEARCH_RADIUS_MIN = 1 |
constant defining the minimal search radius for edge connection | |
int | SLIDER_LENGTH = 200 |
The length of all sliders used on this frame. |
This module defines two classes: JumpScale which is a subclass of Tkinter.Scale but jumps to the position where it is clicked instead of moving a fixed amount.
The second class is the ImageSettingsFrame itself. A frame which contains several sliders for all available filters and allows the user to modify them.
def face_contour_detector.gui.image_settings_frame._slider_tickinterval | ( | min_, | |
max_, | |||
tick_count = None |
|||
) | [private] |
Calculate appropriate interval for the sliders.
min_ | the minimum value of the slider |
max_ | the maximum value of the slider |
tick_count | the amount of ticks on the slider. If omitted 4 is used. |
Definition at line 562 of file image_settings_frame.py.
def face_contour_detector.gui.image_settings_frame.imgmsg_to_photo_image | ( | imgmsg_img, | |
bridge | |||
) |
Transform a sensor_msgs/Image to a ImageTk.PhotoImage.
Image is transformed to a "mono8" photo.
Definition at line 572 of file image_settings_frame.py.
constant defining the maximum value for blur height
Definition at line 32 of file image_settings_frame.py.
constant defining the minimum value for blur height
Definition at line 30 of file image_settings_frame.py.
constant defining the maximum value for blur width
Definition at line 27 of file image_settings_frame.py.
constant defining the minimum value for blur width
Definition at line 25 of file image_settings_frame.py.
constant defining the maximum value for canny threshold1
Definition at line 37 of file image_settings_frame.py.
constant defining the minimum value for canny threshold1
Definition at line 35 of file image_settings_frame.py.
constant defining the maximum value for canny threshold2
Definition at line 42 of file image_settings_frame.py.
constant defining the minimum value for canny threshold2
Definition at line 40 of file image_settings_frame.py.
This field saves the original with all filters applied according to the current settings as sensor_msgs/Image.
Initially it is set to None.
Definition at line 58 of file image_settings_frame.py.
constant defining the maximal amount of pixels that can be passed as argument to the short line deletion filter
Definition at line 52 of file image_settings_frame.py.
constant defining the minimal amount of pixels that can be passed as argument to the short line deletion filter
Definition at line 50 of file image_settings_frame.py.
constant defining the maximum search radius for edge connection
Definition at line 47 of file image_settings_frame.py.
constant defining the minimal search radius for edge connection
Definition at line 45 of file image_settings_frame.py.
The length of all sliders used on this frame.
Definition at line 55 of file image_settings_frame.py.