Functions
largest.h File Reference
#include "pyra/tpimage.h"
Include dependency graph for largest.h:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

Utility functions to clean segment

Definition in file largest.h.


Function Documentation

template<class T >
void FillHoles ( Image< T > &  segment)

Templated Function to fill holes.

Templated Function to fill holes in the segmentation mask

Parameters:
segmentImge with segmentation mask

Definition at line 53 of file largest.h.

void KeepLargestSegment ( Image< unsigned char > &  segment,
int  fromLabel,
int  toLabel,
int  minArea = 0 
)

Keep the largest segment.

Keep the largest component of the segmentation

Parameters:
segmentImage with segment
fromLabelThe label of the segment to clean
toLabelThe label to which all non large labels are set
minAreaMinimum area of components

Definition at line 278 of file largest.cpp.



active_realtime_segmentation
Author(s): Mårten Björkman. Maintained by Jeannette Bohg
autogenerated on Fri Jan 3 2014 12:02:50