MLPythonModuleWrapper Class Reference

A ML module that supports image processing implemented in Python. More...

List of all members.

Public Types


Public Slots

Access to PythonModule.
bool processAllPages (const QList< quint64 > &pos=QList< quint64 >(), const QList< quint64 > &extent=QList< quint64 >())
void setHandleInput (int index, HandleInput handleInputFlag)
void setPythonModule (const char *name)
void setTouchOutputsOnInputChange (bool flag=true)


Detailed Description

A ML module that supports image processing implemented in Python.

This interface allows to call processAllPages() and to set the input image handling for invalid inputs.


Member Enumeration Documentation

How to handle the inputs if they are either disconnected or contain an invalid image.

Enumerator:
Invalidate  < Always invalidate
AllowDisconnectedInput  < Allow that the input is disconnected
AllowInvalidImage  < Allow that the input image is invalid (but connected)
AllowAny  < Allow both disconnected inputs and connected invalid images


Member Function Documentation

bool MLPythonModuleWrapper::processAllPages ( const QList< quint64 > &  pos = QList< quint64 >(),
const QList< quint64 > &  extent = QList< quint64 >() 
) [slot]

Process all pages of the module (equivalent to calling Module::processAllPages(-1, box)) This will call calculateOutputImageProperties(-1, outImg) and you can define the properties of the temporaty paged image there.

void MLPythonModuleWrapper::setHandleInput ( int  index,
HandleInput  handleInputFlag 
) [slot]

Set how the input image at index should be handled if the input is disconnected or if it is connected but has an invalid image.

If you allow both invalid and disconnected inputs, you can use AllowAny. Note that the default is Invalidate for all outputs. These flags need to be set in the init phase of the module.

void MLPythonModuleWrapper::setPythonModule ( const char *  name  )  [inline, slot]

Sets the name of the associated MeVisLab python module, which is found via sys.modules.

void MLPythonModuleWrapper::setTouchOutputsOnInputChange ( bool  flag = true  )  [inline, slot]

Sets that the output images are touched/not touched by the module when any input image changes (the default is true).


Generated on Sat Sep 3 18:38:03 2011 for MeVisLab Scripting Reference by  doxygen 1.5.8