where denotes center of mass position of a cell after shifting but before adding or subtracting a pixel.
Next we take into account the new pixel (either gained or lost) and calculate center of mass position (for the shifted cell):
Above we have assumed that we are adding one pixel.
Share with your friends: |