DGtal 1.3.0
|
#include <DGtal/io/readers/GenericReader.h>
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CImage< TContainer >)) | |
Static Public Member Functions | |
static TContainer | import (const std::string &filename, unsigned int x=0, unsigned int y=0) |
template<typename TFunctor > | |
static TContainer | importWithColorFunctor (const std::string &filename, const TFunctor &aFunctor, unsigned int x=0, unsigned int y=0) |
template<typename TFunctor > | |
static TContainer | importWithValueFunctor (const std::string &filename, const TFunctor &aFunctor, unsigned int x=0, unsigned int y=0) |
GenericReader Template partial specialisation for volume images of dimension 2 with DGtal::uint32_t values
Definition at line 510 of file GenericReader.h.
DGtal::GenericReader< TContainer, 2, DGtal::uint32_t >::BOOST_CONCEPT_ASSERT | ( | (concepts::CImage< TContainer >) | ) |
|
static |
Import a volume image file. For the special format h5 (you need to set WITH_HDF5 of cmake build), the default parameter datasetName needs to be updated according to the dimension if the image.
filename | the image filename to be imported. |
x | specify the x image size to be used with raw format. |
y | specify the y image size to be used with raw format. |
|
inlinestatic |
Import an image file by specifying a color encoder functor (used only for color image format ppm, png, tga, bmp,jpeg) .
TFunctor | The type of the functor (should verify the concept CUnaryFunctor<TFunctor, TContainer::Value, DGtal::Color > ). |
filename | the image filename to be imported. |
aFunctor | an ColorRGBEncoder. The type of the functor (should verify the concept CUnaryFunctor<TFunctor, TContainer::Value, DGtal::Color > ). |
x | specify the x image size to be used with raw format. |
y | specify the y image size to be used with raw format. |
Definition at line 541 of file GenericReader.h.
References DGtal::GenericReader< TContainer, Tdim, TValue >::BOOST_CONCEPT_ASSERT(), DGtal::Trace::error(), DGtal::STBReader< TImageContainer, TFunctor >::import(), DGtal::PPMReader< TImageContainer, TFunctor >::importPPM(), and DGtal::trace.
|
inlinestatic |
Import an image file by specifying a value functor used for grayscale image.
TFunctor | The type of the functor (should verify the concept CUnaryFunctor<TFunctor, unsigned char, TContainer::Value > ). |
filename | the image filename to be imported. |
aFunctor | to transform input unsigned char of image value into the given image type. |
x | specify the x image size to be used with raw format. |
y | specify the y image size to be used with raw format. |
Definition at line 583 of file GenericReader.h.
References DGtal::GenericReader< TContainer, Tdim, TValue >::BOOST_CONCEPT_ASSERT(), DGtal::Trace::error(), DGtal::HDF5Reader< TImageContainer, TFunctor >::importHDF5(), DGtal::PGMReader< TImageContainer, TFunctor >::importPGM(), DGtal::RawReader< TImageContainer, TFunctor >::importRaw8(), and DGtal::trace.