Wednesday, 10 April 2013

April 10 2013

To-Do-list:


1. collect a static sample while the creature is not being touched at the start and end of every collection
2. modularize the code
3. record both the code collection version number + static offset data in the same file

Details:
1. collect a static sample while the creature is not being touched at the start and end of every collection
at the very first iteration of the while loop which collects data as many times as we need samples, a static pressure map will be collected without the user touching the creature. Same will be done at the very last iteration.
At every iteration, the static_initial_pressure_map will be subtracted from the value matrix (which is the pressure matrix) to ensure that the environment noise is reduced as much as possible.
At the very last iteration, another static sample is collected and compared to the initial static pressure map to see how much the environment noise has changed over the data collection phase.

2. record both the code collection version number + static offset data in the same file
both static offset pressure maps (the initial one and the final one) are saved within the same file.
the version number will depend on how the pressure map is processed.

3. modularize the code
The following functions were added to the code:

  • centroid.m: calculates the x and y location of centroid given the pressure map
  • preProcess.m: changes the pressure map and returns a new map as well as a version number. This can later be used to track how the pressure map had been modified.
  • analyze.m: is responsible for any kind of analyzing the data. For example the centroid will be calculated in this function.
What's left?
compare the final static pressure map with the initial one. The thing that is making it difficult is a finding a good method for comparing two matrices and say how much they are similar. I thought about subtracting them and use the resulting matrix to say whether much as been changed but I am not sure how good this method is for comparing two matrices.

No comments:

Post a Comment