Warping of images and image sequences.
This module performs warping of single images or images sequences with a given flow. This is useful e.g. to check if a calculated optical flow explains the changes in a consecutive image pair.Usually, the flow information has one time step less than the input sequence. In this case, the first image will stay untouched. A message is printed to sout showing how much images have been ignored. If there are more time steps in the flow image, the last ones are ignored (also with message printed to sout).If the flow is correct, the two resulting images (-> image pair) of this warping step should look much more similar than before. The difference between the two output images is called residual.The flow is multiplied with the weight parameter before the warping is actually performed, this way warping into the opposite direction (weight = -1) or warping half-way (weight = 0.5) is possible.
input slots | |
InputSlot< CImgList< T > > | flowInput |
Image flow. | |
InputSlot< Interpolator< T > * > | interpolator |
Interpolator. | |
InputSlot< CImgList< T > > | seqInput |
Image sequence. | |
output slots | |
OutputSlot< CImgList< T > > | out |
Warped Image. | |
parameters | |
Parameter< bool > | uniformWarp |
warp all images in sequence with the same flow field | |
Parameter< bool > | warpToNan |
warp to NaN | |
Parameter< float > | weight |
Flow weight. |
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.