facebook360_dep
Facebook360 Depth Estimation Pipeline
Public Member Functions | Public Attributes | List of all members
widget_image_thresholds.ImageWidget Class Reference
Inheritance diagram for widget_image_thresholds.ImageWidget:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ convert_image_to_pixmap()

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.

◆ set_image_viewer()

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.

◆ set_zoom_level()

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.

◆ update_thresholds()

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.

Member Data Documentation

◆ color_var

widget_image_thresholds.ImageWidget.color_var

◆ fg_mask

widget_image_thresholds.ImageWidget.fg_mask

◆ gb

widget_image_thresholds.ImageWidget.gb

◆ image_viewer

widget_image_thresholds.ImageWidget.image_viewer

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