Though it's not ready to push at the moment, I still want to give some additional info how the motion detection and correction works.
The detection uses a method derived from dcrawps to detect 'motion'. In fact these are differences in the green channels which are sampled twice. dcrawps uses 2 pixels (x 2 samples) for this, but after some tries I found out that using 4 pixels (x 2 samples) gives better results. So the rt implementation uses 4 pixels (x 2 samples) for the detection.
If 'Pixelshift motion control' is > 0 and 'Show motion' is enabled, the detected 'motion' pixels are marked green.
If 'Pixelshift motion control' is > 0 and 'Show motion' is disabled, the detected 'motion' pixels are replaced by the amaze demosaiced version of the selected 'Sub-image'. This way you can even decide with which of the 4 versions of the image you want to replace the 'motion'.
If 'Pixelshift motion control' is = 0 then motion detection and correction is disabled.
Maybe I can push the new version at the weekend...