OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Data Structures | Typedefs | Enumerations | Functions
ost::img Namespace Reference

Namespaces

 alg
 
 detail
 
 gui
 
 image_state
 
 physics
 
 util
 

Data Structures

class  CircleMask
 
class  OpBase
 
class  AndOp
 
class  OrOp
 
class  XorOp
 
class  CompositeMask
 
class  ConstData
 
class  Data
 
class  AlgorithmBase
 
class  NonModAlgorithm
 
class  ModIPAlgorithm
 
class  ConstModIPAlgorithm
 
class  ModOPAlgorithm
 
class  ConstModOPAlgorithm
 
class  InvalidObserver
 
class  DataObserver
 
struct  InvalidExtentException
 
class  Extent
 
class  ExtentIterator
 
class  ExtentMask
 
class  InvalidImageHandle
 
class  ImageHandle
 
class  ConstImageHandle
 
class  ImageList
 
class  InvertedMask
 
class  MaskBase
 
class  MaskVisitor
 
class  NormalizeFnc
 
class  NormalizerImpl
 
class  NoOpNormalizer
 
class  RangeHandler
 
class  NullData
 
class  Observable
 
class  Peak
 
class  Phase
 
class  InvalidSampling
 
class  PixelSampling
 
class  Point
 
class  PointList
 
class  PolygonMask
 
class  Progress
 
class  RasterImage
 
class  Size
 
class  SphericalMask
 

Typedefs

typedef boost::shared_ptr< OpBaseOpPtr
 
typedef boost::shared_ptr
< ImageStateBasePtr > 
ImageImpl
 
typedef ImageHandle MapHandle = ImageHandle
 
typedef boost::shared_ptr
< MaskBase
MaskPtr
 
typedef boost::shared_ptr
< NormalizerImpl
NormalizerPtr
 
typedef
ImageStateConstModIPAlgorithm
< NormalizeFnc
NormalizerBase
 
typedef std::vector< PeakPeakList
 
typedef
boost::variate_generator
< boost::mt19937
&, boost::uniform_int<> > 
UniformIntGenerator
 

Enumerations

enum  DataType { REAL =0, COMPLEX, WORD, DEFAULTTYPE }
 
enum  DataDomain { SPATIAL =0, FREQUENCY, HALF_FREQUENCY, DEFAULTDOMAIN }
 
enum  DivZeroMethod { SET_ZERO =0, DIV_EPS =1, INTERPOLATE }
 
enum  DomainToColorMode { MODULUS, PHASECOLOR }
 

Functions

DLLEXPORT_OST_IMG_BASE bool HasOverlap (const Extent &e1, const Extent &e2)
 
DLLEXPORT_OST_IMG_BASE Extent Overlap (const Extent &e1, const Extent &e2)
 
DLLEXPORT_OST_IMG_BASE
std::ostream & 
operator<< (std::ostream &os, const img::Extent &b)
 
ImageHandle DLLEXPORT_OST_IMG_BASE CreateImage (const Extent &ext=Extent(), DataType type=REAL, DataDomain dom=SPATIAL)
 
ImageHandle DLLEXPORT_OST_IMG_BASE CreateImage (const Size &s, DataType type=REAL, DataDomain dom=SPATIAL)
 
ImageHandle DLLEXPORT_OST_IMG_BASE CreateImage (const Size &s, const Point &o, DataType type=REAL, DataDomain dom=SPATIAL)
 
ImageHandle DLLEXPORT_OST_IMG_BASE CreateImage (const Point &p1, const Point &p2, DataType type=REAL, DataDomain dom=SPATIAL)
 
ImageHandle DLLEXPORT_OST_IMG_BASE CreateImage (const Point &p1, const Size &s, DataType type=REAL, DataDomain dom=SPATIAL)
 
ImageHandle DLLEXPORT_OST_IMG_BASE GenerateImage (const Data &d)
 
ImageHandle DLLEXPORT_OST_IMG_BASE GenerateImage (const Data &d, const Extent &e)
 
ImageImpl CreateImageImpl (const Extent &, DataType type, DataDomain dom)
 
ImageHandle DLLEXPORT_OST_IMG_BASE CreateMap (const Extent &ext=Extent(), DataType type=REAL, DataDomain dom=SPATIAL)
 
ImageHandle DLLEXPORT_OST_IMG_BASE CreateMap (const Size &s, const Point &o, DataType type=REAL, DataDomain dom=SPATIAL)
 
ImageHandle DLLEXPORT_OST_IMG_BASE CreateMap (const Point &p1, const Point &p2, DataType type=REAL, DataDomain dom=SPATIAL)
 
ImageHandle DLLEXPORT_OST_IMG_BASE CreateMap (const Point &p1, const Size &s, DataType type=REAL, DataDomain dom=SPATIAL)
 
MaskPtr DLLEXPORT_OST_IMG_BASE Mask (const Polygon2 &p)
 
MaskPtr DLLEXPORT_OST_IMG_BASE Mask (const Extent &e)
 
MaskPtr DLLEXPORT_OST_IMG_BASE Mask (const Circle2 &c)
 
MaskPtr DLLEXPORT_OST_IMG_BASE Mask (const Sphere &s)
 
MaskPtr DLLEXPORT InfoToMask (const info::InfoGroup &g)
 
void DLLEXPORT MaskToInfo (const MaskPtr &mptr, info::InfoGroup &g)
 
DLLEXPORT_OST_IMG_BASE MaskPtr operator~ (const MaskPtr &mptr)
 
DLLEXPORT_OST_IMG_BASE MaskPtr operator& (const MaskPtr &lhs, const MaskPtr &rhs)
 
DLLEXPORT_OST_IMG_BASE MaskPtr operator| (const MaskPtr &lhs, const MaskPtr &rhs)
 
DLLEXPORT_OST_IMG_BASE MaskPtr operator^ (const MaskPtr &lhs, const MaskPtr &rhs)
 
DLLEXPORT_OST_IMG_BASE PeakList ImportPeakList (const String &filename)
 
DLLEXPORT_OST_IMG_BASE void ExportPeakList (const PeakList &l, const String &filename)
 
DLLEXPORT_OST_IMG_BASE
std::ostream & 
operator<< (std::ostream &, const Phase a)
 
DLLEXPORT_OST_IMG_BASE
std::ostream & 
operator<< (std::ostream &os, const Point &p)
 
DLLEXPORT_OST_IMG_BASE Size operator+ (const Size &s1, const Size &s2)
 
DLLEXPORT_OST_IMG_BASE Size operator- (const Size &s1, const Size &s2)
 
DLLEXPORT_OST_IMG_BASE
std::ostream & 
operator<< (std::ostream &os, const Size &s)
 
template<typename T >
DLLEXPORT_OST_IMG_BASERandom ()
 
template<>
Complex Random< Complex > ()
 
template<>
Word Random< Word > ()
 
template<typename T >
Random ()
 
UniformIntGenerator GetUniformIntGenerator (int min, int max)
 
template<typename V , typename R >
DLLEXPORT_OST_IMG_BASEVal2Val (const V &v)
 
template<>
Real Val2Val< Complex, Real > (const Complex &c)
 
template<>
Word Val2Val< Complex, Word > (const Complex &c)
 
template<typename V , typename R >
Val2Val (const V &v)
 
template<typename T >
DLLEXPORT_OST_IMG_BASE DataType Val2Type ()
 
template<>
DataType Val2Type< Complex > ()
 
template<>
DataType Val2Type< Real > ()
 
template<>
DataType Val2Type< Word > ()
 
template<typename T >
DLLEXPORT_OST_IMG_BASE String Val2String ()
 
template<>
String Val2String< Complex > ()
 
template<>
String Val2String< Real > ()
 
template<>
String Val2String< Word > ()
 
Global operators

These operators are implemented in terms of the member operators of ImageHandle, and due to the implicit convertability of ImageHandle to ConstImageHandle, they may be applied to both handle variants.

DLLEXPORT_OST_IMG_BASE bool operator== (const ImageHandle &lhs, const ConstImageHandle &rhs)
 
DLLEXPORT_OST_IMG_BASE bool operator!= (const ImageHandle &lhs, const ConstImageHandle &rhs)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator+ (const ConstImageHandle &h, Real v)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator+ (const ConstImageHandle &h, const Complex &v)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator+ (Real v, const ConstImageHandle &h)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator+ (const Complex &v, const ConstImageHandle &h)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator- (const ConstImageHandle &h, Real v)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator- (const ConstImageHandle &h, const Complex &v)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator- (Real v, const ConstImageHandle &h)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator- (const Complex &v, const ConstImageHandle &h)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator* (const ConstImageHandle &h, Real v)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator* (const ConstImageHandle &h, const Complex &v)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator* (Real v, const ConstImageHandle &h)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator* (const Complex &v, const ConstImageHandle &h)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator/ (const ConstImageHandle &h, Real v)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator/ (const ConstImageHandle &h, const Complex &v)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator+ (const ConstImageHandle &h1, const ConstImageHandle &h2)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator- (const ConstImageHandle &h1, const ConstImageHandle &h2)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator* (const ConstImageHandle &h1, const ConstImageHandle &h2)
 
DLLEXPORT_OST_IMG_BASE ImageHandle operator/ (const ConstImageHandle &h1, const ConstImageHandle &h2)
 

Typedef Documentation

typedef boost::shared_ptr<ImageStateBasePtr> ImageImpl

Definition at line 38 of file image_impl.hh.

Definition at line 26 of file map.hh.

typedef boost::shared_ptr<MaskBase> MaskPtr

Definition at line 28 of file mask_base_fw.hh.

typedef ImageStateConstModIPAlgorithm<NormalizeFnc> NormalizerBase

Definition at line 66 of file normalizer_impl.hh.

typedef boost::shared_ptr<NormalizerImpl> NormalizerPtr

Definition at line 32 of file normalizer_fw.hh.

typedef boost::shared_ptr<OpBase> OpPtr

Definition at line 64 of file composite_mask.hh.

typedef std::vector<Peak> PeakList

Definition at line 46 of file peak.hh.

typedef boost::variate_generator<boost::mt19937&, boost::uniform_int<> > UniformIntGenerator

Definition at line 72 of file value_util.hh.

Enumeration Type Documentation

enum DataDomain

underlying data type

Enumerator
SPATIAL 
FREQUENCY 
HALF_FREQUENCY 
DEFAULTDOMAIN 

Definition at line 42 of file data_types.hh.

enum DataType
Enumerator
REAL 
COMPLEX 
WORD 
DEFAULTTYPE 

Definition at line 37 of file data_types.hh.

data domain

Enumerator
SET_ZERO 
DIV_EPS 
INTERPOLATE 

Definition at line 51 of file data_types.hh.

Enumerator
MODULUS 
PHASECOLOR 

Definition at line 56 of file data_types.hh.

Function Documentation

ImageHandle DLLEXPORT_OST_IMG_BASE ost::img::CreateImage ( const Extent &  ext = Extent(),
DataType  type = REAL,
DataDomain  dom = SPATIAL 
)

Create image from scratch.

A handle to a newly created handle is returned. The image is defined by an Extent, the type (REAL (default) or COMPLEX), and the domain (SPATIAL (default), FREQUENCY or HALF_FREQUENCY ).

ImageHandle DLLEXPORT_OST_IMG_BASE ost::img::CreateImage ( const Size &  s,
DataType  type = REAL,
DataDomain  dom = SPATIAL 
)

convenience variants to create images

ImageHandle DLLEXPORT_OST_IMG_BASE ost::img::CreateImage ( const Size &  s,
const Point &  o,
DataType  type = REAL,
DataDomain  dom = SPATIAL 
)
ImageHandle DLLEXPORT_OST_IMG_BASE ost::img::CreateImage ( const Point &  p1,
const Point &  p2,
DataType  type = REAL,
DataDomain  dom = SPATIAL 
)
ImageHandle DLLEXPORT_OST_IMG_BASE ost::img::CreateImage ( const Point &  p1,
const Size &  s,
DataType  type = REAL,
DataDomain  dom = SPATIAL 
)
ImageImpl ost::img::CreateImageImpl ( const Extent &  ,
DataType  type,
DataDomain  dom 
)
ImageHandle DLLEXPORT_OST_IMG_BASE ost::img::CreateMap ( const Extent &  ext = Extent(),
DataType  type = REAL,
DataDomain  dom = SPATIAL 
)
ImageHandle DLLEXPORT_OST_IMG_BASE ost::img::CreateMap ( const Size &  s,
const Point &  o,
DataType  type = REAL,
DataDomain  dom = SPATIAL 
)

convenience variant to create images

ImageHandle DLLEXPORT_OST_IMG_BASE ost::img::CreateMap ( const Point &  p1,
const Point &  p2,
DataType  type = REAL,
DataDomain  dom = SPATIAL 
)
ImageHandle DLLEXPORT_OST_IMG_BASE ost::img::CreateMap ( const Point &  p1,
const Size &  s,
DataType  type = REAL,
DataDomain  dom = SPATIAL 
)
DLLEXPORT_OST_IMG_BASE void ost::img::ExportPeakList ( const PeakList &  l,
const String filename 
)
ImageHandle DLLEXPORT_OST_IMG_BASE ost::img::GenerateImage ( const Data &  d)

Create image based on some data object (ie other image or function)

ImageHandle DLLEXPORT_OST_IMG_BASE ost::img::GenerateImage ( const Data &  d,
const Extent &  e 
)

Create image based on some data object (ie other image or function)

The returned image will have the extent given by second parameter

UniformIntGenerator ost::img::GetUniformIntGenerator ( int  min,
int  max 
)
inline

Definition at line 75 of file value_util.hh.

DLLEXPORT_OST_IMG_BASE bool ost::img::HasOverlap ( const Extent &  e1,
const Extent &  e2 
)
DLLEXPORT_OST_IMG_BASE PeakList ost::img::ImportPeakList ( const String filename)
MaskPtr DLLEXPORT ost::img::InfoToMask ( const info::InfoGroup &  g)
MaskPtr DLLEXPORT_OST_IMG_BASE ost::img::Mask ( const Polygon2 &  p)
MaskPtr DLLEXPORT_OST_IMG_BASE ost::img::Mask ( const Extent &  e)
MaskPtr DLLEXPORT_OST_IMG_BASE ost::img::Mask ( const Circle2 &  c)
MaskPtr DLLEXPORT_OST_IMG_BASE ost::img::Mask ( const Sphere &  s)
void DLLEXPORT ost::img::MaskToInfo ( const MaskPtr &  mptr,
info::InfoGroup &  g 
)
DLLEXPORT_OST_IMG_BASE bool ost::img::operator!= ( const ImageHandle &  lhs,
const ConstImageHandle &  rhs 
)
DLLEXPORT_OST_IMG_BASE MaskPtr ost::img::operator& ( const MaskPtr &  lhs,
const MaskPtr &  rhs 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator* ( const ConstImageHandle &  h,
Real  v 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator* ( const ConstImageHandle &  h,
const Complex v 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator* ( Real  v,
const ConstImageHandle &  h 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator* ( const Complex v,
const ConstImageHandle &  h 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator* ( const ConstImageHandle &  h1,
const ConstImageHandle &  h2 
)
DLLEXPORT_OST_IMG_BASE Size ost::img::operator+ ( const Size &  s1,
const Size &  s2 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator+ ( const ConstImageHandle &  h,
Real  v 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator+ ( const ConstImageHandle &  h,
const Complex v 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator+ ( Real  v,
const ConstImageHandle &  h 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator+ ( const Complex v,
const ConstImageHandle &  h 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator+ ( const ConstImageHandle &  h1,
const ConstImageHandle &  h2 
)
DLLEXPORT_OST_IMG_BASE Size ost::img::operator- ( const Size &  s1,
const Size &  s2 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator- ( const ConstImageHandle &  h,
Real  v 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator- ( const ConstImageHandle &  h,
const Complex v 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator- ( Real  v,
const ConstImageHandle &  h 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator- ( const Complex v,
const ConstImageHandle &  h 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator- ( const ConstImageHandle &  h1,
const ConstImageHandle &  h2 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator/ ( const ConstImageHandle &  h,
Real  v 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator/ ( const ConstImageHandle &  h,
const Complex v 
)
DLLEXPORT_OST_IMG_BASE ImageHandle ost::img::operator/ ( const ConstImageHandle &  h1,
const ConstImageHandle &  h2 
)
DLLEXPORT_OST_IMG_BASE std::ostream& ost::img::operator<< ( std::ostream &  ,
const Phase  a 
)
DLLEXPORT_OST_IMG_BASE std::ostream& ost::img::operator<< ( std::ostream &  os,
const Size &  s 
)
DLLEXPORT_OST_IMG_BASE std::ostream& ost::img::operator<< ( std::ostream &  os,
const img::Extent &  b 
)
DLLEXPORT_OST_IMG_BASE std::ostream& ost::img::operator<< ( std::ostream &  os,
const Point &  p 
)
DLLEXPORT_OST_IMG_BASE bool ost::img::operator== ( const ImageHandle &  lhs,
const ConstImageHandle &  rhs 
)
DLLEXPORT_OST_IMG_BASE MaskPtr ost::img::operator^ ( const MaskPtr &  lhs,
const MaskPtr &  rhs 
)
DLLEXPORT_OST_IMG_BASE MaskPtr ost::img::operator| ( const MaskPtr &  lhs,
const MaskPtr &  rhs 
)
DLLEXPORT_OST_IMG_BASE MaskPtr ost::img::operator~ ( const MaskPtr &  mptr)
DLLEXPORT_OST_IMG_BASE Extent ost::img::Overlap ( const Extent &  e1,
const Extent &  e2 
)
DLLEXPORT_OST_IMG_BASE T ost::img::Random ( )
inline

Definition at line 68 of file value_util.hh.

T ost::img::Random ( )
inline

Definition at line 68 of file value_util.hh.

Definition at line 51 of file value_util.hh.

Word ost::img::Random< Word > ( )
inline

Definition at line 59 of file value_util.hh.

DLLEXPORT_OST_IMG_BASE String ost::img::Val2String ( )

Definition at line 124 of file value_util.hh.

Definition at line 128 of file value_util.hh.

Definition at line 132 of file value_util.hh.

DLLEXPORT_OST_IMG_BASE DataType ost::img::Val2Type ( )

Definition at line 108 of file value_util.hh.

Definition at line 112 of file value_util.hh.

Definition at line 116 of file value_util.hh.

DLLEXPORT_OST_IMG_BASE R ost::img::Val2Val ( const V &  v)
inline

Definition at line 100 of file value_util.hh.

R ost::img::Val2Val ( const V &  v)
inline

Definition at line 100 of file value_util.hh.

Real ost::img::Val2Val< Complex, Real > ( const Complex c)
inline

Definition at line 91 of file value_util.hh.

Word ost::img::Val2Val< Complex, Word > ( const Complex c)
inline

Definition at line 95 of file value_util.hh.