DGtal 1.4.0
|
#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.
Definition at line 44 of file testSimpleRandomAccessRangeFromPoint.cpp.
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.
typedef SpaceND<2> Space |
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::ConstRangeFromPointAdapter< TRange, TFunctor, TReturnType >::begin(), DGtal::DefaultConstImageRange< TImage >::begin(), DGtal::DefaultImageRange< TImage >::begin(), DGtal::functors::ConstImageFunctorHolder< TDomain, TValue, TFunctor >::ConstRange::begin(), DGtal::HyperRectDomain< TSpace >::begin(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::begin(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::begin(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::begin(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::begin(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::begin(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::begin(), DGtal::TiledImageBidirectionalConstRangeFromPoint< TTiledImage >::begin(), DGtal::TiledImageBidirectionalRangeFromPoint< TTiledImage >::begin(), DGtal::TiledImageBidirectionalRangeFromPoint< TTiledImage >::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::ArrayImageAdapter< TArrayIterator, HyperRectDomain< TSpace > >::operator()(), DGtal::ConstImageAdapter< TImageContainer, TNewDomain, TFunctorD, TNewValue, TFunctorV >::operator()(), DGtal::DistanceFunctorFromPoint< TImage >::operator()(), DGtal::DistanceTransformation< TSpace, TPointPredicate, TSeparableMetric, TImageContainer >::operator()(), DGtal::functors::BasicDomainSubSampler< TDomain, TInteger, TValue >::operator()(), DGtal::functors::ConstImageFunctorHolder< TDomain, TValue, TFunctor >::operator()(), DGtal::functors::ConstImageFunctorHolder< TDomain, TValue, TFunctor >::operator()(), DGtal::functors::FlipDomainAxis< TDomain >::operator()(), DGtal::functors::IntervalForegroundPredicate< Image >::operator()(), DGtal::functors::Point2DEmbedderIn3D< TDomain3D, TInteger >::operator()(), DGtal::functors::PointFunctorHolder< TPoint, TValue, TFunctor >::operator()(), DGtal::functors::SimpleThresholdForegroundPredicate< Image >::operator()(), DGtal::functors::SliceRotator2D< TDomain3D, TInteger >::operator()(), DGtal::Image< TImageContainer >::operator()(), DGtal::ImageAdapter< TImageContainer, TNewDomain, TFunctorD, TNewValue, TFunctorV, TFunctorVm1 >::operator()(), DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::operator()(), DGtal::ImplicitBall< TSpace >::operator()(), DGtal::ImplicitHyperCube< TSpace >::operator()(), DGtal::ImplicitNorm1Ball< TSpace >::operator()(), DGtal::ImplicitRoundedHyperCube< TSpace >::operator()(), DGtal::IteratorCompletionTraits< ArrayImageAdapter< TArrayIterator, TDomain > >::DistanceFunctor::operator()(), DGtal::ParametricShapeCurvatureFunctor< TParametricShape >::operator()(), DGtal::ParametricShapeTangentFunctor< TParametricShape >::operator()(), DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer >::operator()(), DGtal::ReverseDistanceTransformation< TWeightImage, TPSeparableMetric, TImageContainer >::operator()(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::operator()(), DGtal::VoronoiMap< TSpace, TPointPredicate, TSeparableMetric, TImageContainer >::operator()(), DGtal::VoronoiMapComplete< TSpace, TPointPredicate, TSeparableMetric, TImageContainer >::operator()(), DGtal::DigitalSetInserter< TDigitalSet >::operator=(), DGtal::WindingNumbersShape< TSpace >::orientation(), DGtal::DefaultImageRange< TImage >::outputIterator(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::outputIterator(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::outputIterator(), DGtal::TiledImageBidirectionalRangeFromPoint< TTiledImage >::outputIterator(), DGtal::ConstRangeFromPointAdapter< TRange, TFunctor, TReturnType >::rbegin(), DGtal::DefaultConstImageRange< TImage >::rbegin(), DGtal::DefaultImageRange< TImage >::rbegin(), DGtal::functors::ConstImageFunctorHolder< TDomain, TValue, TFunctor >::ConstRange::rbegin(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::rbegin(), DGtal::HyperRectDomain< TSpace >::rbegin(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::rbegin(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::rbegin(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::rbegin(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::rbegin(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::rbegin(), DGtal::TiledImageBidirectionalConstRangeFromPoint< TTiledImage >::rbegin(), DGtal::TiledImageBidirectionalRangeFromPoint< TTiledImage >::rbegin(), DGtal::TiledImageBidirectionalRangeFromPoint< TTiledImage >::rbegin(), DGtal::DefaultImageRange< TImage >::routputIterator(), DGtal::SimpleRandomAccessRangeFromPoint< TConstIterator, TIterator, DistanceFunctor >::routputIterator(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::routputIterator(), DGtal::TiledImageBidirectionalRangeFromPoint< TTiledImage >::routputIterator(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), DGtal::ArrayImageAdapter< TArrayIterator, HyperRectDomain< TSpace > >::setValue(), DGtal::Image< TImageContainer >::setValue(), DGtal::ImageAdapter< TImageContainer, TNewDomain, TFunctorD, TNewValue, TFunctorV, TFunctorVm1 >::setValue(), DGtal::TiledImage< TImageContainer, TImageFactory, TImageCacheReadPolicy, TImageCacheWritePolicy >::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.
REQUIRE | ( | domain. | isInsideaPoint | ) |
Referenced by cmpSCellsIfInside(), cmpUCellsIfInside(), GIVEN(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), SECTION(), TEMPLATE_TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), testCellDrawOnBoard(), testCellularGridSpaceNDCoFaces(), testCellularGridSpaceNDFaces(), testDirectIncidence(), testFaces(), testFFTScaling(), testFindABel(), testForwardBackwardFFT(), testImageOnRef(), testImportDICOM(), testIncidence(), testIteratorHelper(), testIteratorHelperImpl(), testNeighborhood(), testRawReaderOnRef(), testScan(), testSpatialInformation(), 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(), and REQUIRE().
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(), and REQUIRE().
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(), and REQUIRE().
Referenced by SCENARIO(), SCENARIO(), SCENARIO(), TEMPLATE_TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), TEST_CASE_METHOD(), 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(), and REQUIRE().
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(), and REQUIRE().
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(), and REQUIRE().
SECTION | ( | "Testing forward output iterators from a point" | ) |
Definition at line 211 of file testSimpleRandomAccessRangeFromPoint.cpp.
References aPoint(), cnt, domain, refImage(), and REQUIRE().
SECTION | ( | "Testing forward output iterators" | ) |
Definition at line 195 of file testSimpleRandomAccessRangeFromPoint.cpp.
References cnt, domain, refImage(), and REQUIRE().
SECTION | ( | "Testing mutable circulators in backward way" | ) |
Definition at line 387 of file testSimpleRandomAccessRangeFromPoint.cpp.
References cnt, domain, refImage(), and REQUIRE().
SECTION | ( | "Testing mutable circulators in forward way" | ) |
SECTION | ( | "Testing mutable forward iterators from a point" | ) |
Definition at line 109 of file testSimpleRandomAccessRangeFromPoint.cpp.
References aPoint(), cnt, domain, refImage(), and REQUIRE().
SECTION | ( | "Testing mutable forward iterators" | ) |
SECTION | ( | "Testing mutable reverse circulators in backward way" | ) |
Definition at line 427 of file testSimpleRandomAccessRangeFromPoint.cpp.
References cnt, domain, refImage(), and REQUIRE().
SECTION | ( | "Testing mutable reverse circulators in forward way" | ) |
Definition at line 407 of file testSimpleRandomAccessRangeFromPoint.cpp.
References cnt, domain, refImage(), and REQUIRE().
SECTION | ( | "Testing mutable reverse iterators from a point" | ) |
Definition at line 173 of file testSimpleRandomAccessRangeFromPoint.cpp.
References aPoint(), cnt, domain, refImage(), and REQUIRE().
SECTION | ( | "Testing mutable reverse iterators" | ) |
Definition at line 152 of file testSimpleRandomAccessRangeFromPoint.cpp.
References cnt, domain, refImage(), and REQUIRE().
SECTION | ( | "Testing reverse output iterators from a point" | ) |
Definition at line 243 of file testSimpleRandomAccessRangeFromPoint.cpp.
References aPoint(), cnt, domain, refImage(), and REQUIRE().
SECTION | ( | "Testing reverse output iterators" | ) |
Definition at line 227 of file testSimpleRandomAccessRangeFromPoint.cpp.
References cnt, domain, refImage(), and REQUIRE().
std::size_t cnt = 0 |
const double hour = 4.29 |
Definition at line 58 of file testSimpleRandomAccessRangeFromPoint.cpp.