The template matching and/or the signal generation modules can be independently modified to adapt to changing conditions such as changes in the nature or type of the received image data, changes in the nature of the output signals, changes to the marking process and/or changes in the characteristics of the marking process or marking engine.