template<typename TContainer>
struct DGtal::GenericReader< TContainer, 3, DGtal::uint32_t >
GenericReader Template partial specialisation for volume images with 32 bits values
Definition at line 301 of file GenericReader.h.
template<typename TContainer>
template<typename TFunctor>
TContainer DGtal::GenericReader< TContainer, 3, DGtal::uint32_t >::importWithValueFunctor |
( |
const std::string & | filename, |
|
|
const TFunctor & | aFunctor, |
|
|
unsigned int | x = 0, |
|
|
unsigned int | y = 0, |
|
|
unsigned int | z = 0 ) |
|
inlinestatic |
Import an image file by specifying a value functor (used for gray scale image format: vol, longvol, pgm3D, raw).
- Template Parameters
-
TFunctor | The type of the functor (should verify the concept CUnaryFunctor<TFunctor, unsigned char , TContainer::Value > ). |
- Parameters
-
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. |
z | specify the " image size to be used with raw format. |
Definition at line 334 of file GenericReader.h.
338 {
342
344 {
346 }
348 {
352 }
353
354#ifdef DGTAL_WITH_ITK
356 {
358 }
360 {
362 }
363#endif
364
367 }
static ImageContainer importDicom(const std::string &aFilename, const Functor &aFunctor=Functor())
static Image importITK(const std::string &filename, const TFunctor &aFunctor=TFunctor(), bool shiftDomainUsingOrigin=true)
static ImageContainer importLongvol(const std::string &filename, const Functor &aFunctor=Functor())
static ImageContainer importRaw32(const std::string &filename, const Vector &extent, const Functor &aFunctor=Functor())
References DGtal::GenericReader< TContainer, Tdim, TValue >::BOOST_CONCEPT_ASSERT(), DGtal::DicomReader< TImageContainer, TFunctor >::importDicom(), DGtal::ITKReader< TImage >::importITK(), DGtal::LongvolReader< TImageContainer, TFunctor >::importLongvol(), DGtal::RawReader< TImageContainer, TFunctor >::importRaw32(), and DGtal::trace.