$search

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  )  [inline]

Templated Function to fill holes.

Templated Function to fill holes in the segmentation mask

Parameters:
segment Imge 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:
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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


active_realtime_segmentation
Author(s): Mårten Björkman. Maintained by Jeannette Bohg
autogenerated on Tue Mar 5 14:01:55 2013