DGtal
0.6.devel
|
#include <PNMReader.h>
Public Types | |
enum | MagicNumber { P1, P2, P3, P4, P5, P6 } |
typedef TImageContainer | ImageContainer |
typedef TImageContainer::Domain::Vector | Vector |
Public Member Functions | |
BOOST_STATIC_ASSERT ((ImageContainer::Domain::dimension==2)||(ImageContainer::Domain::dimension==3)) |
Static Public Member Functions | |
static ImageContainer | importPGM (const std::string &aFilename, bool topbotomOrder=true) throw (DGtal::IOException) |
static ImageContainer | importPGM3D (const std::string &aFilename) throw (DGtal::IOException) |
Aim: Import a 2D or 3D using the Netpbm formats (ASCII mode).
Description of class 'PNMReader'
PPM: RGB
Simple example: (extract from test file testPNMReader.cpp)
You can then for instance display a threshold part of the image:
Definition at line 90 of file PNMReader.h.
typedef TImageContainer DGtal::PNMReader< TImageContainer >::ImageContainer |
Definition at line 95 of file PNMReader.h.
typedef TImageContainer::Domain::Vector DGtal::PNMReader< TImageContainer >::Vector |
Definition at line 96 of file PNMReader.h.
enum DGtal::PNMReader::MagicNumber |
DGtal::PNMReader< TImageContainer >::BOOST_STATIC_ASSERT | ( | (ImageContainer::Domain::dimension==2)||(ImageContainer::Domain::dimension==3) | ) |
|
inlinestatic |
Main method to import a Pgm (8bits) into an instance of the template parameter ImageContainer.
filename | the file name to import. |
topbotomOrder | if true, the point of coordinate (0,0) will be the bottom left corner image point (default) else the center of image coordinate will be the top left of the image (not usual). |
Definition at line 52 of file PNMReader.ih.
References DGtal::Trace::error(), and DGtal::trace.
|
inlinestatic |
Main method to import a Pgm3D (8bits) into an instance of the template parameter ImageContainer.
filename | the file name to import. |
Definition at line 171 of file PNMReader.ih.
References DGtal::Trace::error(), and DGtal::trace.