Public Member Functions | Protected Attributes

DGVBlitzArrayCaster< type > Class Template Reference

This class handles casting of Blitz++ Arrays to and from Qt objects. More...

#include <DGVBlitzArrayCaster.h>

Collaboration diagram for DGVBlitzArrayCaster< type >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DGVBlitzArrayCaster ()
virtual ~DGVBlitzArrayCaster ()
QImage * arrayToQImage (const Array< type, 2 > &data)
void QImageToArray (QImage *image, Array< type, 2 > &newArray)
type getMin ()
type getMax ()
type getMean ()

Protected Attributes

type min
 Minimum image value.
type max
 Maximum image value.
type mean
 Mean image value.

Detailed Description

template<typename type>
class DGVBlitzArrayCaster< type >

This class handles casting of Blitz++ Arrays to and from Qt objects.

Author:
Shekhar S. Chandra, 2008

Casts from and to Blitz++ Arrays and QImage objects. Stores the min, max and mean of the data also.

Definition at line 37 of file DGVBlitzArrayCaster.h.


Constructor & Destructor Documentation

template<typename type >
DGVBlitzArrayCaster< type >::DGVBlitzArrayCaster (  ) 

Definition at line 60 of file DGVBlitzArrayCaster.h.

template<typename type >
DGVBlitzArrayCaster< type >::~DGVBlitzArrayCaster (  )  [virtual]

Definition at line 66 of file DGVBlitzArrayCaster.h.


Member Function Documentation

template<typename type>
QImage * DGVBlitzArrayCaster< type >::arrayToQImage ( const Array< type, 2 > &  data  ) 

Find Max

Set colour table

Scale values if required

Scaling is required

Copy across normally

Definition at line 72 of file DGVBlitzArrayCaster.h.

template<typename type>
type DGVBlitzArrayCaster< type >::getMax (  )  [inline]

Definition at line 48 of file DGVBlitzArrayCaster.h.

template<typename type>
type DGVBlitzArrayCaster< type >::getMean (  )  [inline]

Definition at line 50 of file DGVBlitzArrayCaster.h.

template<typename type>
type DGVBlitzArrayCaster< type >::getMin (  )  [inline]

Definition at line 46 of file DGVBlitzArrayCaster.h.

template<typename type>
void DGVBlitzArrayCaster< type >::QImageToArray ( QImage *  image,
Array< type, 2 > &  newArray 
)

Definition at line 124 of file DGVBlitzArrayCaster.h.


Member Data Documentation

template<typename type>
type DGVBlitzArrayCaster< type >::max [protected]

Maximum image value.

Definition at line 55 of file DGVBlitzArrayCaster.h.

template<typename type>
type DGVBlitzArrayCaster< type >::mean [protected]

Mean image value.

Definition at line 56 of file DGVBlitzArrayCaster.h.

template<typename type>
type DGVBlitzArrayCaster< type >::min [protected]

Minimum image value.

Definition at line 54 of file DGVBlitzArrayCaster.h.


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