ITK
4.9.0
Insight Segmentation and Registration Toolkit
|
#include <itkVoronoiDiagram2DGenerator.h>
Implement the Sweep Line Algorithm for the construction of the 2D Voronoi Diagram.
Detailed information on this method can be found in: "A sweepline algorithm for Voronoi diagrams." S. Fortune, Algorithmica 2, 153-174, 1987.
Input parameters are: (1) Size of the region. (2) Seed points coordinates. These coordinates can also be randomly set.
TCoordType | The type associated with the coordination of the seeds and the resulting vertices. |
Definition at line 46 of file itkVoronoiDiagram2DGenerator.h.
Classes | |
class | FortuneEdge |
class | FortuneHalfEdge |
class | FortuneSite |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::MeshSource< VoronoiDiagram2D< TCoordType > > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Private Member Functions | |
static bool | comp (PointType arg1, PointType arg2) |
Private Attributes | |
FortuneSite * | m_BottomSite |
FortuneEdge | m_DELETED |
double | m_Deltax |
double | m_Deltay |
std::vector< FortuneHalfEdge * > | m_ELHash |
unsigned int | m_ELhashsize |
FortuneHalfEdge | m_ELleftend |
FortuneHalfEdge | m_ELrightend |
unsigned int | m_Nedges |
unsigned int | m_NumberOfSeeds |
unsigned int | m_Nvert |
OutputType | m_OutputVD |
unsigned int | m_PQcount |
std::vector< FortuneHalfEdge > | m_PQHash |
unsigned int | m_PQhashsize |
int | m_PQmin |
double | m_Pxmax |
double | m_Pxmin |
double | m_Pymax |
double | m_Pymin |
SeedsType | m_Seeds |
std::vector< FortuneSite > | m_SeedSites |
double | m_SqrtNSites |
PointType | m_VorBoundary |
Friends | |
class | FortuneEdge |
class | FortuneHalfEdge |
class | FortuneSite |
Additional Inherited Members | |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
typedef SmartPointer< const Self > itk::VoronoiDiagram2DGenerator< TCoordType >::ConstPointer |
Definition at line 53 of file itkVoronoiDiagram2DGenerator.h.
typedef VDMesh::CoordRepType itk::VoronoiDiagram2DGenerator< TCoordType >::CoordRepType |
Definition at line 70 of file itkVoronoiDiagram2DGenerator.h.
typedef VDMesh::EdgeInfo itk::VoronoiDiagram2DGenerator< TCoordType >::EdgeInfo |
Definition at line 68 of file itkVoronoiDiagram2DGenerator.h.
typedef VDMesh::EdgeInfoDQ itk::VoronoiDiagram2DGenerator< TCoordType >::EdgeInfoDQ |
Definition at line 69 of file itkVoronoiDiagram2DGenerator.h.
typedef VDMesh::Pointer itk::VoronoiDiagram2DGenerator< TCoordType >::OutputType |
Definition at line 65 of file itkVoronoiDiagram2DGenerator.h.
typedef SmartPointer< Self > itk::VoronoiDiagram2DGenerator< TCoordType >::Pointer |
Definition at line 52 of file itkVoronoiDiagram2DGenerator.h.
typedef VDMesh::PointType itk::VoronoiDiagram2DGenerator< TCoordType >::PointType |
Definition at line 66 of file itkVoronoiDiagram2DGenerator.h.
typedef VDMesh::SeedsIterator itk::VoronoiDiagram2DGenerator< TCoordType >::SeedsIterator |
Definition at line 64 of file itkVoronoiDiagram2DGenerator.h.
typedef VDMesh::SeedsType itk::VoronoiDiagram2DGenerator< TCoordType >::SeedsType |
Definition at line 67 of file itkVoronoiDiagram2DGenerator.h.
typedef VoronoiDiagram2DGenerator itk::VoronoiDiagram2DGenerator< TCoordType >::Self |
Definition at line 50 of file itkVoronoiDiagram2DGenerator.h.
typedef MeshSource< VoronoiDiagram2D< TCoordType > > itk::VoronoiDiagram2DGenerator< TCoordType >::Superclass |
Definition at line 51 of file itkVoronoiDiagram2DGenerator.h.
typedef VoronoidDiagramType itk::VoronoiDiagram2DGenerator< TCoordType >::VDMesh |
Definition at line 63 of file itkVoronoiDiagram2DGenerator.h.
typedef VoronoiDiagram2D< TCoordType > itk::VoronoiDiagram2DGenerator< TCoordType >::VoronoidDiagramType |
Convenient typedefs.
Definition at line 59 of file itkVoronoiDiagram2DGenerator.h.
typedef VDMesh::VoronoiEdge itk::VoronoiDiagram2DGenerator< TCoordType >::VoronoiEdge |
Definition at line 71 of file itkVoronoiDiagram2DGenerator.h.
|
protected |
|
protected |
|
private |
void itk::VoronoiDiagram2DGenerator< TCoordType >::AddOneSeed | ( | PointType | ) |
Add one seed.
void itk::VoronoiDiagram2DGenerator< TCoordType >::AddSeeds | ( | int | num, |
SeedsIterator | begin | ||
) |
Add more seeds. Specify the number of seeds to be added as "num".
|
private |
|
private |
|
private |
|
staticprivate |
Compare point coordinates in the y direction.
|
private |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
private |
|
private |
|
private |
|
private |
Methods to convert the result from Fortune Algorithm into itkMesh structure.
|
private |
|
private |
|
private |
|
overrideprotectedvirtual |
Generate Voronoi Diagram based on the current list of seeds.
Reimplemented from itk::ProcessObject.
|
inlineoverridevirtual |
Produce the output information.
Reimplemented from itk::ProcessObject.
Definition at line 93 of file itkVoronoiDiagram2DGenerator.h.
|
private |
|
private |
|
virtual |
Standard part of every itk Object.
Reimplemented from itk::MeshSource< VoronoiDiagram2D< TCoordType > >.
|
virtual |
Get the number of seed points.
|
private |
|
private |
PointType itk::VoronoiDiagram2DGenerator< TCoordType >::GetSeed | ( | int | SeedID | ) |
Return the given indexed seed.
|
private |
|
private |
|
private |
|
private |
|
static |
Method for creation through the object factory.
|
private |
|
private |
|
private |
|
private |
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::MeshSource< VoronoiDiagram2D< TCoordType > >.
|
private |
Generate Voronoi Diagram using Fortune's Method. (Sweep Line)
Information is stored in m_VertexList, m_EdgeList and m_LineList.
void itk::VoronoiDiagram2DGenerator< TCoordType >::SetBoundary | ( | PointType | vorsize | ) |
Set the rectangle that encloses the whole Voronoi Diagram.
void itk::VoronoiDiagram2DGenerator< TCoordType >::SetOrigin | ( | PointType | vorsize | ) |
void itk::VoronoiDiagram2DGenerator< TCoordType >::SetRandomSeeds | ( | int | num | ) |
Set the seeds points randomly.
Specify the number of seeds as "num".
void itk::VoronoiDiagram2DGenerator< TCoordType >::SetSeeds | ( | int | num, |
SeedsIterator | begin | ||
) |
Set the seed points.
Specify the number of seeds as "num". Will overwrite if seeds already exists.
void itk::VoronoiDiagram2DGenerator< TCoordType >::SortSeeds | ( | ) |
Sort the seeds with their y, then x, coordinates.
void itk::VoronoiDiagram2DGenerator< TCoordType >::UpdateDiagram | ( | ) |
Update the Voronoi Diagram after adding seed(s).
|
friend |
Definition at line 146 of file itkVoronoiDiagram2DGenerator.h.
|
friend |
Definition at line 147 of file itkVoronoiDiagram2DGenerator.h.
|
friend |
Definition at line 140 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 231 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 239 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 222 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 223 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 237 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 234 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 235 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 236 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 229 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 124 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 230 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 126 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 226 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 232 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 228 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 227 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 219 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 218 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 221 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 220 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 127 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 240 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 224 of file itkVoronoiDiagram2DGenerator.h.
|
private |
Definition at line 125 of file itkVoronoiDiagram2DGenerator.h.