Puzzle piece board measurement class, based on puzzle piece layer parsing.
More...
|
def | __init__ (self, params=CfgBoardMeasure()) |
| Constructor for the puzzle piece layer parsing class. More...
|
|
def | findCorrectedContours (self, mask, FILTER=True) |
|
def | getState (self) |
| Return the track-pointer state. More...
|
|
def | mask2regions (self, I, M, verbose=False) |
|
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...
|
|
def | regions2pieces (self, regions) |
| Convert the region information into puzzle pieces. More...
|
|
Puzzle piece board measurement class, based on puzzle piece layer parsing.
◆ __init__()
Constructor for the puzzle piece layer parsing class.
- Parameters
-
[in] | theParams | The parameters/config settings for the track pointer. |
◆ findCorrectedContours()
def findCorrectedContours |
( |
|
self, |
|
|
|
mask, |
|
|
|
FILTER = True |
|
) |
| |
@brief Find the right contours given a binary mask image.
@param[in] mask The input binary mask image.
@param[in] FILTER Options (set to TRUE).
@param[ou] desired_cnts Contour list.
◆ getState()
Return the track-pointer state.
Override the original one.
- Parameters
-
[out] | tstate | Return the board measurement track state. |
◆ mask2regions()
def mask2regions |
( |
|
self, |
|
|
|
I, |
|
|
|
M, |
|
|
|
verbose = False |
|
) |
| |
@brief Convert the selection mask into a bunch of regions.
Mainly based on findContours function.
Args:
I: RGB image.
M: Mask image.
Returns:
regions: A list of regions (mask, segmented image, location in the source image).
◆ measure()
def measure |
( |
|
self, |
|
|
|
I, |
|
|
|
M |
|
) |
| |
Process the passed imagery to recover puzzle pieces and manage their track states.
- Parameters
-
[in] | I | RGB image. |
[in] | M | Mask image. |
◆ process()
def process |
( |
|
self, |
|
|
|
I, |
|
|
|
M |
|
) |
| |
Run the tracking pipeline for image measurement.
- Parameters
-
[in] | I | RGB image. |
[in] | M | Mask. |
◆ regions2pieces()
def regions2pieces |
( |
|
self, |
|
|
|
regions |
|
) |
| |
Convert the region information into puzzle pieces.
- Parameters
-
[in] | regions | List of region pairs (mask, segmented image, location in the source image). |
[out] | pieces | List of puzzle pieces instances. |
◆ bMeas
◆ haveMeas
◆ pieceConstructor
◆ tpt
The documentation for this class was generated from the following file:
- /local/source/python/puzzle_solver/puzzle/parser.py