#include "pyra/tpimage.h"

Go to the source code of this file.
Functions | |
| template<class T > | |
| void | FillHoles (Image< T > &segment) |
| Templated Function to fill holes. | |
| void | KeepLargestSegment (Image< unsigned char > &segment, int fromLabel, int toLabel, int minArea=0) |
| Keep the largest segment. | |
Utility functions to clean segment
Definition in file largest.h.
| void FillHoles | ( | Image< T > & | segment | ) | [inline] |
| void KeepLargestSegment | ( | Image< unsigned char > & | segment, | |
| int | fromLabel, | |||
| int | toLabel, | |||
| int | minArea = 0 | |||
| ) |
Keep the largest segment.
Keep the largest component of the segmentation
| segment | Image with segment | |
| fromLabel | The label of the segment to clean | |
| toLabel | The label to which all non large labels are set | |
| minArea | Minimum area of components |
Definition at line 278 of file largest.cpp.