IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
Public Member Functions | Public Attributes | List of all members
FromLayer Class Reference

A basic detector class that processes a layered image (or mask and image) detection output. More...

Inheritance diagram for FromLayer:
Inheritance graph
[legend]
Collaboration diagram for FromLayer:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, theParams=ParamPuzzle)
 Constructor for the puzzle piece layer parsing class. More...
 
def findCorrectedContours (self, mask, FILTER=True)
 Find the right contours given a binary mask image. More...
 
def getState (self)
 
def measure (self, I, M)
 Process the passed imagery to recover puzzle pieces and manage their track states. More...
 
def process (self, I, M)
 Run the tracking pipeline for image measurement. More...
 

Public Attributes

 bMeas
 
 haveMeas
 
 params
 
 pieceConstructor
 
 tpt
 

Detailed Description

A basic detector class that processes a layered image (or mask and image) detection output.

Converts all isolated regions into their own puzzle piece instances.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  theParams = ParamPuzzle 
)

Constructor for the puzzle piece layer parsing class.

Args: theParams: The parameters.

Member Function Documentation

◆ findCorrectedContours()

def findCorrectedContours (   self,
  mask,
  FILTER = True 
)

Find the right contours given a binary mask image.

Args: mask: The input binary mask image.

Returns: desired_cnts: Contour list.

◆ getState()

def getState (   self)
@brief  Return the track-pointer state. Override the original one.

Returns:
    tstate: The board measurement.

◆ measure()

def measure (   self,
  I,
  M 
)

Process the passed imagery to recover puzzle pieces and manage their track states.

Parameters
[in]IRGB image.
[in]MMask image.

◆ process()

def process (   self,
  I,
  M 
)

Run the tracking pipeline for image measurement.

Parameters
[in]IRGB image.
[in]MMask image.

Member Data Documentation

◆ bMeas

bMeas

◆ haveMeas

haveMeas

◆ params

params

◆ pieceConstructor

pieceConstructor

◆ tpt

tpt

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