DGtal 1.4.0
|
Aim: Image reader using the stb_image.h
header only code.
More...
#include <DGtal/io/readers/STBReader.h>
Public Types | |
typedef TImageContainer | ImageContainer |
typedef TImageContainer::Domain::Vector | Vector |
typedef TImageContainer::Value | Value |
typedef TFunctor | Functor |
Public Member Functions | |
BOOST_STATIC_ASSERT ((ImageContainer::Domain::dimension==2)) | |
BOOST_CONCEPT_ASSERT ((concepts::CUnaryFunctor< TFunctor, DGtal::Color, Value >)) | |
Static Public Member Functions | |
static ImageContainer | import (const std::string &filename, const Functor &aFunctor=Functor()) |
Aim: Image reader using the stb_image.h
header only code.
Description of template class 'STBReader'
Definition at line 61 of file STBReader.h.
typedef TFunctor DGtal::STBReader< TImageContainer, TFunctor >::Functor |
Definition at line 68 of file STBReader.h.
typedef TImageContainer DGtal::STBReader< TImageContainer, TFunctor >::ImageContainer |
Definition at line 65 of file STBReader.h.
typedef TImageContainer::Value DGtal::STBReader< TImageContainer, TFunctor >::Value |
Definition at line 67 of file STBReader.h.
typedef TImageContainer::Domain::Vector DGtal::STBReader< TImageContainer, TFunctor >::Vector |
Definition at line 66 of file STBReader.h.
DGtal::STBReader< TImageContainer, TFunctor >::BOOST_CONCEPT_ASSERT | ( | (concepts::CUnaryFunctor< TFunctor, DGtal::Color, Value >) | ) |
DGtal::STBReader< TImageContainer, TFunctor >::BOOST_STATIC_ASSERT | ( | (ImageContainer::Domain::dimension==2) | ) |
|
static |
Main method to import an Image into an instance of the template parameter ImageContainer.
filename | the file name to import. |
aFunctor | the functor used to import and cast the source image values into the type of the image container value (DGtal::Color -> Value functor). |
Referenced by DGtal::GenericReader< TContainer, 2, DGtal::uint32_t >::importWithColorFunctor(), DGtal::GenericReader< TContainer, 2, TValue >::importWithColorFunctor(), main(), TEST_CASE(), and TEST_CASE().