Data Structures | Macros | Typedefs | Functions
2d/image.hh File Reference
#include <mia/core/attributes.hh>
#include <mia/core/pixeltype.hh>
#include <mia/core/filter.hh>
#include <mia/core/msgstream.hh>
#include <mia/core/tools.hh>
#include <mia/core/type_traits.hh>
#include <mia/2d/vectorfield.hh>

Go to the source code of this file.

Data Structures

class  C2DImage
 This is the base class for 2D images that can hold generic pixel data. More...
 
class  CImageComparePrinter
 a class to print out the intensity values of two images to compare them More...
 
class  CopyC2DImageToP2DImage
 functor to copy an image into paointer representation More...
 
struct  FConvert2DImageToPixeltypeO< O >
 functor to convert an image with an abitrary pixel type to single floating point pixels More...
 
class  T2DImage< T >
 This is the template version of a 2D image that is used for holding real data. More...
 

Macros

#define ATTR_IMAGE_KMEANS_CLASSES   "kmeans"
 

Typedefs

typedef T2DImage< bool > C2DBitImage
 2D image with binary values More...
 
typedef T2DImage< double > C2DDImage
 2D image with double precsion floating point values More...
 
typedef T2DImage< float > C2DFImage
 2D image with single precsion floating point values More...
 
typedef TTranslator< C2DFVectorC2DFVectorTranslator
 typedef for the C2DFVector to std::string translator More...
 
typedef std::map< std::string,
C2DImageSeriesGroup
C2DImageGroupedSeries
 
typedef std::vector< P2DImageC2DImageSeries
 helper type for image series More...
 
typedef std::vector
< C2DImageSeries
C2DImageSeriesGroup
 
typedef T2DImage< signed char > C2DSBImage
 2D image with signed 8 bit integer values More...
 
typedef T2DImage< signed int > C2DSIImage
 2D image with signed 32 bit integer values More...
 
typedef T2DImage< signed long > C2DSLImage
 2D image with signed 64 bit integer values More...
 
typedef T2DImage< signed short > C2DSSImage
 2D image with signed 16 bit integer values More...
 
typedef T2DImage< unsigned char > C2DUBImage
 2D image with unsigned 8 bit integer values More...
 
typedef T2DImage< unsigned int > C2DUIImage
 2D image with unsigned 32 bit integer values More...
 
typedef T2DImage< unsigned long > C2DULImage
 2D image with unsigned 64 bit integer values More...
 
typedef T2DImage< unsigned short > C2DUSImage
 2D image with unsigned 16 bit integer values More...
 
typedef
FConvert2DImageToPixeltypeO
< float > 
FCopy2DImageToFloatRepn
 short name for 2DImage to float pixel repn copy functor More...
 
typedef C2DImage::Pointer P2DImage
 Shared pointer representation of the 2D Image. More...
 
typedef std::shared_ptr
< C2DImageSeries
P2DImageSeries
 

Functions

EXPORT_2D C2DFVectorfield get_gradient (const C2DImage &image)
 
bool operator!= (const C2DImage &a, const C2DImage &b)
 
EXPORT_2D bool operator== (const C2DImage &a, const C2DImage &b)
 

Macro Definition Documentation

#define ATTR_IMAGE_KMEANS_CLASSES   "kmeans"

Definition at line 35 of file 2d/image.hh.

Typedef Documentation

typedef T2DImage<bool> C2DBitImage

2D image with binary values

Definition at line 372 of file 2d/image.hh.

typedef T2DImage<double> C2DDImage

2D image with double precsion floating point values

Definition at line 404 of file 2d/image.hh.

typedef T2DImage<float> C2DFImage

2D image with single precsion floating point values

Definition at line 401 of file 2d/image.hh.

typedef for the C2DFVector to std::string translator

Definition at line 506 of file 2d/image.hh.

typedef std::map<std::string, C2DImageSeriesGroup> C2DImageGroupedSeries

Definition at line 106 of file 2d/image.hh.

typedef std::vector<P2DImage> C2DImageSeries

helper type for image series

Definition at line 101 of file 2d/image.hh.

typedef std::vector<C2DImageSeries> C2DImageSeriesGroup

Definition at line 105 of file 2d/image.hh.

typedef T2DImage<signed char> C2DSBImage

2D image with signed 8 bit integer values

Definition at line 375 of file 2d/image.hh.

typedef T2DImage<signed int> C2DSIImage

2D image with signed 32 bit integer values

Definition at line 387 of file 2d/image.hh.

typedef T2DImage<signed long> C2DSLImage

2D image with signed 64 bit integer values

Definition at line 394 of file 2d/image.hh.

typedef T2DImage<signed short> C2DSSImage

2D image with signed 16 bit integer values

Definition at line 381 of file 2d/image.hh.

typedef T2DImage<unsigned char> C2DUBImage

2D image with unsigned 8 bit integer values

Definition at line 378 of file 2d/image.hh.

typedef T2DImage<unsigned int> C2DUIImage

2D image with unsigned 32 bit integer values

Definition at line 390 of file 2d/image.hh.

typedef T2DImage<unsigned long> C2DULImage

2D image with unsigned 64 bit integer values

Definition at line 397 of file 2d/image.hh.

typedef T2DImage<unsigned short> C2DUSImage

2D image with unsigned 16 bit integer values

Definition at line 384 of file 2d/image.hh.

short name for 2DImage to float pixel repn copy functor

Since copy-conversion to a floating pixel type image is used often we provide here a typedef for the functor.

Definition at line 503 of file 2d/image.hh.

Shared pointer representation of the 2D Image.

Definition at line 98 of file 2d/image.hh.

typedef std::shared_ptr<C2DImageSeries> P2DImageSeries

Definition at line 103 of file 2d/image.hh.

Function Documentation

EXPORT_2D C2DFVectorfield get_gradient ( const C2DImage image)

Evaluate the gradient of an image using finite differences

Remarks
should be changed to use interpolator
bool operator!= ( const C2DImage a,
const C2DImage b 
)
inline

Evaluate if two images are not equal in size, pixel type or all its pixels. Meta data is not considered, nor is the pixel size.

Definition at line 345 of file 2d/image.hh.

EXPORT_2D bool operator== ( const C2DImage a,
const C2DImage b 
)

Evaluate if two images are equal in size, pixel type and all its pixels. Meta data is not considered, nor is the pixel size

Parameters
a
b
Returns
result of comparison
Remarks
pixel size should probably also compared
who calls this function anyway?