DGtal
1.5.beta
|
#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/.
Functions 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(), image(), 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::HyperRectDomain< TSpace >::end(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::end(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::find(), image(), DGtal::Trace::info(), DGtal::setFromImage(), DGtal::setFromPointsRangeAndPredicate(), DGtal::HyperRectDomain< TSpace >::size(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::size(), and DGtal::trace.
Referenced by main().