Public Member Functions | List of all members
MotionIllustratorOp< T, T2 > Class Template Reference

#include <MotionIllustratorOp.h>

Inheritance diagram for MotionIllustratorOp< T, T2 >:
Inheritance graph
[legend]
Collaboration diagram for MotionIllustratorOp< T, T2 >:
Collaboration graph
[legend]

Public Member Functions

 MotionIllustratorOp (const std::string &p="10,10,1.0,1.0,0.0")
 
void process (const ImageT< T > &motion, ImageT< T2 > &dst) const
 
void process (const ImageT< T > &motion, ImageT< T2 > &src, ImageT< T2 > &dst) const
 
- Public Member Functions inherited from ImageOp< unsigned char, unsigned char >
virtual void process (const ImageFrame &src, Image &dst) const
 Main interface. Typically splits processing to each channel. More...
 
virtual void process (const ImageFrame &src, const ImageFrame &srcWeight, Image &dst, Image &dstWeight) const
 
virtual void process (const ImageTray< const Channel > &src, ImageTray< Image > &dst, bool checkOverlap=true) const
 Run the operator on a series of images. Geometry and type may be changed. UNDER CONSTR. More...
 
virtual void traverseChannels (const ImageTray< const Channel > &src, ImageTray< Channel > &dst) const
 
virtual void traverseChannel (const Channel &src, Channel &dst) const
 Apply to single channel.
 
virtual void traverseChannel (const Channel &src, const Channel &srcAlpha, Channel &dst, Channel &dstAlpha) const
 Apply to single channel with alpha.
 
virtual void getDstConf (const ImageConf &src, ImageConf &dst) const
 Given source image, determine respective dest image configuration. More...
 
virtual void makeCompatible (const ImageConf &src, Image &dst) const
 Depending on the operator, modifies the geometry and type of dst. More...
 
virtual void makeCompatible2 (const ImageFrame &src1, const ImageFrame &src2, Image &dst) const
 Modifies the geometry and type of dst to fit the computation result.
 
virtual void help (std::ostream &ostr=std::cout) const
 Prints name, description and parameters using BeanLike::toOStr(). Virtual, so derived classes may extend output.
 

Additional Inherited Members

- Protected Member Functions inherited from ImageOp< unsigned char, unsigned char >
 ImageOp (const std::string &name=__FUNCTION__, const std::string &description="")
 
 ImageOp (const ImageOp &op)
 
virtual bool processOverlappingWithTemp (const ImageFrame &src, Image &dst) const
 
virtual bool processOverlappingWithTemp (const ImageTray< const Channel > &src, ImageTray< Image > &dst) const
 
bool traverseOverlappingWithTemp (const Channel &src, Channel &dst) const
 
bool traverseOverlappingWithTemp (const Channel &src, const Channel &srcWeight, Channel &dst, Channel &dstWeight) const
 
void traverseChannelsEqually (const ImageTray< const Channel > &src, ImageTray< Channel > &dst) const
 Calls processWithTemp() if the frames overlap. More...
 
void traverseChannelsRepeated (const ImageTray< const Channel > &src, ImageTray< Channel > &dst) const
 Recycle channels until all dst channels completed.
 
void traverseChannelsSeparately (const ImageTray< const Channel > &src, ImageTray< Channel > &dst) const
 Process each (src,dst) channel pair independently. Raise error if their counts differ. More...
 
void traverseAsChannelTrays (const ImageFrame &src, ImageFrame &dst) const
 Redirect to processing as trays. This is the opposite of processChannels...() functions.
 
void traverseAsChannelTrays (const ImageFrame &src, const ImageFrame &srcWeight, ImageFrame &dst, ImageFrame &dstWeight) const
 Redirect to processing as trays. This is the opposite of processChannels...() functions.
 
virtual void initializeParameters (const ImageFrame &src, const ImageFrame &dst) const
 Set applicable internal parameters before calling traverse().
 
virtual void initializeParameters (const ImageFrame &src, const ImageFrame &src2, const ImageFrame &dst) const
 Set applicable internal parameters before calling traverse().
 
- Static Protected Member Functions inherited from ImageOp< unsigned char, unsigned char >
static void adaptCoordinateHandler (const Channel &src, CoordinateHandler2D &handler)
 

Detailed Description

template<class T = unsigned char, class T2 = unsigned char>
class drain::image::MotionIllustratorOp< T, T2 >

! Take a motion field and an image as input, and outputs an extrapolated image.

T = motion vector class (typically double) T2 = input image class (typically unsigned char).


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