I have an applet which generates images of dimension 28 x 1 with bit width 1. Now my objective is that if any of the pixels in an image has value 1 then I need to set the particular pixel index's value to 1 for the next 10 images. For instance, in an image if a pixel at index 3 has a value 1 then every 3rd pixel of the consecutive 10 frames should be set as 1. And If a particular pixel has a value 1 in subsequent images then counter of 10 has to be restarted for each image.
Please refer the attached applet and suggest if any changes required on the design? or notify me if there is any operator that could achieve this!