facebook360_dep
Facebook360 Depth Estimation Pipeline
|
Public Member Functions | |
def | __init__ (self, parent=None) |
def | set_zoom_level (self, zoom) |
def | set_image_viewer (self, image_viewer) |
def | convert_image_to_pixmap (self, np.ndarray image) |
def | update_thresholds (self, noise=-1, detail=-1, blur=-1, closing=-1, thresh=-1) |
Public Attributes | |
color_var | |
fg_mask | |
gb | |
image_viewer | |
Element in the UI responsible for displaying interactive thresholds (both foreground mask and color variance). Attributes: color_var (ColorVariance): Instance of ColorVariance UI element. fg_mask (ForegroundMask): Instance of ForegroundMask UI element. gb (QtWidgets.QGroupBox): Group box for the tab. image_viewer (ImageViewer): Instance of ImageViewer UI element.
def widget_image_thresholds.ImageWidget.__init__ | ( | self, | |
parent = None |
|||
) |
Initializes the ImageWidget UI element. Args: parent (App(QDialog), optional): Object corresponding to the parent UI element.
def widget_image_thresholds.ImageWidget.convert_image_to_pixmap | ( | self, | |
np.ndarray | image | ||
) |
Converts from cv2 image to a QT image format. Args: image (np.ndarray): cv2 read image. Returns: QtGui.QPixmap: Identical image in QT image format.
def widget_image_thresholds.ImageWidget.set_image_viewer | ( | self, | |
image_viewer | |||
) |
Updates viewer instance. Args: image_viewer (ImageViewer): Instance to be used to display images.
def widget_image_thresholds.ImageWidget.set_zoom_level | ( | self, | |
zoom | |||
) |
Updates the UI display to a given zoom. Args: zoom (float): Zoom of the image display.
def widget_image_thresholds.ImageWidget.update_thresholds | ( | self, | |
noise = -1 , |
|||
detail = -1 , |
|||
blur = -1 , |
|||
closing = -1 , |
|||
thresh = -1 |
|||
) |
Displays image with new thresholds. Args: noise (float, optional): Upper threshold on variance, above which is noise. detail (float): Lower threshold on variance, for enough texture. blur (int, optional): Gaussian blur radius. closing (int, optional): Closure (for sealing holes). thresh (int, optional): Threshold applied to segment foreground and background Returns: bool: Whether the operation succeeded.
widget_image_thresholds.ImageWidget.color_var |
widget_image_thresholds.ImageWidget.fg_mask |
widget_image_thresholds.ImageWidget.gb |
widget_image_thresholds.ImageWidget.image_viewer |