# Center of Pressure Line from Barefoot Scan (EMED)

I have raw data obtained from EMED barefoot scan containing a matrix of pressure sensors over about 70 frames. This totals 70 matrices that record a snapshot of the pressure over the duration of a person's natural walk over the pressure plate.

I wanted to ask if anyone knows the algorithm that is typically used to determine the Center of Pressure Line (indicated by the path on the heatmap below). One thing I have tried is to consider each row as an array and find the index of the maximum pressure across the row, and create a line by matching up all the points that correspond to these indices. My approach fails to produce a smoothed line (even when using Gaussian smoothing).

• What do you mean by "this path"? That is the first time that you mention it.
– hazzey
Commented Oct 13, 2015 at 16:13
• @hazzey edited. I was referring to the path shown on the figure below Commented Oct 13, 2015 at 16:15
• I have no real knowledge in this matter so I won't post this as an answer, but I would get each row and get the center of gravity of that row (the weighed average of the horizontal position of each pixel and the pressure applied). This will not result in exactly the image you have, though, since you can see that in the arch of the foot the line is not within the pressure zone of the foot. This means the real method is non-local, taking into consideration more information than each individual row.
– Wasabi
Commented Oct 13, 2015 at 17:25
• I'm no expert in the field, but I think that the image that you posted is misleading (and is perhaps the source of your confusion). I believe that the COP line is calculated for many different frames and then overlayed onto a single frame. If I am correct, then the COP of a single frame is simply the center of mass of the pressure image. The COP position moves forward with each frame as the person progresses through their gait, and these positions are overlayed on a frame near the center of the gait. Commented Oct 13, 2015 at 23:28
• @ChrisMueller that's it. this view is actually a "peak pressure" view which takes the max for each sensor over the duration of the gait. Taking the center of mass for each frame produces the desired result. Commented Oct 14, 2015 at 0:19