|
SMIL 1.1.2
|
Collaboration diagram for Others functions:Functions | |
| template<class T > | |
| RES_T | mask (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut) |
| mask() - Image mask | |
| template<class T1 , class mapT , class T2 > | |
| RES_T | applyLookup (const Image< T1 > &imIn, const mapT &_map, Image< T2 > &imOut, T2 defaultValue=T2(0)) |
| applyLookup() - Apply a lookup map to a labeled image | |
| RES_T applyLookup | ( | const Image< T1 > & | imIn, |
| const mapT & | _map, | ||
| Image< T2 > & | imOut, | ||
| T2 | defaultValue = T2(0) |
||
| ) |
applyLookup() - Apply a lookup map to a labeled image
Converts a labeled image into a labeled image, converting labels based on a lookup map (or dictionary, in python)
| [in] | imIn | : labeled input image |
| [in] | _map | : lookup map |
| [out] | imOut | : output labeled image |
| [in] | defaultValue | : values to be assigned when the input value isn't present in the keys of the lookup map (_map) |
Example