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

Segmentation Class Reference

Top-level class that given an image will segement the image using watershed and then postprocess the segmentation using a space scale filter algorithm. More...

#include <Segmentation.h>

List of all members.

Public Methods

 Segmentation (const VolumetricData *map, bool cuda=true)
 Creates a segmentation object given a 3D float array and volumetric metadata. Optional argument to disable CUDA. More...

 Segmentation (float *data, molfile_volumetric_t *metatdata, bool cuda=true)
 Creates a segmentation object given a 3D float array and volumetric metadata. Optional argument to disable CUDA. More...

 Segmentation (unsigned short *data, molfile_volumetric_t *metatdata, bool cuda=true)
 Segmentation (unsigned char *data, molfile_volumetric_t *metatdata, bool cuda=true)
 ~Segmentation ()
double segment (int num_final_groups, float watershed_blur_sigma, float blur_initial_sigma, float blur_multiple, MERGE_POLICY policy, const bool verbose=true)
 Runs the segmentation algorithm until there are <= num_final_groups. More...

template<typename OUT_T> void get_results (OUT_T *results)
 Copies the segmentation into the provided results array. Can be of type int, short, or (legacy) float. More...

unsigned long get_num_groups ()
 Returns the number of groups in the segmentation. More...


Detailed Description

Top-level class that given an image will segement the image using watershed and then postprocess the segmentation using a space scale filter algorithm.

Definition at line 36 of file Segmentation.h.


Constructor & Destructor Documentation

Segmentation::Segmentation const VolumetricData   map,
bool    cuda = true
 

Creates a segmentation object given a 3D float array and volumetric metadata. Optional argument to disable CUDA.

Definition at line 50 of file Segmentation.C.

References VolumetricData::data, PROFILE_POP_RANGE, PROFILE_PUSH_RANGE, VolumetricData::xsize, VolumetricData::ysize, and VolumetricData::zsize.

Segmentation::Segmentation float *    data,
molfile_volumetric_t *    metatdata,
bool    cuda = true
 

Creates a segmentation object given a 3D float array and volumetric metadata. Optional argument to disable CUDA.

Definition at line 105 of file Segmentation.C.

References data, PROFILE_POP_RANGE, and PROFILE_PUSH_RANGE.

Segmentation::Segmentation unsigned short *    data,
molfile_volumetric_t *    metatdata,
bool    cuda = true
 

Definition at line 119 of file Segmentation.C.

References data, PROFILE_POP_RANGE, and PROFILE_PUSH_RANGE.

Segmentation::Segmentation unsigned char *    data,
molfile_volumetric_t *    metatdata,
bool    cuda = true
 

Definition at line 132 of file Segmentation.C.

References data, PROFILE_POP_RANGE, and PROFILE_PUSH_RANGE.

Segmentation::~Segmentation  
 

Definition at line 146 of file Segmentation.C.

References NULL.


Member Function Documentation

unsigned long Segmentation::get_num_groups  
 

Returns the number of groups in the segmentation.

Definition at line 406 of file Segmentation.C.

Referenced by segment_volume.

template<typename OUT_T>
void Segmentation::get_results OUT_T *    results
 

Copies the segmentation into the provided results array. Can be of type int, short, or (legacy) float.

Definition at line 413 of file Segmentation.C.

References PROFILE_POP_RANGE, and PROFILE_PUSH_RANGE.

Referenced by segment_volume.

double Segmentation::segment int    num_final_groups,
float    watershed_blur_sigma,
float    blur_initial_sigma,
float    blur_multiple,
MERGE_POLICY    policy,
const bool    verbose = true
 

Runs the segmentation algorithm until there are <= num_final_groups.

Definition at line 169 of file Segmentation.C.

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

Referenced by segment_volume.


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