Size Module Reference

Image Size.

Get size of input object and export is as an ROI instance (e.g. for further use in the crop or resize plugins).Usage example: If you want to double the size of an image, connect it to the image input slot of this plugin and to the input of an resize plugin. Leave the offset slot unconnected,set resize factor to 2.0 and connect the roi output to the roi input of the resize plugin.Using with PetscSolver This module may also be used to determine the image sequence dimensions to be passed to the PetscSolver in optical flow algorithms. Typically, the input sequence consists of (at least) two consecutive frames (i.e. the t dimension is of size two) to calculate one flow frame. So you have to subtract one frame from the t dimension, e.g. passing an offset roi with just zeros but one as tEnd.

input slots

InputSlot< CImgList< T > > image
  input image
InputSlot< Roi< int > * > offset
  offset ROI

output slots

OutputSlot< Roi< int > * > roi
  ROI(Region of Interest)

parameters

Parameter< double > resizeFactor
  resize Factor

further information

This Module subclasses TemplatedParameteredObject< T >.
For documentation of parameters and slots inherited by this base class, please have a look at the corresponding Module reference.

This module is templated. There are instances with T=int,float,double.
An additional parameter called templatetype may be used to select which instantiation you want.

The detailed doxygen documentation beyond the parameters/slots may be found here.


Get Charon at SourceForge.net. Fast, secure and Free Open Source software downloads