Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxMfUpo Class Reference

Class definition of method frame for unary pixel operations. More...

#include <HxMfUpo.h>

List of all members.

Public Methods

 HxMfUpo (HxImageData *objImg, HxString upoName)
 Constructor. More...

 ~HxMfUpo ()
 Destructor. More...

HxImageData * object () const
 The object image of the frame. More...

HxImageData * result () const
 The result image of the frame. More...


Detailed Description

Class definition of method frame for unary pixel operations.


Constructor & Destructor Documentation

HxMfUpo::HxMfUpo (  HxImageData *    objImg,
HxString    upoName
) 
 

Constructor.

00020     : _object(objImg)
00021 {
00022     if (!_object)
00023         return;
00024 
00025     HxImageSignature objSig(_object->signature());
00026 
00027     static HxRegKey* upoKey
00028         = HxRegistry::instance().findKey("/imagefunctortable/upo");
00029     HxRegKey* k = upoKey ? upoKey->findKey(upoName) : 0;
00030     k = k ? k->findKey("resulttype") : 0;
00031     const HxRegValue* v = k ? k->findValue(objSig.toString()) : 0;
00032     HxImageSignature resultSig
00033         = v ? HxImageSignature::NameToSignature(v->getData().toString()) : objSig;
00034 
00035     HxSizes sizes = _object->sizes();
00036 
00037     _result = HxImgDataFactory::instance().makeImage(resultSig, sizes);
00038 }

HxMfUpo::~HxMfUpo (    ) 
 

Destructor.

00041 {
00042 }


Member Function Documentation

HxImageData * HxMfUpo::object (    )  const
 

The object image of the frame.

00046 { 
00047     return _object; 
00048 }

HxImageData * HxMfUpo::result (    )  const
 

The result image of the frame.

00052 { 
00053     return _result; 
00054 }


The documentation for this class was generated from the following files:
Generated on Tue Jan 8 13:59:33 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001