DGtal 2.1.0
Loading...
Searching...
No Matches
RawIO< Image > Struct Template Reference

Static Public Member Functions

static Image read (std::string const &filename, typename Image::Domain::Vector const &extent)
 
static bool write (std::string const &filename, Image const &anImage)
 

Detailed Description

template<typename Image>
struct RawIO< Image >

Definition at line 231 of file testRawReader.cpp.

Member Function Documentation

◆ read()

template<typename Image >
static Image RawIO< Image >::read ( std::string const &  filename,
typename Image::Domain::Vector const &  extent 
)
inlinestatic

Definition at line 233 of file testRawReader.cpp.

234 {
235 return DGtal::RawReader<Image>::template importRaw< typename Image::Value>( filename, extent );
236 }
Aim: Raw binary import of an Image.
Definition RawReader.h:94

Referenced by testWriteAndRead().

◆ write()

template<typename Image >
static bool RawIO< Image >::write ( std::string const &  filename,
Image const &  anImage 
)
inlinestatic

Definition at line 238 of file testRawReader.cpp.

239 {
240 return DGtal::RawWriter<Image>::template exportRaw< typename Image::Value>( filename, anImage );
241 }
Aim: Raw binary export of an Image.
Definition RawWriter.h:99

Referenced by testWriteAndRead().


The documentation for this struct was generated from the following file: