IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
Public Member Functions | Public Attributes | List of all members
Puzzle_Residual Class Reference
Inheritance diagram for Puzzle_Residual:
Inheritance graph
[legend]
Collaboration diagram for Puzzle_Residual:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, theTracker=None, trackFilter=None, Params_Residual params=Params_Residual())
 
def det_mask (self)
 
def post_process (self, det_mask)
 
def set_detected_masks (self, masks)
 
def update_postprocess (self, callable postprocessor)
 
- Public Member Functions inherited from Base_fg
def __init__ (self, theDetector, theTracker, trackFilter, Params params)
 
- Public Member Functions inherited from Base
def __init__ (self, theDetector, theTracker, trackFilter, Params params)
 
def draw_layer (self, img=None, raw_detect=False, ax=None)
 
def get_mask (self)
 
def get_state (self)
 
def measure (self, I)
 
def update_params (self, name, val)
 

Public Attributes

 detected_masks
 
 post_process_custom
 
- Public Attributes inherited from Base
 layer_mask
 
 layer_mask_det
 
 layer_state
 
 params
 

Detailed Description

This class detect the puzzle layer as the residual of the other masks

The process of taking residual is treated as the roution postprocess

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  theTracker = None,
  trackFilter = None,
Params_Residual  params = Params_Residual() 
)

Member Function Documentation

◆ det_mask()

def det_mask (   self)
Overwrite the detection mask get function. 

Suited for the inImage detector

Reimplemented from Base_fg.

◆ post_process()

def post_process (   self,
  det_mask 
)
Define the routine post-process
And apply the user-customize postprocess after the routine the procedure.

The routine:
(a) take the residual of the detection masks

@param[in]  det_mask            The dummy detection result that is all True

◆ set_detected_masks()

def set_detected_masks (   self,
  masks 
)

◆ update_postprocess()

def update_postprocess (   self,
callable  postprocessor 
)
update the postprocessor, which is the customized one after applying the height-based segmentation process.

Member Data Documentation

◆ detected_masks

detected_masks

◆ post_process_custom

post_process_custom
  • The dummy requires no params

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