You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ChangeLog.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,10 @@
5
5
-*IO*
6
6
- Polyscope viewer upgraded from 2.4 to 2.5 (David Coeurjolly, [#1796](https://github.com/DGtal-team/DGtal/pull/1796)). Reverting to 2.4 due to build issues (David Coeurjolly, [#1797](https://github.com/DGtal-team/DGtal/pull/1797))
7
7
8
+
-*Documentation*
9
+
- Refactoring of the volumetric examples in the Shortcuts (David Coeurjolly, [#1807](https://github.com/DGtal-team/DGtal/pull/1807)).
10
+
11
+
8
12
## Bug fixes
9
13
10
14
-*Arithmetics*
@@ -14,6 +18,7 @@
14
18
- Fix issue [#1797](https://github.com/DGtal-team/DGtal/pull/1797), assertions raised in testCellGeometry and testDigitalConvexity because of improper digital space extent (Jacques-Olivier Lachaud, [#1801](https://github.com/DGtal-team/DGtal/pull/1801))
15
19
16
20
-*Build*
21
+
- Version is now extracted from the `VERSION` file for CMake and Python builds (Bastien Doignies, [#1810](https://github.com/DGtal-team/DGtal/pull/1810))
17
22
- Replacing the global compilation flags when `DGTAL_WARNINGS_AS_ERRORS` is set, with per target `target_compile_options` to avoid errors on Boost warnings (David Coeurjolly, [#1793](https://github.com/DGtal-team/DGtal/pull/1793))
18
23
- Fixing the `make install` command for boost (issue #1794) (Bastien Doignies, [#1793](https://github.com/DGtal-team/DGtal/pull/1793))
19
24
- Adding option not to install targets to avoid crashes when boost is fetched through multiple channels ([#1809](https://github.com/DGtal-team/DGtal/pull/1809))
@subsection shortcuts_examples Geometrical Estimators (Curvature and normals)
123
+
@subsection shortcuts_examples_python Geometrical Estimators (Curvature and normals)
123
124
124
125
This example loads a binary image and computes integral invariant estimators and displays them within an interactive viewer. It mostly follows Shortcuts examples with a one-to-one mapping. A few other utilities are provided not to loop over elements in python.
125
126
@@ -180,7 +181,7 @@ ps.show()
180
181
# SH3.saveOBJ(surface, [], colors, "al.obj")
181
182
@endcode
182
183
183
-
@section documentation Documentation
184
+
@section documentation_python Documentation
184
185
185
186
@subsection base_topology_kernel Base, Topology and Kernel
186
187
@@ -196,16 +197,16 @@ In this section, we provide a list of functions and classes that can be used in
Most shortcuts (see. \subpage moduleShortcuts) also have their binding. These are available under:
202
+
Most shortcuts (see. \ref moduleShortcuts) also have their binding. These are available under:
202
203
203
204
@code
204
205
from dgtal import SH3 #Import both shortcuts and geometry shortcuts
205
206
SH3.a_function_or_classes..
206
207
@endcode
207
208
208
-
@subsubsection shortcuts_classes Classes
209
+
@subsubsection shortcuts_classes_python Classes
209
210
210
211
Objects within this module are not expected to be manipulated by the user. They are meant to be passed around to the next functions and are prefixed by two underscores. We reference them for completeness
211
212
@@ -223,7 +224,7 @@ Objects within this module are not expected to be manipulated by the user. They
223
224
| SurfelRange | DGtal::Shortcuts::SurfelRange | | std::vector<SCell>. See documentation of kernel binding above. |
224
225
| ScalarStatistic | DGtal::Shortcuts::ScalarStatistic | samples(): number of samples / size(): number of samples / mean(): mean / variance(): biased variance / unbiasedVariance(): unbiased variance / min(): min / max(): max / values: list of values | Not to be created. |
Static functions are also bound. For overloads, we only indicate the main parameters, not the whole signature. Refer to the C++ functions for complete signature (1 to 1 match).
229
230
@@ -267,7 +268,7 @@ Static functions are also bound. For overloads, we only indicate the main parame
267
268
| %SH3.getScalarsAbsoluteDifference | ShortcutsGeometry::getScalarsAbsoluteDifference | All. |
268
269
| %SH3.getStatistic | ShortcutsGeometry::getStatistic | All. |
Looping through objects is slow in python and digital objects may be large. For this reason, we also provide a few helper functions for ease of usage and faster code:
Copy file name to clipboardExpand all lines: src/DGtal/doc/tutorials/moduleShortcuts.dox
+29-22Lines changed: 29 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ namespace DGtal {
6
6
7
7
/**
8
8
9
-
@page moduleShortcuts Shortcuts (for the impatient developper)
9
+
@page moduleShortcuts Shortcuts
10
10
11
-
@writers Jacques-Olivier Lachaud
11
+
@writers Jacques-Olivier Lachaud, Bastien Doignies, David Coeurjolly
12
12
13
13
@since 1.0
14
14
@@ -465,38 +465,38 @@ Shortcuts::Point is Z3i::KSpace::Point.
465
465
-# General methods
466
466
- Shortcuts::defaultParameters: returns the set of all shorcut parameters.
467
467
468
-
-# ImplicitShape3D methods
468
+
-# Shortcuts::ImplicitShape3D methods
469
469
- Shortcuts::getPolynomialList: returns the list of polynomial shapes predefined for implicit shapes
470
470
- Shortcuts::parametersImplicitShape3D: parameters related to 3D implicit shapes (polynomial)
471
471
- Shortcuts::makeImplicitShape3D: builds a 3D implicit shape
472
472
473
-
-# KSpace methods
473
+
-# Shortcuts::KSpace methods
474
474
- Shortcuts::parametersKSpace: parameters related to Khalimsky spaces (closed)
475
475
- Shortcuts::getKSpace: overloaded methods for building a Khalimsky space from a domain or an image, from a bounding box, from a digitization process, or from a (indexed or not) digital surface.
476
476
- Shortcuts::refKSpace: overloaded methods for referencing the Khalimsky space of a (indexed or not) digital surface.
477
477
- Shortcuts::getCellEmbedder: returns the canonic cell embedder of the given space.
478
478
- Shortcuts::getSCellEmbedder: returns the canonic signed cell embedder of the given space.
479
479
480
-
-# DigitizedImplicitShape3D methods
480
+
-# Shortcuts::DigitizedImplicitShape3D methods
481
481
- Shortcuts::parametersDigitizedImplicitShape3D: parameters related to shape digitization (bounding box, sampling)
482
482
- Shortcuts::makeDigitizedImplicitShape3D: digitizes an implicit shape.
483
483
484
-
-# BinaryImage methods
484
+
-# Shortcuts::BinaryImage methods
485
485
- Shortcuts::parametersBinaryImage: parameters related to binary images (noise, threshold).
486
486
- Shortcuts::makeBinaryImage: many overloaded methods for creating from scratch, vectorizing shape digitization, loading, copying/noisifying binary images, thresholding gray-scale images.
487
487
- Shortcuts::saveBinaryImage: saves a binary image to a file.
488
488
489
-
-# GrayScaleImage methods
489
+
-# Shortcuts::GrayScaleImage methods
490
490
- Shortcuts::makeGrayScaleImage: overloaded methods for creating from scratch or from binary image, or for loading gray scale images, or for creating a gray-scale image from a float or double image.
491
491
- Shortcuts::saveGrayScaleImage: saves a gray scale image to a file.
492
492
493
-
-# FloatImage methods
493
+
-# Shortcuts::FloatImage methods
494
494
- Shortcuts::makeFloatImage: overloaded methods for creating a float image from a domain or from an implicit shape.
495
495
496
-
-# DoubleImage methods
496
+
-# Shortcuts::DoubleImage methods
497
497
- Shortcuts::makeDoubleImage: overloaded methods for creating a double image from a domain or from an implicit shape.
498
498
499
-
-# DigitalSurface methods
499
+
-# Shortcuts::DigitalSurface methods
500
500
- Shortcuts::parametersDigitalSurface: parameters related to digital surfaces (surfel adjacency, components, internal heuristics)
501
501
- Shortcuts::getCellEmbedder: returns the canonic cell embedder of the given (indexed or not) digital surface
502
502
- Shortcuts::getSCellEmbedder: returns the canonic signed cell embedder of the given (indexed or not) digital surface.
@@ -510,10 +510,10 @@ Shortcuts::Point is Z3i::KSpace::Point.
510
510
- Shortcuts::getPointelRange: returns the pointels of a digital surface in the default order and optionnaly the map Pointel -> Index giving the indices of each pointel, or simply the pointels around a surfel.
511
511
- Shortcuts::saveOBJ: several overloaded functions that save geometric elements as an OBJ file. You may save a digital surface as an OBJ file, with optionally positions, normals and colors information
512
512
513
-
-# RealVectors methods
513
+
-# Shortcuts::RealVectors methods
514
514
- Shortcuts::saveVectorFieldOBJ: saves a vector field as an OBJ file (vectors are represented by tubes).
515
515
516
-
-# Mesh services
516
+
-# Shortcuts::Mesh services
517
517
- Shortcuts::parametersMesh: parameters related to mesh, triangulated or polygonal surfaces.
518
518
- Shortcuts::makeTriangulatedSurface: builds the dual triangulated surface approximating an arbitrary digital surface, or the triangulated surface covering a given mesh, or subdivide a polygonal surface into a triangulated surface, or builds the marching cubes triangulated surface approximating an isosurface in a gray-scale image.
519
519
- Shortcuts::makePolygonalSurface: builds a polygonal surface from a mesh, or builds the marching cubes polygonal surface approximating an isosurface in a gray-scale image.
@@ -523,7 +523,7 @@ Shortcuts::Point is Z3i::KSpace::Point.
523
523
- Shortcuts::makeSurfaceMesh: load a surface mesh from file
524
524
- Shortcuts::saveOBJ: saves a triangulated or polygonal surface or a mesh as an OBJ file, with optionnaly normals and colors information.
525
525
526
-
-# Utilities
526
+
-# ShortcutsGeometry::Mesh utilities
527
527
- Shortcuts::parametersUtilities: parameters related to colormaps.
528
528
- Shortcuts::getColorMap: returns the specified colormap.
529
529
- Shortcuts::getZeroTickedColorMap: returns the specified colormap with a tic around zero.
@@ -535,7 +535,7 @@ Shortcuts::Point is Z3i::KSpace::Point.
535
535
- Shortcuts::outputPrimalIdxDigitalSurfaceAsObj: outputs any indexed digital surface in standard OBJ file format as its primal quadrangulated mesh.
536
536
- Shortcuts::outputDualDigitalSurfaceAsObj: outputs any digital surface in standard OBJ file format as its dual polygonal or triangulated mesh.
537
537
538
-
-# ShapeGeometry services
538
+
-# Shape Geometry services
539
539
- ShortcutsGeometry::parametersShapeGeometry: parameters related to implicit shape geometry.
540
540
- ShortcutsGeometry::getPositions: returns the positions on the 3D implicit shape close to the specified surfels.
541
541
- ShortcutsGeometry::getNormalVectors: returns the vectors normal to the 3D implicit shape close to the specified surfels.
@@ -547,7 +547,7 @@ Shortcuts::Point is Z3i::KSpace::Point.
547
547
- ShortcutsGeometry::getSecondPrincipalDirections: returns the second principal directions along the 3D implicit shape close to the specified surfels.
548
548
- ShortcutsGeometry::getPrincipalCurvaturesAndDirections: returns the first and second principal curvatures and directions along the 3D implicit shape close to the specified surfels.
549
549
550
-
-# GeometryEstimation services
550
+
-# Geometry Estimation services
551
551
- ShortcutsGeometry::parametersGeometryEstimation: parameters related to geometric estimators.
552
552
- ShortcutsGeometry::getTrivialNormalVectors: returns the trivial (Trivial) normal vectors to the given surfel range
553
553
- ShortcutsGeometry::getCTrivialNormalVectors: returns the convolved trivial (CTrivial) normal vectors to the given surfel range
@@ -560,18 +560,25 @@ Shortcuts::Point is Z3i::KSpace::Point.
560
560
- ShortcutsGeometry::getCNCGaussianCurvatures: returns the Corrected Normal Current (CNC) gaussian curvatures onto the given faces (as ids of the mesh).
561
561
- ShortcutsGeometry::getCNCPrincipalCurvaturesAndDirections: returns the Corrected Normal Current (CNC) principal curvatures values and directions for the given face range (as ids of the mesh).
562
562
- ShortcutsGeometry::orientVectors: reorient a range of vectors so as to point in the same half-space as another range of vectors.
563
-
- ShortcutsGeometry::getScalarsAbsoluteDifference: return the range of scalars that is the difference of two range of scalars
564
-
- ShortcutsGeometry::getVectorsAngleDeviation: return the range of scalars that form the angle deviations between two range of vectors
565
-
- ShortcutsGeometry::getStatistic: return the statistic of the given range of values.
566
-
- ShortcutsGeometry::getVoronoiMap: return the voronoi map on a domain from a list of sites
567
-
- ShortcutsGeometry::getDistanceTransformation: return the distance to the closest voronoi site on a domain from a list of sites
568
-
- ShortcutsGeometry::getDirectionToClosestSite: return the list of vector to the closest site
563
+
564
+
-# Volumetric services
565
+
- ShortcutsGeometry::getVoronoiMap: return the Voronoi map on a domain from a list of sites
566
+
- ShortcutsGeometry::getDistanceTransformation: return the distance transformation on a domain from a list of sites
567
+
- ShortcutsGeometry::getDirectionToClosestSite: return the list of vectors to the closest site
569
568
- ShortcutsGeometry::getDistanceToClosestSite: return the distance to the closest site
569
+
- ShortcutsGeometry::getRAwDistanceToClosestSite: return the (raw) distance to the closest site. Raw distance means an exact representation of the distance value from integers dropping the 1/p exponent for Lp metrics (i.e. squared distance for the Euclidean L2 metric)
570
570
571
-
-# ATApproximation services
571
+
-# AT Approximation services
572
572
- ShortcutsGeometry::parametersATApproximation: parameters related to piecewise-smooth AT approximation.
573
573
- ShortcutsGeometry::getATVectorFieldApproximation: returns the piecewise-smooth approximation of the given vector field, and optionnaly returns the locii of discontinuity
574
574
575
+
-# Misc. services
576
+
- ShortcutsGeometry::getScalarsAbsoluteDifference: return the range of scalars that is the difference of two range of scalars
577
+
- ShortcutsGeometry::getVectorsAngleDeviation: return the range of scalars that form the angle deviations between two range of vectors
578
+
- ShortcutsGeometry::getStatistic: return the statistic of the given range of values.
0 commit comments