DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
STBReader.h
1
16
17
#pragma once
18
30
31
#if defined(STBReader_RECURSES)
32
#error Recursive header files inclusion detected in STBReader.h
33
#else
// defined(STBReader_RECURSES)
35
#define STBReader_RECURSES
36
37
#if !defined STBReader_h
39
#define STBReader_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/io/colormaps/BasicColorToScalarFunctors.h"
46
48
49
namespace
DGtal
50
{
52
// template class STBReader
60
template
<
typename
TImageContainer,
typename
TFunctor=functors::ColorRGBEncoder<
typename
TImageContainer::Value> >
61
class
STBReader
62
{
63
// ----------------------- Standard services ------------------------------
64
public
:
65
typedef
TImageContainer
ImageContainer
;
66
typedef
typename
TImageContainer::Domain::Vector
Vector
;
67
typedef
typename
TImageContainer::Value
Value
;
68
typedef
TFunctor
Functor
;
69
70
BOOST_STATIC_ASSERT
( (ImageContainer::Domain::dimension == 2));
71
BOOST_CONCEPT_ASSERT
((
concepts::CUnaryFunctor<TFunctor, DGtal::Color, Value>
)) ;
72
82
static
ImageContainer
import
(
const
std::string & filename,
83
const
Functor
& aFunctor =
Functor
());
84
};
// end of class STBReader
85
86
87
88
}
// namespace DGtal
89
90
92
// Includes inline functions.
93
#include "DGtal/io/readers//STBReader.ih"
94
// //
96
#endif
// !defined STBReader_h
97
98
#undef STBReader_RECURSES
99
#endif
// else defined(STBReader_RECURSES)
DGtal::ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > >::Value
std::unordered_set< Z2i::Point > Value
Definition
ImageContainerBySTLVector.h:153
DGtal::ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > >::Vector
Domain::Vector Vector
Definition
ImageContainerBySTLVector.h:139
DGtal::STBReader
Aim: Image reader using the stb_image.h header only code.
Definition
STBReader.h:62
DGtal::STBReader::Value
TImageContainer::Value Value
Definition
STBReader.h:67
DGtal::STBReader::ImageContainer
TImageContainer ImageContainer
Definition
STBReader.h:65
DGtal::STBReader::Functor
TFunctor Functor
Definition
STBReader.h:68
DGtal::STBReader::Vector
TImageContainer::Domain::Vector Vector
Definition
STBReader.h:66
DGtal::STBReader::BOOST_STATIC_ASSERT
BOOST_STATIC_ASSERT((ImageContainer::Domain::dimension==2))
DGtal::STBReader::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctor, DGtal::Color, Value >))
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::concepts::CUnaryFunctor
Aim: Defines a unary functor, which associates arguments to results.
Definition
CUnaryFunctor.h:90
TImageContainer
ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > > TImageContainer
Definition
testVoronoiMapComplete.cpp:48
src
DGtal
io
readers
STBReader.h
Generated on
for DGtal by
1.18.0