Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Watershed Class Template Reference

Class that performs watershed segmentation and filtering. More...

#include <Watershed.h>

List of all members.

Public Methods

 Watershed (unsigned int h, unsigned int w, unsigned int d, bool cuda=true)
 Creates a watershed object and allocates internal arrays. More...

void getSegmentedVoxels (IMAGE_T *voxels)
 copy segmented group info to given volume XXX this API needs to evolve to a volume of integer types. More...

IMAGE_T * getRawVoxels ()
 Returns pointer to the internal intensity array. More...

 ~Watershed ()
void watershed (IMAGE_T *image, int imageongpu, GROUP_T *segments, bool verbose=true)
 Runs the watershed algorithm. More...


Detailed Description

template<typename GROUP_T, typename IMAGE_T>
class Watershed< GROUP_T, IMAGE_T >

Class that performs watershed segmentation and filtering.

Definition at line 196 of file Watershed.h.


Constructor & Destructor Documentation

template<typename GROUP_T, typename IMAGE_T>
Watershed< GROUP_T, IMAGE_T >::Watershed unsigned int    h,
unsigned int    w,
unsigned int    d,
bool    cuda = true
 

Creates a watershed object and allocates internal arrays.

Definition at line 63 of file Watershed.C.

References NULL.

template<typename GROUP_T, typename IMAGE_T>
Watershed< GROUP_T, IMAGE_T >::~Watershed  
 

Definition at line 104 of file Watershed.C.

References destroy_gpu, and NULL.


Member Function Documentation

template<typename GROUP_T, typename IMAGE_T>
IMAGE_T* Watershed< GROUP_T, IMAGE_T >::getRawVoxels  
 

Returns pointer to the internal intensity array.

template<typename GROUP_T, typename IMAGE_T>
void Watershed< GROUP_T, IMAGE_T >::getSegmentedVoxels IMAGE_T *    voxels
 

copy segmented group info to given volume XXX this API needs to evolve to a volume of integer types.

template<typename GROUP_T, typename IMAGE_T>
void Watershed< GROUP_T, IMAGE_T >::watershed IMAGE_T *    image,
int    imageongpu,
GROUP_T *    segments,
bool    verbose = true
 

Runs the watershed algorithm.

Definition at line 134 of file Watershed.C.

References init_gpu_on_device, PROFILE_POP_RANGE, PROFILE_PUSH_RANGE, wkf_timer_create, wkf_timer_destroy, wkf_timer_start, wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 02:47:30 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002