DGtal
1.5.beta
|
#include "DGtalCatch.h"
#include <DGtal/kernel/SpaceND.h>
#include <DGtal/kernel/domains/HyperRectDomain.h>
#include <DGtal/kernel/domains/Linearizer.h>
#include <DGtal/images/ImageContainerBySTLVector.h>
#include <algorithm>
#include <cstddef>
Go to the source code of this file.
Typedefs | |
typedef double | Value |
typedef SpaceND< 2 > | Space |
typedef Space::Point | Point |
typedef HyperRectDomain< Space > | Domain |
typedef ImageContainerBySTLVector< Domain, Value > | Image |
typedef Image::Range | Range |
typedef Image::ConstRange | ConstRange |
typedef Linearizer< Domain, ColMajorStorage > | Linearizer |
Functions | |
const Domain | domain (Point(1, 2), Point(6, 5)) |
const Point | aPoint (3, 4) |
REQUIRE (domain.isInside(aPoint)) | |
Image | image (domain) |
Image | refImage (domain) |
for (Domain::ConstIterator it=domain.begin(), it_end=domain.end();it !=it_end;++it,++cnt) | |
SECTION ("Testing constant forward iterators") | |
SECTION ("Testing constant forward iterators from a point") | |
SECTION ("Testing mutable forward iterators") | |
SECTION ("Testing mutable forward iterators from a point") | |
SECTION ("Testing constant reverse iterators") | |
SECTION ("Testing constant reverse iterators from a point") | |
SECTION ("Testing mutable reverse iterators") | |
SECTION ("Testing mutable reverse iterators from a point") | |
SECTION ("Testing forward output iterators") | |
SECTION ("Testing forward output iterators from a point") | |
SECTION ("Testing reverse output iterators") | |
SECTION ("Testing reverse output iterators from a point") | |
SECTION ("Testing constant forward circulators") | |
SECTION ("Testing constant reverse circulators") | |
SECTION ("Testing mutable circulators in forward way") | |
SECTION ("Testing mutable circulators in backward way") | |
SECTION ("Testing mutable reverse circulators in forward way") | |
SECTION ("Testing mutable reverse circulators in backward way") | |
Variables | |
const double | hour = 4.29 |
std::size_t | cnt = 0 |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
This file is part of the DGtal library
Definition in file testSimpleRandomAccessRangeFromPoint.cpp.
typedef Image::ConstRange ConstRange |
Definition at line 47 of file testSimpleRandomAccessRangeFromPoint.cpp.
typedef HyperRectDomain<Space> Domain |
Definition at line 44 of file testSimpleRandomAccessRangeFromPoint.cpp.
typedef ImageContainerBySTLVector<Domain, Value> Image |
Definition at line 45 of file testSimpleRandomAccessRangeFromPoint.cpp.
typedef Linearizer<Domain, ColMajorStorage> Linearizer |
Definition at line 48 of file testSimpleRandomAccessRangeFromPoint.cpp.
typedef Space::Point Point |
Definition at line 43 of file testSimpleRandomAccessRangeFromPoint.cpp.
typedef Image::Range Range |
Definition at line 46 of file testSimpleRandomAccessRangeFromPoint.cpp.
Definition at line 42 of file testSimpleRandomAccessRangeFromPoint.cpp.
typedef double Value |
Definition at line 41 of file testSimpleRandomAccessRangeFromPoint.cpp.
const Point aPoint | ( | 3 | , |
4 | |||
) |
Referenced by DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::begin(), DGtal::TiledImageBidirectionalRangeFromPoint< TTiledImage >::begin(), DGtal::ConstRangeFromPointAdapter< TRange, TFunctor, TReturnType >::begin(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::begin(), DGtal::TiledImageBidirectionalConstRangeFromPoint< TTiledImage >::begin(), DGtal::DefaultConstImageRange< TImage >::begin(), DGtal::DefaultImageRange< TImage >::begin(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::begin(), DGtal::HyperRectDomain< TSpace >::begin(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::begin(), DGtal::functors::ConstImageFunctorHolder< TDomain, TValue, TFunctor >::ConstRange::begin(), calcPointModuloDomain(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::findBlockCoordsFromPoint(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::findSubDomain(), DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::getPowerVector(), DGtal::ArrayImageAdapter< TArrayIterator, HyperRectDomain< TSpace > >::getValue(), DGtal::DistanceTransformation< TSpace, TPointPredicate, TSeparableMetric, TImageContainer >::getVoronoiSite(), DGtal::DistanceTransformation< TSpace, TPointPredicate, TSeparableMetric, TImageContainer >::operator()(), DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer >::operator()(), DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::operator()(), DGtal::VoronoiMap< TSpace, TPointPredicate, TSeparableMetric, TImageContainer >::operator()(), DGtal::VoronoiMapComplete< TSpace, TPointPredicate, TSeparableMetric, TImageContainer >::operator()(), DGtal::ConstImageAdapter< TImageContainer, TNewDomain, TFunctorD, TNewValue, TFunctorV >::operator()(), DGtal::Image< TImageContainer >::operator()(), DGtal::ImageAdapter< TImageContainer, TNewDomain, TFunctorD, TNewValue, TFunctorV, TFunctorVm1 >::operator()(), DGtal::DistanceFunctorFromPoint< TImage >::operator()(), DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::operator()(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::operator()(), DGtal::functors::BasicDomainSubSampler< TDomain, TInteger, TValue >::operator()(), DGtal::functors::FlipDomainAxis< TDomain >::operator()(), DGtal::ParametricShapeCurvatureFunctor< TParametricShape >::operator()(), DGtal::ParametricShapeTangentFunctor< TParametricShape >::operator()(), DGtal::ImplicitBall< TSpace >::operator()(), DGtal::ImplicitHyperCube< TSpace >::operator()(), DGtal::ImplicitNorm1Ball< TSpace >::operator()(), DGtal::ImplicitRoundedHyperCube< TSpace >::operator()(), DGtal::functors::Point2DEmbedderIn3D< TDomain3D, TInteger >::operator()(), DGtal::functors::SliceRotator2D< TDomain3D, TInteger >::operator()(), DGtal::functors::IntervalForegroundPredicate< Image >::operator()(), DGtal::functors::SimpleThresholdForegroundPredicate< Image >::operator()(), DGtal::ArrayImageAdapter< TArrayIterator, HyperRectDomain< TSpace > >::operator()(), DGtal::IteratorCompletionTraits< ArrayImageAdapter< TArrayIterator, TDomain > >::DistanceFunctor::operator()(), DGtal::functors::PointFunctorHolder< TPoint, TValue, TFunctor >::operator()(), DGtal::functors::ConstImageFunctorHolder< TDomain, TValue, TFunctor >::operator()(), DGtal::DigitalSetInserter< TDigitalSet >::operator=(), DGtal::WindingNumbersShape< TSpace >::orientation(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::outputIterator(), DGtal::TiledImageBidirectionalRangeFromPoint< TTiledImage >::outputIterator(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::outputIterator(), DGtal::DefaultImageRange< TImage >::outputIterator(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::rbegin(), DGtal::TiledImageBidirectionalRangeFromPoint< TTiledImage >::rbegin(), DGtal::ConstRangeFromPointAdapter< TRange, TFunctor, TReturnType >::rbegin(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::rbegin(), DGtal::TiledImageBidirectionalConstRangeFromPoint< TTiledImage >::rbegin(), DGtal::DefaultConstImageRange< TImage >::rbegin(), DGtal::DefaultImageRange< TImage >::rbegin(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::rbegin(), DGtal::HyperRectDomain< TSpace >::rbegin(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::rbegin(), DGtal::functors::ConstImageFunctorHolder< TDomain, TValue, TFunctor >::ConstRange::rbegin(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::routputIterator(), DGtal::TiledImageBidirectionalRangeFromPoint< TTiledImage >::routputIterator(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::routputIterator(), DGtal::DefaultImageRange< TImage >::routputIterator(), SECTION(), DGtal::Image< TImageContainer >::setValue(), DGtal::ImageAdapter< TImageContainer, TNewDomain, TFunctorD, TNewValue, TFunctorV, TFunctorVm1 >::setValue(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::setValue(), DGtal::ArrayImageAdapter< TArrayIterator, HyperRectDomain< TSpace > >::setValue(), DGtal::ImageContainerBySTLVector< TDomain, TValue >::spanBegin(), DGtal::ImageContainerBySTLVector< TDomain, TValue >::spanEnd(), TEST_CASE(), testDirectIncidence(), testFaces(), testIncidence(), testNeighborhood(), testSCellsFunctors(), and DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::TiledIterator::TiledIterator().
for | ( | Domain::ConstIterator | it = domain.begin() , |
it_end | = domain.end(); it != it_end; ++it , |
||
++ | cnt | ||
) |
Definition at line 60 of file testSimpleRandomAccessRangeFromPoint.cpp.
References cnt, hour, refImage(), and DGtal::Image< TImageContainer >::setValue().
Referenced by ArrayImageAdapter_example(), BM_Constructor(), BM_DomainScan(), BM_RangeScan(), BM_SetValue(), checkPowerMap(), LibBoard::Image::flushCairo(), init_image_getset(), main(), moduleImages_example(), test3d(), test3dSurfaceHelper(), TEST_CASE(), test_g_f_fm1(), test_image(), test_range_constRange(), testAPI(), testBreadthFirstPropagation(), testChessboard(), testComparison(), testConsistence(), testCreate(), testDepthFirstPropagation(), testDisplay(), testDistancePropagation(), testDistanceTransformation(), testDistanceTransformation3D(), testDistanceTransformationBorder(), testDistanceTransformationNeg(), testDistanceTransformND(), testExplicitDigitalSurface(), testImageCopy(), testImageCopyShort(), testImageFromSet(), testImageScan(), testImplicitShape3D(), testIterators(), testLightExplicitDigitalSurface(), testLongvol(), testPNMWriter(), testPowerMapFromSites(), testReverseDT(), testReverseDTL1(), testRWIssue254(), testSetFromImage(), testSimple(), testWriteAndRead(), and DGtal::Viewer3D< TSpace, TKSpace >::TextureImage::updateImageDataAndParam().
Referenced by for(), SECTION(), and testWriteAndRead().
REQUIRE | ( | domain. | isInsideaPoint | ) |
Referenced by cmpSCellsIfInside(), cmpUCellsIfInside(), GIVEN(), SCENARIO(), SECTION(), TEMPLATE_TEST_CASE(), TEST_CASE(), TEST_CASE_METHOD(), testCellDrawOnBoard(), testCellularGridSpaceNDCoFaces(), testCellularGridSpaceNDFaces(), testDirectIncidence(), testFaces(), testFFTScaling(), testFindABel(), testForwardBackwardFFT(), testImageOnRef(), testImportDICOM(), testIncidence(), testIteratorHelper(), testIteratorHelperImpl(), testNeighborhood(), testRawReaderOnRef(), testScan(), testSpatialInformation(), testSurfelAdjacency(), and testWriteAndRead().
SECTION | ( | "Testing constant forward circulators" | ) |
Definition at line 259 of file testSimpleRandomAccessRangeFromPoint.cpp.
References DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::c(), cnt, domain(), refImage(), REQUIRE(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing constant forward iterators from a point" | ) |
Definition at line 77 of file testSimpleRandomAccessRangeFromPoint.cpp.
References aPoint(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::begin(), domain(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::end(), refImage(), REQUIRE(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing constant forward iterators" | ) |
Definition at line 66 of file testSimpleRandomAccessRangeFromPoint.cpp.
References DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::begin(), domain(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::end(), refImage(), REQUIRE(), and DGtal::HyperRectDomain< TSpace >::size().
Referenced by SCENARIO(), TEMPLATE_TEST_CASE(), TEST_CASE(), and TEST_CASE_METHOD().
SECTION | ( | "Testing constant reverse circulators" | ) |
Definition at line 313 of file testSimpleRandomAccessRangeFromPoint.cpp.
References cnt, domain(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::rc(), refImage(), REQUIRE(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing constant reverse iterators from a point" | ) |
Definition at line 141 of file testSimpleRandomAccessRangeFromPoint.cpp.
References aPoint(), domain(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::rbegin(), refImage(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::rend(), REQUIRE(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing constant reverse iterators" | ) |
Definition at line 130 of file testSimpleRandomAccessRangeFromPoint.cpp.
References domain(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::rbegin(), refImage(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::rend(), REQUIRE(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing forward output iterators from a point" | ) |
Definition at line 211 of file testSimpleRandomAccessRangeFromPoint.cpp.
References aPoint(), DGtal::HyperRectDomain< TSpace >::begin(), cnt, domain(), DGtal::HyperRectDomain< TSpace >::end(), refImage(), REQUIRE(), and DGtal::Image< TImageContainer >::setValue().
SECTION | ( | "Testing forward output iterators" | ) |
Definition at line 195 of file testSimpleRandomAccessRangeFromPoint.cpp.
References DGtal::HyperRectDomain< TSpace >::begin(), cnt, domain(), DGtal::HyperRectDomain< TSpace >::end(), refImage(), REQUIRE(), and DGtal::Image< TImageContainer >::setValue().
SECTION | ( | "Testing mutable circulators in backward way" | ) |
Definition at line 387 of file testSimpleRandomAccessRangeFromPoint.cpp.
References cnt, domain(), DGtal::HyperRectDomain< TSpace >::rbegin(), refImage(), DGtal::HyperRectDomain< TSpace >::rend(), REQUIRE(), DGtal::Image< TImageContainer >::setValue(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing mutable circulators in forward way" | ) |
Definition at line 367 of file testSimpleRandomAccessRangeFromPoint.cpp.
References DGtal::HyperRectDomain< TSpace >::begin(), cnt, domain(), DGtal::HyperRectDomain< TSpace >::end(), refImage(), REQUIRE(), DGtal::Image< TImageContainer >::setValue(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing mutable forward iterators from a point" | ) |
Definition at line 109 of file testSimpleRandomAccessRangeFromPoint.cpp.
References aPoint(), DGtal::HyperRectDomain< TSpace >::begin(), cnt, domain(), DGtal::HyperRectDomain< TSpace >::end(), refImage(), REQUIRE(), DGtal::Image< TImageContainer >::setValue(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing mutable forward iterators" | ) |
Definition at line 88 of file testSimpleRandomAccessRangeFromPoint.cpp.
References DGtal::HyperRectDomain< TSpace >::begin(), cnt, domain(), DGtal::HyperRectDomain< TSpace >::end(), refImage(), REQUIRE(), DGtal::Image< TImageContainer >::setValue(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing mutable reverse circulators in backward way" | ) |
Definition at line 427 of file testSimpleRandomAccessRangeFromPoint.cpp.
References DGtal::HyperRectDomain< TSpace >::begin(), cnt, domain(), DGtal::HyperRectDomain< TSpace >::end(), refImage(), REQUIRE(), DGtal::Image< TImageContainer >::setValue(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing mutable reverse circulators in forward way" | ) |
Definition at line 407 of file testSimpleRandomAccessRangeFromPoint.cpp.
References cnt, domain(), DGtal::HyperRectDomain< TSpace >::rbegin(), refImage(), DGtal::HyperRectDomain< TSpace >::rend(), REQUIRE(), DGtal::Image< TImageContainer >::setValue(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing mutable reverse iterators from a point" | ) |
Definition at line 173 of file testSimpleRandomAccessRangeFromPoint.cpp.
References aPoint(), cnt, domain(), DGtal::HyperRectDomain< TSpace >::rbegin(), refImage(), DGtal::HyperRectDomain< TSpace >::rend(), REQUIRE(), and DGtal::Image< TImageContainer >::setValue().
SECTION | ( | "Testing mutable reverse iterators" | ) |
Definition at line 152 of file testSimpleRandomAccessRangeFromPoint.cpp.
References cnt, domain(), DGtal::HyperRectDomain< TSpace >::rbegin(), refImage(), DGtal::HyperRectDomain< TSpace >::rend(), REQUIRE(), DGtal::Image< TImageContainer >::setValue(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing reverse output iterators from a point" | ) |
Definition at line 243 of file testSimpleRandomAccessRangeFromPoint.cpp.
References aPoint(), cnt, domain(), DGtal::HyperRectDomain< TSpace >::rbegin(), refImage(), DGtal::HyperRectDomain< TSpace >::rend(), REQUIRE(), DGtal::Image< TImageContainer >::setValue(), and DGtal::HyperRectDomain< TSpace >::size().
SECTION | ( | "Testing reverse output iterators" | ) |
Definition at line 227 of file testSimpleRandomAccessRangeFromPoint.cpp.
References cnt, domain(), DGtal::HyperRectDomain< TSpace >::rbegin(), refImage(), DGtal::HyperRectDomain< TSpace >::rend(), REQUIRE(), and DGtal::Image< TImageContainer >::setValue().
std::size_t cnt = 0 |
Definition at line 59 of file testSimpleRandomAccessRangeFromPoint.cpp.
Referenced by cmpSCellsIfInside(), cmpUCellsIfInside(), for(), main(), and SECTION().
const double hour = 4.29 |
Definition at line 58 of file testSimpleRandomAccessRangeFromPoint.cpp.
Referenced by for().