#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/images/imagesSetsUtils/ImageFromSet.h"
#include "DGtal/images/imagesSetsUtils/SetFromImage.h"
#include "DGtal/kernel/sets/DigitalSetInserter.h"
#include "DGtal/images/ImageHelper.h"
#include "DGtal/images/ImageContainerBySTLMap.h"
#include "DGtal/images/ImageContainerBySTLVector.h"
#include "DGtal/images/ImageSelector.h"
#include "DGtal/helpers/StdDefs.h"
#include "ConfigTest.h"
Go to the source code of this file.
Functions | |
bool | testImageFromSet () |
bool | testSetFromImage () |
int | main (int argc, char **argv) |
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/.
david.nosp@m..coe.nosp@m.urjol.nosp@m.ly@l.nosp@m.iris..nosp@m.cnrs.nosp@m..fr
) Laboratoire d'InfoRmatique en Image et Systèmes d'information - LIRIS (CNRS, UMR 5205), CNRS, Francetrist.nosp@m.an.r.nosp@m.oussi.nosp@m.llon.nosp@m.@liri.nosp@m.s.cn.nosp@m.rs.fr
) Laboratoire d'InfoRmatique en Image et Systèmes d'information - LIRIS (CNRS, UMR 5205), CNRS, FranceFunctions for testing ImageHelper functions.
This file is part of the DGtal library.
Definition in file testImagesSetsUtilities.cpp.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 229 of file testImagesSetsUtilities.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testImageFromSet(), testSetFromImage(), and DGtal::trace.
bool testImageFromSet | ( | ) |
Example of a test. To be completed.
Definition at line 79 of file testImagesSetsUtilities.cpp.
References DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::begin(), DGtal::Trace::beginBlock(), DGtal::Image< TImageContainer >::constRange(), DGtal::SimpleRandomAccessConstRangeFromPoint< TConstIterator, DistanceFunctor >::end(), DGtal::Trace::endBlock(), DGtal::imageFromFunctor(), DGtal::imageFromImage(), DGtal::imageFromRangeAndValue(), DGtal::Trace::info(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::insert(), and DGtal::trace.
Referenced by main().
bool testSetFromImage | ( | ) |
Definition at line 135 of file testImagesSetsUtilities.cpp.
References DGtal::HyperRectDomain< TSpace >::begin(), DGtal::Trace::beginBlock(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::end(), DGtal::HyperRectDomain< TSpace >::end(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::find(), DGtal::Trace::info(), DGtal::setFromImage(), DGtal::setFromPointsRangeAndPredicate(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::size(), DGtal::HyperRectDomain< TSpace >::size(), and DGtal::trace.
Referenced by main().